cordova-android
cordova-android copied to clipboard
<config-file> doesn't work when using <edit-config> in plugin.xml
Bug Report
Problem
What is expected to happen?
When I use
Information
My example:
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"
/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="$ADMOB_ANDROID_APP_ID"/>
</config-file>
<resource-file src="network_security_config.xml" target="res/xml/network_security_config.xml" />
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:networkSecurityConfig="@xml/network_security_config" />
</edit-config>
Version information
Cordova plugins, Cordova 10.0
Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
Any solution here , I am facing similar issue..