升级运行时
parent
2387753c54
commit
01be3d6e8a
|
@ -91,6 +91,6 @@ kapt {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
implementation 'com.finogeeks.lib:finapplet:+'
|
implementation 'com.finogeeks.lib:finapplet:2.2.0'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ import android.util.Log;
|
||||||
|
|
||||||
import com.finogeeks.lib.applet.client.FinAppClient;
|
import com.finogeeks.lib.applet.client.FinAppClient;
|
||||||
import com.finogeeks.lib.applet.page.view.moremenu.MoreMenuItem;
|
import com.finogeeks.lib.applet.page.view.moremenu.MoreMenuItem;
|
||||||
|
import com.finogeeks.lib.applet.rest.model.GrayAppletVersionConfig;
|
||||||
import com.finogeeks.lib.applet.sdk.api.IAppletHandler;
|
import com.finogeeks.lib.applet.sdk.api.IAppletHandler;
|
||||||
import com.finogeeks.mop.api.BaseApi;
|
import com.finogeeks.mop.api.BaseApi;
|
||||||
import com.finogeeks.mop.interfaces.ICallback;
|
import com.finogeeks.mop.interfaces.ICallback;
|
||||||
|
@ -44,6 +45,13 @@ public class AppletHandlerModule extends BaseApi {
|
||||||
Log.d("AppletHandlerModule", "registerAppletHandler");
|
Log.d("AppletHandlerModule", "registerAppletHandler");
|
||||||
MethodChannel channel = MopPluginService.getInstance().getMethodChannel();
|
MethodChannel channel = MopPluginService.getInstance().getMethodChannel();
|
||||||
FinAppClient.INSTANCE.getAppletApiManager().setAppletHandler(new IAppletHandler() {
|
FinAppClient.INSTANCE.getAppletApiManager().setAppletHandler(new IAppletHandler() {
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public List<GrayAppletVersionConfig> getGrayAppletVersionConfigs(@NotNull String s) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void shareAppMessage(@NotNull String s, @Nullable Bitmap bitmap, @NotNull IAppletCallback iAppletCallback) {
|
public void shareAppMessage(@NotNull String s, @Nullable Bitmap bitmap, @NotNull IAppletCallback iAppletCallback) {
|
||||||
Log.d("MopPlugin", "shareAppMessage:" + s);
|
Log.d("MopPlugin", "shareAppMessage:" + s);
|
||||||
|
|
|
@ -56,6 +56,7 @@ public class BaseModule extends BaseApi {
|
||||||
.setApiUrl(apiServer)
|
.setApiUrl(apiServer)
|
||||||
.setApiPrefix(apiPrefix)
|
.setApiPrefix(apiPrefix)
|
||||||
.setGlideWithJWT(false)
|
.setGlideWithJWT(false)
|
||||||
|
.setEncryptionType("SM")
|
||||||
.build();
|
.build();
|
||||||
// SDK初始化结果回调,用于接收SDK初始化状态
|
// SDK初始化结果回调,用于接收SDK初始化状态
|
||||||
FinCallback<Object> cb = new FinCallback<Object>() {
|
FinCallback<Object> cb = new FinCallback<Object>() {
|
||||||
|
@ -80,6 +81,5 @@ public class BaseModule extends BaseApi {
|
||||||
FinAppClient.INSTANCE.init(MopPluginService.getInstance().getActivity().getApplication(), config, cb);
|
FinAppClient.INSTANCE.init(MopPluginService.getInstance().getActivity().getApplication(), config, cb);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,6 @@ A new flutter plugin project.
|
||||||
s.dependency 'Flutter'
|
s.dependency 'Flutter'
|
||||||
s.ios.deployment_target = '8.0'
|
s.ios.deployment_target = '8.0'
|
||||||
|
|
||||||
s.dependency 'FinApplet'
|
s.dependency 'FinApplet' , '2.1.23'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue