From 673f9f1f87815c36a8076ec264d6c93b9f01dc73 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Wed, 26 Jul 2023 11:19:04 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=AE=89=E5=8D=93getUserProfile?= =?UTF-8?q?=E7=9A=84=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/.settings/org.eclipse.buildship.core.prefs | 2 +- .../src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java | 3 --- .../java/com/finogeeks/mop/impls/MyUserProfileHandler.java | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/android/.settings/org.eclipse.buildship.core.prefs b/android/.settings/org.eclipse.buildship.core.prefs index c7199bd..41f5edb 100644 --- a/android/.settings/org.eclipse.buildship.core.prefs +++ b/android/.settings/org.eclipse.buildship.core.prefs @@ -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 diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java index 1f08bb3..1a644b3 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java @@ -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) { diff --git a/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java b/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java index defe8b3..df9b560 100644 --- a/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java +++ b/android/src/main/java/com/finogeeks/mop/impls/MyUserProfileHandler.java @@ -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