2020-06-06 00:51:41 +00:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-03-30 22:49:20 +00:00
|
|
|
implementation 'androidx.core:core:1.6.0'
|
2021-02-09 21:19:33 +00:00
|
|
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
2020-06-06 00:51:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2022-01-28 11:02:34 +00:00
|
|
|
compileSdkVersion 29
|
2020-06-06 02:27:29 +00:00
|
|
|
|
2020-06-06 00:51:41 +00:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.purplei2p.i2pd"
|
2022-01-28 11:02:34 +00:00
|
|
|
targetSdkVersion 29
|
2022-01-27 14:39:30 +00:00
|
|
|
minSdkVersion 16
|
2022-04-09 17:45:09 +00:00
|
|
|
versionCode 2410001
|
2022-03-29 20:24:49 +00:00
|
|
|
versionName "2.41.0.1"
|
2022-04-09 17:45:09 +00:00
|
|
|
archivesBaseName += "-$versionName"
|
2022-03-29 20:24:49 +00:00
|
|
|
ndkVersion "21.4.7075529"
|
2020-06-06 02:27:29 +00:00
|
|
|
|
2020-06-06 00:51:41 +00:00
|
|
|
ndk {
|
2020-10-20 19:42:28 +00:00
|
|
|
abiFilters "armeabi-v7a"
|
|
|
|
abiFilters "x86"
|
|
|
|
abiFilters "arm64-v8a"
|
|
|
|
abiFilters "x86_64"
|
2020-06-06 00:51:41 +00:00
|
|
|
}
|
2020-06-06 02:27:29 +00:00
|
|
|
|
2020-06-06 00:51:41 +00:00
|
|
|
externalNativeBuild {
|
|
|
|
ndkBuild {
|
2020-06-06 02:27:29 +00:00
|
|
|
arguments "NDK_MODULE_PATH:=${rootProject.projectDir}/app/jni"
|
2022-01-27 14:39:30 +00:00
|
|
|
arguments "-j${Runtime.getRuntime().availableProcessors()}"
|
2020-06-06 00:51:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-06 02:27:29 +00:00
|
|
|
|
2020-06-06 00:51:41 +00:00
|
|
|
splits {
|
|
|
|
abi {
|
|
|
|
// change that to true if you need splitted apk
|
|
|
|
enable true
|
|
|
|
reset()
|
2020-06-06 02:27:29 +00:00
|
|
|
include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
2020-06-06 00:51:41 +00:00
|
|
|
universalApk true
|
|
|
|
}
|
|
|
|
}
|
2020-06-06 02:27:29 +00:00
|
|
|
|
2020-06-06 00:51:41 +00:00
|
|
|
signingConfigs {
|
2020-10-15 01:31:35 +00:00
|
|
|
release {
|
2020-10-20 19:42:28 +00:00
|
|
|
storeFile file("i2pdapk.jks")
|
2020-06-06 00:51:41 +00:00
|
|
|
storePassword "android"
|
|
|
|
keyAlias "i2pdapk"
|
|
|
|
keyPassword "android"
|
|
|
|
}
|
|
|
|
}
|
2020-06-06 02:27:29 +00:00
|
|
|
|
2020-06-06 00:51:41 +00:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2020-10-15 01:31:35 +00:00
|
|
|
signingConfig signingConfigs.release
|
2020-06-06 00:51:41 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
|
|
|
|
}
|
2020-10-15 01:31:35 +00:00
|
|
|
debug {
|
|
|
|
jniDebuggable = true
|
|
|
|
}
|
2020-06-06 00:51:41 +00:00
|
|
|
}
|
2020-06-06 02:27:29 +00:00
|
|
|
|
2020-06-06 00:51:41 +00:00
|
|
|
externalNativeBuild {
|
|
|
|
ndkBuild {
|
2020-10-20 19:42:28 +00:00
|
|
|
path "${rootProject.projectDir}/app/jni/Android.mk"
|
2020-06-06 00:51:41 +00:00
|
|
|
}
|
|
|
|
}
|
2020-06-06 02:27:29 +00:00
|
|
|
|
2020-06-06 00:51:41 +00:00
|
|
|
compileOptions {
|
2020-10-15 01:31:35 +00:00
|
|
|
sourceCompatibility = "1.8"
|
|
|
|
targetCompatibility = "1.8"
|
2020-06-06 00:51:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-09 21:19:33 +00:00
|
|
|
ext.abiCodes = ['armeabi-v7a': 1, 'x86': 2, 'arm64-v8a': 3, 'x86_64': 4]
|
2020-06-06 00:51:41 +00:00
|
|
|
import com.android.build.OutputFile
|
|
|
|
|
|
|
|
android.applicationVariants.all { variant ->
|
|
|
|
variant.outputs.each { output ->
|
|
|
|
def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
|
|
|
|
|
|
|
|
if (baseAbiVersionCode != null) {
|
2022-04-09 17:45:09 +00:00
|
|
|
output.versionCodeOverride = baseAbiVersionCode * 10 + variant.versionCode
|
2020-06-06 00:51:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|