Commit 07eb36e2 authored by xgz's avatar xgz

增加混淆

parent c1027828
// OkHttp相关
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.squareup.okhttp3.** { *; }
-keep interface com.squareup.okhttp3.** { *; }
-dontwarn com.squareup.okhttp3.**
// Okio相关
-keep class sun.misc.Unsafe { *; }
-dontwarn java.nio.file.*
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-dontwarn okio.**
// UIL相关
-keep class com.nostra13.universalimageloader.** { *; }
-keepclassmembers class com.nostra13.universalimageloader.** {*;}
-dontwarn com.nostra13.universalimageloader.**
// Glide相关
-keep class com.bumptech.glide.Glide { *; }
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
**[] $VALUES;
public *;
}
-dontwarn com.bumptech.glide.**
// Picasso相关
-keep class com.squareup.picasso.Picasso { *; }
-dontwarn com.squareup.okhttp.**
-dontwarn com.squareup.picasso.**
// xUtils3相关
-keepattributes Signature,*Annotation*
-keep public class org.xutils.** {
public protected *;
}
-keep public interface org.xutils.** {
public protected *;
}
-keepclassmembers class * extends org.xutils.** {
public protected *;
}
-keepclassmembers @org.xutils.db.annotation.* class * {*;}
-keepclassmembers @org.xutils.http.annotation.* class * {*;}
-keepclassmembers class * {
@org.xutils.view.annotation.Event <methods>;
}
-dontwarn org.xutils.**
\ No newline at end of file
...@@ -16,10 +16,10 @@ public class SwiftFlutterMeiqiaPlugin: NSObject, FlutterPlugin { ...@@ -16,10 +16,10 @@ public class SwiftFlutterMeiqiaPlugin: NSObject, FlutterPlugin {
switch call.method { switch call.method {
case "initMQ": case "initMQ":
initMQ(call, result: result) initMQ(call, result: result)
case "startMQ": // case "startMQ":
startMeiqia(call, result: result) // startMeiqia(call, result: result)
case "closeMQ": // case "closeMQ":
closeMeiqia(call, result: result) // closeMeiqia(call, result: result)
case "pushToMQVC": case "pushToMQVC":
pushToMeiqiaVC(call, result: result) pushToMeiqiaVC(call, result: result)
case "getLocalUnreadeMessagesCount": case "getLocalUnreadeMessagesCount":
...@@ -39,16 +39,16 @@ public class SwiftFlutterMeiqiaPlugin: NSObject, FlutterPlugin { ...@@ -39,16 +39,16 @@ public class SwiftFlutterMeiqiaPlugin: NSObject, FlutterPlugin {
} }
} }
} }
func startMeiqia(_ call: FlutterMethodCall,result: @escaping FlutterResult) { // func startMeiqia(_ call: FlutterMethodCall,result: @escaping FlutterResult) {
//进入前台 打开meiqia服务 // //进入前台 打开meiqia服务
MQManager.openMeiqiaService() // MQManager.openMeiqiaService()
result(true); // result(true);
} // }
func closeMeiqia(_ call: FlutterMethodCall,result: @escaping FlutterResult) { // func closeMeiqia(_ call: FlutterMethodCall,result: @escaping FlutterResult) {
//进入后台 关闭美洽服务 // //进入后台 关闭美洽服务
MQManager.closeMeiqiaService() // MQManager.closeMeiqiaService()
result(true); // result(true);
} // }
func pushToMeiqiaVC(_ call: FlutterMethodCall,result: @escaping FlutterResult) { func pushToMeiqiaVC(_ call: FlutterMethodCall,result: @escaping FlutterResult) {
//跳转聊天界面 //跳转聊天界面
let vc = MQChatViewManager.init() let vc = MQChatViewManager.init()
...@@ -80,4 +80,12 @@ extension SwiftFlutterMeiqiaPlugin{ ...@@ -80,4 +80,12 @@ extension SwiftFlutterMeiqiaPlugin{
//上传设备deviceToken //上传设备deviceToken
MQManager.registerDeviceToken(deviceToken) MQManager.registerDeviceToken(deviceToken)
} }
public func applicationWillEnterForeground(_ application: UIApplication) {
MQManager.openMeiqiaService()
}
public func applicationDidEnterBackground(_ application: UIApplication) {
MQManager.closeMeiqiaService()
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment