8000 fix: config with multiple bundle ids (#1816) · NativeScript/android@cdcfee2 · GitHub
[go: up one dir, main page]

Skip to content

Commit cdcfee2

Browse files
committed
fix: config with multiple bundle ids (#1816)
closes NativeScript/NativeScript#10587
1 parent 9fb12f5 commit cdcfee2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test-app/app/build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,14 @@ def computeNamespace = { ->
192192

193193
def appIdentifier = ""
194194

195-
if (packageJsonMap && packageJsonMap.id) {
196-
appIdentifier = packageJsonMap.id
195+
if (packageJsonMap) {
196+
if (packageJsonMap.android && packageJsonMap.android.id) {
197+
appIdentifier = packageJsonMap.android.id
198+
} else if (packageJsonMap.id) {
199+
appIdentifier = packageJsonMap.id
200+
}
197201
}
198202

199-
200203
if (appIdentifier) {
201204
return appIdentifier
202205
}

0 commit comments

Comments
 (0)
0