Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
Use different appid in debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzz committed May 3, 2019
1 parent 081a611 commit dc55736
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ assets
app/wrap
fabric.properties
captures
app/release
17 changes: 17 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,23 @@ android {
targetCompatibility 1.8
sourceCompatibility 1.8
}

buildTypes {
release {
minifyEnabled false
}

debug {
applicationIdSuffix ".debug"
debuggable true
}
}

applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "omw_${variant.buildType.name}_${defaultConfig.versionName}.apk"
}
}
}
repositories {
jcenter()
Expand Down
4 changes: 4 additions & 0 deletions app/src/debug/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">OpenMW (Debug)</string>
</resources>

0 comments on commit dc55736

Please sign in to comment.