Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
YouROK committed Nov 18, 2020
1 parent cd144f8 commit 16d670a
Show file tree
Hide file tree
Showing 165 changed files with 1,575 additions and 8,069 deletions.
19 changes: 7 additions & 12 deletions .gitignore
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
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed .idea/caches/build_file_checksums.ser
Binary file not shown.
52 changes: 21 additions & 31 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions .idea/encodings.xml

This file was deleted.

1 change: 0 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 1 addition & 40 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/build
/build
108 changes: 29 additions & 79 deletions app/build.gradle
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'
2 changes: 1 addition & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
Loading

0 comments on commit 16d670a

Please sign in to comment.