GoCarrot / teak-unity

Teak SDK for Unity
Apache License 2.0
0 stars 1 forks source link

TeakAndroidManifestAdditions throws exception/crashes if there is an intent-filter with a scheme but no host #67

Closed AlexSc closed 1 year ago

AlexSc commented 1 year ago

If the AndroidManifest.xml contains something like

<intent-filter>
  <action android:name="android.intent.action.VIEW"/>
  <category android:name="android.intent.category.DEFAULT"/>
  <category android:name="android.intent.category.BROWSABLE"/>
  <data android:scheme="com.example"/>
</intent-filter>

then TeakAndroidManifestAdditions will throw an exception from https://github.com/GoCarrot/teak-unity/blob/develop/Assets/Teak/Editor/TeakAndroidManifestAdditions.cs#L56, due to the missing android:host attribute. This prevents the manifest additions from doing any further processing, and Teak's deep linking intent filters will not be added to the build.