diff --git a/CHANGELOG.md b/CHANGELOG.md index 81105c8..03d3897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.5.1 ++ 修复:iOS 授权页 loading 框位置偏移问题 ++ 修复:iOS 授权页监听点击事件 bug ++ 同步 JVerification SDK 2.5.0 版本 ## 0.5.0 + 新增:一键登录的同步接口 [loginAuthSyncApi] ## 0.4.0 diff --git a/README.md b/README.md index a7bb730..85253c3 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ```yaml //pub 集成 dependencies: - jverify: 0.5.0 + jverify: 0.5.1 //github 集成 diff --git a/android/build.gradle b/android/build.gradle index 9932706..edb355c 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -39,6 +39,6 @@ android { dependencies { compileOnly files('libs/flutter.jar') - implementation 'cn.jiguang.sdk:jverification:2.4.8' + implementation 'cn.jiguang.sdk:jverification:2.5.0' implementation 'cn.jiguang.sdk:jcore:2.1.2' } diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 7103044..9865057 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,11 +1,12 @@ PODS: - Flutter (1.0.0) - - JCore (2.1.2) - - JVerification (2.4.8): + - JCore (2.1.4-noidfa) + - JVerification (2.5.0): - JCore (< 3.0.0, >= 1.2.6) - jverify (0.0.1): - Flutter - - JVerification (= 2.4.8) + - JCore (= 2.1.4-noidfa) + - JVerification (= 2.5.0) DEPENDENCIES: - Flutter (from `.symlinks/flutter/ios`) @@ -24,9 +25,9 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a - JCore: 1a426120b510cdebfd67b82bfb9483238ee09413 - JVerification: a4c03d3b7f8dcc8c38b5376bf255629bf7cebfe8 - jverify: c7e0888b212498b34755cfa76cbeb6d401fc4cd5 + JCore: 2f15311e6889ab43ed5d629802ef793cac566465 + JVerification: e51834e1c7f0f1b6b911987234a57bf80b9eeff8 + jverify: 8a4261f246cf320f412d4f8fa8f7b3b2cb134dc9 PODFILE CHECKSUM: aff02bfeed411c636180d6812254b2daeea14d09 diff --git a/example/pubspec.lock b/example/pubspec.lock index 203932b..5e7fe5d 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -52,7 +52,7 @@ packages: path: ".." relative: true source: path - version: "0.5.0" + version: "0.5.1" matcher: dependency: transitive description: diff --git a/ios/Classes/JverifyPlugin.m b/ios/Classes/JverifyPlugin.m index 4f24653..e66eb4f 100644 --- a/ios/Classes/JverifyPlugin.m +++ b/ios/Classes/JverifyPlugin.m @@ -275,7 +275,7 @@ -(void)loginAuthSync:(BOOL)isSync call:(FlutterMethodCall*)call result:(FlutterR dispatch_async(dispatch_get_main_queue(), ^{ if (isSync) { //通过 channel 返回 - [strongself.channel invokeMethod:@"onReceiveLoginAuthCallBackEvent" arguments:dict]; + [strongself.channel invokeMethod:@"onReceiveAuthPageEvent" arguments:dict]; }else{ // 通过回调返回 result(dict); @@ -290,7 +290,7 @@ -(void)loginAuthSync:(BOOL)isSync call:(FlutterMethodCall*)call result:(FlutterR }; __strong typeof(weakself) strongself = weakself; dispatch_async(dispatch_get_main_queue(), ^{ - [strongself.channel invokeMethod:@"onReceiveClickWidgetEvent" arguments:jsonMap]; + [strongself.channel invokeMethod:@"onReceiveAuthPageEvent" arguments:jsonMap]; }); }]; } @@ -822,6 +822,19 @@ - (void)setCustomUIWithConfigWithMobile:(JVUIConfig *)mobileUIConfig unicomUIConfig.agreementNavReturnImage = [UIImage imageNamed:privacyNavReturnBtnImage]; telecomUIConfig.agreementNavReturnImage = [UIImage imageNamed:privacyNavReturnBtnImage]; } + + //loading + JVLayoutConstraint *loadingConstraintX = [JVLayoutConstraint constraintWithAttribute:NSLayoutAttributeCenterX relatedBy:NSLayoutRelationEqual toItem:JVLayoutItemSuper attribute:NSLayoutAttributeCenterX multiplier:1 constant:0]; + JVLayoutConstraint *loadingConstraintY = [JVLayoutConstraint constraintWithAttribute:NSLayoutAttributeCenterY relatedBy:NSLayoutRelationEqual toItem:JVLayoutItemSuper attribute:NSLayoutAttributeCenterY multiplier:1 constant:0]; + JVLayoutConstraint *loadingConstraintW = [JVLayoutConstraint constraintWithAttribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:JVLayoutItemNone attribute:NSLayoutAttributeWidth multiplier:1 constant:30]; + JVLayoutConstraint *loadingConstraintH = [JVLayoutConstraint constraintWithAttribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:JVLayoutItemNone attribute:NSLayoutAttributeHeight multiplier:1 constant:30]; + + mobileUIConfig.loadingConstraints = @[loadingConstraintX,loadingConstraintY,loadingConstraintW,loadingConstraintH]; + mobileUIConfig.loadingHorizontalConstraints = mobileUIConfig.loadingConstraints; + unicomUIConfig.loadingConstraints = @[loadingConstraintX,loadingConstraintY,loadingConstraintW,loadingConstraintH]; + unicomUIConfig.loadingHorizontalConstraints = unicomUIConfig.loadingConstraints; + telecomUIConfig.loadingConstraints = @[loadingConstraintX,loadingConstraintY,loadingConstraintW,loadingConstraintH]; + telecomUIConfig.loadingHorizontalConstraints = telecomUIConfig.loadingConstraints; } #pragma mark - 添加 label diff --git a/ios/jverify.podspec b/ios/jverify.podspec index 301a737..7a12020 100644 --- a/ios/jverify.podspec +++ b/ios/jverify.podspec @@ -10,12 +10,13 @@ A new flutter plugin project. DESC s.homepage = 'https://www.jiguang.cn' s.license = { :file => '../LICENSE' } - s.author = { 'skk' => 'shikunkun.cool@163.com' } + s.author = { 'xudong.rao' => 'xudong.rao@outlook.com' } s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' s.dependency 'Flutter' - s.dependency 'JVerification', '2.4.8' + s.dependency 'JVerification', '2.5.0' + s.dependency 'JCore', '2.1.4-noidfa' s.ios.deployment_target = '8.0' s.static_framework = true diff --git a/pubspec.yaml b/pubspec.yaml index b10af52..6d235ae 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: jverify description: JIGUANG Official Jverifycation SDK flutter plugin project. -version: 0.5.0 -author: shikk +version: 0.5.1 +author: xudong.rao homepage: https://www.jiguang.cn environment: