mirror of https://github.com/OpenRCT2/OpenRCT2.git
114 lines
2.2 KiB
Groovy
114 lines
2.2 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
buildToolsVersion '29.0.2'
|
|
|
|
defaultConfig {
|
|
applicationId 'io.openrct2'
|
|
minSdkVersion 19
|
|
targetSdkVersion 28
|
|
|
|
versionCode 2
|
|
versionName '0.3.5.1'
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
arguments '-DANDROID_STL=c++_shared'
|
|
targets 'openrct2', 'openrct2-ui', 'openrct2-cli'
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main.assets.srcDirs += 'src/main/assets/'
|
|
}
|
|
|
|
signingConfigs {
|
|
debug {
|
|
storeFile file('external/debug.keystore')
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
applicationIdSuffix '.debug'
|
|
versionNameSuffix '-DEBUG'
|
|
}
|
|
pr {
|
|
applicationIdSuffix '.debug'
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
develop {
|
|
applicationIdSuffix '.develop'
|
|
versionNameSuffix '-DEVELOP'
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
release {
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
|
|
flavorDimensions "version"
|
|
/*
|
|
productFlavors {
|
|
full {
|
|
dimension "version"
|
|
}
|
|
}
|
|
*/
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
path 'src/main/CMakeLists.txt'
|
|
}
|
|
}
|
|
|
|
productFlavors {
|
|
/*
|
|
arm7 {
|
|
ndk {
|
|
abiFilters 'armeabi-v7a'
|
|
}
|
|
}
|
|
*/
|
|
arm {
|
|
ndk {
|
|
abiFilters 'armeabi-v7a', 'arm64-v8a'
|
|
}
|
|
}
|
|
/*
|
|
x86 {
|
|
ndk {
|
|
abiFilters 'x86', 'x86_64'
|
|
}
|
|
}
|
|
*/
|
|
}
|
|
}
|
|
|
|
delete {
|
|
delete 'src/main/assets/openrct2'
|
|
}
|
|
|
|
copy {
|
|
from '../../../bin/data'
|
|
into 'src/main/assets/openrct2'
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'commons-io:commons-io:2.6'
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'com.google.android.gms:play-services-analytics:17.0.0'
|
|
}
|
|
|
|
allprojects {
|
|
gradle.projectsEvaluated {
|
|
tasks.withType(JavaCompile) {
|
|
options.compilerArgs << "-Xlint:deprecation"
|
|
}
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|