2024-02-01 15:44:02 +01:00
|
|
|
//import com.android.build.OutputFile
|
2022-12-29 09:45:46 +01:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
id "com.jetbrains.python.envs" version "0.0.26"
|
|
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply from: 'variables.gradle'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
|
|
|
compileSdkVersion project.ext.compile_sdk_version
|
|
|
|
ndkVersion project.ext.ndk_version
|
|
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId project.ext.application_id
|
|
|
|
minSdkVersion project.ext.min_sdk_version
|
|
|
|
targetSdkVersion project.ext.target_sdk_version
|
|
|
|
versionCode project.ext.vcode
|
|
|
|
versionName project.ext.vname
|
|
|
|
ndk {
|
|
|
|
debugSymbolLevel project.ext.debugSymbolLevel
|
|
|
|
}
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
2023-02-09 08:55:22 +01:00
|
|
|
jvmTarget = project.ext.jvmTarget
|
2022-12-29 09:45:46 +01:00
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled project.ext.minifyEnabled
|
|
|
|
shrinkResources project.ext.shrinkResources
|
|
|
|
proguardFiles getDefaultProguardFile(project.ext.proguard_file), project.ext.proguard_rule
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
flavorDimensions project.ext.dimen
|
|
|
|
|
|
|
|
productFlavors {
|
|
|
|
orion {
|
|
|
|
dimension project.ext.dimen
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
splits {
|
|
|
|
abi {
|
2023-06-11 12:04:52 +02:00
|
|
|
enable true
|
2022-12-29 09:45:46 +01:00
|
|
|
|
2023-03-05 23:38:17 +01:00
|
|
|
reset()
|
2024-02-01 15:44:02 +01:00
|
|
|
universalApk false
|
|
|
|
//noinspection ChromeOsAbiSupport # CHROME OS NOT SUPPORTED YET
|
2024-02-01 16:22:59 +01:00
|
|
|
include project.ext.chrome, project.ext.abi_arm64, project.ext.abi_armeabi }
|
2022-12-29 09:45:46 +01:00
|
|
|
}
|
|
|
|
bundle {
|
|
|
|
abi {
|
2023-06-11 12:04:52 +02:00
|
|
|
enableSplit = false
|
2022-12-29 09:45:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
res.srcDirs = project.ext.resource_directories
|
2023-01-04 09:50:41 +01:00
|
|
|
jniLibs.srcDirs = ['src/main/jniLibs']
|
2022-12-29 09:45:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
orionRelease.root = project.ext.releaseRoot
|
|
|
|
}
|
2023-02-09 08:55:22 +01:00
|
|
|
namespace project.ext.application_id
|
2024-02-01 15:44:02 +01:00
|
|
|
packagingOptions {
|
|
|
|
jniLibs {
|
|
|
|
useLegacyPackaging true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
lint {
|
|
|
|
disable project.ext.lintoption
|
|
|
|
}
|
|
|
|
buildFeatures {
|
|
|
|
buildConfig true
|
|
|
|
}
|
2022-12-29 09:45:46 +01:00
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
|
|
|
|
/* File Support Dependencies */
|
|
|
|
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
implementation files('libs/httpclientandroidlib-1.2.1.jar')
|
|
|
|
|
|
|
|
/* Android Support Repository Dependencies */
|
|
|
|
|
2024-02-01 15:44:02 +01:00
|
|
|
implementation 'com.google.android.material:material:1.11.0'
|
2022-12-29 09:45:46 +01:00
|
|
|
implementation 'org.apache.commons:commons-text:1.3'
|
2024-02-01 15:44:02 +01:00
|
|
|
implementation "androidx.work:work-runtime:2.9.0"
|
2022-12-29 09:45:46 +01:00
|
|
|
|
|
|
|
/* Firefox ABI Splits */
|
|
|
|
|
2024-02-01 15:44:02 +01:00
|
|
|
implementation "org.mozilla.components:browser-engine-gecko:121.0"
|
|
|
|
implementation "org.mozilla.components:browser-icons:121.0"
|
|
|
|
implementation "org.mozilla.components:concept-fetch:121.0"
|
|
|
|
implementation "org.mozilla.components:concept-base:121.0"
|
|
|
|
implementation "org.mozilla.components:support-utils:121.0"
|
2023-01-06 22:15:05 +01:00
|
|
|
|
2022-12-29 09:45:46 +01:00
|
|
|
/* Orbot Service */
|
|
|
|
implementation project(path: ':orbotmanager')
|
|
|
|
|
|
|
|
/* Helper Libraries */
|
|
|
|
|
2023-02-28 18:53:03 +01:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
2024-02-01 15:44:02 +01:00
|
|
|
implementation "androidx.media:media:1.7.0"
|
2022-12-29 09:45:46 +01:00
|
|
|
implementation 'com.android.volley:volley:1.2.1'
|
|
|
|
implementation "net.zetetic:android-database-sqlcipher:4.4.3"
|
|
|
|
|
2023-02-25 12:07:20 +01:00
|
|
|
implementation 'com.karumi:dexter:6.2.3'
|
2023-01-25 08:13:53 +01:00
|
|
|
|
2022-12-29 09:45:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Automated APK Generation */
|
2024-02-01 15:44:02 +01:00
|
|
|
//
|
|
|
|
//android.applicationVariants.configureEach { 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
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//}
|