From 7d0e9b5f469321f8b4ed5c3be926a63cb250bf70 Mon Sep 17 00:00:00 2001 From: yangbinqiao Date: Fri, 2 Jun 2023 18:45:59 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9AAndroid=E5=90=AF=E5=8A=A8=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=96=B0=E5=A2=9Escene=E5=92=8CshareDepth=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/build.gradle | 4 ++-- .../src/main/java/com/finogeeks/mop/api/mop/AppletModule.java | 2 +- lib/mop.dart | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 0bdab14..3bc7559 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:2.40.9' - implementation 'com.finogeeks.mop:plugins:2.40.9' + implementation 'com.finogeeks.lib:finapplet:2.40.10-dev20230602v02' + implementation 'com.finogeeks.mop:plugins:2.40.10-dev20230602v02' } \ No newline at end of file diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/AppletModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/AppletModule.java index a7c81f1..8ac50c0 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/AppletModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/AppletModule.java @@ -68,7 +68,7 @@ public class AppletModule extends BaseApi { // 在Android 6.0、7.0系统的部分设备中热启动小程序时,如果context参数用mContext,会出现无法启动小程序的问题 // 所以这里使用Application Context Context context = mContext.getApplicationContext(); - FinAppInfo.StartParams startParams = params == null ? null : new FinAppInfo.StartParams(params.get("path"), params.get("query"), params.get("scene")); + FinAppInfo.StartParams startParams = params == null ? null : new FinAppInfo.StartParams(params); Log.d(TAG, "openApplet:" + appId + "," + param + "," + sequence + "," + apiServer + ", isSingleProcess:" + isSingleProcess); if (apiServer != null) { diff --git a/lib/mop.dart b/lib/mop.dart index 37a27fb..f8eefc0 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -1037,6 +1037,7 @@ class Mop { final int? sequence, final String? apiServer, final String? scene, + final String? shareDepth, final bool isSingleProcess = false, }) async { Map params = {'appId': appId}; @@ -1047,6 +1048,7 @@ class Mop { if (sequence != null) params["sequence"] = sequence; if (apiServer != null) params["apiServer"] = apiServer; if (scene != null) param["scene"] = scene; + if (shareDepth != null) param["shareDepth"] = shareDepth; params["isSingleProcess"] = isSingleProcess; final Map ret = await _channel.invokeMethod('openApplet', params); return ret;