2021-08-24 10:18:20 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2024-05-08 10:44:53 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:8.3.0'
|
2021-08-24 10:18:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-08 10:44:53 +00:00
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-24 10:18:20 +00:00
|
|
|
android {
|
2024-05-08 10:44:53 +00:00
|
|
|
compileSdkVersion 34
|
2021-08-24 10:18:20 +00:00
|
|
|
ndkVersion "TW_NDK_VERSION"
|
|
|
|
defaultConfig {
|
2024-05-09 09:52:37 +00:00
|
|
|
applicationId "org.ddnet.client"
|
|
|
|
namespace("org.ddnet.client")
|
2024-05-23 19:55:57 +00:00
|
|
|
minSdkVersion 19
|
2024-05-08 10:44:53 +00:00
|
|
|
targetSdkVersion 34
|
2021-08-24 10:18:20 +00:00
|
|
|
versionCode TW_VERSION_CODE
|
|
|
|
versionName "TW_VERSION_NAME"
|
|
|
|
}
|
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
storeFile file("TW_KEY_NAME")
|
|
|
|
storePassword "TW_KEY_PW"
|
|
|
|
keyAlias "TW_KEY_ALIAS"
|
|
|
|
keyPassword "TW_KEY_PW"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
debug {
|
2024-08-24 11:44:30 +00:00
|
|
|
debuggable true
|
2021-08-24 10:18:20 +00:00
|
|
|
minifyEnabled false
|
|
|
|
shrinkResources false
|
|
|
|
}
|
|
|
|
}
|
2024-05-08 10:44:53 +00:00
|
|
|
packagingOptions {
|
|
|
|
jniLibs {
|
|
|
|
useLegacyPackaging = true
|
|
|
|
}
|
|
|
|
}
|
2021-08-24 10:18:20 +00:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
assets.srcDirs = ['assets']
|
|
|
|
jniLibs.srcDirs = ['lib']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
gradle.projectsEvaluated {
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|