mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
1dfed5434e
SDK 19 is the lowest API level support by SDL2 because it is the lowest API level supported by the latest NDK toolchain. According to https://www.composables.com/tools/distribution-chart this should cover virtually all Android devices. The dependencies on Kotlin and various `androidx`-Packages were entirely unnecessary and can be removed.
77 lines
1.3 KiB
Groovy
77 lines
1.3 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:8.3.0'
|
|
}
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 34
|
|
ndkVersion "TW_NDK_VERSION"
|
|
defaultConfig {
|
|
applicationId "org.ddnet.client"
|
|
namespace("org.ddnet.client")
|
|
minSdkVersion 19
|
|
targetSdkVersion 34
|
|
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 {
|
|
minifyEnabled false
|
|
shrinkResources false
|
|
}
|
|
}
|
|
packagingOptions {
|
|
jniLibs {
|
|
useLegacyPackaging = true
|
|
}
|
|
}
|
|
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"
|
|
}
|
|
}
|
|
}
|