summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2017-11-10 15:44:30 +0100
committercyBerta <cyberta@riseup.net>2017-11-10 15:44:30 +0100
commit73d85b0b5692502aaf4374cdbca39cb622402f43 (patch)
tree8446ad01bc1278b945d9d5a6543009c8216a8947
parent964bcda23fa0ecf9e5ee576f20ff1b554ee2e5fb (diff)
#8743 adds new build type beta that rewrites the packageID. This will be needed to have the FDroid beta channel in IzzySofts repository and the official releases in the official FDroid repository.
-rw-r--r--app/build.gradle12
-rw-r--r--app/src/main/AndroidManifest.xml4
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/AboutActivity.java2
-rwxr-xr-xapp/src/main/res/values-pt/strings.xml6
-rwxr-xr-xapp/src/main/res/values-sv/strings.xml6
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/values/untranslatable.xml2
7 files changed, 14 insertions, 19 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 7a2fa73a..60ae394f 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -3,7 +3,12 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '26.0.0'
-;
+
+ defaultConfig {
+ applicationId "se.leap.bitmaskclient"
+ resValue "string", "app_name", "Bitmask"
+ }
+
signingConfigs {
release {
storeFile project.hasProperty('storeFileProperty') ? file(storeFileProperty) : null
@@ -28,6 +33,11 @@ android {
if(signingConfigs.contains(release))
signingConfig signingConfigs.release.isSigningReady() ? signingConfigs.release : signingConfigs.debug
}
+ beta {
+ initWith release
+ applicationIdSuffix ".beta"
+ resValue "string", "app_name", "Bitmask Beta"
+ }
}
lintOptions {
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 7f3336f2..86d1f01f 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -35,7 +35,7 @@
android:allowBackup="true"
android:icon="@drawable/icon"
android:logo="@drawable/icon"
- android:label="@string/app"
+ android:label="@string/app_name"
android:theme="@style/blinkt">
<service
@@ -84,7 +84,7 @@
<activity
android:name="se.leap.bitmaskclient.Dashboard"
- android:label="@string/title_activity_dashboard"
+ android:label="@string/app_name"
android:uiOptions="splitActionBarWhenNarrow"
android:launchMode="singleTop"
>
diff --git a/app/src/main/java/se/leap/bitmaskclient/AboutActivity.java b/app/src/main/java/se/leap/bitmaskclient/AboutActivity.java
index 5825bb33..4ebae32d 100644
--- a/app/src/main/java/se/leap/bitmaskclient/AboutActivity.java
+++ b/app/src/main/java/se/leap/bitmaskclient/AboutActivity.java
@@ -22,7 +22,7 @@ public class AboutActivity extends Activity {
try {
PackageInfo packageinfo = getPackageManager().getPackageInfo(getPackageName(), 0);
version = packageinfo.versionName;
- name = getString(R.string.app);
+ name = getString(R.string.app_name);
} catch (NameNotFoundException e) {
version = "error fetching version";
}
diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml
deleted file mode 100755
index 29eff2ba..00000000
--- a/app/src/main/res/values-pt/strings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.com-->
-<!-- Generated by crowdin.net -->
-<resources>
- <string name="app">OpenVPN para Android</string>
-</resources>
diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml
deleted file mode 100755
index 9e2326bf..00000000
--- a/app/src/main/res/values-sv/strings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--Generated by crowdin.net-->
-<!-- Generated by crowdin.net -->
-<resources>
- <string name="app">OpenVPN för Android</string>
-</resources>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index b5553394..04e83a18 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -12,7 +12,6 @@
<string name="routes_info6">Routes IPv6: %s</string>
<string name="error_empty_username">The username must not be empty.</string>
<string name="cert_from_keystore">Got certificate \'%s\' from Keystore</string>
- <string name="title_activity_dashboard">Bitmask</string>
<string name="provider_label">Provider:</string>
<string name="provider_label_none">No provider configured</string>
<string name="status_unknown">Status unknown.</string>
diff --git a/app/src/main/res/values/untranslatable.xml b/app/src/main/res/values/untranslatable.xml
index 6e4472af..59605609 100644
--- a/app/src/main/res/values/untranslatable.xml
+++ b/app/src/main/res/values/untranslatable.xml
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <string name="app" translatable="false">Bitmask</string>
- <string name="app_name" translatable="false">Bitmask</string>
<string name="notifcation_title_bitmask">Bitmask - %s</string>
<string name="copyright_leapgui" translatable="false">Copyright 2012-2017\nLEAP Encryption Access Project &lt;info@leap.se></string>