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

Commit

Permalink
Update docs for v3.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhongyi Tong committed Aug 2, 2016
1 parent 6b1eba8 commit b875a23
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 65 deletions.
4 changes: 2 additions & 2 deletions .idea/modules/app/app.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 9 additions & 40 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,34 @@
# 更新日志

**[v3.0 (2016.08.02)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v3.0.1)**

- 优化 重新设计UI,风格更加简洁明快。提升“社区”和“设置”的视觉优先级,开启插件更顺手。
- 新增 Uber免费乘车优惠。
- 新增 适配微信6.3.22。
- 新增 Android N (牛轧糖) 适配(预计v3.1完成)
- 修复 Bugly高优先级的问题。

**[v2.3 (2016.02.07)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v2.3)**

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



**[v2.2 (2016.02.04)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v2.2)**

- 新增 延时拆开红包的可选项


- 新增 跳转至浏览器打开的入口
- 新增 接入腾讯Bugly
- 新增 自动回复的可选项(实验中)


- 优化 手动拆开的红包不返回


- 优化 适配三星等坑爹机型 (感谢 [@firesunCN](https://github.com/firesunCN) 对这项修改的贡献)


- 修复 拆开红包后的多次返回问题



**[v2.1 (2016.01.30)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v2.1.1)**

- 新增 屏蔽指定红包文字的可选项


- 新增 息屏抢红包的可选项


- 新增 不拆开自己发的红包的可选项


- 新增 内置红包攻略


- 新增 所有链接默认用内置WebView打开
- 优化 仅在WiFi环境下回到应用时检测更新
- 优化 抢红包的逻辑流程,减少了一些误判情形
Expand All @@ -50,8 +38,6 @@
- 修复 在其他界面会做额外的操作的问题 (感谢 @sxyy 对这项修改的贡献)
- 修复 响应Notification进入聊天后,可能误判不抢的问题 (感谢 @tttony3 对这项修改的贡献)



**[v2.0.1 (2016.01.23)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v2.0.1)**

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

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


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


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


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


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


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


- 替换包名. Substitute the original package name.

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



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

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



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

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


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



**[v1.2 (2015.12.17)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v1.2)**

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

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


- 修改了红包重复判断的逻辑,戳“名称与缓存不一致的红包”和“名称一致且间隔大于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.



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

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



**[v1.0 (2015.10.07)](https://github.com/geeeeeeeeek/WeChatLuckyMoney/releases/tag/v1.0)**

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


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



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

- 对源码进行了少量修改。
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 微信红包

<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>
<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>

[![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)

Expand All @@ -11,19 +11,19 @@
### 特性

- **监视选项任意组合,满足多样化的使用需求**[[?]](https://github.com/geeeeeeeeek/WeChatLuckyMoney/issues/48)

提供了`系统通知`/`聊天列表`/`聊天页面`三档选项,无论是想要谨慎不被察觉,还是想要高效志在必得,这个插件如你所愿。

- **不仅快人一步,红包识别更加智能**

多种特征标识,聊天时不再重复点击红包。智能过滤红包关键字[[?]](https://github.com/geeeeeeeeek/WeChatLuckyMoney/issues/97),避免落入“专属红包”、“抢到翻倍”的陷阱。还可以设置延时抢红包和自动回复感谢语[[?]](https://github.com/geeeeeeeeek/WeChatLuckyMoney/issues/118)

- **紧跟微信更新,内置最新春节红包资讯**

第一时间适配最新版本微信,应用内即可一键更新。

- **轻量、安全、值得信赖**

安装包仅1M,无需ROOT,下载即用。代码公开透明,活跃的社区讨论,数万用户下载,值得你的信赖。

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

本项目使用[MIT许可证](https://github.com/geeeeeeeeek/WeChatLuckyMoney/blob/stable/LICENSE.md)

### 应用截图

![608460845](https://cloud.githubusercontent.com/assets/7262715/17330401/4ade682a-58f9-11e6-8b27-3c24941eee24.jpg)
![805028608](https://cloud.githubusercontent.com/assets/7262715/17330399/4a6b44d0-58f9-11e6-99bf-c2f89d019145.jpg)
![1627530051](https://cloud.githubusercontent.com/assets/7262715/17330397/4a388946-58f9-11e6-85b6-04b406d27dba.jpg)

16 changes: 7 additions & 9 deletions README_EN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# WeChat Lucky Money

[![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)

<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>

[![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)
Expand All @@ -13,19 +11,19 @@ Please goto the [**Release**](https://github.com/geeeeeeeeek/WeChatLuckyMoney/re
### Spotlights

- **What to watch is at your choice**[[?]](https://github.com/geeeeeeeeek/WeChatLuckyMoney/issues/48)

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.

- **More intelligent algorithm**

Multiple features used to identify a red envelope. No more repeated clickings. Anti-anti-plugin strategies are protecting the app from disability.

- **Auto update checking**

Work with the latest version of WeChat. Update available inside your app.

- **Light, safe, and trustful**

Tha package is as light as 1Mb. With code open sourced, active community discussions, tens of thousands of downloads, it's worth your trust.

### How to use
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "xyz.monkeytong.hongbao"
minSdkVersion 16
targetSdkVersion 22
versionCode 3
versionName "v3.0"
versionCode 4
versionName "v3.0.1"
ndk {
//设置支持的SO库架构
abiFilters 'armeabi' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ protected void onDestroy() {

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

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

public void openUber(View view) {
Intent webViewIntent = new Intent(this, WebViewActivity.class);
webViewIntent.putExtra("title", "Uber 优惠乘车机会");
webViewIntent.putExtra("title", "Uber 优惠乘车机会(优惠码rgk2wue)");
webViewIntent.putExtra("url", "https://get.uber.com.cn/invite/rgk2wue");
startActivity(webViewIntent);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

import android.annotation.TargetApi;
import android.app.Activity;
import android.app.DownloadManager;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;
import android.provider.Settings;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
Expand All @@ -20,7 +23,9 @@
import android.webkit.WebViewClient;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import xyz.monkeytong.hongbao.R;
import xyz.monkeytong.hongbao.utils.DownloadUtil;
import xyz.monkeytong.hongbao.utils.UpdateTask;

/**
Expand Down Expand Up @@ -53,8 +58,14 @@ protected void onCreate(Bundle savedInstanceState) {
webView.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return false;
if (url.indexOf("apk") > 0) {
Toast.makeText(getApplicationContext(), "正在准备下载", Toast.LENGTH_SHORT).show();
(new DownloadUtil()).enqueue(url, getApplicationContext());
return true;
} else {
view.loadUrl(url);
return false;
}
}

@Override
Expand Down
24 changes: 24 additions & 0 deletions app/src/main/java/xyz/monkeytong/hongbao/utils/DownloadUtil.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package xyz.monkeytong.hongbao.utils;

import android.app.DownloadManager;
import android.content.Context;
import android.net.Uri;
import android.os.Environment;

import java.net.URI;

import static android.content.Context.DOWNLOAD_SERVICE;

/**
* Created by Zhongyi on 8/1/16.
*/
public class DownloadUtil {
public void enqueue(String url, Context context) {
DownloadManager.Request r = new DownloadManager.Request(Uri.parse(url));
r.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "Uber.apk");
r.allowScanningByMediaScanner();
r.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
DownloadManager dm = (DownloadManager) context.getSystemService(DOWNLOAD_SERVICE);
dm.enqueue(r);
}
}

0 comments on commit b875a23

Please sign in to comment.