Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_meiqia
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_meiqia
Commits
07eb36e2
Commit
07eb36e2
authored
Feb 10, 2021
by
xgz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加混淆
parent
c1027828
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
14 deletions
+66
-14
android/proguard-rules.pro
android/proguard-rules.pro
+44
-0
ios/Classes/SwiftFlutterMeiqiaPlugin.swift
ios/Classes/SwiftFlutterMeiqiaPlugin.swift
+22
-14
No files found.
android/proguard-rules.pro
0 → 100644
View file @
07eb36e2
//
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
ios/Classes/SwiftFlutterMeiqiaPlugin.swift
View file @
07eb36e2
...
@@ -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
()
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment