trapeze
trapeze copied to clipboard
Merge intent-filter
Hi!
How can I merge manifest/application/activity intent filter?
In config.yaml:

It makes this in AndroidManifest.xml:

But I would like this:

The "inject" method will be correct, but it duplicates it when I run trapeze again.
Could you help, please? Thank you!
Any updates on this? We also have this problem
As a workaround, you can use inject and before that you can delete all
manifest:
- file: AndroidManifest.xml
delete: //intent-filter
- file: AndroidManifest.xml
target: manifest/application/activity
inject: |
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
- file: AndroidManifest.xml
target: manifest/application/activity
inject: |
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="your_host" />
</intent-filter>