ionic-team / trapeze

The mobile project configuration toolbox. Manage native iOS, Android, Ionic/Capacitor, React Native, and Flutter apps through a simple YAML format.
https://trapeze.dev
Other
323 stars 40 forks source link

Best practice for merging in root of Android manifest? #202

Open boozedog opened 1 year ago

boozedog commented 1 year ago

I'd like to merge the following:

          <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
          <uses-feature android:name="android.hardware.location.gps" />
          <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

... into the root <manifest/> root node so that the result looks like this:

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
   ...
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-feature android:name="android.hardware.location.gps" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>

What's best practice for doing this in trapeze? I don't think I can use manifest: merge as it "requires a matching sub-tree root node to be provided" https://trapeze.dev/docs/Operations/android#manifest

boozedog commented 1 year ago

Hello? :sweat_smile: