Skip to content

Commit

Permalink
升级 Android SDK 至 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bashen1 committed May 14, 2024
1 parent b894bdd commit a9b2ab2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 剔除
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand All @@ -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));
}
Expand All @@ -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() {
Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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 //隐私条款文字字体大小
Expand Down

0 comments on commit a9b2ab2

Please sign in to comment.