Skip to content

Commit 08ead75

Browse files
author
Pedro Martins
committed
Add configurable app package
YM-25986
1 parent 50ca45b commit 08ead75

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

yoti-sdk/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ android {
1717

1818
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1919

20-
buildConfigField 'String', 'YOTI_APP_PACKAGE', "\"$yotiAppPackage\""
21-
buildConfigField 'String', 'EASY_ID_APP_PACKAGE', "\"$easyIdAppPackage\""
20+
def yotiAppPackageValue = "$yotiAppPackage"
21+
def easyIdAppPackageValue = "$easyIdAppPackage"
22+
23+
manifestPlaceholders = [yotiAppPackage: yotiAppPackageValue, easyIdAppPackage: easyIdAppPackageValue]
24+
25+
buildConfigField 'String', 'YOTI_APP_PACKAGE', "\"${yotiAppPackageValue}\""
26+
buildConfigField 'String', 'EASY_ID_APP_PACKAGE', "\"$easyIdAppPackageValue\""
2227
buildConfigField 'int', 'YOTI_APP_MIN_VERSION', yotiAppMinVersion
2328
buildConfigField 'String', 'YOTI_BACKEND_URL', "\"$yotiBackendUrl\""
2429
buildConfigField 'int', 'YOTI_BACKEND_PORT', "$yotiBackendPort"

yoti-sdk/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
package="com.yoti.mobile.android.sdk">
44

55
<queries>
6-
<package android:name="com.yoti.mobile.android.live" />
7-
<package android:name="com.postofficeid.mobile.android.live" />
6+
<package android:name="${yotiAppPackage}" />
7+
<package android:name="${easyIdAppPackage}" />
88
</queries>
99

1010
<application

0 commit comments

Comments
 (0)