集成扩展SDK

master
xiaoyu 2020-11-30 18:10:13 +08:00
parent e618d07a3f
commit 3332b4de43
1 changed files with 4 additions and 2 deletions

View File

@ -70,12 +70,14 @@ public class BaseModule extends BaseApi {
.setEncryptionType(cryptType)
.setDisableRequestPermissions(disablePermission)
.build();
final Application application = MopPluginService.getInstance().getActivity().getApplication();
// SDKSDK
FinCallback<Object> cb = new FinCallback<Object>() {
@Override
public void onSuccess(Object result) {
// SDK
FinPluginClient.pluginManager.registerPlugins(application);
FinPluginClient.INSTANCE.getPluginManager().registerPlugins(application);
callback.onSuccess(null);
}
@ -91,7 +93,7 @@ public class BaseModule extends BaseApi {
}
};
FinAppClient.INSTANCE.init(MopPluginService.getInstance().getActivity().getApplication(), config, cb);
FinAppClient.INSTANCE.init(application, config, cb);
}