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

Diff for: test-app/app/build.gradle

+6-3
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)