Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 7d0d610

Browse files
niftyneitimabbott
authored andcommitted
Make it possible to have dev & prod version of zulip installed simultaneously.
Note that this (most likely) breaks notifications for the dev version of the build.
1 parent 909acbe commit 7d0d610

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ android {
1515
testInstrumentationRunner "android.test.InstrumentationTestRunner"
1616
}
1717
buildTypes {
18+
debug {
19+
applicationIdSuffix '.dev'
20+
manifestPlaceholders = [ permissionPackage : "com.humbughq.mobile.dev"]
21+
}
1822
release {
1923
minifyEnabled false
2024
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
25+
manifestPlaceholders = [ permissionPackage : "com.humbughq.mobile"]
2126
}
2227
}
2328
useLibrary 'org.apache.http.legacy'

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
1010

1111
<permission
12-
android:name="com.humbughq.mobile.permission.C2D_MESSAGE"
12+
android:name="${permissionPackage}.permission.C2D_MESSAGE"
1313
android:protectionLevel="signature" />
1414

15-
<uses-permission android:name="com.humbughq.mobile.permission.C2D_MESSAGE" />
15+
<uses-permission android:name="${permissionPackage}.permission.C2D_MESSAGE" />
1616
<uses-permission android:name="android.permission.USE_CREDENTIALS"/>
1717
<uses-permission android:name="android.permission.VIBRATE"/>
1818

0 commit comments

Comments
 (0)