trapeze icon indicating copy to clipboard operation
trapeze copied to clipboard

Merge intent-filter

Open aktivdigital-frontend opened this issue 2 years ago • 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!

aktivdigital-frontend avatar Apr 18 '23 08:04 aktivdigital-frontend

Any updates on this? We also have this problem

godhand1607 avatar Aug 30 '23 01:08 godhand1607

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>

Kodzhabashev avatar Dec 06 '23 17:12 Kodzhabashev