8000 field modifier pulblic->private · CJavaScala/android-pluginmgr@186ecac · GitHub
[go: up one dir, main page]

Skip to content

Commit 186ecac

Browse files
committed
field modifier pulblic->private
1 parent dae0f16 commit 186ecac

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3+
org.eclipse.jdt.core.compiler.compliance=1.6
4+
org.eclipse.jdt.core.compiler.source=1.6

android-pluginmgr/src/main/java/androidx/pluginmgr/ActivityClassGenerator.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
*
5151
*/
5252
class ActivityClassGenerator {
53-
53+
private static final String FIELD_ASSERTMANAGER = "mAssertManager";
54+
private static final String FIELD_RESOURCES = "mResources";
55+
5456
public static void createActivityDex(String superClassName,
5557
String targetClassName, File saveTo, String pluginId, String pkgName)
5658
throws IOException {
@@ -94,8 +96,6 @@ public static <S, D extends S> byte[] createActivityDex(
9496
declareMethod_getAssets(dexMaker, generatedType, superType);
9597
// 声明 方法:public Resources getResources()
9698
declareMethod_getResources(dexMaker, generatedType, superType);
97-
// 声明 方法:public Theme getTheme()
98-
// declareMethod_getTheme(dexMaker, generatedType, superType);
9999
/*
100100
* 声明 方法:startActivityForResult(Intent intent, int requestCode, Bundle
101101
* options)
@@ -158,8 +158,7 @@ private static <D> Local<String> get_pluginId(TypeId<D> generatedType,
158158
// methodCode.loadConstant(local, pkgName);
159159
// methodCode.returnValue(local);
160160
// }
161-
public static final String FIELD_ASSERTMANAGER = "mAssertManager";
162-
public static final String FIELD_RESOURCES = "mResources";
161+
163162
@SuppressWarnings({ "unchecked", "rawtypes" })
164163
private static <S, D extends S> void declareMethod_onCreate(
165164
DexMaker dexMaker, TypeId<D> generatedType, TypeId<S> superType) {

0 commit comments

Comments
 (0)
0