升级运行时

master
kangxuyao 2020-05-19 13:36:05 +08:00
parent 2387753c54
commit 01be3d6e8a
4 changed files with 11 additions and 3 deletions

View File

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

View File

@ -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);

View File

@ -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();
// SDKSDK // SDKSDK
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);
} }
} }

View File

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