2022-01-11 22:49:24 +01:00
|
|
|
//import com.android.build.OutputFile
|
2021-05-14 14:43:40 +02:00
|
|
|
|
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
|
|
|
|
|
|
|
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 */
|
2021-07-07 20:42:42 +02:00
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
2020-02-28 19:10:00 +01:00
|
|
|
|
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
2022-02-09 15:20:58 +01:00
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.0'
|
2020-02-28 19:10:00 +01:00
|
|
|
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
|
2021-07-07 20:42:42 +02:00
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
2020-11-11 13:11:13 +01:00
|
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
2022-02-09 15:20:58 +01:00
|
|
|
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.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
|
|
|
|
2022-02-09 15:20:58 +01:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
2021-08-19 22:17:54 +02:00
|
|
|
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
|
2022-02-09 15:20:58 +01:00
|
|
|
implementation 'com.google.android.material:material:1.5.0'
|
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.0'
|
|
|
|
implementation 'com.google.android.material:material:1.5.0'
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
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-08-01 11:47:13 +02:00
|
|
|
implementation "org.mozilla.components:browser-engine-gecko:75.0.0"
|
|
|
|
implementation "org.mozilla.components:browser-icons:91.0.6"
|
2022-02-10 10:38:53 +01:00
|
|
|
implementation "org.mozilla.geckoview:geckoview: 90.0.20210705185941"
|
2021-08-01 11:47:13 +02:00
|
|
|
implementation "org.mozilla.components:concept-fetch:91.0.6"
|
|
|
|
implementation "org.mozilla.components:concept-base:91.0.6"
|
|
|
|
implementation "org.mozilla.components:support-utils:91.0.6"
|
2020-01-24 16:23:31 +01:00
|
|
|
/*Crashlytics*/
|
2021-04-18 10:37:16 +02:00
|
|
|
|
2021-07-07 20:42:42 +02:00
|
|
|
implementation 'com.flurry.android:analytics:12.13.0@aar'
|
2020-01-24 16:23:31 +01:00
|
|
|
|
2021-04-18 10:37:16 +02:00
|
|
|
/* Ads Manager */
|
|
|
|
|
2021-08-19 22:17:54 +02:00
|
|
|
implementation 'com.android.support:support-annotations:29.0.0'
|
2021-08-26 15:31:59 +02:00
|
|
|
implementation 'com.facebook.android:audience-network-sdk:6.6.0'
|
|
|
|
implementation 'com.mopub.mediation:facebookaudiencenetwork:6.6.0.0'
|
2021-08-19 22:17:54 +02:00
|
|
|
implementation('com.mopub:mopub-sdk:5.17.0@aar') {
|
2021-07-07 20:42:42 +02:00
|
|
|
transitive = true
|
2021-08-19 22:17:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Crawler Service */
|
|
|
|
|
2022-02-09 15:20:58 +01:00
|
|
|
implementation 'org.jsoup:jsoup:1.13.1'
|
2021-04-18 10:37:16 +02:00
|
|
|
|
|
|
|
/* 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-06-03 16:44:08 +02:00
|
|
|
implementation 'com.coolerfall:android-http-download-manager:1.6.3'
|
2021-04-18 10:37:16 +02:00
|
|
|
implementation 'com.github.intelligo-systems:slight:1.1.3'
|
2021-03-18 18:42:53 +01:00
|
|
|
implementation 'com.android.support:design:28.0.0'
|
2021-10-03 13:22:57 +02:00
|
|
|
implementation 'com.android.volley:volley:1.2.1'
|
2021-02-15 21:26:33 +01:00
|
|
|
implementation 'com.github.instacart.truetime-android:library-extension-rx:3.3'
|
2021-07-07 20:42:42 +02:00
|
|
|
implementation "net.zetetic:android-database-sqlcipher:4.4.3"
|
2022-02-09 15:20:58 +01:00
|
|
|
implementation "androidx.sqlite:sqlite-ktx:2.2.0"
|
2021-07-07 20:42:42 +02:00
|
|
|
implementation 'androidx.palette:palette-ktx:1.0.0'
|
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
2022-02-09 15:20:58 +01:00
|
|
|
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
|
|
|
|
implementation 'com.google.android.material:material:1.5.0'
|
2021-06-22 07:48:26 +02:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
2022-02-09 15:20:58 +01:00
|
|
|
implementation 'com.google.android.gms:play-services-ads:20.5.0'
|
2022-02-10 12:50:06 +01:00
|
|
|
implementation group: 'com.macasaet.fernet', name: 'fernet-java8', version: '1.4.2'
|
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
|
|
|
|
|
2021-10-03 13:22:57 +02:00
|
|
|
/*variant.outputs.each { output ->
|
2021-05-10 17:37:53 +02:00
|
|
|
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
|
2021-10-03 13:22:57 +02:00
|
|
|
}*/
|
2021-05-10 17:37:53 +02:00
|
|
|
}
|
|
|
|
}
|