From 01be3d6e8ad8561f48918c5d794b1eff344a9d14 Mon Sep 17 00:00:00 2001 From: kangxuyao Date: Tue, 19 May 2020 13:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E8=BF=90=E8=A1=8C=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/build.gradle | 2 +- .../com/finogeeks/mop/api/mop/AppletHandlerModule.java | 8 ++++++++ .../main/java/com/finogeeks/mop/api/mop/BaseModule.java | 2 +- ios/mop.podspec | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index ad701a6..4666f17 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -91,6 +91,6 @@ kapt { } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.finogeeks.lib:finapplet:+' + implementation 'com.finogeeks.lib:finapplet:2.2.0' } diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java index aba595e..c73ab00 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java @@ -8,6 +8,7 @@ import android.util.Log; import com.finogeeks.lib.applet.client.FinAppClient; import com.finogeeks.lib.applet.page.view.moremenu.MoreMenuItem; +import com.finogeeks.lib.applet.rest.model.GrayAppletVersionConfig; import com.finogeeks.lib.applet.sdk.api.IAppletHandler; import com.finogeeks.mop.api.BaseApi; import com.finogeeks.mop.interfaces.ICallback; @@ -44,6 +45,13 @@ public class AppletHandlerModule extends BaseApi { Log.d("AppletHandlerModule", "registerAppletHandler"); MethodChannel channel = MopPluginService.getInstance().getMethodChannel(); FinAppClient.INSTANCE.getAppletApiManager().setAppletHandler(new IAppletHandler() { + + @Nullable + @Override + public List getGrayAppletVersionConfigs(@NotNull String s) { + return null; + } + @Override public void shareAppMessage(@NotNull String s, @Nullable Bitmap bitmap, @NotNull IAppletCallback iAppletCallback) { Log.d("MopPlugin", "shareAppMessage:" + s); 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 989190c..6803319 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 @@ -56,6 +56,7 @@ public class BaseModule extends BaseApi { .setApiUrl(apiServer) .setApiPrefix(apiPrefix) .setGlideWithJWT(false) + .setEncryptionType("SM") .build(); // SDK初始化结果回调,用于接收SDK初始化状态 FinCallback cb = new FinCallback() { @@ -80,6 +81,5 @@ public class BaseModule extends BaseApi { FinAppClient.INSTANCE.init(MopPluginService.getInstance().getActivity().getApplication(), config, cb); - } } diff --git a/ios/mop.podspec b/ios/mop.podspec index 5cd2222..b0e8efc 100644 --- a/ios/mop.podspec +++ b/ios/mop.podspec @@ -17,6 +17,6 @@ A new flutter plugin project. s.dependency 'Flutter' s.ios.deployment_target = '8.0' - s.dependency 'FinApplet' + s.dependency 'FinApplet' , '2.1.23' end