Skip to content

Commit

Permalink
Release 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
XITRIX authored Apr 29, 2020
2 parents 349e41a + 8a71352 commit 89bd317
Show file tree
Hide file tree
Showing 137 changed files with 7,429 additions and 3,037 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ iTorrent.xcodeproj/project.xcworkspace/xcuserdata
**/._.DS_Store
.DS_Store
.idea
iTorrent.xcworkspace
Empty file removed .sonarcloud.properties
Empty file.
12 changes: 6 additions & 6 deletions Podfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
#plugin 'cocoapods-binary'

platform :ios, '9.3'
#enable_bitcode_for_prebuilt_frameworks!
#keep_source_code_for_prebuilt_frameworks!
#all_binary!

target 'iTorrent' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

# Pods for iTorrent
pod 'Firebase/Core'
pod 'Firebase/Performance'
pod 'Fabric'
Expand All @@ -15,7 +16,6 @@ target 'iTorrent' do
pod "GCDWebServer/WebUploader", "~> 3.0"
pod "GCDWebServer/WebDAV", "~> 3.0"
pod 'AppCenter'

end

post_install do |installer|
Expand Down
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
<img align="left" width="100" height="100" src="https://user-images.githubusercontent.com/9553519/80646366-3d271680-8a75-11ea-8b60-9c5edd4ffd60.png">

# iTorrent - iOS Torrent client App

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

## Screenshots
<details>
<summary>iPhone Screenshots</summary>

![iPhone screenshots](https://user-images.githubusercontent.com/9553519/80644526-7316cb80-8a72-11ea-95b5-e63531d81f35.png)

</details>
<details>
<summary>iPad Screenshots</summary>

![iPad screenshots](https://user-images.githubusercontent.com/9553519/80646848-27feb780-8a76-11ea-8c91-f76d25c0b862.png)

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

## Download

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

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

## Donate for donuts

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

## Important information
Expand Down
21 changes: 12 additions & 9 deletions iTorrent.framework/Headers/file_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@

typedef struct File {
char * _Nonnull file_name;
char * _Nonnull file_path;
long long file_size;
long long file_downloaded;
int file_priority;
long long begin_idx;
long long end_idx;
int num_pieces;
int * _Nonnull pieces;
int * _Nullable pieces;
} File;

typedef struct Files {
Expand All @@ -28,14 +27,18 @@ typedef struct Files {
File* _Nonnull files;
} Files;

typedef struct Tracker {
char * _Nonnull tracker_url;
char * _Nonnull messages;
int seeders;
int peers;
int leechs;
int working;
int verified;
} Tracker;

typedef struct Trackers {
int size;
char * _Nonnull * _Nonnull tracker_url;
char * _Nonnull * _Nonnull messages;
int * _Nonnull seeders;
int * _Nonnull peers;
int * _Nonnull leechs;
int * _Nonnull working;
int * _Nonnull verified;
Tracker * _Nonnull trackers;
} Trackers;
#endif /* file_struct_h */
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

//TORRENT
int init_engine(const char* client_name, const char* download_path, const char* config_path);
Result getTorrentInfo();
TorrentResult get_torrent_info();
char* add_torrent(const char* torrent_path);
void add_torrent_with_states(const char* torrent_path, int* states);
char* add_magnet(const char* magnet_link);
Expand All @@ -35,3 +35,12 @@ void set_upload_limit(int limit_in_bytes);

void set_torrent_files_sequental(const char* torrent_hash, int sequental);
int get_torrent_files_sequental(const char* torrent_hash);

//memory management
void set_storage_preallocation(int preallocate);
int get_storage_preallocation();

//destructors
void free_result(TorrentResult res);
void free_files(Files files);
void free_trackers(Trackers trackers);
6 changes: 4 additions & 2 deletions iTorrent.framework/Headers/result_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#ifndef result_struct_h
#define result_struct_h

#include <time.h>

typedef struct TorrentInfo {
char * _Nonnull name;
char * _Nonnull state;
Expand Down Expand Up @@ -36,9 +38,9 @@ typedef struct TorrentInfo {
int * _Nonnull pieces;
} TorrentInfo;

typedef struct Result {
typedef struct TorrentResult {
int count;
TorrentInfo * _Nonnull torrents;
} Result;
} TorrentResult;

#endif /* result_struct_h */
Binary file modified iTorrent.framework/Info.plist
Binary file not shown.
Binary file modified iTorrent.framework/iTorrent
Binary file not shown.
Loading

0 comments on commit 89bd317

Please sign in to comment.