LeOS-Genesis/app/build.gradle

167 lines
5.6 KiB
Groovy
Raw Normal View History

2020-01-24 16:23:31 +01:00
apply from: 'variables.gradle'
2021-04-18 10:37:16 +02:00
apply plugin: 'com.android.application'
2020-10-05 13:12:00 +02:00
apply plugin: 'maven-publish'
2020-10-20 16:55:08 +02:00
apply plugin: 'com.google.gms.google-services'
2021-01-18 11:07:12 +01:00
apply plugin: 'kotlin-android'
2020-01-24 16:23:31 +01:00
2021-05-10 17:37:53 +02:00
import com.android.build.OutputFile
2020-01-24 16:23:31 +01:00
android {
2021-05-10 17:37:53 +02:00
2021-04-18 10:37:16 +02:00
compileSdkVersion project.ext.compile_sdk_version
ndkVersion project.ext.ndk_version
2020-02-28 19:10:00 +01:00
2020-01-24 16:23:31 +01:00
defaultConfig {
2021-04-18 10:37:16 +02:00
applicationId project.ext.application_id
minSdkVersion project.ext.min_sdk_version
targetSdkVersion project.ext.target_sdk_version
2021-05-10 17:37:53 +02:00
versionCode project.ext.vcode
versionName project.ext.vname
ndk {
debugSymbolLevel project.ext.debugSymbolLevel
}
2020-01-24 16:23:31 +01:00
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2021-05-10 17:37:53 +02:00
dexOptions {
preDexLibraries project.ext.preDexLibraries
}
buildTypes {
release {
minifyEnabled project.ext.minifyEnabled
shrinkResources project.ext.shrinkResources
proguardFiles getDefaultProguardFile(project.ext.proguard_file), project.ext.proguard_rule
}
}
lintOptions {
checkReleaseBuilds project.ext.checkReleaseBuilds
abortOnError project.ext.abortOnError
}
2020-01-24 16:23:31 +01:00
flavorDimensions project.ext.dimen
productFlavors {
2021-05-10 17:37:53 +02:00
genesis {
2021-04-18 10:37:16 +02:00
dimension project.ext.dimen
2020-01-24 16:23:31 +01:00
}
2021-05-10 17:37:53 +02:00
}
splits {
abi {
enable project.ext.splitEnabled
reset()
include project.ext.abi_x86, project.ext.abi_x86_x64, project.ext.abi_arm64, project.ext.abi_armeabi
2020-01-24 16:23:31 +01:00
}
2020-10-20 16:55:08 +02:00
}
2020-01-24 16:23:31 +01:00
2020-10-20 16:55:08 +02:00
sourceSets {
main {
2021-04-18 10:37:16 +02:00
res.srcDirs = project.ext.resource_directories
2020-01-24 16:23:31 +01:00
}
2020-02-28 19:10:00 +01:00
2021-05-10 17:37:53 +02:00
genesisRelease.root = project.ext.releaseRoot
2020-01-24 16:23:31 +01:00
}
2021-04-28 10:48:03 +02:00
2020-01-24 16:23:31 +01:00
}
dependencies {
2021-04-18 10:37:16 +02:00
/* Android Support Repository dependencies */
2020-02-28 19:10:00 +01:00
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
2020-09-11 12:54:25 +02:00
implementation 'androidx.appcompat:appcompat:1.2.0'
2021-04-18 10:37:16 +02:00
implementation 'androidx.preference:preference-ktx:1.1.1'
2020-02-28 19:10:00 +01:00
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
2021-04-18 10:37:16 +02:00
implementation 'androidx.recyclerview:recyclerview:1.2.0'
2020-11-11 13:11:13 +01:00
implementation 'androidx.cardview:cardview:1.0.0'
2020-11-27 12:40:46 +01:00
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'
2021-04-18 10:37:16 +02:00
implementation 'com.google.firebase:firebase-messaging:21.1.0'
2021-04-24 23:26:22 +02:00
implementation 'com.android.support:support-core-utils:28.0.0'
2020-02-28 19:10:00 +01:00
2021-04-18 10:37:16 +02:00
/* Default Libraries */
2020-02-28 19:10:00 +01:00
2021-03-18 18:42:53 +01:00
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
2020-09-11 12:54:25 +02:00
implementation 'androidx.appcompat:appcompat:1.2.0'
2021-03-18 18:42:53 +01:00
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
2021-04-05 21:07:02 +02:00
implementation 'com.google.android.material:material:1.4.0-alpha02'
2021-04-18 10:37:16 +02:00
implementation 'androidx.preference:preference-ktx:1.1.1'
2021-03-18 18:42:53 +01:00
implementation 'com.google.android.material:material:1.3.0'
2020-09-19 14:10:12 +02:00
implementation 'androidx.appcompat:appcompat:1.2.0'
2020-01-24 16:23:31 +01:00
2021-04-18 10:37:16 +02:00
/* Firefox ABI Splits */
2020-01-24 16:23:31 +01:00
2021-04-18 10:37:16 +02:00
implementation "org.mozilla.components:browser-engine-gecko:73.0.8"
implementation "org.mozilla.components:browser-icons:73.0.9"
implementation "org.mozilla.geckoview:geckoview:87.0.20210318103112"
implementation "org.mozilla.components:concept-fetch:73.0.9"
implementation "org.mozilla.components:concept-base:73.0.9"
implementation 'com.coolerfall:android-http-download-manager:1.6.3'
implementation "org.mozilla.components:support-utils:73.0.9"
2020-01-24 16:23:31 +01:00
/*Crashlytics*/
2021-04-18 10:37:16 +02:00
2020-09-11 12:54:25 +02:00
implementation 'com.flurry.android:analytics:12.4.0@aar'
2020-01-24 16:23:31 +01:00
2021-04-18 10:37:16 +02:00
/* Ads Manager */
implementation 'com.google.android.gms:play-services-ads:20.0.0'
/* Orbot Service */
2020-01-24 16:23:31 +01:00
2021-05-05 15:37:08 +02:00
implementation project(path: ':orbotmanager')
2020-01-24 16:23:31 +01:00
2021-04-18 10:37:16 +02:00
/* Helper Libraries */
2021-05-10 17:37:53 +02:00
implementation files('libs/httpclientandroidlib-1.2.1.jar')
2021-04-18 10:37:16 +02:00
implementation 'com.github.intelligo-systems:slight:1.1.3'
implementation 'com.github.apl-devs:appintro:v4.2.2'
2021-03-18 18:42:53 +01:00
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.volley:volley:1.2.0'
2021-02-15 21:26:33 +01:00
implementation 'com.github.instacart.truetime-android:library-extension-rx:3.3'
2021-04-18 17:47:09 +02:00
implementation 'net.zetetic:android-database-sqlcipher:4.4.3@aar'
2021-04-23 14:13:50 +02:00
implementation 'com.github.apl-devs:appintro:v4.2.2'
implementation 'androidx.palette:palette:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'
implementation 'com.google.android.material:material:1.2.1'
2020-01-24 16:23:31 +01:00
}
2021-05-10 17:37:53 +02:00
/* Automated APK Generation */
android.applicationVariants.all { variant ->
def buildType = variant.buildType.name
if (buildType == project.ext.buildType) {
def baseVersionCode = project.ext.vcode
variant.outputs.each { output ->
def abi = output.getFilter(OutputFile.ABI)
def versionCodeOverride = baseVersionCode
if (abi == project.ext.abi_x86) {
versionCodeOverride = versionCodeOverride + 3
} else if (abi == project.ext.abi_x86_x64) {
versionCodeOverride = versionCodeOverride + 2
} else if (abi == project.ext.abi_arm64) {
versionCodeOverride = versionCodeOverride + 1
} else if (abi == project.ext.abi_armeabi) {
versionCodeOverride = versionCodeOverride + 0
} else {
throw new RuntimeException(project.ext.abi_unknown + abi)
}
output.versionCodeOverride = versionCodeOverride
}
}
}