Skip to content

Commit

Permalink
Updated Android build process (2019-12-04) (#35859)
Browse files Browse the repository at this point in the history
* Fix typo

* Add experimental product flavor
  • Loading branch information
ZhilkinSerg authored Dec 4, 2019
1 parent e6f80b9 commit b01285b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@ android {
}
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

flavorDimensions "version"

productFlavors {
experimental {
dimension "version"
applicationIdSuffix ".experimental"
}
}

signingConfigs {
if (keystoreProperties.getProperty('storeFile') != null) {
if (file(keystoreProperties.getProperty('storeFile')).exists()) {
Expand Down Expand Up @@ -221,7 +231,7 @@ android {
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith(".aar")) {
def fileName = "com.cleverraven.cataclysmdda.aar";
def fileName = "$applicationId.aar";
output.outputFile = new File(outputFile.parent, fileName);
}
}
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ deps=./deps.zip
override_version=

# This property controls path where overriden version number header should be generated
# You can override this from the command line by passing "-pversion_header_path=#"
# You can override this from the command line by passing "-Pversion_header_path=#"
version_header_path=app/jni/src/version.h

0 comments on commit b01285b

Please sign in to comment.