diff --git a/src/scripts/android/updateAndroidManifest.js b/src/scripts/android/updateAndroidManifest.js index f2da6f76..637344ed 100644 --- a/src/scripts/android/updateAndroidManifest.js +++ b/src/scripts/android/updateAndroidManifest.js @@ -275,21 +275,14 @@ intentFilterData.push(getAppLinkIntentFilterDictionary(linkDomain)); intentFilterData.push(getAppLinkIntentFilterDictionary(alternate)); } else { - // bnc.lt - if ( - linkDomain.indexOf("bnc.lt") !== -1 && - preferences.androidPrefix === null - ) { - throw new Error( - 'BRANCH SDK: Invalid "android-prefix" in in your config.xml. Docs https://goo.gl/GijGKP' + preferences.androidPrefix.forEach(prefix => { + intentFilterData.push( + getAppLinkIntentFilterDictionary( + linkDomain, + prefix + ) ); - } - intentFilterData.push( - getAppLinkIntentFilterDictionary( - linkDomain, - preferences.androidPrefix - ) - ); + }) } } diff --git a/src/scripts/npm/processConfigXml.js b/src/scripts/npm/processConfigXml.js index 0c0eb6b8..abc2d05d 100644 --- a/src/scripts/npm/processConfigXml.js +++ b/src/scripts/npm/processConfigXml.js @@ -71,7 +71,7 @@ iosTeamRelease: getBranchValue(branchXml, "ios-team-release"), // optional iosTeamDebug: getBranchValue(branchXml, "ios-team-debug"), // optional androidBundleId: getBundleId(configXml, "android"), // optional - androidPrefix: getBranchValue(branchXml, "android-prefix"), // optional + androidPrefix: getBranchLinkDomains(branchXml, "android-prefix"), // optional androidTestMode: getBranchValue(branchXml, "android-testmode") // DEPRECATED optional }; } @@ -294,6 +294,7 @@ ); } if ( + [...preferences.linkDomain, ...preferences.androidLinkDomain, preferences.iosLinkDomain].find(domain => domain === 'bnc.lt') && preferences.androidPrefix !== null && !/^[/].[a-zA-Z0-9]{3,4}$/.test(preferences.androidPrefix) ) {