Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Commit b875a23

Browse files
author
Zhongyi Tong
committed
Update docs for v3.0.1.
1 parent 6b1eba8 commit b875a23

File tree

8 files changed

+75
-65
lines changed

8 files changed

+75
-65
lines changed

.idea/modules/app/app.iml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,34 @@
11
# 更新日志
22

3+
**[v3.0 (2016.08.02)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v3.0.1)**
4+
5+
- 优化 重新设计UI,风格更加简洁明快。提升“社区”和“设置”的视觉优先级,开启插件更顺手。
6+
- 新增 Uber免费乘车优惠。
7+
- 新增 适配微信6.3.22。
8+
- 新增 Android N (牛轧糖) 适配(预计v3.1完成)
9+
- 修复 Bugly高优先级的问题。
10+
311
**[v2.3 (2016.02.07)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v2.3)**
412

513
- 优化 不打开拜年红包
614
- 紧急修复了Bugly上几个高优先级的问题,减少Crash出现
715

8-
9-
1016
**[v2.2 (2016.02.04)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v2.2)**
1117

1218
- 新增 延时拆开红包的可选项
13-
14-
1519
- 新增 跳转至浏览器打开的入口
1620
- 新增 接入腾讯Bugly
1721
- 新增 自动回复的可选项(实验中)
18-
19-
2022
- 优化 手动拆开的红包不返回
21-
22-
2323
- 优化 适配三星等坑爹机型 (感谢 [@firesunCN](https://github.com/firesunCN) 对这项修改的贡献)
24-
25-
2624
- 修复 拆开红包后的多次返回问题
2725

2826

29-
3027
**[v2.1 (2016.01.30)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v2.1.1)**
31-
3228
- 新增 屏蔽指定红包文字的可选项
33-
34-
3529
- 新增 息屏抢红包的可选项
36-
37-
3830
- 新增 不拆开自己发的红包的可选项
39-
40-
4131
- 新增 内置红包攻略
42-
43-
4432
- 新增 所有链接默认用内置WebView打开
4533
- 优化 仅在WiFi环境下回到应用时检测更新
4634
- 优化 抢红包的逻辑流程,减少了一些误判情形
@@ -50,8 +38,6 @@
5038
- 修复 在其他界面会做额外的操作的问题 (感谢 @sxyy 对这项修改的贡献)
5139
- 修复 响应Notification进入聊天后,可能误判不抢的问题 (感谢 @tttony3 对这项修改的贡献)
5240

53-
54-
5541
**[v2.0.1 (2016.01.23)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v2.0.1)**
5642

5743
- 修复了用户第一次使用,偏好设置未加载导致的插件失效。 Fix issue #50, #51.
@@ -62,69 +48,52 @@
6248

6349
- 更自由的监视选项. Give user the freedom to choose what to watch, chat/list/notifications available at choices.
6450

65-
6651
- 更优化的重复红包判定. Optimize algorithm for duplicate hongbao detection.
6752

68-
6953
- 自动更新机制. Add auto update module.
7054

71-
7255
- 更新UI设计、应用图标. Update UI and app icon.
7356

74-
7557
- 增加辅助服务的说明. Add description for accessibility service.
7658

77-
7859
- 增加了反馈issue的快捷方式. Add quick link to Github issues.
7960

80-
8161
- 替换包名. Substitute the original package name.
8262

8363
详细的release notes请见https://github.com/geeeeeeeeek/WeChatLuckyMoney/issues/48。
8464

8565

86-
8766
**[v1.4 (2016.01.16)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v1.4)**
8867

8968
- 修复了微信新版(6.3.9.48_refecd3e)红包UI调整导致的功能失效。Fix failure caused by new WeChat Hongbao UI. Related issue #41.
9069

9170

92-
9371
**[v1.3 (2015.12.29)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v1.3)**
9472

9573
- 修复了红包频繁点击的bug。Fix repeatedly opening envelopes. Related issue #27 .
9674

97-
9875
- 并入了从通知栏进入抢红包的代码(#28),充分测试后加入下一个版本。Add watch for WeChat notification, from which enter the chat activity. This feature will not be available in this version, until well tested.
9976

100-
101-
10277
**[v1.2 (2015.12.17)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v1.2)**
10378

10479
该版本的红包识别代码存在Bug,会出现频繁点击,建议跳过该版本。
10580

10681
- 增加了微信语言 英语 的支持,修复了由此导致的一系列问题. Add support for the English language. Fix related issues.
10782

108-
10983
- 修改了红包重复判断的逻辑,戳“名称与缓存不一致的红包”和“名称一致且间隔大于5秒”的红包。Change the logic of detecting duplicate red envelopes. Only those name unmatched with cached or those name matched but with a duration > 5 secs will be touched.
11084

11185

112-
11386
**[v1.1 (2015.10.28)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v1.1)**
11487

11588
- 服务运行时防止息屏。Keep screen on when service is running.
11689

117-
118-
11990
**[v1.0 (2015.10.07)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v1.0)**
12091

12192
- 从dev分支并入了新版UI和红包节点的hash算法。
12293

123-
12494
- 增加了红包重复判断,不再不停点击最新的红包,极大优化了性能和体验。
12595

12696

127-
128-
**[preview (2015.08.17)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v1-beta1)**
97+
**[Preview (2015.08.17)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v1-beta1)**
12998

13099
- 对源码进行了少量修改。

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 微信红包
22

3-
<a href="https://play.google.com/store/apps/details?id=xyz.monkeytong.hongbao"><img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" height="48"></a>
3+
<a href="https://play.google.com/store/apps/details?id=xyz.monkeytong.hongbao"><img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" height="24"></a>
44

55
[![Gitter](https://badges.gitter.im/geeeeeeeeek/WeChatLuckyMoney.svg)](https://gitter.im/geeeeeeeeek/WeChatLuckyMoney?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge) [![Build Status](https://travis-ci.org/geeeeeeeeek/WeChatLuckyMoney.svg?branch=stable)](https://travis-ci.org/geeeeeeeeek/WeChatLuckyMoney) [**ENGLISH**](https://github.com/geeeeeeeeek/WeChatLuckyMoney/blob/stable/README_EN.md)
66

@@ -11,19 +11,19 @@
1111
### 特性
1212

1313
- **监视选项任意组合,满足多样化的使用需求**[[?]](https://github.com/geeeeeeeeek/WeChatLuckyMoney/issues/48)
14-
14+
1515
提供了`系统通知`/`聊天列表`/`聊天页面`三档选项,无论是想要谨慎不被察觉,还是想要高效志在必得,这个插件如你所愿。
16-
16+
1717
- **不仅快人一步,红包识别更加智能**
18-
18+
1919
多种特征标识,聊天时不再重复点击红包。智能过滤红包关键字[[?]](https://github.com/geeeeeeeeek/WeChatLuckyMoney/issues/97),避免落入“专属红包”、“抢到翻倍”的陷阱。还可以设置延时抢红包和自动回复感谢语[[?]](https://github.com/geeeeeeeeek/WeChatLuckyMoney/issues/118)
20-
20+
2121
- **紧跟微信更新,内置最新春节红包资讯**
22-
22+
2323
第一时间适配最新版本微信,应用内即可一键更新。
24-
24+
2525
- **轻量、安全、值得信赖**
26-
26+
2727
安装包仅1M,无需ROOT,下载即用。代码公开透明,活跃的社区讨论,数万用户下载,值得你的信赖。
2828

2929
### 使用方法
@@ -47,3 +47,10 @@
4747
插件可能会在一定程度上改变微信的交互方式。使用本项目中包含的代码及其生成物时,使用者自行承担随之而来的各种风险,包括但不限于“禁用红包功能”、“微信封号”。
4848

4949
本项目使用[MIT许可证](https://github.com/geeeeeeeeek/WeChatLuckyMoney/blob/stable/LICENSE.md)
50+
51+
### 应用截图
52+
53+
![608460845](https://cloud.githubusercontent.com/assets/7262715/17330401/4ade682a-58f9-11e6-8b27-3c24941eee24.jpg)
54+
![805028608](https://cloud.githubusercontent.com/assets/7262715/17330399/4a6b44d0-58f9-11e6-99bf-c2f89d019145.jpg)
55+
![1627530051](https://cloud.githubusercontent.com/assets/7262715/17330397/4a388946-58f9-11e6-85b6-04b406d27dba.jpg)
56+

README_EN.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# WeChat Lucky Money
22

3-
[![forthebadge](http://forthebadge.com/images/badges/designed-in-ms-paint.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/built-by-codebabes.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/powered-by-electricity.svg)](http://forthebadge.com)
4-
53
<a href="https://play.google.com/store/apps/details?id=xyz.monkeytong.hongbao"><img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" height="48"></a>
64

75
[![Gitter](https://badges.gitter.im/geeeeeeeeek/WeChatLuckyMoney.svg)](https://gitter.im/geeeeeeeeek/WeChatLuckyMoney?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge) [![Build Status](https://travis-ci.org/geeeeeeeeek/WeChatLuckyMoney.svg?branch=stable)](https://travis-ci.org/geeeeeeeeek/WeChatLuckyMoney) [**中文 README**](https://github.com/geeeeeeeeek/WeChatLuckyMoney/blob/stable/README.md)
@@ -13,19 +11,19 @@ Please goto the [**Release**](https://github.com/geeeeeeeeek/WeChatLuckyMoney/re
1311
### Spotlights
1412

1513
- **What to watch is at your choice**[[?]](https://github.com/geeeeeeeeek/WeChatLuckyMoney/issues/48)
16-
14+
1715
Three levels of watch options: `notification`/`chat list`/`chat page`. Whatever a coutious man or an ambitious one you wanna be, the choice is at yours.
18-
16+
1917
- **More intelligent algorithm**
20-
18+
2119
Multiple features used to identify a red envelope. No more repeated clickings. Anti-anti-plugin strategies are protecting the app from disability.
22-
20+
2321
- **Auto update checking**
24-
22+
2523
Work with the latest version of WeChat. Update available inside your app.
26-
24+
2725
- **Light, safe, and trustful**
28-
26+
2927
Tha package is as light as 1Mb. With code open sourced, active community discussions, tens of thousands of downloads, it's worth your trust.
3028

3129
### How to use

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
applicationId "xyz.monkeytong.hongbao"
99
minSdkVersion 16
1010
targetSdkVersion 22
11-
versionCode 3
12-
versionName "v3.0"
11+
versionCode 4
12+
versionName "v3.0.1"
1313
ndk {
1414
//设置支持的SO库架构
1515
abiFilters 'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'

app/src/main/java/xyz/monkeytong/hongbao/activities/MainActivity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,11 @@ protected void onDestroy() {
9393

9494
public void openAccessibility(View view) {
9595
try {
96+
Toast.makeText(this, "点击「微信红包」" + pluginStatusText.getText(), Toast.LENGTH_SHORT).show();
9697
Intent accessibleIntent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
9798
startActivity(accessibleIntent);
9899
} catch (Exception e) {
99-
Toast.makeText(this, "遇到一些问题,请手动打开系统设置>辅助服务>微信红包(ฅ´ω`ฅ)", Toast.LENGTH_LONG).show();
100+
Toast.makeText(this, "遇到一些问题,请手动打开系统设置>无障碍服务>微信红包(ฅ´ω`ฅ)", Toast.LENGTH_LONG).show();
100101
e.printStackTrace();
101102
}
102103

@@ -111,7 +112,7 @@ public void openGitHub(View view) {
111112

112113
public void openUber(View view) {
113114
Intent webViewIntent = new Intent(this, WebViewActivity.class);
114-
webViewIntent.putExtra("title", "Uber 优惠乘车机会");
115+
webViewIntent.putExtra("title", "Uber 优惠乘车机会(优惠码rgk2wue)");
115116
webViewIntent.putExtra("url", "https://get.uber.com.cn/invite/rgk2wue");
116117
startActivity(webViewIntent);
117118
}

app/src/main/java/xyz/monkeytong/hongbao/activities/WebViewActivity.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
import android.annotation.TargetApi;
44
import android.app.Activity;
5+
import android.app.DownloadManager;
56
import android.content.Intent;
67
import android.net.Uri;
78
import android.os.Build;
89
import android.os.Bundle;
10+
import android.os.Environment;
911
import android.preference.Preference;
1012
import android.preference.PreferenceActivity;
1113
import android.preference.PreferenceManager;
1214
import android.provider.Settings;
15+
import android.util.Log;
1316
import android.view.KeyEvent;
1417
import android.view.View;
1518
import android.view.Window;
@@ -20,7 +23,9 @@
2023
import android.webkit.WebViewClient;
2124
import android.widget.EditText;
2225
import android.widget.TextView;
26+
import android.widget.Toast;
2327
import xyz.monkeytong.hongbao.R;
28+
import xyz.monkeytong.hongbao.utils.DownloadUtil;
2429
import xyz.monkeytong.hongbao.utils.UpdateTask;
2530

2631
/**
@@ -53,8 +58,14 @@ protected void onCreate(Bundle savedInstanceState) {
5358
webView.setWebViewClient(new WebViewClient() {
5459
@Override
5560
public boolean shouldOverrideUrlLoading(WebView view, String url) {
56-
view.loadUrl(url);
57-
return false;
61+
if (url.indexOf("apk") > 0) {
62+
Toast.makeText(getApplicationContext(), "正在准备下载", Toast.LENGTH_SHORT).show();
63+
(new DownloadUtil()).enqueue(url, getApplicationContext());
64+
return true;
65+
} else {
66+
view.loadUrl(url);
67+
return false;
68+
}
5869
}
5970

6071
@Override
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package xyz.monkeytong.hongbao.utils;
2+
3+
import android.app.DownloadManager;
4+
import android.content.Context;
5+
import android.net.Uri;
6+
import android.os.Environment;
7+
8+
import java.net.URI;
9+
10+
import static android.content.Context.DOWNLOAD_SERVICE;
11+
12+
/**
13+
* Created by Zhongyi on 8/1/16.
14+
*/
15+
public class DownloadUtil {
16+
public void enqueue(String url, Context context) {
17+
DownloadManager.Request r = new DownloadManager.Request(Uri.parse(url));
18+
r.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "Uber.apk");
19+
r.allowScanningByMediaScanner();
20+
r.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
21+
DownloadManager dm = (DownloadManager) context.getSystemService(DOWNLOAD_SERVICE);
22+
dm.enqueue(r);
23+
}
24+
}

0 commit comments

Comments
 (0)