Skip to content

Prebuild android always add intent even if it's already here. #319

@cmaurel-cgi

Description

@cmaurel-cgi

Hello,

I'm using Expo Dev Build, and every time I run the command expo prebuild -p android, it adds duplicate tags to the AndroidManifest.xml file, even though they are already present.

Here is an example of the resulting block:

  <queries>
    <intent>
      <action android:name="android.intent.action.VIEW"/>
      <category android:name="android.intent.category.BROWSABLE"/>
      <data android:scheme="https"/>
    </intent>
    <intent>
      <action android:name="android.intent.action.VIEW"/>
      <data android:scheme="geo"/>
    </intent>
    <intent>
      <action android:name="android.intent.action.VIEW"/>
      <data android:scheme="waze"/>
    </intent>
    <intent>
      <action android:name="android.intent.action.VIEW"/>
      <data android:scheme="geo"/>
    </intent>
    <intent>
      <action android:name="android.intent.action.VIEW"/>
      <data android:scheme="waze"/>
    </intent>
  </queries>

Since I have custom configurations and modifications within my project's android folder, I cannot delete or clean this folder before every execution on my Continuous Integration (CI) pipeline.

Is there a solution to prevent the duplication of these entries during successive expo prebuild runs?

Thank you for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions