ionic-team/trapeze

Merge intent-filter

aktivdigital-frontend opened this issue · 2 comments

Hi!

How can I merge manifest/application/activity intent filter?

In config.yaml:
image

It makes this in AndroidManifest.xml:
image

But I would like this:
image

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 s

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>