From a9b2ab291d691f4323b98122fe55ac7b4f71d42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=91=E6=84=81?= <401828628@qq.com> Date: Tue, 14 May 2024 10:31:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=20Android=20SDK=20=E8=87=B3?= =?UTF-8?q?=203.2.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/build.gradle | 2 +- .../jiguang/plugins/verification/JVerificationModule.java | 6 +++--- index.js | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index e72e688..3241e94 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -35,7 +35,7 @@ allprojects { dependencies { implementation 'com.facebook.react:react-native:+' - implementation ('cn.jiguang.sdk:jverification:3.0.1'){ + implementation ('cn.jiguang.sdk:jverification:3.2.1'){ exclude group: 'cn.jiguang.sdk', module: 'jcore'//会自动把 jcore 剔除 } } diff --git a/android/src/main/java/cn/jiguang/plugins/verification/JVerificationModule.java b/android/src/main/java/cn/jiguang/plugins/verification/JVerificationModule.java index 3140639..9fcea52 100644 --- a/android/src/main/java/cn/jiguang/plugins/verification/JVerificationModule.java +++ b/android/src/main/java/cn/jiguang/plugins/verification/JVerificationModule.java @@ -106,7 +106,7 @@ public void checkVerifyEnable(Callback callback){ public void getToken(int time, final Callback callback){ JVerificationInterface.getToken(reactContext, time, new VerifyListener() { @Override - public void onResult(int code, String content, String operator) { + public void onResult(int code, String content, String operator, JSONObject operatorReturn) { if(callback==null)return; callback.invoke(convertToResult(code,content,operator)); } @@ -117,7 +117,7 @@ public void onResult(int code, String content, String operator) { public void preLogin(int time,final Callback callback){ JVerificationInterface.preLogin(reactContext, time, new PreLoginListener() { @Override - public void onResult(int code, String content) { + public void onResult(int code, String content, JSONObject operatorReturn) { if(callback==null)return; callback.invoke(convertToResult(code,content)); } @@ -137,7 +137,7 @@ public void loginAuth(boolean enable){ JVerificationInterface.setCustomUIWithConfig(builder.build()); JVerificationInterface.loginAuth(reactContext, enable, new VerifyListener() { @Override - public void onResult(int code, String content, String operator) { + public void onResult(int code, String content, String operator, JSONObject operatorReturn) { sendEvent(JConstans.LOGIN_EVENT,convertToResult(code,content,operator)); } }, new AuthPageEventListener() { diff --git a/index.js b/index.js index b8c6260..624685e 100644 --- a/index.js +++ b/index.js @@ -107,7 +107,7 @@ export default class JVerification { * SDK请求授权一键登录 * @param enable : boolean * - * boolean:是否自动关闭授权页,true - 是,false - 否;若此字段设置为false,请在收到一键登录回调后调用SDK提供的关闭授权页面方法 + * enable:是否自动关闭授权页,true - 是,false - 否;若此字段设置为false,请在收到一键登录回调后调用SDK提供的关闭授权页面方法 * */ static login(enable) { if (Platform.OS == 'android') { @@ -187,9 +187,9 @@ export default class JVerification { * loginBtnW: int //登录按钮宽度 * loginBtnH: int //登录按钮高度 * - * privacyOne: StringArray //[隐私条款一名称,隐私条款一链接] - * privacyTwo: StringArray //[隐私条款二名称,隐私条款二链接] - * privacyNameAndUrlBeanList //[{'name':'隐私条款一','url':'https://www.jiguang.cn/about','beforeName':'、'}, {'name':'隐私条款一','url':'https://www.jiguang.cn/about','beforeName':'、'}] + * privacyOne: StringArray //[隐私条款一名称,隐私条款一链接] 过期 2.7.3+不生效 + * privacyTwo: StringArray //[隐私条款二名称,隐私条款二链接] 过期 2.7.3+不生效 + * privacyNameAndUrlBeanList //since 2.7.3 [{'name':'隐私条款一','url':'https://www.jiguang.cn/about','beforeName':'、'}, {'name':'隐私条款一','url':'https://www.jiguang.cn/about','beforeName':'、'}] * privacyColor: intArray //[隐私条款名称颜色,隐私条款链接颜色] * privacyText: StringArray //[隐私条款名称外的文字,隐私条款名称外的文字,隐私条款名称外的文字,隐私条款名称外的文字] * privacyTextSize: int //隐私条款文字字体大小