feat:Android启动参数新增scene和shareDepth;

master
yangbinqiao 2023-06-02 18:45:59 +08:00
parent 767964d31d
commit 7d0e9b5f46
3 changed files with 5 additions and 3 deletions

View File

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

View File

@ -68,7 +68,7 @@ public class AppletModule extends BaseApi {
// Android 6.07.0contextmContext
// 使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) {

View File

@ -1037,6 +1037,7 @@ class Mop {
final int? sequence,
final String? apiServer,
final String? scene,
final String? shareDepth,
final bool isSingleProcess = false,
}) async {
Map<String, Object> 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;