forked from limpoxe/Android-Plugin-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
180 lines (150 loc) · 6.55 KB
/
AndroidManifest.xml
File metadata and controls
180 lines (150 loc) · 6.55 KB
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?xml version="1.0" encoding="utf-8"?>
<!-- 这里配置sharedUserId的作用,是为了告诉宿主程序,这个插件需要依赖宿主程序的class和资源
如果不配置这个参数,表示这个插件是一个独立插件,即本身可以独立安装运行
dependencies的作用是用来指定此插件依赖的掐他基础插件
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.plugintest"
android:versionCode="1"
android:versionName="1.0.1"
android:sharedUserId="com.example.pluginmain" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="22" />
<application
android:name="com.example.plugintest.PluginTestApplication"
android:label="@*com.example.pluginmain:string/share_string_2"
android:theme="@style/PluginTheme2">
<uses-library android:name="com.example.plugintestbase" android:required="true" />
<meta-data android:name="abcdef" android:value="654321"/>
<!-- for fragment -->
<exported-fragment android:name="some_id_for_fragment1" android:value="com.example.plugintest.fragment.PluginNormalFragment"/>
<!-- for fragment -->
<exported-fragment android:name="some_id_for_fragment2" android:value="com.example.plugintest.fragment.PluginSpecFragment" />
<!-- for localservice -->
<exported-service android:name="login_service" android:value="com.example.plugintest.PluginLoginService" />
<activity
android:name="com.example.plugintest.activity.PluginTestActivity"
android:theme="@style/PluginTheme3"
android:screenOrientation="landscape">
<intent-filter>
<action
android:name="test.abc" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.example.plugintest.activity.PluginFragmentTestActivity"
android:windowSoftInputMode="stateAlwaysVisible">
<intent-filter>
<action
android:name="test.def" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.example.plugintest.activity.PluginNotInManifestActivity"
android:theme="@style/PluginTheme"
android:launchMode="singleTop"
android:immersive="true"
android:uiOptions="splitActionBarWhenNarrow"
android:hardwareAccelerated="true">
<intent-filter>
<action
android:name="test.xyz1" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
<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:scheme="testscheme" android:host="testhost"/>
</intent-filter>
</activity>
<activity
android:name="com.example.plugintest.activity.PluginForOppoAndVivoActivity" >
<intent-filter>
<action
android:name="test.ijk" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.example.plugintest.activity.PluginTestOpenPluginActivity" >
<intent-filter>
<action
android:name="test.zxc" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.example.plugintest.activity.PluginWebViewActivity" >
<intent-filter>
<action
android:name="test.webXX" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.example.plugintest.activity.PluginForDialogActivity" >
<intent-filter>
<action
android:name="test.dialogXX" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.example.plugintest.activity.PluginSingleTaskActivity"
android:launchMode="singleTask">
</activity>
<service android:name="com.example.plugintest.service.PluginTestService">
<intent-filter>
<action
android:name="test.lmn" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
<service android:name="com.example.plugintest.service.PluginTestService2">
<intent-filter>
<action
android:name="test.lmn2" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
<receiver android:name="com.example.plugintest.receiver.PluginTestReceiver" >
<intent-filter>
<action
android:name="test.rst" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action
android:name="test.rst2" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<receiver android:name="com.example.plugintest.receiver.PluginTestReceiver2" >
<intent-filter>
<action
android:name="test.rst2" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<provider
android:exported="true"
android:authorities="com.example.plugintest.provider"
android:name="com.example.plugintest.provider.PluginContentProvider"/>
</application>
</manifest>