Conflicts:
	android/build.gradle
master
gaoyunfei 2022-01-26 09:47:17 +08:00
commit 9933b42f4a
6 changed files with 38 additions and 16 deletions

View File

@ -108,7 +108,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.34.12"
version: "2.35.1"
path:
dependency: transitive
description:

View File

@ -19,7 +19,7 @@
NSNumber *numberId = @(_nativeViewId.integerValue);
[[FATClient sharedClient].nativeViewManager sendEvent:_eventName nativeViewId:numberId detail:_eventData completion:^(id result, NSError *error) {
if (error) {
failure(@{@"errMsg": @"sendCustomEvent:fail"});
failure(@{@"errMsg": @"callJS:fail"});
} else {
success(result);
}

View File

@ -9,7 +9,6 @@
#import <FinApplet/FinApplet.h>
#import <FinAppletExt/FinAppletExt.h>
#import "MOPTools.h"
// #import <FinAppletWebRTC/FinAppletWebRTC.h>
@implementation MOP_initialize
@ -128,11 +127,11 @@
return;
}
// [[FATExtClient sharedClient] fat_prepareExtensionApis];
// [[FATExtClient sharedClient] fat_UsingMapType:@"FATExtMapStyleGD" MapKey:@"6f0f28c4138cbaa51aa5890e26996ea2"];
// [FATGDMapComponent setGDMapAppKey:@"6f0f28c4138cbaa51aa5890e26996ea2"];
[[FATClient sharedClient] setEnableLog:YES];
// [FATWebRTCComponent registerComponent];
success(@{});

View File

@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk.
s.dependency 'Flutter'
s.ios.deployment_target = '9.0'
s.dependency 'FinApplet' , '2.35.1'
s.dependency 'FinAppletExt' , '2.35.1'
s.dependency 'FinApplet' , '2.36.0-alpha20220114v13'
s.dependency 'FinAppletExt' , '2.36.0-alpha20220114v13'
end

View File

@ -82,8 +82,10 @@ class UIConfig {
//iOS
//H5 0xFFFFAA00
int? progressBarColor;
//true
bool autoAdaptDarkMode = true;
//appletText
String? appletText;
@ -421,6 +423,10 @@ class Mop {
return await _channel.invokeMapMethod("scanOpenApplet", params);
}
///
///
/// [qrcode]
///
Future qrcodeOpenApplet(String qrcode) async {
Map<String, Object> params = {'qrcode': qrcode};
return await _channel.invokeMapMethod("qrcodeOpenApplet", params);
@ -495,28 +501,36 @@ class Mop {
return;
}
//
///
///
///
Future<void> closeApplet(String appletId, bool animated) async {
await _channel.invokeMethod(
"closeApplet", {"appletId": appletId, "animated": animated});
return;
}
//
///
///
///
Future<void> finishRunningApplet(String appletId, bool animated) async {
await _channel.invokeMethod(
"finishRunningApplet", {"appletId": appletId, "animated": animated});
return;
}
//
///
///
///
Future setActivityTransitionAnim(Anim anim) async {
await _channel
.invokeMethod("setActivityTransitionAnim", {"anim": anim.name});
return;
}
//
///
///
/// [appId] id
/// [eventData]
Future<void> sendCustomEvent(
String appId, Map<String, dynamic> eventData) async {
await _channel.invokeMethod(
@ -524,7 +538,13 @@ class Mop {
return;
}
//js
///
/// webviewjs
/// [appId] id
/// [eventName]
/// [nativeViewId] webviewId
/// [eventData]
///
Future<void> callJS(String appId, String eventName, String nativeViewId,
Map<String, dynamic> eventData) async {
await _channel.invokeMethod("callJS", {
@ -536,7 +556,10 @@ class Mop {
return;
}
//h5
///
/// register webview extension api
/// webviewapi
///
void addWebExtentionApi(String name, ExtensionApiHandler handler) {
_webExtensionApis[name] = handler;
_channel.invokeMethod("addWebExtentionApi", {"name": name});

View File

@ -1,6 +1,6 @@
name: mop
description: A Finogeeks MiniProgram Flutter SDK.
version: '2.35.1'
version: '2.35.3'
homepage: https://github.com/finogeeks/mop-flutter-sdk
environment: