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 14, 2023
1 parent e971f11 commit 3520b76
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 18 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- 去信息流会员推荐
- 去回答圈子
- 去商品推荐
- 去相关搜索
- 直接打开外部链接
- 禁止切换色彩模式
- 显示卡片类别
Expand All @@ -42,6 +43,7 @@
- 移除下一个回答按钮
- 自定义过滤
- 注入JS脚本
- 清理临时文件

## 帮助
[Github Wiki](https://github.com/shatyuka/Zhiliao/wiki)
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {
applicationId "com.shatyuka.zhiliao"
minSdkVersion 26
targetSdkVersion 33
ndkVersion "25.0.8775105"
ndkVersion "25.2.9519653"
versionCode appVerCode.toInteger()
versionName appVerName
externalNativeBuild {
Expand Down Expand Up @@ -74,7 +74,7 @@ android {
buildFeatures {
prefab true
}
buildToolsVersion '32.0.0'
buildToolsVersion '33.0.2'

packagingOptions {
exclude 'META-INF/**'
Expand Down
16 changes: 7 additions & 9 deletions app/src/main/java/com/shatyuka/zhiliao/hooks/ColorMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ public void init(ClassLoader classLoader) throws Throwable {

@Override
public void hook() throws Throwable {
if (Build.VERSION.SDK_INT >= 26) {
XposedHelpers.findAndHookMethod(Window.class, "setColorMode", int.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) {
if (Helper.prefs.getBoolean("switch_mainswitch", false) && Helper.prefs.getBoolean("switch_colormode", false)) {
param.setResult(null);
}
XposedHelpers.findAndHookMethod(Window.class, "setColorMode", int.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) {
if (Helper.prefs.getBoolean("switch_mainswitch", false) && Helper.prefs.getBoolean("switch_colormode", false)) {
param.setResult(null);
}
});
}
}
});
}
}
3 changes: 1 addition & 2 deletions app/src/main/java/com/shatyuka/zhiliao/hooks/ExternLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ public WebResourceRequestImpl(final WebResourceRequest request) {
hasUserGesture = request.hasGesture();
method = request.getMethod();
requestHeaders = request.getRequestHeaders();
if (Build.VERSION.SDK_INT >= 24)
isRedirect = request.isRedirect();
isRedirect = request.isRedirect();
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.android.tools.build:gradle:7.4.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
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.01.21
appVerCode=202301210
appVerName=23.03.15
appVerCode=202303150
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Jan 21 17:53:15 CST 2023
#Tue Mar 14 23:38:36 CST 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit 3520b76

Please sign in to comment.