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