Skip to content

Commit

Permalink
Release 1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
XITRIX authored Aug 14, 2019
2 parents 5c4bca8 + b096e12 commit dfb635a
Show file tree
Hide file tree
Showing 52 changed files with 1,376 additions and 658 deletions.
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ iTorrent.xcodeproj/project.xcworkspace/xcuserdata
._.DS_Store
**/.DS_Store
**/._.DS_Store
.DS_Store
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ target 'iTorrent' do
pod 'Firebase/Performance'
pod 'Fabric', '~> 1.7.7'
pod 'Crashlytics', '~> 3.10.2'
pod 'MarqueeLabel/Swift'
pod 'MarqueeLabel'
pod 'Google-Mobile-Ads-SDK'

end
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ It is an ordinary torrent client for iOS with Files app support.

What can this app do:
- Download in the background
- Sequential download (use VLC to watch films while loading)
- Add torrent files from Share menu (Safari and other apps)
- Add magnet links directly from Safari
- Store files in Files app (iOS 11+)
Expand Down Expand Up @@ -58,7 +59,7 @@ This repo contains iTorrent framework which was compiled only for real devices s

## Donate for donuts

- VISA CARD - 5106 2110 2661 7147
- VISA CARD - 4817 7602 2222 0562
- [QIWI Moneybox](https://qiwi.me/c5ec30ff-21d6-428b-9a10-29a1d18242db)

## Important information
Expand All @@ -83,7 +84,7 @@ More information you can find on [Firebase website](https://firebase.google.com)

## License

Copyright (c) 2018 XITRIX (Vinogradov Daniil)
Copyright (c) 2019 XITRIX (Vinogradov Daniil)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
33 changes: 21 additions & 12 deletions iTorrent.framework/Headers/file_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,33 @@
#ifndef file_struct_h
#define file_struct_h

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;
} File;

typedef struct Files {
int error;
int size;
char* title;
char** file_name;
char** file_path;
long long* file_size;
long long* file_downloaded;
int* file_priority;
char* _Nonnull title;
File* _Nonnull files;
} Files;

typedef struct Trackers {
int size;
char** tracker_url;
char** messages;
int* seeders;
int* peers;
int* working;
int* verified;
char * _Nonnull * _Nonnull tracker_url;
char * _Nonnull * _Nonnull messages;
int * _Nonnull seeders;
int * _Nonnull peers;
int * _Nonnull leechs;
int * _Nonnull working;
int * _Nonnull verified;
} Trackers;
#endif /* file_struct_h */
6 changes: 6 additions & 0 deletions iTorrent.framework/Headers/iTorrent-Bridging-Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ void remove_torrent(const char* torrent_hash, int remove_files);
void save_magnet_to_file(const char* hash);
char* get_torrent_file_hash(const char* torrent_path);
char* get_magnet_hash(const char* magnet_link);
char* get_torrent_magnet_link(const char* torrent_hash);
Files get_files_of_torrent_by_path(const char* torrent_path);
Files get_files_of_torrent_by_hash(const char* hash);
void set_torrent_files_priority(const char* torrent_hash, int* states);
Expand All @@ -25,11 +26,16 @@ void save_fast_resume();
void stop_torrent(const char* torrent_hash);
void start_torrent(const char* torrent_hash);
void rehash_torrent(const char* torrent_hash);
void scrape_tracker(const char* torrent_hash);
Trackers get_trackers_by_hash(const char* torrent_hash);
int add_tracker_to_torrent(const char* torrent_hash, const char* tracker_url);
int remove_tracker_from_torrent(const char* torrent_hash, char *const tracker_url[], int count);
void set_download_limit(int limit_in_bytes);
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);

//FTP
void ftp_start(int port, const char* path);
void ftp_stop();
49 changes: 28 additions & 21 deletions iTorrent.framework/Headers/result_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,36 @@
#ifndef result_struct_h
#define result_struct_h

typedef struct TorrentInfo {
char * _Nonnull name;
char * _Nonnull state;
char * _Nonnull hash;
char * _Nonnull creator;
char * _Nonnull comment;
float progress;
long long total_wanted;
long long total_wanted_done;
int download_rate;
int upload_rate;
long long total_download;
long long total_upload;
int num_seeds;
int num_peers;
long long total_size;
long long total_done;
time_t creation_date;
int is_paused;
int is_finished;
int is_seed;
int has_metadata;
int sequential_download;
int num_pieces;
int * _Nonnull pieces;
} TorrentInfo;

typedef struct Result {
int count;
char * _Nullable * _Nonnull name;
char * _Nullable * _Nonnull state;
char * _Nullable * _Nonnull hash;
char * _Nullable * _Nonnull creator;
char * _Nullable * _Nonnull comment;
float * _Nonnull progress;
long long * _Nonnull total_wanted;
long long * _Nonnull total_wanted_done;
int * _Nonnull download_rate;
int * _Nonnull upload_rate;
long long * _Nonnull total_download;
long long * _Nonnull total_upload;
int * _Nonnull num_seeds;
int * _Nonnull num_peers;
long long * _Nonnull total_size;
long long * _Nonnull total_done;
time_t * _Nonnull creation_date;
int * _Nonnull is_paused;
int * _Nonnull is_finished;
int * _Nonnull is_seed;
int * _Nonnull has_metadata;
TorrentInfo * _Nonnull torrents;
} Result;

#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 dfb635a

Please sign in to comment.