Skip to content

Commit

Permalink
Gradle: Provide VERSION_NAME/CODE and ABI_FILTERS_DEBUG/RELEASE via g…
Browse files Browse the repository at this point in the history
…radle.properties file
  • Loading branch information
Ghabry committed Mar 17, 2021
1 parent b38e3ee commit db65a48
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions builds/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ android {
applicationId "org.easyrpg.player"
minSdkVersion 14
targetSdkVersion 29
versionName VERSION_NAME
versionCode Integer.parseInt(VERSION_CODE)
}
buildTypes {
debug {
ndk {
abiFilters = []
abiFilters.addAll(ABI_FILTERS_DEBUG.split(','))
}
}
release {
ndk {
abiFilters = []
abiFilters.addAll(ABI_FILTERS_RELEASE.split(','))
}
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
Expand Down
6 changes: 6 additions & 0 deletions builds/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
android.enableJetifier=true
android.useAndroidX=true

VERSION_NAME=1.0
VERSION_CODE=1

ABI_FILTERS_DEBUG=armeabi-v7a
ABI_FILTERS_RELEASE=armeabi-v7a,arm64-v8a,x86,x86_64

0 comments on commit db65a48

Please sign in to comment.