Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge intent-filter #181

Open
aktivdigital-frontend opened this issue Apr 18, 2023 · 2 comments
Open

Merge intent-filter #181

aktivdigital-frontend opened this issue Apr 18, 2023 · 2 comments

Comments

@aktivdigital-frontend
Copy link

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!

@godhand1607
Copy link

Any updates on this? We also have this problem

@Kodzhabashev
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants