-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.xml
94 lines (94 loc) · 5.44 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
<?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="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/splash.png" target="app\src\main\res/splash.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/xml/network_security_config.xml" target="app\src\main\res/xml/network_security_config.xml" />
<hook type="after_prepare" src="hooks/stripExtraWriteExternalStoragePerm.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.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<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" /> <!-- <activity android:theme="@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>
<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="AndroidWindowSplashScreenAnimatedIcon" src="res/drawable/screen.png"/>
<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" />
<!--<preference name="SplashScreen" screen="res/drawable/screen.png" value="res/drawable/screen.png"/>-->
</platform>
</widget>