Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,31 @@
<preference name="GradlePluginKotlinEnabled" value="true" />
<preference name="android-targetSdkVersion" value="36" />


<!-- Cordova does not merge this unless both of these are present -->
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application">
<application
android:usesCleartextTraffic="true"
android:networkSecurityConfig="@xml/network_security_config"
android:hardwareAccelerated="true"
android:largeHeap="true"
android:requestLegacyExternalStorage="true"
android:enableOnBackInvokedCallback="false" />
</edit-config>

<!-- Cordova does not merge this unless both of these are present -->
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:networkSecurityConfig="@xml/network_security_config" />
<application android:usesCleartextTraffic="true" />
<application android:hardwareAccelerated="true" />
<application android:largeHeap="true" />
<application android:requestLegacyExternalStorage="true"/>
<application android:enableOnBackInvokedCallback="false" />
</edit-config>

<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity[@android:name='MainActivity']">
<activity android:resizeableActivity="true" />
</edit-config>


<config-file parent="./application/activity" target="AndroidManifest.xml">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
Expand Down
9 changes: 1 addition & 8 deletions res/android/xml/network_security_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,4 @@
<certificates src="system" />
</trust-anchors>
</base-config>

<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">*</domain>
<domain includeSubdomains="true">localhost</domain>
</domain-config>
</network-security-config>

<!-- This file is used to allow the app to load http://localhost in in-app browser, used to run project. DO NOT remove-->
</network-security-config>