Skip to content

Commit 762153b

Browse files
authored
Merge pull request #23 from raoxudong/dev
v0.5.1修复 bug, 同步 SDK v2.5.0
2 parents 87b8a5f + db4269e commit 762153b

File tree

8 files changed

+34
-15
lines changed

8 files changed

+34
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.1
2+
+ 修复:iOS 授权页 loading 框位置偏移问题
3+
+ 修复:iOS 授权页监听点击事件 bug
4+
+ 同步 JVerification SDK 2.5.0 版本
15
## 0.5.0
26
+ 新增:一键登录的同步接口 [loginAuthSyncApi]
37
## 0.4.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
```yaml
99
//pub 集成
1010
dependencies:
11-
jverify: 0.5.0
11+
jverify: 0.5.1
1212

1313

1414
//github 集成

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ android {
3939

4040
dependencies {
4141
compileOnly files('libs/flutter.jar')
42-
implementation 'cn.jiguang.sdk:jverification:2.4.8'
42+
implementation 'cn.jiguang.sdk:jverification:2.5.0'
4343
implementation 'cn.jiguang.sdk:jcore:2.1.2'
4444
}

example/ios/Podfile.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- JCore (2.1.2)
4-
- JVerification (2.4.8):
3+
- JCore (2.1.4-noidfa)
4+
- JVerification (2.5.0):
55
- JCore (< 3.0.0, >= 1.2.6)
66
- jverify (0.0.1):
77
- Flutter
8-
- JVerification (= 2.4.8)
8+
- JCore (= 2.1.4-noidfa)
9+
- JVerification (= 2.5.0)
910

1011
DEPENDENCIES:
1112
- Flutter (from `.symlinks/flutter/ios`)
@@ -24,9 +25,9 @@ EXTERNAL SOURCES:
2425

2526
SPEC CHECKSUMS:
2627
Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a
27-
JCore: 1a426120b510cdebfd67b82bfb9483238ee09413
28-
JVerification: a4c03d3b7f8dcc8c38b5376bf255629bf7cebfe8
29-
jverify: c7e0888b212498b34755cfa76cbeb6d401fc4cd5
28+
JCore: 2f15311e6889ab43ed5d629802ef793cac566465
29+
JVerification: e51834e1c7f0f1b6b911987234a57bf80b9eeff8
30+
jverify: 8a4261f246cf320f412d4f8fa8f7b3b2cb134dc9
3031

3132
PODFILE CHECKSUM: aff02bfeed411c636180d6812254b2daeea14d09
3233

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ packages:
5252
path: ".."
5353
relative: true
5454
source: path
55-
version: "0.5.0"
55+
version: "0.5.1"
5656
matcher:
5757
dependency: transitive
5858
description:

ios/Classes/JverifyPlugin.m

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ -(void)loginAuthSync:(BOOL)isSync call:(FlutterMethodCall*)call result:(FlutterR
275275
dispatch_async(dispatch_get_main_queue(), ^{
276276
if (isSync) {
277277
//通过 channel 返回
278-
[strongself.channel invokeMethod:@"onReceiveLoginAuthCallBackEvent" arguments:dict];
278+
[strongself.channel invokeMethod:@"onReceiveAuthPageEvent" arguments:dict];
279279
}else{
280280
// 通过回调返回
281281
result(dict);
@@ -290,7 +290,7 @@ -(void)loginAuthSync:(BOOL)isSync call:(FlutterMethodCall*)call result:(FlutterR
290290
};
291291
__strong typeof(weakself) strongself = weakself;
292292
dispatch_async(dispatch_get_main_queue(), ^{
293-
[strongself.channel invokeMethod:@"onReceiveClickWidgetEvent" arguments:jsonMap];
293+
[strongself.channel invokeMethod:@"onReceiveAuthPageEvent" arguments:jsonMap];
294294
});
295295
}];
296296
}
@@ -822,6 +822,19 @@ - (void)setCustomUIWithConfigWithMobile:(JVUIConfig *)mobileUIConfig
822822
unicomUIConfig.agreementNavReturnImage = [UIImage imageNamed:privacyNavReturnBtnImage];
823823
telecomUIConfig.agreementNavReturnImage = [UIImage imageNamed:privacyNavReturnBtnImage];
824824
}
825+
826+
//loading
827+
JVLayoutConstraint *loadingConstraintX = [JVLayoutConstraint constraintWithAttribute:NSLayoutAttributeCenterX relatedBy:NSLayoutRelationEqual toItem:JVLayoutItemSuper attribute:NSLayoutAttributeCenterX multiplier:1 constant:0];
828+
JVLayoutConstraint *loadingConstraintY = [JVLayoutConstraint constraintWithAttribute:NSLayoutAttributeCenterY relatedBy:NSLayoutRelationEqual toItem:JVLayoutItemSuper attribute:NSLayoutAttributeCenterY multiplier:1 constant:0];
829+
JVLayoutConstraint *loadingConstraintW = [JVLayoutConstraint constraintWithAttribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:JVLayoutItemNone attribute:NSLayoutAttributeWidth multiplier:1 constant:30];
830+
JVLayoutConstraint *loadingConstraintH = [JVLayoutConstraint constraintWithAttribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:JVLayoutItemNone attribute:NSLayoutAttributeHeight multiplier:1 constant:30];
831+
832+
mobileUIConfig.loadingConstraints = @[loadingConstraintX,loadingConstraintY,loadingConstraintW,loadingConstraintH];
833+
mobileUIConfig.loadingHorizontalConstraints = mobileUIConfig.loadingConstraints;
834+
unicomUIConfig.loadingConstraints = @[loadingConstraintX,loadingConstraintY,loadingConstraintW,loadingConstraintH];
835+
unicomUIConfig.loadingHorizontalConstraints = unicomUIConfig.loadingConstraints;
836+
telecomUIConfig.loadingConstraints = @[loadingConstraintX,loadingConstraintY,loadingConstraintW,loadingConstraintH];
837+
telecomUIConfig.loadingHorizontalConstraints = telecomUIConfig.loadingConstraints;
825838
}
826839

827840
#pragma mark - 添加 label

ios/jverify.podspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ A new flutter plugin project.
1010
DESC
1111
s.homepage = 'https://www.jiguang.cn'
1212
s.license = { :file => '../LICENSE' }
13-
s.author = { 'skk' => 'shikunkun.cool@163.com' }
13+
s.author = { 'xudong.rao' => 'xudong.rao@outlook.com' }
1414
s.source = { :path => '.' }
1515
s.source_files = 'Classes/**/*'
1616
s.public_header_files = 'Classes/**/*.h'
1717
s.dependency 'Flutter'
18-
s.dependency 'JVerification', '2.4.8'
18+
s.dependency 'JVerification', '2.5.0'
19+
s.dependency 'JCore', '2.1.4-noidfa'
1920

2021
s.ios.deployment_target = '8.0'
2122
s.static_framework = true

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: jverify
22
description: JIGUANG Official Jverifycation SDK flutter plugin project.
3-
version: 0.5.0
4-
author: shikk <shikunkun.cool@163.com>
3+
version: 0.5.1
4+
author: xudong.rao <xudong.rao@outlook.com>
55
homepage: https://www.jiguang.cn
66

77
environment:

0 commit comments

Comments
 (0)