-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
out/ | ||
|
||
pay.property | ||
free.property | ||
*.jks | ||
|
||
TODO | ||
dist/ | ||
app/google-services.json | ||
|
||
*.bbprojectd | ||
.cxx | ||
local.properties |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
/build | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,59 @@ | ||
import java.text.SimpleDateFormat | ||
|
||
apply plugin: 'com.android.application' | ||
|
||
apply plugin: 'kotlin-android' | ||
|
||
apply plugin: 'kotlin-android-extensions' | ||
|
||
def freeKeystorePropertiesFile = rootProject.file("free.property") | ||
def freeProperties = new Properties() | ||
freeProperties.load(new FileInputStream(freeKeystorePropertiesFile)) | ||
plugins { | ||
id 'com.android.application' | ||
id 'kotlin-android' | ||
} | ||
|
||
android { | ||
compileSdkVersion 28 | ||
|
||
defaultConfig { | ||
applicationId "ru.yourok.torrserve" | ||
minSdkVersion 16 | ||
applicationId "ru.yourok.torrserver_new" | ||
minSdkVersion 21 | ||
targetSdkVersion 28 | ||
versionCode 85 | ||
versionName "1.1.85" | ||
} | ||
signingConfigs { | ||
release { | ||
keyAlias freeProperties['keyAlias'] | ||
keyPassword freeProperties['keyPassword'] | ||
storeFile rootProject.file(freeProperties['storeFile']) | ||
storePassword freeProperties['storePassword'] | ||
} | ||
versionCode 1 | ||
versionName "1.2.78" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
signingConfig signingConfigs.release | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
applicationVariants.all { variant -> | ||
variant.outputs.all { | ||
outputFileName = "TorrServe_${versionName}.apk" | ||
} | ||
} | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
packagingOptions { | ||
exclude 'META-INF/DEPENDENCIES' | ||
exclude 'META-INF/NOTICE' | ||
exclude 'META-INF/LICENSE' | ||
exclude 'META-INF/LICENSE.txt' | ||
exclude 'META-INF/NOTICE.txt' | ||
} | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
kotlinOptions { | ||
jvmTarget = '1.8' | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | ||
implementation 'androidx.recyclerview:recyclerview:1.1.0' | ||
|
||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" | ||
implementation 'androidx.core:core-ktx:1.3.2' | ||
implementation 'androidx.appcompat:appcompat:1.2.0' | ||
implementation 'androidx.tvprovider:tvprovider:1.0.0' | ||
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0' | ||
implementation 'com.google.android.material:material:1.2.1' | ||
implementation 'androidx.constraintlayout:constraintlayout:2.0.4' | ||
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0' | ||
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0' | ||
|
||
implementation 'cz.msebera.android:httpclient:4.5.8' | ||
implementation "androidx.datastore:datastore-preferences:1.0.0-alpha03" | ||
|
||
implementation 'com.squareup.picasso:picasso:2.71828' | ||
implementation 'org.jsoup:jsoup:1.13.1' | ||
implementation 'com.google.code.gson:gson:2.8.6' | ||
|
||
implementation 'com.google.firebase:firebase-core:17.4.0' | ||
|
||
//Root | ||
//root shell | ||
implementation "com.github.topjohnwu.libsu:core:2.5.1" | ||
implementation 'com.google.android.material:material:1.2.1' | ||
|
||
//glide | ||
implementation 'com.github.bumptech.glide:glide:4.11.0' | ||
implementation 'jp.wasabeef:glide-transformations:4.0.1' | ||
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
maven { url 'https://jitpack.io' } | ||
} | ||
|
||
class WriteVersion implements Plugin<Project> { | ||
void apply(Project project) { | ||
project.task("WriteVersion") { | ||
project.gradle.projectsEvaluated { | ||
println "Write: release.json" | ||
|
||
def appId = "$project.android.defaultConfig.applicationId" | ||
def version = "$project.android.defaultConfig.versionName" | ||
def versionCode = "$project.android.defaultConfig.versionCode" | ||
|
||
println appId | ||
println version | ||
|
||
def stringsFile = new File("release.json") | ||
def json = """{ | ||
"Name": "${appId}", | ||
"Version": "${version}", | ||
"VersionCode": "${versionCode}", | ||
"BuildDate": "${new SimpleDateFormat("dd.MM.yyyy").format(new Date())}", | ||
"Link": "https://github.com/YouROK/TorrServe/releases/download/${version}/TorrServe_${version}.apk" | ||
} | ||
""" | ||
stringsFile.write(json) | ||
} | ||
} | ||
} | ||
} | ||
|
||
apply plugin: WriteVersion | ||
apply plugin: 'com.google.gms.google-services' |