_receivers) {
- this.intent = _intent;
- this.receivers = _receivers;
- }
- }
-
- private static class ReceiverRecord {
- final IntentFilter filter;
- final BroadcastReceiver receiver;
- boolean broadcasting;
-
- ReceiverRecord(IntentFilter _filter, BroadcastReceiver _receiver) {
- this.filter = _filter;
- this.receiver = _receiver;
- }
-
- public String toString() {
- StringBuilder builder = new StringBuilder(128);
- builder.append("Receiver{");
- builder.append(this.receiver);
- builder.append(" filter=");
- builder.append(this.filter);
- builder.append("}");
- return builder.toString();
- }
- }
-}
\ No newline at end of file
diff --git a/src/com/aoleyun/os/jpush/Logger.java b/src/com/aoleyun/os/jpush/Logger.java
deleted file mode 100644
index a9dfe7f..0000000
--- a/src/com/aoleyun/os/jpush/Logger.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.aoleyun.os.jpush;
-
-import android.util.Log;
-
-/**
- * Created by efan on 2017/4/13.
- */
-
-public class Logger {
-
- //设为false关闭日志
- private static final boolean LOG_ENABLE = true;
-
- public static void i(String tag, String msg){
- if (LOG_ENABLE){
- Log.i(tag, msg);
- }
- }
- public static void v(String tag, String msg){
- if (LOG_ENABLE){
- Log.v(tag, msg);
- }
- }
- public static void d(String tag, String msg){
- if (LOG_ENABLE){
- Log.d(tag, msg);
- }
- }
- public static void w(String tag, String msg){
- if (LOG_ENABLE){
- Log.w(tag, msg);
- }
- }
- public static void e(String tag, String msg){
- if (LOG_ENABLE){
- Log.e(tag, msg);
- }
- }
-
-}
diff --git a/src/com/aoleyun/os/jpush/MyJPushMessageReceiver.java b/src/com/aoleyun/os/jpush/MyJPushMessageReceiver.java
deleted file mode 100644
index 8b0a136..0000000
--- a/src/com/aoleyun/os/jpush/MyJPushMessageReceiver.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.aoleyun.os.jpush;
-
-import android.content.Context;
-
-import com.aoleyun.os.base.BaseApplication;
-
-/**
- * 自定义JPush message 接收器,包括操作tag/alias的结果返回(仅仅包含tag/alias新接口部分)
- * */
-//public class MyJPushMessageReceiver extends JPushMessageReceiver {
-//
-// @Override
-// public void onTagOperatorResult(Context context, JPushMessage jPushMessage) {
-// TagAliasOperatorHelper.getInstance().onTagOperatorResult(context,jPushMessage);
-// super.onTagOperatorResult(context, jPushMessage);
-// BaseApplication.getInstance().onTagOperatorResult(jPushMessage);
-// }
-// @Override
-// public void onCheckTagOperatorResult(Context context, JPushMessage jPushMessage){
-// TagAliasOperatorHelper.getInstance().onCheckTagOperatorResult(context,jPushMessage);
-// super.onCheckTagOperatorResult(context, jPushMessage);
-// }
-// @Override
-// public void onAliasOperatorResult(Context context, JPushMessage jPushMessage) {
-// TagAliasOperatorHelper.getInstance().onAliasOperatorResult(context,jPushMessage);
-// super.onAliasOperatorResult(context, jPushMessage);
-// BaseApplication.getInstance().onAliasOperatorResult(jPushMessage);
-// }
-//
-// @Override
-// public void onMobileNumberOperatorResult(Context context, JPushMessage jPushMessage) {
-// TagAliasOperatorHelper.getInstance().onMobileNumberOperatorResult(context,jPushMessage);
-// super.onMobileNumberOperatorResult(context, jPushMessage);
-// }
-//
-// @Override
-// public void onMessage(Context context, CustomMessage customMessage) {
-// super.onMessage(context, customMessage);
-// }
-//}
diff --git a/src/com/aoleyun/os/jpush/MyReceiver.java b/src/com/aoleyun/os/jpush/MyReceiver.java
deleted file mode 100644
index f2236c5..0000000
--- a/src/com/aoleyun/os/jpush/MyReceiver.java
+++ /dev/null
@@ -1,151 +0,0 @@
-package com.aoleyun.os.jpush;
-
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.os.Bundle;
-import android.text.TextUtils;
-
-import com.aoleyun.os.network.HTTPInterface;
-import com.aoleyun.os.service.MainService;
-import com.aoleyun.os.uiuiutils.ForegroundAppUtil;
-
-import org.json.JSONException;
-import org.json.JSONObject;
-
-import java.util.Iterator;
-
-/**
- * 自定义接收器
- *
- * 如果不定义这个 Receiver,则:
- * 1) 默认用户会打开主界面
- * 2) 接收不到自定义消息
- */
-//public class MyReceiver extends BroadcastReceiver {
-// private static final String TAG = "JIGUANG-Example";
-//
-// @Override
-// public void onReceive(Context context, Intent intent) {
-// try {
-// Bundle bundle = intent.getExtras();
-// Logger.d(TAG, "[MyReceiver] onReceive - " + intent.getAction() + ", extras: " + printBundle(bundle));
-//
-// if (JPushInterface.ACTION_REGISTRATION_ID.equals(intent.getAction())) {
-// String regId = bundle.getString(JPushInterface.EXTRA_REGISTRATION_ID);
-// Logger.d(TAG, "[MyReceiver] 接收Registration Id : " + regId);
-// //send the Registration Id to your server...
-//
-// } else if (JPushInterface.ACTION_MESSAGE_RECEIVED.equals(intent.getAction())) {
-// Logger.d(TAG, "[MyReceiver] 接收到推送下来的自定义消息: " + bundle.getString(JPushInterface.EXTRA_MESSAGE));
-// processCustomMessage(context, bundle);
-//
-// } else if (JPushInterface.ACTION_NOTIFICATION_RECEIVED.equals(intent.getAction())) {
-// Logger.d(TAG, "[MyReceiver] 接收到推送下来的通知");
-// int notifactionId = bundle.getInt(JPushInterface.EXTRA_NOTIFICATION_ID);
-// Logger.d(TAG, "[MyReceiver] 接收到推送下来的通知的ID: " + notifactionId);
-//
-// } else if (JPushInterface.ACTION_NOTIFICATION_OPENED.equals(intent.getAction())) {
-// Logger.d(TAG, "[MyReceiver] 用户点击打开了通知");
-//
-// //打开自定义的Activity
-// Intent i = new Intent(context, TestActivity.class);
-// i.putExtras(bundle);
-// //i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
-// i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
-// context.startActivity(i);
-//
-// } else if (JPushInterface.ACTION_CONNECTION_CHANGE.equals(intent.getAction())) {
-// boolean connected = intent.getBooleanExtra(JPushInterface.EXTRA_CONNECTION_CHANGE, false);
-// Logger.w(TAG, "[MyReceiver]" + intent.getAction() + " connected state change to " + connected);
-// } else {
-// Logger.d(TAG, "[MyReceiver] Unhandled intent - " + intent.getAction());
-// }
-// } catch (Exception e) {
-//
-// }
-//
-// }
-//
-// // 打印所有的 intent extra 数据
-// private static String printBundle(Bundle bundle) {
-// StringBuilder sb = new StringBuilder();
-// for (String key : bundle.keySet()) {
-// if (key.equals(JPushInterface.EXTRA_NOTIFICATION_ID)) {
-// sb.append("\nkey:" + key + ", value:" + bundle.getInt(key));
-// } else if (key.equals(JPushInterface.EXTRA_CONNECTION_CHANGE)) {
-// sb.append("\nkey:" + key + ", value:" + bundle.getBoolean(key));
-// } else if (key.equals(JPushInterface.EXTRA_EXTRA)) {
-// if (TextUtils.isEmpty(bundle.getString(JPushInterface.EXTRA_EXTRA))) {
-// Logger.i(TAG, "This message has no Extra data");
-// continue;
-// }
-//
-// try {
-// JSONObject json = new JSONObject(bundle.getString(JPushInterface.EXTRA_EXTRA));
-// Iterator it = json.keys();
-//
-// while (it.hasNext()) {
-// String myKey = it.next();
-// sb.append("\nkey:" + key + ", value: [" +
-// myKey + " - " + json.optString(myKey) + "]");
-// }
-// } catch (JSONException e) {
-// Logger.e(TAG, "Get message extra JSON error!");
-// }
-//
-// } else {
-// sb.append("\nkey:" + key + ", value:" + bundle.get(key));
-// }
-// }
-// return sb.toString();
-// }
-//
-// private static final String SEND_RUNNING_APP = "2";
-// //应用锁
-// private static final String UPDATE_APP_LOCK = "39";
-//
-//
-// //send msg to MainActivity
-// private void processCustomMessage(Context context, Bundle bundle) {
-//// if (Launcher.isForeground) {
-//// String message = bundle.getString(JPushInterface.EXTRA_MESSAGE);
-//// String extras = bundle.getString(JPushInterface.EXTRA_EXTRA);
-//// Intent msgIntent = new Intent(Launcher.MESSAGE_RECEIVED_ACTION);
-//// msgIntent.putExtra(Launcher.KEY_MESSAGE, message);
-//// if (!ExampleUtil.isEmpty(extras)) {
-//// try {
-//// JSONObject extraJson = new JSONObject(extras);
-//// if (extraJson.length() > 0) {
-//// msgIntent.putExtra(Launcher.KEY_EXTRAS, extras);
-//// }
-//// } catch (JSONException e) {
-////
-//// }
-////
-//// }
-//// LocalBroadcastManager.getInstance(context).sendBroadcast(msgIntent);
-//// }
-//
-// String message = bundle.getString(JPushInterface.EXTRA_MESSAGE);
-// String title = bundle.getString(JPushInterface.EXTRA_TITLE);
-// String type = bundle.getString(JPushInterface.EXTRA_CONTENT_TYPE);
-// String extras = bundle.getString(JPushInterface.EXTRA_EXTRA);
-//
-// switch (message) {
-// case SEND_RUNNING_APP:
-// getRunningApp(context);
-// break;
-// case UPDATE_APP_LOCK:
-// HTTPInterface.getAppPasswd();
-// break;
-// default:
-// break;
-// }
-// }
-//
-// private void getRunningApp(Context context) {
-// HTTPInterface.sendRunningApp(context);
-// }
-//
-//}
diff --git a/src/com/aoleyun/os/jpush/PushService.java b/src/com/aoleyun/os/jpush/PushService.java
deleted file mode 100644
index 06cdefd..0000000
--- a/src/com/aoleyun/os/jpush/PushService.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.aoleyun.os.jpush;
-
-
-//public class PushService extends JCommonService {
-//
-//}
diff --git a/src/com/aoleyun/os/jpush/TagAliasOperatorHelper.java b/src/com/aoleyun/os/jpush/TagAliasOperatorHelper.java
deleted file mode 100644
index 55f9394..0000000
--- a/src/com/aoleyun/os/jpush/TagAliasOperatorHelper.java
+++ /dev/null
@@ -1,344 +0,0 @@
-package com.aoleyun.os.jpush;
-
-import android.content.Context;
-import android.os.Handler;
-import android.os.Message;
-import android.util.Log;
-import android.util.SparseArray;
-
-import com.aoleyun.os.uiuiutils.ToastUtil;
-
-import java.util.Locale;
-import java.util.Set;
-
-/**
- * 处理tagalias相关的逻辑
- * */
-//public class TagAliasOperatorHelper {
-// private static final String TAG = "JIGUANG-TagAliasHelper";
-// public static int sequence = 1;
-// /**增加*/
-// public static final int ACTION_ADD = 1;
-// /**覆盖*/
-// public static final int ACTION_SET = 2;
-// /**删除部分*/
-// public static final int ACTION_DELETE = 3;
-// /**删除所有*/
-// public static final int ACTION_CLEAN = 4;
-// /**查询*/
-// public static final int ACTION_GET = 5;
-//
-// public static final int ACTION_CHECK = 6;
-//
-// public static final int DELAY_SEND_ACTION = 1;
-//
-// public static final int DELAY_SET_MOBILE_NUMBER_ACTION = 2;
-//
-// private Context context;
-//
-// private static TagAliasOperatorHelper mInstance;
-// private TagAliasOperatorHelper(){
-// }
-// public static TagAliasOperatorHelper getInstance(){
-// if(mInstance == null){
-// synchronized (TagAliasOperatorHelper.class){
-// if(mInstance == null){
-// mInstance = new TagAliasOperatorHelper();
-// }
-// }
-// }
-// return mInstance;
-// }
-// public void init(Context context){
-// if(context != null) {
-// this.context = context.getApplicationContext();
-// }
-// }
-// private SparseArray