update 安卓getUserProfile的实现
parent
10aba3eb83
commit
673f9f1f87
|
@ -2,7 +2,7 @@ arguments=--init-script /var/folders/tv/dbm7kt650fvdxrtf0k7xgxcm0000gn/T/d146c97
|
|||
auto.sync=false
|
||||
build.scans.enabled=false
|
||||
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.4.2))
|
||||
connection.project.dir=../../finosprite/android
|
||||
connection.project.dir=
|
||||
eclipse.preferences.version=1
|
||||
gradle.user.home=
|
||||
java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home
|
||||
|
|
|
@ -200,9 +200,6 @@ public class InitSDKModule extends BaseApi {
|
|||
configBuilder.setLocale(Locale.SIMPLIFIED_CHINESE);
|
||||
}
|
||||
|
||||
// getUserProfile的内置实现
|
||||
configBuilder.setGetUserProfileHandlerClass(MyUserProfileHandler.class.getName());
|
||||
|
||||
// uiConfig
|
||||
FinAppConfig.UIConfig uiConfig = InitUtils.createUIConfigFromMap(uiConfigMap);
|
||||
if (uiConfig != null) {
|
||||
|
|
|
@ -25,7 +25,6 @@ public class MyUserProfileHandler implements IUserProfileHandler {
|
|||
public void getUserProfileWithAppletInfo(@NotNull Context context, @NotNull FinAppInfo finAppInfo, @NotNull UserProfileCallback callback) {
|
||||
MethodChannel channel = MopPluginService.getInstance().getMethodChannel();
|
||||
Log.d(TAG, "getUserProfileWithAppletInfo:");
|
||||
Log.d(TAG, "channel:" + (channel != null ? "存在" : "不存在"));
|
||||
new Handler(Looper.getMainLooper()).post(() -> {
|
||||
channel.invokeMethod("extensionApi:getUserProfile", null, new MethodChannel.Result() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue