Skip to content

Commit 03be6e8

Browse files
authored
Merge pull request #39 from jpush/dev
v0.6.2
2 parents 796e381 + 39b7ad1 commit 03be6e8

File tree

10 files changed

+66
-51
lines changed

10 files changed

+66
-51
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.6.2
2+
+ 同步 JVerification SDK 版本
3+
+ 内部安全策略优化
14
## 0.6.1
25
+ 优化:Android 回调 flutter 的回调函数
36
+ 优化重复请求逻辑

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies:
1919

2020
```
2121
dependencies:
22-
jverify: 0.6.1
22+
jverify: 0.6.2
2323
```
2424

2525
### 配置

android/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ android {
2525
compileSdkVersion 28
2626

2727
defaultConfig {
28-
minSdkVersion 16
28+
minSdkVersion 17
2929
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
3030

3131

@@ -40,5 +40,5 @@ android {
4040
dependencies {
4141
compileOnly files('libs/flutter.jar')
4242
implementation 'cn.jiguang.sdk:jverification:2.5.2'
43-
implementation 'cn.jiguang.sdk:jcore:2.1.6'
43+
implementation 'cn.jiguang.sdk:jcore:2.2.6'
4444
}

android/src/main/java/com/jiguang/jverify/JverifyPlugin.java

+1-38
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@
4646
import io.flutter.plugin.common.MethodChannel.Result;
4747
import io.flutter.plugin.common.PluginRegistry.Registrar;
4848

49-
class JVRequestItem {
50-
public MethodCall call;
51-
Result result;
52-
}
49+
5350

5451
/** JverifyPlugin */
5552
public class JverifyPlugin implements MethodCallHandler {
@@ -74,7 +71,6 @@ public class JverifyPlugin implements MethodCallHandler {
7471

7572
private Context context;
7673
private MethodChannel channel;
77-
private HashMap<String,JVRequestItem> requestQueue = new HashMap();
7874

7975
/** Plugin registration. */
8076
public static void registerWith(Registrar registrar) {
@@ -92,28 +88,6 @@ private JverifyPlugin(Registrar registrar,MethodChannel channel){
9288
public void onMethodCall(MethodCall call, Result result) {
9389
Log.d(TAG,"onMethodCall:" + call.method);
9490

95-
// JVRequestItem item = requestQueue.get(call.method);
96-
// if (item == null) {
97-
// item = new JVRequestItem();
98-
// item.call = call;
99-
// item.result = result;
100-
//
101-
// requestQueue.put(call.method,item);
102-
//
103-
// processMethod(call, result);
104-
// }else {
105-
// String error_repeat_desc = call.method + " is requesting, please try again later.";
106-
//
107-
// Map<String,Object> map = new HashMap<>();
108-
// map.put(j_code_key,j_error_code_repeat);
109-
// map.put(j_msg_key,error_repeat_desc);
110-
//
111-
// result.success(map);
112-
// }
113-
processMethod(call,result);
114-
}
115-
116-
private void processMethod(MethodCall call, Result result) {
11791
Log.d(TAG,"processMethod:" + call.method);
11892
if (call.method.equals("setup")) {
11993
setup(call,result);
@@ -149,17 +123,6 @@ private void processMethod(MethodCall call, Result result) {
149123
}
150124
}
151125

152-
private void methodCallBack(Object object,String method) {
153-
Log.d(TAG,"Action - methodCallBack:" + method);
154-
155-
JVRequestItem item = requestQueue.get(method);
156-
if (item != null) {
157-
if (item.result != null) {
158-
item.result.success(object);
159-
}
160-
}
161-
requestQueue.remove(method);
162-
}
163126

164127
// 主线程再返回数据
165128
private void runMainThread(final Map<String,Object> map, final Result result, final String method) {

example/android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ android {
3434
defaultConfig {
3535
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3636
applicationId "cn.jiguang.xx" // 应用包名
37-
minSdkVersion 16
37+
minSdkVersion 17
3838
targetSdkVersion 28
3939
versionCode flutterVersionCode.toInteger()
4040
versionName flutterVersionName

example/android/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
org.gradle.jvmargs=-Xmx1536M
2-
android.enableR8=true
2+
#android.enableR8=true

example/lib/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class _MyAppState extends State<MyApp> {
8282
onPressed: (){
8383
isInitSuccess();
8484
},
85-
title: "SDK 是否初始化成功"
85+
title: "初始化状态"
8686
),
8787
new Text(" "),
8888
new CustomButton(

example/pubspec.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ packages:
8787
path: ".."
8888
relative: true
8989
source: path
90-
version: "0.6.1"
90+
version: "0.6.2"
9191
matcher:
9292
dependency: transitive
9393
description:

pubspec.lock

+54-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4+
archive:
5+
dependency: transitive
6+
description:
7+
name: archive
8+
url: "https://pub.flutter-io.cn"
9+
source: hosted
10+
version: "2.0.11"
11+
args:
12+
dependency: transitive
13+
description:
14+
name: args
15+
url: "https://pub.flutter-io.cn"
16+
source: hosted
17+
version: "1.5.2"
418
async:
519
dependency: transitive
620
description:
721
name: async
822
url: "https://pub.flutter-io.cn"
923
source: hosted
10-
version: "2.3.0"
24+
version: "2.4.0"
1125
boolean_selector:
1226
dependency: transitive
1327
description:
@@ -29,6 +43,20 @@ packages:
2943
url: "https://pub.flutter-io.cn"
3044
source: hosted
3145
version: "1.14.11"
46+
convert:
47+
dependency: transitive
48+
description:
49+
name: convert
50+
url: "https://pub.flutter-io.cn"
51+
source: hosted
52+
version: "2.1.1"
53+
crypto:
54+
dependency: transitive
55+
description:
56+
name: crypto
57+
url: "https://pub.flutter-io.cn"
58+
source: hosted
59+
version: "2.1.3"
3260
flutter:
3361
dependency: "direct main"
3462
description: flutter
@@ -39,20 +67,27 @@ packages:
3967
description: flutter
4068
source: sdk
4169
version: "0.0.0"
70+
image:
71+
dependency: transitive
72+
description:
73+
name: image
74+
url: "https://pub.flutter-io.cn"
75+
source: hosted
76+
version: "2.1.4"
4277
matcher:
4378
dependency: transitive
4479
description:
4580
name: matcher
4681
url: "https://pub.flutter-io.cn"
4782
source: hosted
48-
version: "0.12.5"
83+
version: "0.12.6"
4984
meta:
5085
dependency: transitive
5186
description:
5287
name: meta
5388
url: "https://pub.flutter-io.cn"
5489
source: hosted
55-
version: "1.1.7"
90+
version: "1.1.8"
5691
path:
5792
dependency: transitive
5893
description:
@@ -67,6 +102,13 @@ packages:
67102
url: "https://pub.flutter-io.cn"
68103
source: hosted
69104
version: "1.8.0+1"
105+
petitparser:
106+
dependency: transitive
107+
description:
108+
name: petitparser
109+
url: "https://pub.flutter-io.cn"
110+
source: hosted
111+
version: "2.4.0"
70112
platform:
71113
dependency: "direct main"
72114
description:
@@ -127,7 +169,7 @@ packages:
127169
name: test_api
128170
url: "https://pub.flutter-io.cn"
129171
source: hosted
130-
version: "0.2.5"
172+
version: "0.2.11"
131173
typed_data:
132174
dependency: transitive
133175
description:
@@ -142,5 +184,12 @@ packages:
142184
url: "https://pub.flutter-io.cn"
143185
source: hosted
144186
version: "2.0.8"
187+
xml:
188+
dependency: transitive
189+
description:
190+
name: xml
191+
url: "https://pub.flutter-io.cn"
192+
source: hosted
193+
version: "3.5.0"
145194
sdks:
146-
dart: ">=2.2.2 <3.0.0"
195+
dart: ">=2.4.0 <3.0.0"

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: jverify
22
description: JIGUANG Official Jverifycation SDK flutter plugin project.
3-
version: 0.6.1
3+
version: 0.6.2
44
author: xudong.rao <[email protected]>
55
homepage: https://www.jiguang.cn
66

0 commit comments

Comments
 (0)