Skip to content

Commit 6a539fa

Browse files
committed
添加插件Activity节点信息类
1 parent 04fbd53 commit 6a539fa

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
package com.plugin.content;
2+
3+
import java.io.Serializable;
4+
5+
/**
6+
* <Pre>
7+
* @author cailiming
8+
* </Pre>
9+
*
10+
*/
11+
public class PluginActivityInfo implements Serializable {
12+
13+
private String name;//string
14+
private String windowSoftInputMode;//strin
15+
private String hardwareAccelerated;//int string
16+
private String launchMode;//string
17+
private String screenOrientation;//string
18+
private String theme;//int
19+
private String immersive;//int string
20+
21+
public String getImmersive() {
22+
return immersive;
23+
}
24+
25+
public void setImmersive(String immersive) {
26+
this.immersive = immersive;
27+
}
28+
29+
public String getName() {
30+
return name;
31+
}
32+
33+
public void setName(String name) {
34+
this.name = name;
35+
}
36+
37+
public String getWindowSoftInputMode() {
38+
return windowSoftInputMode;
39+
}
40+
41+
public void setWindowSoftInputMode(String windowSoftInputMode) {
42+
this.windowSoftInputMode = windowSoftInputMode;
43+
}
44+
45+
public String getHardwareAccelerated() {
46+
return hardwareAccelerated;
47+
}
48+
49+
public void setHardwareAccelerated(String hardwareAccelerated) {
50+
this.hardwareAccelerated = hardwareAccelerated;
51+
}
52+
53+
public String getLaunchMode() {
54+
return launchMode;
55+
}
56+
57+
public void setLaunchMode(String launchMode) {
58+
this.launchMode = launchMode;
59+
}
60+
61+
public String getScreenOrientation() {
62+
return screenOrientation;
63+
}
64+
65+
public void setScreenOrientation(String screenOrientation) {
66+
this.screenOrientation = screenOrientation;
67+
}
68+
69+
public String getTheme() {
70+
return theme;
71+
}
72+
73+
public void setTheme(String theme) {
74+
this.theme = theme;
75+
}
76+
}

PluginCore/src/com/plugin/content/PluginDescriptor.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ public class PluginDescriptor implements Serializable {
6464
*/
6565
private HashMap<String, ArrayList<PluginIntentFilter>> activitys = new HashMap<String, ArrayList<PluginIntentFilter>>();
6666

67+
/**
68+
* key: activity class name
69+
* value: activity info in Manifest
70+
*/
71+
private HashMap<String, PluginActivityInfo> activityInfos = new HashMap<String, PluginActivityInfo>();
72+
6773
/**
6874
* key: service class name
6975
* value: intentfilter list
@@ -176,6 +182,14 @@ public void setActivitys(HashMap<String, ArrayList<PluginIntentFilter>> activity
176182
this.activitys = activitys;
177183
}
178184

185+
public HashMap<String, PluginActivityInfo> getActivityInfos() {
186+
return activityInfos;
187+
}
188+
189+
public void setActivityInfos(HashMap<String, PluginActivityInfo> activityInfos) {
190+
this.activityInfos = activityInfos;
191+
}
192+
179193
public HashMap<String, ArrayList<PluginIntentFilter>> getServices() {
180194
return services;
181195
}

0 commit comments

Comments
 (0)