diff --git a/briar-android/build.gradle b/briar-android/build.gradle
index 1fe8855d9..a39240a65 100644
--- a/briar-android/build.gradle
+++ b/briar-android/build.gradle
@@ -264,8 +264,6 @@ android {
versionCode 10013
versionName "1.0.13"
applicationId "org.briarproject.briar.android"
- resValue "string", "app_package", "org.briarproject.briar.android"
- resValue "string", "app_name", "Briar"
buildConfigField "String", "GitHash",
"\"${getStdout(['git', 'rev-parse', '--short=7', 'HEAD'], 'No commit hash')}\""
def now = (long) (System.currentTimeMillis() / 1000)
@@ -274,29 +272,9 @@ android {
testInstrumentationRunner 'org.briarproject.briar.android.test.BriarTestRunner'
}
- flavorDimensions "version"
- productFlavors {
- screenshot {
- dimension "version"
- minSdkVersion 18
- applicationIdSuffix ".screenshot"
- resValue "string", "app_package", "org.briarproject.briar.android.screenshot.debug"
- }
- main {
- dimension "version"
- }
- }
- variantFilter { variant ->
- if (variant.flavors*.name.contains("screenshot") && variant.buildType.name == "release") {
- setIgnore(true)
- }
- }
-
buildTypes {
debug {
applicationIdSuffix ".debug"
- resValue "string", "app_package", "org.briarproject.briar.android.debug"
- resValue "string", "app_name", "Briar Debug"
shrinkResources false
minifyEnabled true
crunchPngs false
@@ -311,6 +289,23 @@ android {
}
}
+ flavorDimensions "version"
+ productFlavors {
+ screenshot {
+ dimension "version"
+ minSdkVersion 18
+ applicationIdSuffix ".screenshot" // = org.briarproject.briar.android.screenshot.debug
+ }
+ main {
+ dimension "version"
+ }
+ }
+ variantFilter { variant ->
+ if (variant.flavors*.name.contains("screenshot") && variant.buildType.name == "release") {
+ setIgnore(true)
+ }
+ }
+
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
diff --git a/briar-android/src/debug/res/values/strings.xml b/briar-android/src/debug/res/values/strings.xml
new file mode 100644
index 000000000..5cbb56beb
--- /dev/null
+++ b/briar-android/src/debug/res/values/strings.xml
@@ -0,0 +1,5 @@
+
+
+ Briar Debug
+ org.briarproject.briar.android.debug
+
diff --git a/briar-android/src/main/res/values/strings.xml b/briar-android/src/main/res/values/strings.xml
index 086ff8c3f..8456ceda1 100644
--- a/briar-android/src/main/res/values/strings.xml
+++ b/briar-android/src/main/res/values/strings.xml
@@ -1,6 +1,9 @@
+ Briar
+ org.briarproject.briar.android
+
Welcome to Briar
Your nickname will be shown next to any content you post. You can\'t change it after creating your account.
diff --git a/briar-android/src/screenshot/AndroidManifest.xml b/briar-android/src/screenshotDebug/AndroidManifest.xml
similarity index 100%
rename from briar-android/src/screenshot/AndroidManifest.xml
rename to briar-android/src/screenshotDebug/AndroidManifest.xml
diff --git a/briar-android/src/screenshotDebug/res/values/strings.xml b/briar-android/src/screenshotDebug/res/values/strings.xml
new file mode 100644
index 000000000..6a7574e56
--- /dev/null
+++ b/briar-android/src/screenshotDebug/res/values/strings.xml
@@ -0,0 +1,5 @@
+
+
+ Briar
+ org.briarproject.briar.android.screenshot.debug
+