Merge branch 'master' of ssh://gitlab.finogeeks.club:2233/finclipsdk/finclip-flutter-sdk

# Conflicts:
#	ios/mop.podspec
master
jizelin 2021-04-30 09:33:39 +08:00
commit 7f268b9a9d
7 changed files with 43 additions and 7 deletions

View File

@ -91,6 +91,6 @@ kapt {
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.finogeeks.lib:finapplet:2.24.3'
implementation 'com.finogeeks.mop:plugins:2.24.3'
implementation 'com.finogeeks.lib:finapplet:2.24.7'
implementation 'com.finogeeks.mop:plugins:2.24.7'
}

View File

@ -9,6 +9,7 @@ import com.finogeeks.mop.api.mop.AppletModule;
import com.finogeeks.mop.api.mop.BaseModule;
import com.finogeeks.mop.api.mop.ExtensionApiModule;
import com.finogeeks.mop.api.mop.VersionModule;
import com.finogeeks.mop.api.mop.SmSignModule;
import com.finogeeks.mop.interfaces.Event;
import com.finogeeks.mop.interfaces.IApi;
@ -69,6 +70,7 @@ public class ApisManager {
add(new AppletHandlerModule(activity));
add(new ExtensionApiModule(activity));
add(new VersionModule(activity));
add(new SmSignModule(activity));
}
private void add(IApi api) {

View File

@ -0,0 +1,34 @@
package com.finogeeks.mop.api.mop;
import android.content.Context;
import com.finogeeks.finochat.sdkcore.client.FinoChatSDKCoreClient;
import com.finogeeks.lib.applet.client.FinAppClient;
import com.finogeeks.lib.applet.db.entity.FinApplet;
import com.finogeeks.mop.api.BaseApi;
import com.finogeeks.mop.interfaces.ICallback;
import java.util.HashMap;
import java.util.Map;
public class SmSignModule extends BaseApi {
public SmSignModule(Context context) {
super(context);
}
@Override
public String[] apis() {
return new String[]{"smsign"};
}
@Override
public void invoke(String event, Map param, ICallback callback) {
String text = (String) param.get("plainText");
String result = FinoChatSDKCoreClient.getInstance().finoLicenseService().messageDigest(text);
Map<String, Object> res = new HashMap<>();
res.put("data", result);
callback.onSuccess(res);
}
}

View File

@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"android":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"mop","dependencies":[]}],"date_created":"2021-04-13 14:41:18.519464","version":"2.0.3"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"android":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"mop","dependencies":[]}],"date_created":"2021-04-30 09:33:21.567900","version":"2.0.3"}

View File

@ -87,7 +87,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.24.3"
version: "2.24.7"
path:
dependency: transitive
description:

View File

@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk.
s.dependency 'Flutter'
s.ios.deployment_target = '9.0'
s.dependency 'FinApplet' , '2.25.0-alpha20210421v01'
s.dependency 'FinAppletExt' , '2.25.0-alpha20210421v01'
s.dependency 'FinApplet' , '2.25.0-alpha20210429v03'
s.dependency 'FinAppletExt' , '2.25.0-alpha20210429v03'
end

View File

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