Skip to content

Commit e05bf1f

Browse files
authored
Merge pull request #70 from skill20/dev
v0.6.9 更新api文档
2 parents 68a1a82 + 55687df commit e05bf1f

File tree

7 files changed

+15
-6
lines changed

7 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.9
2+
+ 优化:优化android端隐私协议不选中时点击登录按钮,设置是否显示toast提示。具体使用查看 API 文档或者 demo 样例
3+
## 0.6.8
4+
+ 优化:优化android端隐私协议不选中时点击登录按钮,设置是否显示toast提示。
15
## 0.6.7
26
+ 修复:修复已知问题
37
## 0.6.6

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies:
1919

2020
```
2121
dependencies:
22-
jverify: 0.6.7
22+
jverify: 0.6.9
2323
```
2424

2525
### 配置

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,8 @@ private void layoutOriginOuthView(Map uiconfig, JVerifyUIConfig.Builder builder)
583583

584584
Object popViewConfig = valueForKey(uiconfig, "popViewConfig");
585585

586+
Object privacyHintToast = valueForKey(uiconfig, "privacyHintToast");
587+
586588
/************* 状态栏 ***************/
587589
if (statusBarColorWithNav != null) {
588590
builder.setStatusBarColorWithNav((Boolean) statusBarColorWithNav);
@@ -850,7 +852,7 @@ private void layoutOriginOuthView(Map uiconfig, JVerifyUIConfig.Builder builder)
850852
}
851853
}
852854

853-
builder.enableHintToast(true, null);
855+
builder.enableHintToast((Boolean)privacyHintToast, null);
854856
/************** 授权页弹窗模式 ***************/
855857
if (popViewConfig != null) {
856858
Map popViewConfigMap = (Map) popViewConfig;

documents/APIs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ jverify.getSMSCode(phone,{signId:signId,tempId:tempId}).then((map){
499499
|virtualButtonTransparent |boolean |设置授权页虚拟按键栏背景是否透明(android)|
500500
|privacyStatusBarColorWithNav |boolean |设置隐私页状态栏与导航栏同色(android)|
501501
|privacyStatusBarDarkMode |boolean |设置隐私页状态栏暗色模式(android)|
502+
|privacyHintToast |boolean |设置隐私条款不选中时点击登录按钮默认弹出toast。(android)|
502503
|privacyStatusBarTransparent |boolean |设置隐私页状态栏是否透明(android)|
503504
|privacyStatusBarHidden |boolean |设置隐私页状态栏是否隐藏(android)|
504505
|privacyVirtualButtonTransparent |boolean |设置隐私页虚拟按键栏背景是否透明(android)|

example/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ class _MyAppState extends State<MyApp> {
333333
uiConfig.loginBtnPressedImage = "login_btn_press";//图片必须存在
334334
uiConfig.loginBtnUnableImage = "login_btn_unable";//图片必须存在
335335

336+
uiConfig.privacyHintToast = false;//only android 设置隐私条款不选中时点击登录按钮默认显示toast。
336337

337338
uiConfig.privacyState = true;//设置默认勾选
338339
uiConfig.privacyCheckboxSize = 20;
@@ -376,9 +377,9 @@ class _MyAppState extends State<MyApp> {
376377
uiConfig.privacyNavReturnBtnImage = "return_bg";//图片必须存在;
377378

378379
/// 添加自定义的 控件 到授权界面
379-
List<JVCustomWidget>widgetList = [];
380+
List<JVCustomWidget> widgetList = [];
380381
/// 步骤 1:调用接口设置 UI
381-
jverify.setCustomAuthorizationView(true, uiConfig, landscapeConfig: uiConfig);
382+
jverify.setCustomAuthorizationView(true, uiConfig, landscapeConfig: uiConfig,widgets: widgetList);
382383

383384
/// 步骤 2:调用一键登录接口
384385

lib/jverify.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ class JVUIConfig {
511511
String uncheckedImgPath;
512512
String checkedImgPath;
513513
int privacyCheckboxSize;
514+
bool privacyHintToast = true;//only android 设置隐私条款不选中时点击登录按钮默认弹出toast。
514515
bool privacyState = false; //设置隐私条款默认选中状态,默认不选中
515516
bool privacyCheckboxHidden = false; //设置隐私条款checkbox是否隐藏
516517
bool privacyCheckboxInCenter = false; //设置隐私条款checkbox是否相对协议文字纵向居中
@@ -601,7 +602,7 @@ class JVUIConfig {
601602
"uncheckedImgPath": uncheckedImgPath ??= null,
602603
"checkedImgPath": checkedImgPath ??= null,
603604
"privacyCheckboxSize": privacyCheckboxSize ??= null,
604-
//"checkboxVerticalLayoutItem": getStringFromEnum(checkboxVerticalLayoutItem),
605+
"privacyHintToast": privacyHintToast,
605606
"privacyOffsetY": privacyOffsetY ??= null,
606607
"privacyOffsetX": privacyOffsetX ??= null,
607608
"privacyVerticalLayoutItem": getStringFromEnum(privacyVerticalLayoutItem),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
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.7
3+
version: 0.6.9
44
author: xudong.rao <[email protected]>
55
homepage: https://www.jiguang.cn
66

0 commit comments

Comments
 (0)