Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
proninyaroslav
committed
Oct 18, 2016
1 parent
908dccf
commit 759eb4e
Showing
380 changed files
with
34,308 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Yaroslav Pronin <proninyaroslav@mail.ru> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Version 1.0 (2016-10-18) | ||
======================== | ||
|
||
First release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- sorting torrents, files | ||
- add Material Dark theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 24 | ||
buildToolsVersion "24.0.3" | ||
|
||
defaultConfig { | ||
applicationId "org.proninyaroslav.libretorrent" | ||
minSdkVersion 15 | ||
targetSdkVersion 24 | ||
versionCode 1 | ||
versionName "1.0" | ||
vectorDrawables.useSupportLibrary = true | ||
resValue "string", "tray__authority", "${applicationId}.tray" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
url "https://jitpack.io" | ||
} | ||
} | ||
|
||
def ANDROID_SUPPORT_VERSION='24.2.1' | ||
def JLIBTORRENT_VERSION='1.1.1.40' | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
testCompile 'junit:junit:4.12' | ||
|
||
/* Standard Android Support libs */ | ||
compile 'com.android.support:support-v4:' + ANDROID_SUPPORT_VERSION | ||
compile 'com.android.support:appcompat-v7:' + ANDROID_SUPPORT_VERSION | ||
compile 'com.android.support:design:' + ANDROID_SUPPORT_VERSION | ||
compile 'com.android.support:cardview-v7:' + ANDROID_SUPPORT_VERSION | ||
|
||
compile 'com.loopj.android:android-async-http:1.4.9' | ||
compile group: 'commons-io', name: 'commons-io', version: '2.5' | ||
compile 'net.grandcentrix.tray:tray:0.11.0' | ||
compile 'info.guardianproject.netcipher:netcipher:1.2' | ||
compile 'ch.acra:acra:4.9.1' | ||
|
||
compile 'com.takisoft.fix:preference-v7:24.2.1.0' | ||
compile 'com.github.aakira:expandable-layout:1.6.0@aar' | ||
compile 'com.github.clans:fab:1.6.4' | ||
compile 'com.github.yukuku:ambilwarna:2.0.1' | ||
|
||
/* libtorrent wrapper */ | ||
compile 'com.frostwire:jlibtorrent:' + JLIBTORRENT_VERSION | ||
compile 'com.frostwire:jlibtorrent-android-arm:' + JLIBTORRENT_VERSION | ||
compile 'com.frostwire:jlibtorrent-android-arm64:' + JLIBTORRENT_VERSION | ||
compile 'com.frostwire:jlibtorrent-android-x86:' + JLIBTORRENT_VERSION | ||
compile 'com.frostwire:jlibtorrent-android-x86_64:' + JLIBTORRENT_VERSION | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /opt/android-sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="org.proninyaroslav.libretorrent"> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.WAKE_LOCK" /> | ||
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS" /> | ||
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" /> | ||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | ||
<uses-permission android:name="android.permission.QUICKBOOT_POWERON" /> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.VIBRATE" /> | ||
|
||
<uses-feature | ||
android:name="android.hardware.touchscreen" | ||
android:required="false" /> | ||
|
||
<application | ||
android:name="MainApplication" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:theme="@style/AppTheme" | ||
android:supportsRtl="true" | ||
android:allowBackup="true" | ||
android:fullBackupContent="true"> | ||
|
||
<activity android:name=".MainActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<activity | ||
android:label="@string/app_name" | ||
android:name=".AddTorrentActivity" | ||
android:windowSoftInputMode="stateHidden"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.SEND" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:host="*" android:mimeType="application/x-bittorrent" android:scheme="file" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:host="*" android:pathPattern=".*\\.torrent" android:scheme="file" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:host="*" android:mimeType="application/x-bittorrent" android:scheme="content" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:host="*" android:pathPattern=".*\\.torrent" android:scheme="content" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:host="*" android:pathPattern=".*\\.torrent" android:scheme="http" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:host="*" android:pathPattern=".*\\.torrent" android:scheme="https" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:host="*" android:mimeType="*/*" android:pathPattern=".*\\.torrent" android:scheme="http" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:host="*" android:mimeType="*/*" android:pathPattern=".*\\.torrent" android:scheme="https" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:host="*" android:mimeType="application/x-bittorrent" android:scheme="http" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:host="*" android:mimeType="application/x-bittorrent" android:scheme="https" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:scheme="magnet" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<activity android:name=".dialogs.filemanager.FileManagerDialog" /> | ||
|
||
<activity | ||
android:label="@string/app_name" | ||
android:name=".DetailTorrentActivity" /> | ||
|
||
<activity android:name=".SendTextToClipboard" | ||
android:label="@string/send_text_to_clipboard" | ||
android:icon="@drawable/ic_content_copy_grey600_48dp" | ||
android:theme="@android:style/Theme.NoDisplay"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.SEND" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.ALTERNATIVE" /> | ||
<data android:name="android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION" /> | ||
<data android:mimeType="text/*" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<activity android:name=".settings.SettingsActivity" | ||
android:label="@string/settings" | ||
android:theme="@style/BaseTheme.Settings"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.APPLICATION_PREFERENCES" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<activity | ||
android:name=".settings.BasePreferenceActivity" | ||
android:theme="@style/BaseTheme.Settings" /> | ||
|
||
<activity | ||
android:name="org.proninyaroslav.libretorrent.ErrorReportActivity" | ||
android:theme="@style/BaseTheme.Dialog" | ||
android:process=":error_report" | ||
android:launchMode="singleInstance" | ||
android:excludeFromRecents="true" | ||
android:finishOnTaskLaunch="true" /> | ||
|
||
<service | ||
android:name=".services.TorrentTaskService" | ||
android:process=":TorrentTaskService" | ||
android:stopWithTask="false" /> | ||
|
||
<receiver | ||
android:name=".receivers.NotificationReceiver" | ||
android:exported="false"> | ||
<intent-filter> | ||
<action android:name="org.proninyaroslav.libretorrent.receivers.NotificationReceiver.NOTIFY_ACTION_SHUTDOWN_APP" /> | ||
<action android:name="org.proninyaroslav.libretorrent.receivers.NotificationReceiver.NOTIFY_ACTION_ADD_TORRENT" /> | ||
</intent-filter> | ||
</receiver> | ||
|
||
<receiver | ||
android:name=".receivers.BootReceiver"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.BOOT_COMPLETED" /> | ||
<action android:name="android.intent.action.QUICKBOOT_POWERON" /> | ||
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON" /> | ||
</intent-filter> | ||
</receiver> | ||
|
||
<!-- About BATTERY_LOW and BATTERY_OKAY see https://code.google.com/p/android/issues/detail?id=36712 --> | ||
<receiver | ||
android:name=".receivers.PowerReceiver"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.ACTION_POWER_CONNECTED" /> | ||
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" /> | ||
<action android:name="android.intent.action.BATTERY_LOW" /> | ||
<action android:name="android.intent.action.BATTERY_OKAY" /> | ||
</intent-filter> | ||
</receiver> | ||
</application> | ||
</manifest> |
Oops, something went wrong.