-
Notifications
You must be signed in to change notification settings - Fork 300
/
Copy pathAndroidManifest.xml
138 lines (123 loc) · 5.8 KB
/
AndroidManifest.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
132
133
134
135
136
137
138
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.jingbin.webviewstudy">
<!-- 网络 -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- 定位 -->
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- 选择照片所需权限 -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!--tencent x5添加-->
<uses-permission android:name="android.permission.CAMERA" />
<application
android:name=".App"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
tools:ignore="UnusedAttribute">
<activity
android:name=".MainActivity"
android:exported="true"
android:windowSoftInputMode="adjustPan|stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.WebViewActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true"
android:screenOrientation="portrait"
android:theme="@style/WebViewTheme"
tools:ignore="LockedOrientationActivity" />
<!--用于DeepLink,html跳到此页面 scheme_Adr: 'will://link/testid',-->
<activity
android:name=".ui.DeepLinkActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="link"
android:scheme="will" />
</intent-filter>
<!--配置多个data-->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!--可以只配置一个scheme,也可以唤起来-->
<data
android:host="jingbin.me"
android:path="/deeplink"
android:scheme="will" />
</intent-filter>
</activity>
<!--tencent x5 页面-->
<activity
android:name=".tencentx5.X5WebViewActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:hardwareAccelerated="true"
android:screenOrientation="portrait"
android:theme="@style/WebViewTheme"
tools:ignore="LockedOrientationActivity" />
<!--tencent x5 页面 使用的是Apache HTTP客户端 适配SDK 28-->
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
<!--腾讯x5 增加Service声明-->
<service
android:name="com.tencent.smtt.export.external.DexClassLoaderProviderService"
android:label="dexopt"
android:process=":dexopt" />
<activity
android:name=".ui.ByWebViewActivity"
android:configChanges="orientation|screenSize"
android:exported="true"
android:hardwareAccelerated="true"
android:screenOrientation="portrait"
android:theme="@style/WebViewTheme"
tools:ignore="LockedOrientationActivity">
<!--需要添加下面的intent-filter配置-->
<intent-filter tools:ignore="AppLinkUrlError">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!--打开https开头的网页-->
<data android:scheme="https" />
</intent-filter>
<intent-filter tools:ignore="AppLinkUrlError">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!--打开http开头的网页-->
<data android:scheme="http" />
</intent-filter>
</activity>
<activity
android:name=".ui.CoordinatorWebActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true"
android:screenOrientation="portrait"
android:theme="@style/WebViewTheme"
tools:ignore="LockedOrientationActivity" />
<activity
android:name=".ui.WVJBWebViewActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true"
android:screenOrientation="portrait"
android:theme="@style/WebViewTheme"
tools:ignore="LockedOrientationActivity" />
</application>
</manifest>