update 安卓getUserProfile的实现

master
wanghualei 2023-07-26 11:19:04 +08:00
parent 10aba3eb83
commit 673f9f1f87
3 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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