Skip to content

Commit

Permalink
[skip ci] Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
shatyuka committed Mar 25, 2023
1 parent 6efdb72 commit 4359417
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- 去回答圈子
- 去商品推荐
- 去相关搜索
- 去关键字搜索
- 直接打开外部链接
- 禁止切换色彩模式
- 显示卡片类别
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/shatyuka/zhiliao/Helper.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static boolean init(ClassLoader classLoader) {

return true;
} catch (Exception e) {
XposedBridge.log("[Zhiliao] " + e.toString());
XposedBridge.log("[Zhiliao] " + e);
return false;
}
}
Expand All @@ -87,7 +87,7 @@ public static Pattern compileRegex(String regex) {
}
}

@SuppressWarnings("JavaReflectionMemberAccess")
@SuppressWarnings({"JavaReflectionMemberAccess", "deprecation"})
@SuppressLint("DiscouragedPrivateApi")
static Resources getModuleRes(String path) throws Throwable {
AssetManager assetManager = AssetManager.class.newInstance();
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/shatyuka/zhiliao/Hooks.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static void init(final ClassLoader classLoader) {
hook.hook();
} catch (Throwable e) {
Helper.toast(hook.getName() + "功能加载失败,可能不支持当前版本知乎: " + Helper.packageInfo.versionName, Toast.LENGTH_LONG);
XposedBridge.log("[Zhiliao] " + e.toString());
XposedBridge.log("[Zhiliao] " + e);
}
}
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/shatyuka/zhiliao/hooks/AnswerAd.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ protected void beforeHookedMethod(MethodHookParam param) {
}
}

@SuppressWarnings("ResultOfMethodCallIgnored")
@Override
protected void afterHookedMethod(MethodHookParam param) {
if (!Helper.prefs.getBoolean("switch_mainswitch", false))
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/shatyuka/zhiliao/hooks/Cleaner.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public static File[] getCacheFiles() {
return Helper.context.getFilesDir().listFiles(new Filter());
}

@SuppressWarnings("ResultOfMethodCallIgnored")
public static long doClean() {
File[] files = getCacheFiles();
long size = 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.shatyuka.zhiliao.hooks;

import android.os.Build;
import android.view.Window;

import com.shatyuka.zhiliao.Helper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.XposedHelpers;

@SuppressWarnings("deprecation")
public class ZhihuPreference implements IHook {
final static String modulePackage = "com.shatyuka.zhiliao";

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ android.experimental.enableNewResourceShrinker.preciseShrinking=true
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
appVerName=23.03.15
appVerCode=202303150
appVerName=23.03.25
appVerCode=202303250

0 comments on commit 4359417

Please sign in to comment.