Skip to content

Commit 867ecd2

Browse files
authored
Merge pull request #214 from spoonconsulting/fix-demo-project
Fix Demo Project
2 parents 05f2dda + a394e9c commit 867ecd2

File tree

5 files changed

+3544
-3831
lines changed

5 files changed

+3544
-3831
lines changed

demo/config.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
2+
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
33
<name>Upload Demo</name>
44
<description>An awesome Ionic/Cordova app.</description>
55
<author email="hi@ionicframework.com" href="http://ionicframework.com/">Ionic Framework Team</author>
@@ -11,18 +11,24 @@
1111
<allow-intent href="sms:*" />
1212
<allow-intent href="mailto:*" />
1313
<allow-intent href="geo:*" />
14+
<preference name="android-minSdkVersion" value="22" />
15+
<preference name="android-targetSdkVersion" value="31" />
1416
<preference name="ScrollEnabled" value="false" />
1517
<preference name="BackupWebStorage" value="none" />
1618
<preference name="SplashMaintainAspectRatio" value="true" />
1719
<preference name="FadeSplashScreenDuration" value="300" />
1820
<preference name="SplashShowOnlyFirstTime" value="false" />
1921
<preference name="SplashScreen" value="screen" />
2022
<preference name="SplashScreenDelay" value="3000" />
23+
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
24+
<preference name="AndroidXEnabled" value="true" />
2125
<platform name="android">
22-
<preference name="android-minSdkVersion" value="22" />
2326
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
2427
<application android:networkSecurityConfig="@xml/network_security_config" />
2528
</edit-config>
29+
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity[@android:name='MainActivity']">
30+
<activity android:exported="true" />
31+
</edit-config>
2632
<resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
2733
<allow-intent href="market:*" />
2834
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />

0 commit comments

Comments
 (0)