Skip to content

Commit

Permalink
Fix download
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Mar 15, 2020
1 parent 2a4f518 commit 2066507
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "me.iacn.biliroaming"
minSdkVersion 21
targetSdkVersion 29 // Target Android O
versionCode 10
versionName "1.1.7"
versionCode 12
versionName "1.1.8"
}

buildTypes {
Expand Down
2 changes: 1 addition & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

-keep class * implements de.robv.android.xposed.IXposedHookInitPackageResources {
public void *(de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam);
public void *(de.robv.android.xposed.callbacks.XC_InitPackageResources.InitPackageResourcesParam);
}

-keepclassmembers class me.iacn.biliroaming.MainActivity {
Expand Down
2 changes: 1 addition & 1 deletion app/src/debug/assets/xposed_init
Original file line number Diff line number Diff line change
@@ -1 +1 @@
me.iacn.hotxposed.HotXposedInit
me.iacn.hotxposed.HotXposedInit
2 changes: 1 addition & 1 deletion app/src/main/assets/xposed_init
Original file line number Diff line number Diff line change
@@ -1 +1 @@
me.iacn.biliroaming.XposedInit
me.iacn.biliroaming.XposedInit
2 changes: 1 addition & 1 deletion app/src/main/java/me/iacn/biliroaming/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void onResume() {
super.onResume();

if (isTaiChiModuleActive(getActivity())) {
runningStatusPref.setTitle(R.string.running_status_disable);
runningStatusPref.setTitle(R.string.running_status_enable);
runningStatusPref.setSummary(R.string.runtime_taichi);
} else {
if (isModuleActive()) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/me/iacn/biliroaming/XposedInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
}
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Map.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
Map params = (Map)param.args[0];
if(XposedInit.sPrefs.getBoolean("use_biliplus", false) &&
if(XposedInit.sPrefs.getBoolean("allow_download", false) &&
params.containsKey("ep_id")) {
params.remove("dl");
}
Expand Down
28 changes: 28 additions & 0 deletions app/src/main/res/values-en/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">BiliRoaming</string>
<string name="xposed_description">Unblock Area Limit of Bilibili</string>
<string name="about">About</string>
<string name="version">Version</string>
<string name="running_status_enable">Enabled</string>
<string name="running_status_disable">Disabled</string>
<string name="not_running_summary">Not activated</string>
<string name="runtime_xposed">Environment: Xposed/EdXposed</string>
<string name="runtime_taichi">Environment: Taichi</string>
<string name="main_func_title">Unblock Area Limit</string>
<string name="main_func_summary">Allow use to watch bangumi from other area</string>
<string name="hide_icon_summary">Not showing icon</string>
<string name="hide_icon_title">Hide Icon</string>
<string name="use_biliplus_summary">Use Biliplus API (Only for oversea user)</string>
<string name="use_biliplus_title">Use Biliplus API</string>
<string name="custom_theme_title">Customize Theme Color</string>
<string name="custom_theme_summary">Allow user to customize theme color</string>
<string name="teenagers_mode_dialog_title">Disable Teen Dialog</string>
<string name="teenagers_mode_dialog_summary">You can still enter from sidebar</string>
<string name="allow_download_title">Download Copyrighted Bangumi</string>
<string name="allow_download_summary">Allow user to download bangumi with copyright</string>
<string name="comment_floor_title">Show Comment Floor</string>
<string name="comment_floor_summary">Show comment floor as previous version</string>
<string name="author">Author</string>
<string name="author_list">iAcn/djytw/yujincheng08</string>
</resources>
6 changes: 4 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
<string name="xposed_description">解锁B站港澳台番剧限制</string>
<string name="about">关于</string>
<string name="version">版本</string>
<string name="author">作者</string>
<string name="author_list">iAcn/djytw/yujincheng08</string>
<string name="running_status_enable">已启用</string>
<string name="running_status_disable">未启用</string>
<string name="not_running_summary">插件当前没有被激活</string>
<string name="runtime_xposed">运行环境:Xposed/EdXposed</string>
<string name="runtime_taichi">使用太极环境</string>
<string name="runtime_taichi">运行环境:太极</string>
<string name="main_func_title">解锁番剧限制</string>
<string name="main_func_summary">使大陆的用户可以正常观看港澳台番剧</string>
<string name="main_func_summary">使用户可以观看区域外版权番剧</string>
<string name="hide_icon_summary">不显示本应用在启动器中的图标</string>
<string name="hide_icon_title">隐藏桌面图标</string>
<string name="use_biliplus_summary">使用BiliPlus(海外用户回国用,大陆用户不要打开,会变慢)</string>
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/xml/prefs_setting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
android:key="version"
android:title="@string/version" />

<Preference
android:key="author"
android:title="@string/author"
android:summary="@string/author_list"/>

<Preference android:key="running_status" />

</PreferenceCategory>
Expand Down

0 comments on commit 2066507

Please sign in to comment.