2020-06-25 16:57:13 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
2020-06-26 18:17:17 +02:00
|
|
|
apply plugin: "androidx.navigation.safeargs"
|
|
|
|
|
2020-06-25 16:57:13 +02:00
|
|
|
android {
|
2020-09-03 19:08:53 +02:00
|
|
|
compileSdkVersion 30
|
|
|
|
buildToolsVersion "30.0.2"
|
2020-06-25 16:57:13 +02:00
|
|
|
|
2020-10-15 15:16:41 +02:00
|
|
|
|
2020-06-25 16:57:13 +02:00
|
|
|
defaultConfig {
|
2020-09-06 20:41:36 +02:00
|
|
|
|
2020-06-29 17:59:36 +02:00
|
|
|
minSdkVersion 21
|
2020-09-03 19:08:53 +02:00
|
|
|
targetSdkVersion 30
|
2020-10-16 18:03:41 +02:00
|
|
|
versionCode 19
|
2020-10-16 17:53:30 +02:00
|
|
|
versionName "1.5.0"
|
2020-06-26 18:17:17 +02:00
|
|
|
multiDexEnabled true
|
2020-06-25 16:57:13 +02:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
2020-06-26 19:16:00 +02:00
|
|
|
dexOptions {
|
|
|
|
javaMaxHeapSize "4g"
|
|
|
|
}
|
2020-09-06 20:41:36 +02:00
|
|
|
flavorDimensions "default"
|
2020-06-25 16:57:13 +02:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2020-06-26 14:34:39 +02:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2020-09-06 20:41:36 +02:00
|
|
|
|
2020-10-15 15:16:41 +02:00
|
|
|
buildFeatures {
|
|
|
|
viewBinding = true
|
|
|
|
}
|
|
|
|
|
2020-09-19 17:22:34 +02:00
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
checkReleaseBuilds false
|
|
|
|
abortOnError false
|
|
|
|
}
|
2020-09-06 20:41:36 +02:00
|
|
|
productFlavors {
|
|
|
|
fdroid_acad {
|
|
|
|
applicationId "app.fedilab.fedilabtube"
|
2020-09-13 19:20:04 +02:00
|
|
|
buildConfigField "String", "version", "\"fdroid_acad\""
|
|
|
|
buildConfigField "boolean", "full_instances", "false"
|
2020-09-14 15:53:31 +02:00
|
|
|
buildConfigField "boolean", "google_restriction", "false"
|
2020-09-13 19:20:04 +02:00
|
|
|
}
|
|
|
|
google_acad {
|
|
|
|
applicationId "app.fedilab.fedilabtube"
|
|
|
|
buildConfigField "String", "version", "\"google_acad\""
|
|
|
|
buildConfigField "boolean", "full_instances", "false"
|
2020-09-14 15:53:31 +02:00
|
|
|
buildConfigField "boolean", "google_restriction", "true"
|
2020-09-06 20:41:36 +02:00
|
|
|
}
|
|
|
|
fdroid_full {
|
|
|
|
applicationId "app.fedilab.tubelab"
|
2020-09-13 19:20:04 +02:00
|
|
|
buildConfigField "String", "version", "\"fdroid_full\""
|
|
|
|
buildConfigField "boolean", "full_instances", "true"
|
2020-09-14 15:53:31 +02:00
|
|
|
buildConfigField "boolean", "google_restriction", "false"
|
2020-09-13 19:20:04 +02:00
|
|
|
}
|
|
|
|
google_full {
|
|
|
|
applicationId "app.fedilab.tubelab"
|
|
|
|
buildConfigField "String", "version", "\"google_full\""
|
|
|
|
buildConfigField "boolean", "full_instances", "true"
|
2020-09-14 15:53:31 +02:00
|
|
|
buildConfigField "boolean", "google_restriction", "true"
|
2020-09-13 19:20:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
fdroid_acad {
|
|
|
|
res.srcDirs = ['src/main/res', 'src/acad/res']
|
2020-09-06 20:41:36 +02:00
|
|
|
}
|
|
|
|
google_acad {
|
2020-09-13 19:20:04 +02:00
|
|
|
res.srcDirs = ['src/main/res', 'src/acad/res']
|
|
|
|
}
|
|
|
|
fdroid_full {
|
|
|
|
res.srcDirs = ['src/main/res', 'src/full/res']
|
2020-09-06 20:41:36 +02:00
|
|
|
}
|
|
|
|
google_full {
|
2020-09-13 19:20:04 +02:00
|
|
|
res.srcDirs = ['src/main/res', 'src/full/res']
|
2020-09-06 20:41:36 +02:00
|
|
|
}
|
|
|
|
}
|
2020-06-26 14:34:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
maven { url "https://jitpack.io" }
|
|
|
|
maven { url "https://maven.google.com"}
|
|
|
|
}
|
2020-06-25 16:57:13 +02:00
|
|
|
}
|
|
|
|
|
2020-09-06 20:41:36 +02:00
|
|
|
|
2020-06-25 16:57:13 +02:00
|
|
|
dependencies {
|
2020-06-26 18:17:17 +02:00
|
|
|
implementation "androidx.multidex:multidex:2.0.1"
|
2020-06-25 16:57:13 +02:00
|
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
2020-09-03 18:56:28 +02:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
2020-09-03 19:08:53 +02:00
|
|
|
implementation 'androidx.preference:preference:1.1.1'
|
2020-09-06 20:41:36 +02:00
|
|
|
implementation 'com.google.android.material:material:1.2.1'
|
2020-10-10 15:33:25 +02:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
|
2020-06-25 16:57:13 +02:00
|
|
|
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
|
2020-06-26 14:34:39 +02:00
|
|
|
implementation 'androidx.navigation:navigation-fragment:2.3.0'
|
2020-06-26 18:17:17 +02:00
|
|
|
implementation "androidx.fragment:fragment:1.2.5"
|
2020-06-26 14:34:39 +02:00
|
|
|
implementation 'androidx.navigation:navigation-ui:2.3.0'
|
2020-06-26 18:17:17 +02:00
|
|
|
implementation ("androidx.navigation:navigation-dynamic-features-fragment:2.3.0")
|
2020-06-26 14:34:39 +02:00
|
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
|
|
implementation 'androidx.browser:browser:1.2.0'
|
|
|
|
testImplementation 'junit:junit:4.13'
|
2020-09-05 18:50:17 +02:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
2020-06-25 16:57:13 +02:00
|
|
|
|
2020-06-26 19:16:00 +02:00
|
|
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
|
2020-06-26 14:34:39 +02:00
|
|
|
implementation 'com.github.GrenderG:Toasty:1.4.2'
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer:2.10.6'
|
2020-09-19 18:19:59 +02:00
|
|
|
implementation 'com.google.android.exoplayer:extension-mediasession:2.10.6'
|
2020-06-26 14:34:39 +02:00
|
|
|
implementation "com.github.mabbas007:TagsEditText:1.0.5"
|
|
|
|
implementation "com.github.bumptech.glide:glide:4.11.0"
|
2020-06-27 19:08:52 +02:00
|
|
|
annotationProcessor "com.github.bumptech.glide:compiler:4.11.0"
|
2020-06-26 14:34:39 +02:00
|
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
|
|
|
implementation "net.gotev:uploadservice:3.5.2"
|
|
|
|
implementation "net.gotev:uploadservice-okhttp:3.5.2"
|
|
|
|
implementation "com.google.code.gson:gson:2.8.6"
|
2020-09-19 18:19:59 +02:00
|
|
|
implementation 'androidx.media:media:1.2.0'
|
2020-10-04 17:25:08 +02:00
|
|
|
implementation 'com.github.ybq:Android-SpinKit:1.4.0'
|
2020-09-25 18:58:04 +02:00
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
2020-10-09 10:19:46 +02:00
|
|
|
implementation 'com.github.mancj:MaterialSearchBar:0.8.5'
|
2020-09-25 18:58:04 +02:00
|
|
|
|
2020-10-10 15:33:25 +02:00
|
|
|
implementation "io.github.kobakei:ratethisapp:1.2.0"
|
2020-10-15 18:11:37 +02:00
|
|
|
implementation 'com.github.HITGIF:TextFieldBoxes:1.4.5'
|
2020-10-10 15:33:25 +02:00
|
|
|
|
2020-06-25 16:57:13 +02:00
|
|
|
}
|