-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.xml
131 lines (131 loc) · 7.53 KB
/
config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloCordova</name>
<description>Sample Apache Cordova App</description>
<author email="[email protected]" href="https://cordova.apache.org">
Apache Cordova Team
</author>
<content src="index.html" />
<allow-navigation href="*" />
<access origin="*" />
<allow-intent href="*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-intent href="market:*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="file://*/*" />
<allow-intent href="file:///*/*" />
<access origin="file://*" />
<access origin="file:///*" />
<allow-intent href="cdvfile://*/*" />
<allow-navigation href="cdvfile:*" />
<access origin="cdvfile://*" />
<preference name="AppendUserAgent" value="Cordova" />
<platform name="android">
<!-- <preference name="ANDROID_SUPPORT_V4_VERSION" default="27.+"/>
<framework src="com.android.support:supportv4:$ANDROID_SUPPORT_V4_VERSION"/> -->
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<preference name="AndroidInsecureFileModeEnabled" value="true" />
<preference name="AndroidExtraFilesystems" value="files,files-external,documents,sdcard,cache,cache-external,assets,root" />
<resource-file src="res/icon.png" target="app/src/main/res/icon.png" />
<resource-file src="res/screen/android/screen.png" target="app/src/main/res/screen/android/screen.png" />
<resource-file src="res/screen/android/screen.png" target="app/src/main/res/drawable/screen.png" />
<resource-file src="res/screen/android/splash.xml" target="app/src/main/res/screen/android/splash.xml" />
<resource-file src="res/screen/android/splash.xml" target="app/src/main/res/drawable/ic_cdv_splashscreen.xml" />
<resource-file src="res/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
<hook type="after_prepare" src="hooks/stripExtraWriteExternalStoragePerm.js" />
<hook type="after_platform_add" src="hooks/install_android9.js" />
<hook type="after_platform_add" src="hooks/install_android_plugins.js" />
<hook type="before_build" src="hooks/install_android9.js" />
<hook type="before_build" src="hooks/before_android_build.js" />
<hook type="after_plugin_add" src="hooks/install_android_plugins.js" />
<config-file target="AndroidManifest.xml" parent="/*" xmlns:android="http://schemas.android.com/apk/res/android">
<!--<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" /> -->
<!--<uses-permission android:maxSdkVersion="32" android:name="android.permission.READ_EXTERNAL_STORAGE" />-->
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.RECORD_VIDEO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<supports-screens
android:anyDensity="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:resizeable="true"
android:xlargeScreens="true" />
</config-file>
<edit-config file="AndroidManifest.xml" target="/manifest/application/" mode="merge" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:requestLegacyExternalStorage="true" android:usesCleartextTraffic="true" /><!-- android:networkSecurityConfig="@xml/network_security_config" -->
</edit-config>
<!-- <edit-config file="AndroidManifest.xml" target="/manifest/application/activity/" mode="merge" xmlns:android="http://schemas.android.com/apk/res/android"> -->
<!--<activity android:theme="@style/Theme.App.SplashScreen" android:screenOrientation="portrait" /> -->
<!--<activity android:theme="@style/Theme.App.SplashScreen" /> -->
<!-- <activity android:theme="@android:style/Theme.App.SplashScreen" /> -->
<!-- </edit-config> -->
<config-file target="AndroidManifest.xml" parent="/manifest/application/" xmlns:android="http://schemas.android.com/apk/res/android">
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/camera_provider_paths" />
</provider>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application/" xmlns:android="http://schemas.android.com/apk/res/android">
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/camera_provider_paths"/>
</provider>
</config-file>
<preference name="loglevel" value="DEBUG" />
<!--<preference name="android-targetSdkVersion" value="30" />-->
<icon src="res/icon.png" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="10000" />
<splash density="xhdpi" src="res/screen/android/screen.png" />
<splash density="mdpi" src="res/screen/android/screen.png" />
<splash density="ldpi" src="res/screen/android/screen.png" />
<splash density="hdpi" src="res/screen/android/screen.png" />
<!-- <preference name="SplashScreen" screen="res/drawable/screen.png" value="res/drawable/screen.png"/> -->
<preference name="AndroidWindowSplashScreenAnimatedIcon" src="res/screen/android/splash.xml"/>
<preference name="AndroidWindowSplashScreenAnimationDuration" value="0"/>
<preference name="AndroidWindowSplashScreenIconBackgroundColor" value="#00000000" />
<preference name="AndroidWindowSplashScreenBackground" value="#00000000" />
<preference name="Orientation" value="portrait" />
<preference name="AutoHideSplashScreen" value="true" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="FadeSplashScreenDuration" value="500" />
<preference name="ShowSplashScreenSpinner" value="true" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="applicationId" value="io.cordova.hellocordova_222594729" />
</platform>
<platform name="ios">
<preference name="loglevel" value="DEBUG" />
<preference name="applicationId" value="io.cordova.hellocordova_222594729" />
<preference name="scheme" value="app" />
<preference name="hostname" value="localhost" />
<preference name="AllowNewWindows" value="true" />
<preference name="MediaPlaybackAllowsAirPlay" value="true" />
<preference name="LimitsNavigationsToAppBoundDomains" value="false" />
<preference name="AllowBackForwardNavigationGestures" value="false" />
<preference name="Allow3DTouchLinkPreview" value="true" />
<preference name="AutoHideSplashScreen" value="true" />
<hook type="before_platform_add" src="hooks/before_install_ios7.js" />
<hook type="after_prepare" src="hooks/before_install_ios7.js" />
<hook type="before_build" src="hooks/before_ios_build.js" />
</platform>
</widget>