Skip to content

Commit 50fc09f

Browse files
committed
Allow for simultaneous release and debug installs
1 parent b567256 commit 50fc09f

File tree

12 files changed

+78
-5
lines changed

12 files changed

+78
-5
lines changed

Diff for: app/build.gradle

+13
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ android {
2121
minifyEnabled true
2222
shrinkResources true
2323
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
24+
manifestPlaceholders = [
25+
appIcon:"@mipmap/ic_launcher",
26+
appName:"@string/app_name",
27+
"workManagerInitAuthorities":"com.ricknout.rugbyranker.workmanager-init"
28+
]
29+
}
30+
debug {
31+
applicationIdSuffix ".debug"
32+
manifestPlaceholders = [
33+
appIcon:"@mipmap/ic_launcher_debug",
34+
appName:"@string/app_name_debug",
35+
"workManagerInitAuthorities":"com.ricknout.rugbyranker.debug.workmanager-init"
36+
]
2437
}
2538
}
2639
}

Diff for: app/src/main/AndroidManifest.xml

+6-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<application
1010
android:allowBackup="true"
1111
android:fullBackupContent="true"
12-
android:label="@string/app_name"
13-
android:icon="@mipmap/ic_launcher"
14-
android:roundIcon="@mipmap/ic_launcher"
12+
android:label="${appName}"
13+
android:icon="${appIcon}"
14+
android:roundIcon="${appIcon}"
1515
android:supportsRtl="true"
1616
android:theme="@style/RugbyRankerTheme"
1717
android:name=".RugbyRankerApplication"
@@ -32,9 +32,10 @@
3232

3333
<provider
3434
android:name="androidx.work.impl.WorkManagerInitializer"
35-
android:authorities="com.ricknout.rugbyranker.workmanager-init"
35+
android:authorities="${workManagerInitAuthorities}"
3636
android:enabled="false"
37-
android:exported="false" />
37+
android:exported="false"
38+
tools:replace="android:authorities" />
3839

3940
</application>
4041

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<vector
2+
xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:aapt="http://schemas.android.com/aapt"
4+
android:width="108dp"
5+
android:height="108dp"
6+
android:viewportWidth="108"
7+
android:viewportHeight="108">
8+
<path
9+
android:pathData="M0,0h108v108h-108z">
10+
<aapt:attr name="android:fillColor">
11+
<gradient
12+
android:startY="0"
13+
android:startX="54"
14+
android:endY="108"
15+
android:endX="54"
16+
android:type="linear">
17+
<item android:offset="0" android:color="#FF2A3C81"/>
18+
<item android:offset="1" android:color="#FF001754"/>
19+
</gradient>
20+
</aapt:attr>
21+
</path>
22+
<path
23+
android:pathData="M0,0L108,0L108,9L0,9L0,0ZM0,18L108,18L108,27L0,27L0,18ZM0,36L108,36L108,45L0,45L0,36ZM0,54L108,54L108,63L0,63L0,54ZM0,72L108,72L108,81L0,81L0,72ZM0,90L108,90L108,99L0,99L0,90Z"
24+
android:fillColor="#2A3C81"/>
25+
</vector>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<vector
2+
xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:aapt="http://schemas.android.com/aapt"
4+
android:width="108dp"
5+
android:height="108dp"
6+
android:viewportWidth="108"
7+
android:viewportHeight="108">
8+
<path
9+
android:pathData="M75.366,33.626C75.365,33.624 75.363,33.623 75.361,33.621C75.314,33.574 75.264,33.527 75.211,33.479C72.847,31.204 69.515,30 65.551,30C58.04,30 48.834,34.354 42.098,41.093C37.172,46.021 33.436,52.339 31.848,58.428C30.093,65.158 31.082,70.821 34.634,74.374C34.635,74.376 34.637,74.377 34.638,74.379C34.686,74.426 34.736,74.473 34.79,74.521C37.153,76.796 40.485,78 44.449,78C51.96,78 61.166,73.645 67.902,66.906C72.828,61.978 76.564,55.66 78.152,49.572C79.907,42.842 78.918,37.179 75.366,33.626Z">
10+
<aapt:attr name="android:fillColor">
11+
<gradient
12+
android:startY="-4.6736593"
13+
android:startX="116.05252"
14+
android:endY="112.49153"
15+
android:endX="-5.6309805"
16+
android:type="linear">
17+
<item android:offset="0" android:color="#FFF7F9FA"/>
18+
<item android:offset="1" android:color="#FFD0DCE1"/>
19+
</gradient>
20+
</aapt:attr>
21+
</path>
22+
<path
23+
android:pathData="M77.941,40.857C75.983,48.09 64.219,65.636 45.446,72.585C43.877,73.258 43.995,75.264 46.567,75.488C47.511,75.571 50.189,75.559 53.47,75.37C58.508,73.636 63.475,70.65 67.369,66.757C74.815,59.311 79.759,49.648 77.941,40.857ZM74.874,33.931C74.756,33.766 74.638,33.6 74.508,33.447C73.989,32.999 73.434,32.609 72.844,32.255C68.974,30.344 59.723,29.117 46.225,40.243C36.042,48.633 34.437,59.299 35.145,65.636C35.428,68.078 38.39,67.5 40.974,66.875C51.475,64.302 76.726,52.916 74.874,33.931Z"
24+
android:fillColor="#FFFFFF"/>
25+
<path
26+
android:pathData="M50.727,65.606L47.738,65.606C47.246,65.606 47,65.36 47,64.868L47,43.738C47,43.246 47.246,43 47.738,43L56.106,43C57.934,43 59.363,43.504 60.395,44.512C61.426,45.52 61.942,46.938 61.942,48.766L61.942,51.508C61.942,54.156 60.899,55.914 58.813,56.781L58.813,56.922L62.574,64.762C62.785,65.325 62.586,65.606 61.977,65.606L59.129,65.606C58.707,65.606 58.403,65.559 58.215,65.465C58.028,65.371 57.875,65.172 57.758,64.868L54.242,57.274L51.887,57.274C51.606,57.274 51.465,57.403 51.465,57.66L51.465,64.868C51.465,65.36 51.219,65.606 50.727,65.606ZM51.852,53.688L55.297,53.688C56.047,53.688 56.598,53.529 56.949,53.213C57.301,52.897 57.477,52.387 57.477,51.684L57.477,48.942C57.477,48.215 57.301,47.688 56.949,47.359C56.598,47.031 56.047,46.867 55.297,46.867L51.852,46.867C51.594,46.867 51.465,46.996 51.465,47.254L51.465,53.301C51.465,53.559 51.594,53.688 51.852,53.688Z"
27+
android:fillColor="#2D8626"/>
28+
</vector>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background_debug" />
4+
<foreground android:drawable="@drawable/ic_launcher_foreground_debug" />
5+
</adaptive-icon>

Diff for: app/src/main/res/mipmap-hdpi/ic_launcher_debug.png

5.99 KB
Loading

Diff for: app/src/main/res/mipmap-mdpi/ic_launcher_debug.png

3.29 KB
Loading

Diff for: app/src/main/res/mipmap-xhdpi/ic_launcher_debug.png

8.63 KB
Loading

Diff for: app/src/main/res/mipmap-xxhdpi/ic_launcher_debug.png

15.3 KB
Loading
23.2 KB
Loading

Diff for: art/icons.sketch

43.9 KB
Binary file not shown.

Diff for: common/src/main/res/values/strings.xml

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
<resources>
33

44
<string name="app_name">Rugby Ranker</string>
5+
<string name="app_name_debug">Rugby Ranker Debug</string>
56

67
</resources>

0 commit comments

Comments
 (0)