Skip to content

Commit

Permalink
update sample
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghualei committed May 31, 2023
1 parent 039917e commit 3417317
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
16 changes: 8 additions & 8 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
PODS:
- FinApplet (2.40.3)
- FinAppletExt (2.40.3):
- FinApplet (= 2.40.3)
- FinApplet (2.40.9)
- FinAppletExt (2.40.9):
- FinApplet (= 2.40.9)
- Flutter (1.0.0)
- mop (0.1.1):
- FinApplet (= 2.40.3)
- FinAppletExt (= 2.40.3)
- FinApplet (= 2.40.9)
- FinAppletExt (= 2.40.9)
- Flutter

DEPENDENCIES:
Expand All @@ -24,10 +24,10 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/mop/ios"

SPEC CHECKSUMS:
FinApplet: a76ded99df163388bb4de129df20c0ff44abe37c
FinAppletExt: 5c53d5c3554ce1be014871214a5c7a06f0bf9177
FinApplet: 9dd3810fb41400c882c8c5d5f528452b0f1f0a63
FinAppletExt: e9f418e3d11f5cf4ee42b2d64ab405fe747f51fe
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
mop: 4881eb2c1d365d9cf148b5dc7f8eca2b7018121d
mop: 8684b0dad361ce1d9b2d4a98d65a1acb52ce4120

PODFILE CHECKSUM: 2317ba7584871ae8cd67fd0244fbd5e96fd06167

Expand Down
1 change: 1 addition & 0 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 9QCKYFU5M4;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = finclip_example;
Expand Down
6 changes: 5 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ class _MyAppState extends State<MyApp> {
_buildAppletItem(appletId, "打开小程序", () {
// Mop.instance.openApplet(appletId,
// path: 'pages/index/index', query: '');
RemoteAppletRequest request = RemoteAppletRequest(apiServer: 'https://api.finclip.com', appletId: appletId, transitionStyle: TranstionStyle.TranstionStyleUp);
TranstionStyle style = TranstionStyle.TranstionStyleUp;
if (appletId == "5f72e3559a6a7900019b5baa") {
style = TranstionStyle.TranstionStylePush;
}
RemoteAppletRequest request = RemoteAppletRequest(apiServer: 'https://api.finclip.com', appletId: appletId, transitionStyle: style);
Mop.instance.startApplet(request);
}),
_buildAppletItem(appletId, "finishRunningApplet", () {
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.40.1"
version: "2.40.9"
path:
dependency: transitive
description:
Expand Down

0 comments on commit 3417317

Please sign in to comment.