集成扩展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) .setEncryptionType(cryptType)
.setDisableRequestPermissions(disablePermission) .setDisableRequestPermissions(disablePermission)
.build(); .build();
final Application application = MopPluginService.getInstance().getActivity().getApplication();
// SDKSDK // SDKSDK
FinCallback<Object> cb = new FinCallback<Object>() { FinCallback<Object> cb = new FinCallback<Object>() {
@Override @Override
public void onSuccess(Object result) { public void onSuccess(Object result) {
// SDK // SDK
FinPluginClient.pluginManager.registerPlugins(application); FinPluginClient.INSTANCE.getPluginManager().registerPlugins(application);
callback.onSuccess(null); 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);
} }