From 48e246c295b8e30968f543608483e4c8f7c3d686 Mon Sep 17 00:00:00 2001 From: Zhongyi Tong Date: Tue, 19 Jan 2016 00:41:20 +0800 Subject: [PATCH] Change package name to xyz.monkeytong.hongbao. --- README.md | 2 +- README_EN.md | 2 +- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 6 +++--- .../miui => xyz/monkeytong}/hongbao/HongbaoService.java | 5 +---- .../{com/miui => xyz/monkeytong}/hongbao/MainActivity.java | 5 +---- 6 files changed, 8 insertions(+), 14 deletions(-) rename app/src/main/java/{com/miui => xyz/monkeytong}/hongbao/HongbaoService.java (98%) rename app/src/main/java/{com/miui => xyz/monkeytong}/hongbao/MainActivity.java (96%) diff --git a/README.md b/README.md index 321e05c9..49f3b1b1 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ ## **版权及免责声明** -本项目源自小米今年秋季发布会时演示的抢红包测试[源码](https://github.com/XiaoMi/LuckyMoneyTool)。stable分支基于此代码继续开发,dev分支重写了几乎所有的逻辑代码。应用的包名com.miui.hongbao未变。 +本项目源自小米今年秋季发布会时演示的抢红包测试[源码](https://github.com/XiaoMi/LuckyMoneyTool)。stable分支基于此代码继续开发,dev分支重写了几乎所有的逻辑代码。 由于插件可能会改变自然的微信交互方式,这份代码仅可用于教学目的,不得更改后用于其他用途。对于使用插件时可能发生的任何情形,由使用者自行承担,包括但不限于“禁用红包功能”、“微信封号”。 diff --git a/README_EN.md b/README_EN.md index 54612642..1d849a4c 100644 --- a/README_EN.md +++ b/README_EN.md @@ -28,6 +28,6 @@ The following doc is targeted at **stable branch**. ## License -The project was heavily inspired by an [app](https://github.com/XiaoMi/LuckyMoneyTool) demonstrated on XiaoMi's news conference for its phone product this autumn. The stable branch is developed after this, while the dev branch rewrites nearly all the code. The package name remains unchanged as `com.miui.hongbao`. +The project was heavily inspired by an [app](https://github.com/XiaoMi/LuckyMoneyTool) demonstrated on XiaoMi's news conference for its phone product this autumn. The stable branch is developed after this, while the dev branch rewrites nearly all the code. **Note that:** This app might alter the natural way of interactions with WeChat. Thus the code is restricted to educational use only. You are *not* allowed to use it for other purposes. You must understand and be fully responsiable of the potential risks of using the app, including "being forbidden to use WeChat Lucky Money functionality", etc. \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 64292aa9..ede0aae0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,7 +5,7 @@ android { buildToolsVersion "22.0.1" defaultConfig { - applicationId "com.miui.hongbao" + applicationId "xyz.monkeytong.hongbao" minSdkVersion 15 targetSdkVersion 22 versionCode 2 diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ba168a9f..1546c878 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + package="xyz.monkeytong.hongbao"> @@ -17,7 +17,7 @@ diff --git a/app/src/main/java/com/miui/hongbao/HongbaoService.java b/app/src/main/java/xyz/monkeytong/hongbao/HongbaoService.java similarity index 98% rename from app/src/main/java/com/miui/hongbao/HongbaoService.java rename to app/src/main/java/xyz/monkeytong/hongbao/HongbaoService.java index d0c52715..13f8efcb 100644 --- a/app/src/main/java/com/miui/hongbao/HongbaoService.java +++ b/app/src/main/java/xyz/monkeytong/hongbao/HongbaoService.java @@ -1,11 +1,8 @@ -package com.miui.hongbao; +package xyz.monkeytong.hongbao; import android.accessibilityservice.AccessibilityService; import android.annotation.TargetApi; -import android.app.Notification; -import android.app.PendingIntent; import android.os.Build; -import android.os.Parcelable; import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityNodeInfo; diff --git a/app/src/main/java/com/miui/hongbao/MainActivity.java b/app/src/main/java/xyz/monkeytong/hongbao/MainActivity.java similarity index 96% rename from app/src/main/java/com/miui/hongbao/MainActivity.java rename to app/src/main/java/xyz/monkeytong/hongbao/MainActivity.java index 3086e6f3..33e73376 100644 --- a/app/src/main/java/com/miui/hongbao/MainActivity.java +++ b/app/src/main/java/xyz/monkeytong/hongbao/MainActivity.java @@ -1,7 +1,6 @@ -package com.miui.hongbao; +package xyz.monkeytong.hongbao; import android.accessibilityservice.AccessibilityServiceInfo; -import android.app.ActionBar; import android.app.Activity; import android.content.Context; import android.content.Intent; @@ -13,11 +12,9 @@ import android.view.WindowManager; import android.view.accessibility.AccessibilityManager; import android.widget.Button; -import android.widget.TextView; import java.lang.reflect.Field; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.List;