Skip to content

Commit

Permalink
merge后版本升级
Browse files Browse the repository at this point in the history
  • Loading branch information
firesunCN committed Jan 2, 2019
1 parent 1f3ccef commit 8f184e4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {
applicationId "me.firesun.wechat.enhancement"
minSdkVersion 17
targetSdkVersion 23
versionCode 43
versionName "1.8.0"
versionCode 45
versionName "1.9.0"
}

buildTypes {
Expand Down
7 changes: 2 additions & 5 deletions app/src/main/java/me/firesun/wechat/enhancement/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

public class Main implements IXposedHookLoadPackage {

private static IPlugin[] plugins={
private static IPlugin[] plugins = {
new ADBlock(),
new AntiRevoke(),
new AntiSnsDelete(),
Expand Down Expand Up @@ -61,9 +61,7 @@ protected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws Thr
});
} catch (Error | Exception e) {
}

}

}

private String getVersionName(Context context, String packageName) {
Expand All @@ -78,14 +76,13 @@ private String getVersionName(Context context, String packageName) {


private void loadPlugins(LoadPackageParam lpparam) {
for (IPlugin plugin:plugins) {
for (IPlugin plugin : plugins) {
try {
plugin.hook(lpparam);
} catch (Error | Exception e) {
log("loadPlugins error" + e);
}
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public class HookParams {
public static final String SAVE_WECHAT_ENHANCEMENT_CONFIG = "wechat.intent.action.SAVE_WECHAT_ENHANCEMENT_CONFIG";
public static final String WECHAT_ENHANCEMENT_CONFIG_NAME = "wechat_enhancement_config";
public static final String WECHAT_PACKAGE_NAME = "com.tencent.mm";
public static final int VERSION_CODE = 43; //大版本变动时候才需要修改
public static final int VERSION_CODE = 45; //大版本变动时候才需要修改

public String SQLiteDatabaseClassName = "com.tencent.wcdb.database.SQLiteDatabase";
public String SQLiteDatabaseUpdateMethod = "updateWithOnConflict";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ public static Method[] findMethodsByExactParametersInner(Class<?> clazz, Class<?
public static final Method findMethodExactIfExists(Class clazz, String methodName, Class... parameterTypes) {
Method method = null;
try {
// method = XposedHelpers.findMethodExact(clazz, methodName, (Class[]) Arrays.copyOf(parameterTypes, parameterTypes.length));
method = findMethodExact(clazz, methodName, (Class[]) Arrays.copyOf(parameterTypes, parameterTypes.length));
} catch (Error | Exception e) {
}
Expand Down

0 comments on commit 8f184e4

Please sign in to comment.