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"
|
|
|
|
|
2021-01-06 19:23:44 +01:00
|
|
|
|
|
|
|
|
2020-06-25 16:57:13 +02:00
|
|
|
android {
|
2022-05-03 15:10:37 +02:00
|
|
|
compileSdkVersion 31
|
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
|
2022-05-03 15:10:37 +02:00
|
|
|
targetSdkVersion 31
|
2021-05-02 18:59:05 +02:00
|
|
|
versionCode 43
|
|
|
|
versionName "1.14.1"
|
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 {
|
2022-05-03 15:10:37 +02:00
|
|
|
viewBinding true
|
2020-10-15 15:16:41 +02:00
|
|
|
}
|
|
|
|
|
2020-09-19 17:22:34 +02:00
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
checkReleaseBuilds false
|
|
|
|
abortOnError false
|
|
|
|
}
|
2020-12-14 16:41:29 +01:00
|
|
|
//boolean full_instances if set to false means TubeAcad
|
2020-09-06 20:41:36 +02:00
|
|
|
productFlavors {
|
2021-01-23 17:03:26 +01:00
|
|
|
fdroid_acad {
|
2020-09-06 20:41:36 +02:00
|
|
|
applicationId "app.fedilab.fedilabtube"
|
2020-12-11 18:37:35 +01:00
|
|
|
resValue "string", "app_name", "TubeAcad"
|
|
|
|
resValue "string", "app_id", "app.fedilab.fedilabtube"
|
2020-12-24 16:40:18 +01:00
|
|
|
buildConfigField "String", "version", "\"fdroid_acad\""
|
2020-09-13 19:20:04 +02:00
|
|
|
buildConfigField "boolean", "full_instances", "false"
|
2020-09-14 15:53:31 +02:00
|
|
|
buildConfigField "boolean", "google_restriction", "false"
|
2020-12-01 16:09:14 +01:00
|
|
|
buildConfigField "boolean", "surfing_mode", "false"
|
|
|
|
buildConfigField "boolean", "sepia_search", "false"
|
2020-12-12 09:32:55 +01:00
|
|
|
buildConfigField "boolean", "instance_switcher", "true"
|
2020-12-30 15:37:09 +01:00
|
|
|
buildConfigField "boolean", "allow_remote_connections", "false"
|
2021-01-16 11:33:59 +01:00
|
|
|
buildConfigField "boolean", "google_cast_lib", "false"
|
|
|
|
buildConfigField "int", "cast_enabled", "0"
|
|
|
|
buildConfigField "int", "default_theme", "2"
|
2020-09-13 19:20:04 +02:00
|
|
|
}
|
2021-01-23 17:03:26 +01:00
|
|
|
google_acad {
|
2020-09-13 19:20:04 +02:00
|
|
|
applicationId "app.fedilab.fedilabtube"
|
2020-12-11 18:37:35 +01:00
|
|
|
resValue "string", "app_name", "TubeAcad"
|
|
|
|
resValue "string", "app_id", "app.fedilab.fedilabtube"
|
2020-12-24 16:40:18 +01:00
|
|
|
buildConfigField "String", "version", "\"google_acad\""
|
2020-09-13 19:20:04 +02:00
|
|
|
buildConfigField "boolean", "full_instances", "false"
|
2020-09-14 15:53:31 +02:00
|
|
|
buildConfigField "boolean", "google_restriction", "true"
|
2020-12-01 16:09:14 +01:00
|
|
|
buildConfigField "boolean", "surfing_mode", "false"
|
|
|
|
buildConfigField "boolean", "sepia_search", "false"
|
2020-12-12 09:32:55 +01:00
|
|
|
buildConfigField "boolean", "instance_switcher", "true"
|
2020-12-30 15:37:09 +01:00
|
|
|
buildConfigField "boolean", "allow_remote_connections", "false"
|
2021-01-23 17:03:26 +01:00
|
|
|
buildConfigField "boolean", "google_cast_lib", "true"
|
|
|
|
buildConfigField "int", "cast_enabled", "1"
|
2021-01-16 11:33:59 +01:00
|
|
|
buildConfigField "int", "default_theme", "2"
|
2020-09-06 20:41:36 +02:00
|
|
|
}
|
|
|
|
fdroid_full {
|
|
|
|
applicationId "app.fedilab.tubelab"
|
2020-12-11 18:37:35 +01:00
|
|
|
resValue "string", "app_name", "TubeLab"
|
|
|
|
resValue "string", "app_id", "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-12-01 16:09:14 +01:00
|
|
|
buildConfigField "boolean", "surfing_mode", "true"
|
|
|
|
buildConfigField "boolean", "sepia_search", "true"
|
2020-12-12 09:32:55 +01:00
|
|
|
buildConfigField "boolean", "instance_switcher", "true"
|
2020-12-30 15:37:09 +01:00
|
|
|
buildConfigField "boolean", "allow_remote_connections", "true"
|
2021-01-16 11:33:59 +01:00
|
|
|
buildConfigField "boolean", "google_cast_lib", "false"
|
|
|
|
buildConfigField "int", "cast_enabled", "0"
|
|
|
|
buildConfigField "int", "default_theme", "2"
|
2020-09-13 19:20:04 +02:00
|
|
|
}
|
|
|
|
google_full {
|
|
|
|
applicationId "app.fedilab.tubelab"
|
2020-12-11 18:37:35 +01:00
|
|
|
resValue "string", "app_name", "TubeLab"
|
|
|
|
resValue "string", "app_id", "app.fedilab.tubelab"
|
2020-09-13 19:20:04 +02:00
|
|
|
buildConfigField "String", "version", "\"google_full\""
|
|
|
|
buildConfigField "boolean", "full_instances", "true"
|
2020-09-14 15:53:31 +02:00
|
|
|
buildConfigField "boolean", "google_restriction", "true"
|
2020-12-01 16:09:14 +01:00
|
|
|
buildConfigField "boolean", "surfing_mode", "true"
|
|
|
|
buildConfigField "boolean", "sepia_search", "true"
|
2020-12-12 09:32:55 +01:00
|
|
|
buildConfigField "boolean", "instance_switcher", "true"
|
2020-12-30 15:37:09 +01:00
|
|
|
buildConfigField "boolean", "allow_remote_connections", "true"
|
2021-01-16 11:33:59 +01:00
|
|
|
buildConfigField "boolean", "google_cast_lib", "true"
|
|
|
|
buildConfigField "int", "cast_enabled", "1"
|
|
|
|
buildConfigField "int", "default_theme", "2"
|
2020-09-13 19:20:04 +02:00
|
|
|
}
|
2022-05-03 15:10:37 +02:00
|
|
|
|
2020-09-13 19:20:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
2021-01-23 17:03:26 +01:00
|
|
|
|
|
|
|
fdroid_acad {
|
2021-05-02 18:59:05 +02:00
|
|
|
res.srcDirs = ['src/main/res', 'src/no_google_cast_lib/res', 'src/acad/res']
|
2021-01-16 11:33:59 +01:00
|
|
|
java.srcDirs = ['src/main/java', 'src/acad/java', 'src/no_google_donation/java', 'src/no_google_cast_lib/java']
|
2020-09-06 20:41:36 +02:00
|
|
|
}
|
2021-01-23 17:03:26 +01:00
|
|
|
google_acad {
|
2021-05-02 18:59:05 +02:00
|
|
|
res.srcDirs = ['src/main/res', 'src/google_cast_lib/res', 'src/acad/res']
|
2021-01-23 17:03:26 +01:00
|
|
|
java.srcDirs = ['src/main/java', 'src/acad/java', 'src/no_google_donation/java', 'src/google_cast_lib/java']
|
2020-09-13 19:20:04 +02:00
|
|
|
}
|
|
|
|
fdroid_full {
|
2021-05-02 18:59:05 +02:00
|
|
|
res.srcDirs = ['src/main/res', 'src/no_google_cast_lib/res', 'src/full/res']
|
2021-01-16 11:33:59 +01:00
|
|
|
java.srcDirs = ['src/main/java', 'src/full/java', 'src/no_google_donation/java', 'src/no_google_cast_lib/java']
|
2020-09-06 20:41:36 +02:00
|
|
|
}
|
|
|
|
google_full {
|
2021-05-02 18:59:05 +02:00
|
|
|
res.srcDirs = ['src/main/res', 'src/google_donation/res', 'src/google_cast_lib/res', 'src/full/res']
|
2021-01-16 11:33:59 +01:00
|
|
|
java.srcDirs = ['src/main/java', 'src/full/java', 'src/google_donation/java', 'src/google_cast_lib/java']
|
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"])
|
2022-05-03 15:10:37 +02:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
|
|
implementation 'androidx.preference:preference:1.2.0'
|
|
|
|
implementation 'com.google.android.material:material:1.5.0'
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
2020-06-25 16:57:13 +02:00
|
|
|
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
|
2022-05-03 15:10:37 +02:00
|
|
|
implementation 'androidx.navigation:navigation-fragment:2.4.2'
|
|
|
|
implementation "androidx.fragment:fragment:1.4.1"
|
|
|
|
implementation 'androidx.navigation:navigation-ui:2.4.2'
|
|
|
|
implementation ("androidx.navigation:navigation-dynamic-features-fragment:2.4.2")
|
2020-06-26 14:34:39 +02:00
|
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
2022-05-03 15:10:37 +02:00
|
|
|
implementation 'androidx.browser:browser:1.4.0'
|
2020-11-01 18:34:53 +01:00
|
|
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
2022-05-03 15:10:37 +02:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
2020-06-25 16:57:13 +02:00
|
|
|
|
2022-05-12 15:12:18 +02:00
|
|
|
implementation 'com.github.amoskorir:avatarimagegenerator:1.5.0'
|
2022-05-03 15:10:37 +02:00
|
|
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
|
|
|
|
implementation 'com.github.GrenderG:Toasty:1.5.2'
|
2020-12-28 15:39:18 +01:00
|
|
|
implementation 'com.google.android.exoplayer:exoplayer:2.12.2'
|
|
|
|
implementation 'com.google.android.exoplayer:extension-mediasession:2.12.2'
|
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"
|
2021-01-16 11:33:59 +01:00
|
|
|
implementation 'jp.wasabeef:glide-transformations:4.0.0'
|
2020-06-26 14:34:39 +02:00
|
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
2020-11-22 16:46:05 +01:00
|
|
|
implementation "net.gotev:uploadservice:4.5.1"
|
|
|
|
implementation "net.gotev:uploadservice-okhttp:4.5.1"
|
2020-06-26 14:34:39 +02:00
|
|
|
implementation "com.google.code.gson:gson:2.8.6"
|
2022-05-03 15:10:37 +02:00
|
|
|
implementation 'androidx.media:media:1.6.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-11-06 17:32:12 +01:00
|
|
|
|
2020-10-10 15:33:25 +02:00
|
|
|
implementation "io.github.kobakei:ratethisapp:1.2.0"
|
2020-10-29 18:56:57 +01:00
|
|
|
implementation 'com.github.vkay94:DoubleTapPlayerView:1.0.0'
|
2020-11-04 18:39:45 +01:00
|
|
|
|
2022-05-03 15:10:37 +02:00
|
|
|
implementation "androidx.work:work-runtime:2.7.1"
|
2020-12-11 17:59:24 +01:00
|
|
|
|
2021-01-09 14:13:34 +01:00
|
|
|
|
2021-01-16 11:33:59 +01:00
|
|
|
//************ DONATION GOOGLE ONLY **************//
|
2022-05-03 15:10:37 +02:00
|
|
|
google_fullImplementation "com.android.billingclient:billing:4.1.0"
|
2020-12-11 17:59:24 +01:00
|
|
|
|
2021-01-16 11:33:59 +01:00
|
|
|
//************ MATOMO --> acad instances only **************//
|
|
|
|
|
2021-01-23 17:03:26 +01:00
|
|
|
fdroid_acadImplementation 'org.matomo.sdk:tracker:4.1.2'
|
|
|
|
google_acadImplementation 'org.matomo.sdk:tracker:4.1.2'
|
2020-12-14 16:41:29 +01:00
|
|
|
|
2021-01-16 11:33:59 +01:00
|
|
|
//************ CAST **************///
|
|
|
|
|
2022-05-03 15:10:37 +02:00
|
|
|
//---> Google libs (google_full)
|
|
|
|
google_acadImplementation "com.google.android.gms:play-services-cast-tv:19.0.1"
|
|
|
|
google_acadImplementation "com.google.android.gms:play-services-cast:21.0.1"
|
|
|
|
google_acadImplementation "androidx.mediarouter:mediarouter:1.3.0"
|
|
|
|
google_acadImplementation 'com.google.android.gms:play-services-cast-framework:21.0.1'
|
|
|
|
|
|
|
|
google_fullImplementation "com.google.android.gms:play-services-cast-tv:19.0.1"
|
|
|
|
google_fullImplementation "com.google.android.gms:play-services-cast:21.0.1"
|
|
|
|
google_fullImplementation "androidx.mediarouter:mediarouter:1.3.0"
|
|
|
|
google_fullImplementation 'com.google.android.gms:play-services-cast-framework:21.0.1'
|
2021-01-23 17:03:26 +01:00
|
|
|
|
2021-01-16 11:33:59 +01:00
|
|
|
//----> Other flavors
|
2021-01-23 17:03:26 +01:00
|
|
|
fdroid_acadImplementation 'su.litvak.chromecast:api-v2:0.11.3'
|
|
|
|
fdroid_acadImplementation 'com.fasterxml.jackson.core:jackson-core:2.12.0'
|
|
|
|
fdroid_acadImplementation 'org.slf4j:slf4j-simple:1.7.30'
|
2022-05-05 08:53:25 +02:00
|
|
|
fdroid_acadImplementation 'com.github.evozi:Cyanea:1.0.7'
|
|
|
|
|
2021-01-16 11:33:59 +01:00
|
|
|
fdroid_fullImplementation 'su.litvak.chromecast:api-v2:0.11.3'
|
|
|
|
fdroid_fullImplementation 'com.fasterxml.jackson.core:jackson-core:2.12.0'
|
|
|
|
fdroid_fullImplementation 'org.slf4j:slf4j-simple:1.7.30'
|
2020-12-14 16:41:29 +01:00
|
|
|
|
2020-06-25 16:57:13 +02:00
|
|
|
}
|