|
50 | 50 | *
|
51 | 51 | */
|
52 | 52 | class ActivityClassGenerator {
|
53 |
| - |
| 53 | + private static final String FIELD_ASSERTMANAGER = "mAssertManager"; |
| 54 | + private static final String FIELD_RESOURCES = "mResources"; |
| 55 | + |
54 | 56 | public static void createActivityDex(String superClassName,
|
55 | 57 | String targetClassName, File saveTo, String pluginId, String pkgName)
|
56 | 58 | throws IOException {
|
@@ -94,8 +96,6 @@ public static <S, D extends S> byte[] createActivityDex(
|
94 | 96 | declareMethod_getAssets(dexMaker, generatedType, superType);
|
95 | 97 | // 声明 方法:public Resources getResources()
|
96 | 98 | declareMethod_getResources(dexMaker, generatedType, superType);
|
97 |
| - // 声明 方法:public Theme getTheme() |
98 |
| -// declareMethod_getTheme(dexMaker, generatedType, superType); |
99 | 99 | /*
|
100 | 100 | * 声明 方法:startActivityForResult(Intent intent, int requestCode, Bundle
|
101 | 101 | * options)
|
@@ -158,8 +158,7 @@ private static <D> Local<String> get_pluginId(TypeId<D> generatedType,
|
158 | 158 | // methodCode.loadConstant(local, pkgName);
|
159 | 159 | // methodCode.returnValue(local);
|
160 | 160 | // }
|
161 |
| - public static final String FIELD_ASSERTMANAGER = "mAssertManager"; |
162 |
| - public static final String FIELD_RESOURCES = "mResources"; |
| 161 | + |
163 | 162 | @SuppressWarnings({ "unchecked", "rawtypes" })
|
164 | 163 | private static <S, D extends S> void declareMethod_onCreate(
|
165 | 164 | DexMaker dexMaker, TypeId<D> generatedType, TypeId<S> superType) {
|
|
0 commit comments