mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-15 04:28:20 +00:00
81 lines
1.6 KiB
Groovy
81 lines
1.6 KiB
Groovy
|
apply plugin: 'com.android.application'
|
||
|
|
||
|
apply plugin: 'kotlin-android'
|
||
|
|
||
|
buildscript {
|
||
|
ext.kotlin_version = '+'
|
||
|
repositories {
|
||
|
google()
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
classpath 'com.android.tools.build:gradle:4.2.0'
|
||
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
android {
|
||
|
compileSdkVersion 30
|
||
|
buildToolsVersion "30.0.3"
|
||
|
ndkVersion "TW_NDK_VERSION"
|
||
|
defaultConfig {
|
||
|
applicationId "tw.DDNet"
|
||
|
minSdkVersion 24
|
||
|
targetSdkVersion 30
|
||
|
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
|
||
|
}
|
||
|
}
|
||
|
|
||
|
sourceSets {
|
||
|
main {
|
||
|
assets.srcDirs = ['assets']
|
||
|
jniLibs.srcDirs = ['lib']
|
||
|
//TW_ENABLE_RESOURCESresources.srcDirs = ['resources']
|
||
|
}
|
||
|
}
|
||
|
|
||
|
lintOptions {
|
||
|
abortOnError false
|
||
|
}
|
||
|
}
|
||
|
|
||
|
allprojects {
|
||
|
repositories {
|
||
|
google()
|
||
|
mavenCentral()
|
||
|
}
|
||
|
gradle.projectsEvaluated {
|
||
|
tasks.withType(JavaCompile) {
|
||
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
||
|
implementation 'androidx.core:core-ktx:1.3.0'
|
||
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||
|
}
|