ionic-team/trapeze

bug: inject, insert a single line

Marius-Romanus opened this issue · 2 comments

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!

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>

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