update ios sdk version
commit
560f18b29f
|
@ -91,6 +91,6 @@ kapt {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
implementation 'com.finogeeks.lib:finapplet:2.29.3'
|
implementation 'com.finogeeks.lib:finapplet:2.30.0-alpha20210615v05'
|
||||||
implementation 'com.finogeeks.mop:plugins:2.29.3'
|
implementation 'com.finogeeks.mop:plugins:2.30.0-alpha20210615v02'
|
||||||
}
|
}
|
|
@ -1,9 +1,11 @@
|
||||||
package com.finogeeks.mop.api.mop;
|
package com.finogeeks.mop.api.mop;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.finogeeks.lib.applet.client.FinAppClient;
|
import com.finogeeks.lib.applet.client.FinAppClient;
|
||||||
|
import com.finogeeks.lib.applet.sdk.model.StartAppletDecryptRequest;
|
||||||
import com.finogeeks.mop.api.BaseApi;
|
import com.finogeeks.mop.api.BaseApi;
|
||||||
import com.finogeeks.mop.interfaces.ICallback;
|
import com.finogeeks.mop.interfaces.ICallback;
|
||||||
|
|
||||||
|
@ -26,11 +28,19 @@ public class AppletModule extends BaseApi {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] apis() {
|
public String[] apis() {
|
||||||
return new String[]{"openApplet"};
|
return new String[]{"openApplet", "scanOpenApplet"};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void invoke(String event, Map param, ICallback callback) {
|
public void invoke(String event, Map param, ICallback callback) {
|
||||||
|
if ("openApplet".equals(event)) {
|
||||||
|
openApplet(param, callback);
|
||||||
|
} else if ("scanOpenApplet".equals(event)) {
|
||||||
|
scanOpenApplet(param, callback);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void openApplet(Map param, ICallback callback) {
|
||||||
if (param.get("appId") == null) {
|
if (param.get("appId") == null) {
|
||||||
callback.onFail(new HashMap() {
|
callback.onFail(new HashMap() {
|
||||||
{
|
{
|
||||||
|
@ -89,4 +99,18 @@ public class AppletModule extends BaseApi {
|
||||||
// }
|
// }
|
||||||
callback.onSuccess(new HashMap());
|
callback.onSuccess(new HashMap());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void scanOpenApplet(Map param, ICallback callback) {
|
||||||
|
String info = String.valueOf(param.get("info"));
|
||||||
|
if (TextUtils.isEmpty(info)) {
|
||||||
|
callback.onFail(new HashMap() {
|
||||||
|
{
|
||||||
|
put("info", "info不能为" + info);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
FinAppClient.INSTANCE.getAppletApiManager().startApplet(mContext, new StartAppletDecryptRequest(info));
|
||||||
|
callback.onSuccess(new HashMap());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,8 @@ A finclip miniprogram flutter sdk.
|
||||||
s.dependency 'Flutter'
|
s.dependency 'Flutter'
|
||||||
s.ios.deployment_target = '9.0'
|
s.ios.deployment_target = '9.0'
|
||||||
|
|
||||||
s.dependency 'FinApplet' , '2.30.0-alpha20210611v01'
|
s.dependency 'FinApplet' , '2.30.0-alpha20210616v02'
|
||||||
s.dependency 'FinAppletExt' , '2.30.0-alpha20210611v01'
|
s.dependency 'FinAppletExt' , '2.30.0-alpha20210616v02'
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue