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

bug: inject, insert a single line #172

Open
Marius-Romanus opened this issue Mar 2, 2023 · 2 comments
Open

bug: inject, insert a single line #172

Marius-Romanus opened this issue Mar 2, 2023 · 2 comments

Comments

@Marius-Romanus
Copy link

Hello, it seems that this happens again, if we insert two lines, it only inserts the first one.

#54

- file: AndroidManifest.xml
        target: manifest
        inject: |
          <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
          <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

thanks, greetings!

@mlynch
Copy link
Contributor

mlynch commented Mar 3, 2023

I'd have to look more closely but something else you could try in the meantime is a merge:

target: manifest
merge: |
  <manifest>
    <uses-permission <!--...-->
    <uses-permission <!--..-->
  </manifest>

@Marius-Romanus
Copy link
Author

Hello, checked the merge works well, also it does not duplicate it if it already exists.

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

2 participants