android初始化微调

master
xiaoyu 2020-12-04 09:11:37 +08:00
parent d5eae2c9b8
commit cb41732c41
1 changed files with 5 additions and 6 deletions

View File

@ -5,6 +5,7 @@ import android.content.Context;
import android.util.Log;
import android.widget.Toast;
import com.finogeeks.lib.applet.BuildConfig;
import com.finogeeks.lib.applet.client.FinAppClient;
import com.finogeeks.lib.applet.client.FinAppConfig;
import com.finogeeks.lib.applet.interfaces.FinCallback;
@ -63,12 +64,12 @@ public class BaseModule extends BaseApi {
disablePermission = false;
}
FinAppConfig config = new FinAppConfig.Builder()
.setAppKey(appkey)
.setAppSecret(secret)
.setSdkKey(appkey)
.setSdkSecret(secret)
.setApiUrl(apiServer)
.setApiPrefix(apiPrefix)
.setGlideWithJWT(false)
.setEncryptionType(cryptType)
.setDebugMode(BuildConfig.DEBUG)
.setDisableRequestPermissions(disablePermission)
.build();
@ -95,7 +96,5 @@ public class BaseModule extends BaseApi {
}
};
FinAppClient.INSTANCE.init(application, config, cb);
}
}