From f4ce3dea91b20fd1aa0ab8743862fc9e0e389f53 Mon Sep 17 00:00:00 2001 From: Ethan Neff Date: Thu, 2 Mar 2017 11:36:57 -0800 Subject: [PATCH] fix: removal of old uri scheme intends after removal of android:host --- hooks/lib/android/androidManifest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/lib/android/androidManifest.js b/hooks/lib/android/androidManifest.js index ce87b0cc..1b9eeeb9 100644 --- a/hooks/lib/android/androidManifest.js +++ b/hooks/lib/android/androidManifest.js @@ -218,7 +218,7 @@ if (actions.length === 1 && actions[0]['$'].hasOwnProperty('android:name') && actions[0]['$']['android:name'] === 'android.intent.action.VIEW' && categories.length === 2 && categories[0]['$'].hasOwnProperty('android:name') && (categories[0]['$']['android:name'] === 'android.intent.category.DEFAULT' || categories[0]['$']['android:name'] === 'android.intent.category.BROWSABLE') && categories[1]['$'].hasOwnProperty('android:name') && (categories[1]['$']['android:name'] === 'android.intent.category.DEFAULT' || categories[1]['$']['android:name'] === 'android.intent.category.BROWSABLE') && data.length > 0 && data.length < 3) { // URI Scheme - if (data[0]['$'].hasOwnProperty('android:scheme') && data[0]['$'].hasOwnProperty('android:host') && data[0]['$']['android:host'] === 'open' && !item.hasOwnProperty('$')) { + if (data[0]['$'].hasOwnProperty('android:scheme') && !item.hasOwnProperty('$')) { continue }