From 22a74235c7abda92b5cfbabc86a733e22485c995 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Wed, 16 Dec 2020 17:28:25 +0800 Subject: [PATCH] update finapplet version --- android/build.gradle | 3 +-- .../com/finogeeks/mop/api/mop/BaseModule.java | 23 +------------------ 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 7b5b834..cdcc2ea 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -91,6 +91,5 @@ kapt { } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.finogeeks.lib:finapplet:2.13.29' - implementation 'com.finogeeks.mop:plugins:0.0.26' + implementation 'com.finogeeks.lib:finapplet:2.13.31' } \ No newline at end of file diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java index 9d6384c..e7227b3 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java @@ -1,24 +1,16 @@ package com.finogeeks.mop.api.mop; -import android.app.Activity; import android.app.Application; import android.content.Context; import com.finogeeks.lib.applet.BuildConfig; import com.finogeeks.lib.applet.client.FinAppClient; import com.finogeeks.lib.applet.client.FinAppConfig; -import com.finogeeks.lib.applet.client.FinAppProcessClient; import com.finogeeks.lib.applet.interfaces.FinCallback; -import com.finogeeks.lib.applet.interfaces.IApi; import com.finogeeks.mop.api.BaseApi; import com.finogeeks.mop.interfaces.ICallback; -import com.finogeeks.mop.plugins.client.FinPluginClient; import com.finogeeks.mop.service.MopPluginService; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.util.List; import java.util.Map; public class BaseModule extends BaseApi { @@ -43,20 +35,7 @@ public class BaseModule extends BaseApi { public void invoke(String event, Map param, final ICallback callback) { if (FinAppClient.INSTANCE.isFinAppProcess(super.getContext())) { - // 扩展SDK的API都注册到小程序进程 - FinAppProcessClient.INSTANCE.setCallback(new FinAppProcessClient.Callback() { - @Nullable - @Override - public List getRegisterExtensionApis(@NotNull Activity activity) { - return FinPluginClient.INSTANCE.getPluginManager().getPlugins(activity); - } - - @Nullable - @Override - public List getRegisterExtensionWebApis(@NotNull Activity activity) { - return null; - } - }); + // 小程序进程不执行任何初始化操作 return; } String appkey = String.valueOf(param.get("appkey"));