Skip to content

Commit 89bd317

Browse files
authored
Release 1.8
2 parents 349e41a + 8a71352 commit 89bd317

File tree

137 files changed

+7429
-3037
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+7429
-3037
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ iTorrent.xcodeproj/project.xcworkspace/xcuserdata
1010
**/._.DS_Store
1111
.DS_Store
1212
.idea
13+
iTorrent.xcworkspace

.sonarcloud.properties

Whitespace-only changes.

Podfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# Uncomment the next line to define a global platform for your project
2-
# platform :ios, '9.0'
1+
#plugin 'cocoapods-binary'
2+
3+
platform :ios, '9.3'
4+
#enable_bitcode_for_prebuilt_frameworks!
5+
#keep_source_code_for_prebuilt_frameworks!
6+
#all_binary!
37

48
target 'iTorrent' do
5-
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
69
use_frameworks!
7-
8-
# Pods for iTorrent
910
pod 'Firebase/Core'
1011
pod 'Firebase/Performance'
1112
pod 'Fabric'
@@ -15,7 +16,6 @@ target 'iTorrent' do
1516
pod "GCDWebServer/WebUploader", "~> 3.0"
1617
pod "GCDWebServer/WebDAV", "~> 3.0"
1718
pod 'AppCenter'
18-
1919
end
2020

2121
post_install do |installer|

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
1+
<img align="left" width="100" height="100" src="https://user-images.githubusercontent.com/9553519/80646366-3d271680-8a75-11ea-8b60-9c5edd4ffd60.png">
2+
13
# iTorrent - iOS Torrent client App
24

35
![](https://img.shields.io/badge/iOS-9.3+-blue.svg)
46
![](https://app.bitrise.io/app/26ce0756a727335c/status.svg?token=BLhjBICoPvmOtO1nzIVMYQ&branch=master)
57

68
## Screenshots
9+
<details>
10+
<summary>iPhone Screenshots</summary>
11+
12+
![iPhone screenshots](https://user-images.githubusercontent.com/9553519/80644526-7316cb80-8a72-11ea-95b5-e63531d81f35.png)
13+
14+
</details>
15+
<details>
16+
<summary>iPad Screenshots</summary>
17+
18+
![iPad screenshots](https://user-images.githubusercontent.com/9553519/80646848-27feb780-8a76-11ea-8c91-f76d25c0b862.png)
719

8-
![itorrent](https://user-images.githubusercontent.com/9553519/42249216-da6f6190-7f32-11e8-9126-e559be69ebf5.png)
20+
</details>
921

1022
## Download
1123

@@ -27,7 +39,7 @@ What can this app do:
2739
- Download torrent by link
2840
- Download torrent by magnet
2941
- Send notification on torrent downloaded
30-
- FTP Server (unstable)
42+
- WebDav Server
3143
- Select files to download or not
3244
- Change UI to dark theme
3345
- ???
@@ -58,16 +70,12 @@ This repo contains iTorrent framework which was compiled only for real devices s
5870

5971
- [LibTorrent](https://github.com/arvidn/libtorrent)
6072
- [BackgroundTask](https://github.com/yarodevuci/backgroundTask)
61-
- [Orianne-FTP-Server (My fork)](https://github.com/XITRIX/Orianne-FTP-Server)
6273
- [MarqueeLabel](https://github.com/cbpowell/MarqueeLabel)
6374

6475
## Donate for donuts
6576

66-
- [PayPal](https://paypal.me/xitrix)
6777
- [Patreon](https://www.patreon.com/xitrix)
68-
- [Liberapay](https://liberapay.com/XITRIX)
69-
- [Ko-fi](https://ko-fi.com/xitrix)
70-
- [QIWI Moneybox](https://qiwi.me/c5ec30ff-21d6-428b-9a10-29a1d18242db)
78+
- [PayPal](https://paypal.me/xitrix)
7179
- VISA CARD - 4817 7601 3631 7520
7280

7381
## Important information

iTorrent.framework/Headers/file_struct.h

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@
1111

1212
typedef struct File {
1313
char * _Nonnull file_name;
14-
char * _Nonnull file_path;
1514
long long file_size;
1615
long long file_downloaded;
1716
int file_priority;
1817
long long begin_idx;
1918
long long end_idx;
2019
int num_pieces;
21-
int * _Nonnull pieces;
20+
int * _Nullable pieces;
2221
} File;
2322

2423
typedef struct Files {
@@ -28,14 +27,18 @@ typedef struct Files {
2827
File* _Nonnull files;
2928
} Files;
3029

30+
typedef struct Tracker {
31+
char * _Nonnull tracker_url;
32+
char * _Nonnull messages;
33+
int seeders;
34+
int peers;
35+
int leechs;
36+
int working;
37+
int verified;
38+
} Tracker;
39+
3140
typedef struct Trackers {
3241
int size;
33-
char * _Nonnull * _Nonnull tracker_url;
34-
char * _Nonnull * _Nonnull messages;
35-
int * _Nonnull seeders;
36-
int * _Nonnull peers;
37-
int * _Nonnull leechs;
38-
int * _Nonnull working;
39-
int * _Nonnull verified;
42+
Tracker * _Nonnull trackers;
4043
} Trackers;
4144
#endif /* file_struct_h */

iTorrent.framework/Headers/iTorrent-Bridging-Header.h renamed to iTorrent.framework/Headers/iTorrent-Framework-Bridging-Header.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
//TORRENT
1010
int init_engine(const char* client_name, const char* download_path, const char* config_path);
11-
Result getTorrentInfo();
11+
TorrentResult get_torrent_info();
1212
char* add_torrent(const char* torrent_path);
1313
void add_torrent_with_states(const char* torrent_path, int* states);
1414
char* add_magnet(const char* magnet_link);
@@ -35,3 +35,12 @@ void set_upload_limit(int limit_in_bytes);
3535

3636
void set_torrent_files_sequental(const char* torrent_hash, int sequental);
3737
int get_torrent_files_sequental(const char* torrent_hash);
38+
39+
//memory management
40+
void set_storage_preallocation(int preallocate);
41+
int get_storage_preallocation();
42+
43+
//destructors
44+
void free_result(TorrentResult res);
45+
void free_files(Files files);
46+
void free_trackers(Trackers trackers);

iTorrent.framework/Headers/result_struct.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#ifndef result_struct_h
1010
#define result_struct_h
1111

12+
#include <time.h>
13+
1214
typedef struct TorrentInfo {
1315
char * _Nonnull name;
1416
char * _Nonnull state;
@@ -36,9 +38,9 @@ typedef struct TorrentInfo {
3638
int * _Nonnull pieces;
3739
} TorrentInfo;
3840

39-
typedef struct Result {
41+
typedef struct TorrentResult {
4042
int count;
4143
TorrentInfo * _Nonnull torrents;
42-
} Result;
44+
} TorrentResult;
4345

4446
#endif /* result_struct_h */

iTorrent.framework/Info.plist

-2 Bytes
Binary file not shown.

iTorrent.framework/iTorrent

-273 KB
Binary file not shown.

0 commit comments

Comments
 (0)