From e770f1ab456034fd602516465d5bb3c08c769487 Mon Sep 17 00:00:00 2001 From: jenkins Date: Fri, 2 Jun 2023 21:40:24 +0800 Subject: [PATCH 01/14] version++ --- android/build.gradle | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 3bc7559..0bdab14 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -91,6 +91,6 @@ kapt { } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.finogeeks.lib:finapplet:2.40.10-dev20230602v02' - implementation 'com.finogeeks.mop:plugins:2.40.10-dev20230602v02' + implementation 'com.finogeeks.lib:finapplet:2.40.9' + implementation 'com.finogeeks.mop:plugins:2.40.9' } \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 3ecc6fd..3e75552 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: mop description: A Finogeeks MiniProgram Flutter SDK. -version: '2.40.10' +version: '2.40.9' homepage: https://github.com/finogeeks/mop-flutter-sdk environment: From 51b2f827f05ecc7313e8fa95559032741703ed94 Mon Sep 17 00:00:00 2001 From: jenkins Date: Fri, 2 Jun 2023 21:49:57 +0800 Subject: [PATCH 02/14] version++ --- android/build.gradle | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 0bdab14..4c15ea0 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -91,6 +91,6 @@ kapt { } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.finogeeks.lib:finapplet:2.40.9' - implementation 'com.finogeeks.mop:plugins:2.40.9' + implementation 'com.finogeeks.lib:finapplet:2.40.11' + implementation 'com.finogeeks.mop:plugins:2.40.11' } \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 3e75552..007c149 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: mop description: A Finogeeks MiniProgram Flutter SDK. -version: '2.40.9' +version: '2.40.11' homepage: https://github.com/finogeeks/mop-flutter-sdk environment: From 8b8b599f71ca867156666fb8914de9d0d250e515 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Thu, 8 Jun 2023 23:29:36 +0800 Subject: [PATCH 03/14] =?UTF-8?q?=E4=BF=AE=E6=94=B9getPhoneNumber=E9=A6=96?= =?UTF-8?q?=E6=AC=A1=E4=B8=8D=E8=A7=A6=E5=8F=91=E5=9B=9E=E8=B0=83=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/lib/main.dart | 34 +++++++++++++++++++---------- example/pubspec.lock | 2 +- ios/Classes/Api/MOPAppletDelegate.m | 3 ++- ios/Classes/MopPlugin.m | 13 ++++++----- ios/mop.podspec | 4 ++-- 5 files changed, 35 insertions(+), 21 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 55fb6f1..30a305c 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -131,12 +131,15 @@ class _MyAppState extends State { _buildAppletItem(appletId, "打开小程序", () { // Mop.instance.openApplet(appletId, // path: 'pages/index/index', query: ''); - 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); + // 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); + + Mop.instance.qrcodeOpenApplet('https://api.finclip.com/api/v1/mop/runtime/applet/-f-MGYzN2Q1YTYzMmI2MWIyZg--'); + }), _buildAppletItem(appletId, "finishRunningApplet", () { Mop.instance.finishRunningApplet(appletId, true); @@ -184,8 +187,8 @@ class MyAppletHandler extends AppletHandler { @override bool customCapsuleMoreButtonClick(String appId) { print("customCapsuleMoreButtonClick---"); - toAppMessageChannel.invokeMethod("showCustomMoreView", {"appId": appId}); - return true; + // toAppMessageChannel.invokeMethod("showCustomMoreView", {"appId": appId}); + return false; } @override @@ -195,14 +198,23 @@ class MyAppletHandler extends AppletHandler { @override Future> getCustomMenus(String appId) { - List customMenus = []; + List customMenus = [ + CustomMenu('WXShareAPPFriends', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信好朋友', 'common'), + CustomMenu('WXShareAPPMoments', 'https://img2.baidu.com/it/u=3113705544,436318069&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信朋友圈', 'common'), + + // CustomMenu('WXShareAPPFriends', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSpvugSNLs9R7iopz_noeotAelvgzYj-74iCg&usqp=CAU', '微信好朋友', 'common'), + // CustomMenu('WXShareAPPMoments', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR7cO4KB4e5-Ugdcq4pIyWunliH7LZRZzguKQ&usqp=CAU', '微信朋友圈', 'common'), + ]; return Future.value(customMenus); } @override - Future getMobileNumber(Function(dynamic params) param0) { + Future getMobileNumber(Function(dynamic params) callback) { // TODO: implement getMobileNumber - throw UnimplementedError(); + Map result = {"phone": '18607180143',"other":'abc123'}; + print('getMobileNumber:' + result.toString()); + callback(result); + return Future.value(null); } @override diff --git a/example/pubspec.lock b/example/pubspec.lock index d519ee1..6e09cf6 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -115,7 +115,7 @@ packages: path: ".." relative: true source: path - version: "2.40.9" + version: "2.40.11" path: dependency: transitive description: diff --git a/ios/Classes/Api/MOPAppletDelegate.m b/ios/Classes/Api/MOPAppletDelegate.m index 57f10ef..43a8c13 100644 --- a/ios/Classes/Api/MOPAppletDelegate.m +++ b/ios/Classes/Api/MOPAppletDelegate.m @@ -180,8 +180,9 @@ static NSString *scheme = @"fatae55433be2f62915";//App对应的scheme NSDictionary *params = @{@"name":@"getPhoneNumber"}; FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel]; + self.bindGetPhoneNumbers = bindGetPhoneNumber; + NSLog(@"getPhoneNumberWithAppletInfo"); [channel invokeMethod:@"extensionApi:getPhoneNumber" arguments:params result:^(id _Nullable result) { - self.bindGetPhoneNumbers = bindGetPhoneNumber; // !self.bindGetPhoneNumbers?: bindGetPhoneNumber(result); }]; diff --git a/ios/Classes/MopPlugin.m b/ios/Classes/MopPlugin.m index 95c2fb8..18ba4a9 100644 --- a/ios/Classes/MopPlugin.m +++ b/ios/Classes/MopPlugin.m @@ -127,12 +127,13 @@ static MopPlugin *_instance; } else if ([@"getPhoneNumberResult" isEqualToString:call.method]) { if ([MOPAppletDelegate instance].bindGetPhoneNumbers) { - NSDictionary *dic = [[NSDictionary alloc] initWithDictionary:call.arguments]; - NSString *jsonString = [dic[@"phone"] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; - NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding]; - NSError *error; - NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:&error]; - [MOPAppletDelegate instance].bindGetPhoneNumbers(jsonDic); + [MOPAppletDelegate instance].bindGetPhoneNumbers(call.arguments); + // NSDictionary *dic = [[NSDictionary alloc] initWithDictionary:call.arguments]; + // NSString *jsonString = [dic[@"phone"] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; + // NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding]; + // NSError *error; + // NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:&error]; + // [MOPAppletDelegate instance].bindGetPhoneNumbers(jsonDic); } } else { diff --git a/ios/mop.podspec b/ios/mop.podspec index db6e01b..b1a0d35 100644 --- a/ios/mop.podspec +++ b/ios/mop.podspec @@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk. s.dependency 'Flutter' s.ios.deployment_target = '9.0' - s.dependency 'FinApplet' , '2.40.9' - s.dependency 'FinAppletExt' , '2.40.9' + s.dependency 'FinApplet' , '2.41.0-alpha20230602v12' + s.dependency 'FinAppletExt' , '2.41.0-alpha20230602v12' end From c3017a967efb2088f88d11bbb753dd9f3d975582 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Fri, 9 Jun 2023 00:15:04 +0800 Subject: [PATCH 04/14] =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=88=96=E5=B7=A5=E7=A8=8B=E5=86=85=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/ios/Podfile | 3 +++ example/ios/Podfile.lock | 20 ++++++++-------- .../ios/Runner/Assets.xcassets/Contents.json | 6 +++++ .../Contents.json | 22 ++++++++++++++++++ .../minipro_list_collect@2x.png | Bin 0 -> 2726 bytes .../minipro_list_collect@3x.png | Bin 0 -> 4349 bytes .../Contents.json | 22 ++++++++++++++++++ .../minipro_list_service@2x.png | Bin 0 -> 2782 bytes .../minipro_list_service@3x.png | Bin 0 -> 4350 bytes 9 files changed, 63 insertions(+), 10 deletions(-) create mode 100644 example/ios/Runner/Assets.xcassets/Contents.json create mode 100644 example/ios/Runner/Assets.xcassets/minipro_list_collect.imageset/Contents.json create mode 100644 example/ios/Runner/Assets.xcassets/minipro_list_collect.imageset/minipro_list_collect@2x.png create mode 100644 example/ios/Runner/Assets.xcassets/minipro_list_collect.imageset/minipro_list_collect@3x.png create mode 100644 example/ios/Runner/Assets.xcassets/minipro_list_service.imageset/Contents.json create mode 100644 example/ios/Runner/Assets.xcassets/minipro_list_service.imageset/minipro_list_service@2x.png create mode 100644 example/ios/Runner/Assets.xcassets/minipro_list_service.imageset/minipro_list_service@3x.png diff --git a/example/ios/Podfile b/example/ios/Podfile index 8933ab5..8f3be61 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -1,6 +1,9 @@ # Uncomment this line to define a global platform for your project platform :ios, '9.0' +source 'ssh://gitlab.finogeeks.club/finclip-ios/DevPods' +source 'ssh://gitlab.finogeeks.club/finclip-ios/FinPods' + # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 22a8d75..fbb69b6 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,11 +1,11 @@ PODS: - - FinApplet (2.40.9) - - FinAppletExt (2.40.9): - - FinApplet (= 2.40.9) + - FinApplet (2.40.12-dev20230608v03) + - FinAppletExt (2.40.12-dev20230608v03): + - FinApplet (= 2.40.12-dev20230608v03) - Flutter (1.0.0) - mop (0.1.1): - - FinApplet (= 2.40.9) - - FinAppletExt (= 2.40.9) + - FinApplet (= 2.40.12-dev20230608v03) + - FinAppletExt (= 2.40.12-dev20230608v03) - Flutter DEPENDENCIES: @@ -13,7 +13,7 @@ DEPENDENCIES: - mop (from `.symlinks/plugins/mop/ios`) SPEC REPOS: - trunk: + ssh://gitlab.finogeeks.club/finclip-ios/DevPods: - FinApplet - FinAppletExt @@ -24,11 +24,11 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/mop/ios" SPEC CHECKSUMS: - FinApplet: 9dd3810fb41400c882c8c5d5f528452b0f1f0a63 - FinAppletExt: e9f418e3d11f5cf4ee42b2d64ab405fe747f51fe + FinApplet: 65349d2bff2aa592743da609a534eff8572681e4 + FinAppletExt: 92f01be77bb89ebf500b68e7f536441f62e02670 Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a - mop: 8684b0dad361ce1d9b2d4a98d65a1acb52ce4120 + mop: 51a9fa6dd85e339898d1d602572cccdc0f491b76 -PODFILE CHECKSUM: 2317ba7584871ae8cd67fd0244fbd5e96fd06167 +PODFILE CHECKSUM: 2da0220ee5ba22a2dfcec42dfe5b17d05f3c3da9 COCOAPODS: 1.11.3 diff --git a/example/ios/Runner/Assets.xcassets/Contents.json b/example/ios/Runner/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/example/ios/Runner/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/example/ios/Runner/Assets.xcassets/minipro_list_collect.imageset/Contents.json b/example/ios/Runner/Assets.xcassets/minipro_list_collect.imageset/Contents.json new file mode 100644 index 0000000..96dd923 --- /dev/null +++ b/example/ios/Runner/Assets.xcassets/minipro_list_collect.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "minipro_list_collect@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "minipro_list_collect@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/example/ios/Runner/Assets.xcassets/minipro_list_collect.imageset/minipro_list_collect@2x.png b/example/ios/Runner/Assets.xcassets/minipro_list_collect.imageset/minipro_list_collect@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..1b517c17a676e62310515fd402841808c501f4d3 GIT binary patch literal 2726 zcmV;X3R(4uP)Pxe5T6t_-M;V`a`__q*v`upri54YQOdC>E(QsCRRwYRB+D^RdY$0ve zM-oyH0wIK`L=&)-f)vDm5tqr~gW{$edmUd(M4(BLdJ&3xB(&HhDQXdIleA6J9Nzcd z@cZ8Gyv%!kZ!aH0t)FDi%=dlsUGvS%H#5svsb6({LIm~+L`I^GuLt&$2oRaFu9li? z2qB!hgi+}LIpwcJr1O`MnQpi(-<7oQIa4Q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w73pN6cAHkhM zNiWJcI;_K?c&p&7s!Z8uaX|joP^#TNt9o_!HMly~^aEyDJBS!w{x^!J1w2b0#^cY( z9C*B#=Txt-$!yaN9)AB&#Z0rxjxaR!#XAx z91y+9!lADWC);20GWdUJL*GxbjQK|xd;{r&L3&r8t*`8VY|nqZ`uQ3xiRi%_KO;*! zp@mSz#b>qm@>SALcUg{pc@35Z&~MR%7(3*6kh4o%W6`0Wu7i?hI?G738Ap7x7i&x< z$)yP7ykhlGYWK^9^eD<;$)qm6d6|(J`!nXr(j3e{p7=nzw=?iMNA{hJ(tbI&#P7f> zcRj^V>EVid29mo@7R$dRgC*1496y9mUzvm9r?FTW`#OFlX(qG8Mg2E%XZ{QD%<9Ye zF|KQ?v8MdDR5@iCEQQoHG_9n&G-`v<>EXVv#S%A}Wu!jwHm1`e;#m>aR~|_2Jzg&V z38j{%CF-PLBnGYX#x^)B zo0Vm7Ss`5)YyOO3na|luGj<%03@g`e*nER=`N|KW%!6>mtQ<}j10f#XHkjJ;f&{2# zZFJ-9rpRmu%vl7pcz%U*@f&^ite^IG?|Ksli{o(K3c~4H=(7X8?SIYE75~31gYA?~ zh^KW!s0kex;CA=mlKK4S?d|ROQS;0< gP0sXnDumAu607*qoM6N<$f{FGyf&c&j literal 0 HcmV?d00001 diff --git a/example/ios/Runner/Assets.xcassets/minipro_list_collect.imageset/minipro_list_collect@3x.png b/example/ios/Runner/Assets.xcassets/minipro_list_collect.imageset/minipro_list_collect@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..cf4dfb1fc1195e59439cd493ced049f38492528c GIT binary patch literal 4349 zcmVPx_w@E}nRCodHU3+v?#TmbIcQ=HG1q6vep$bHyo)$c|dTM*>DM)*=Au$_>iZ%~H zscprom0C}I;G}}oWWeSg(!3hIoS@k;_VMrZl}w)K*bZJDcb5a*w~F_9j(Q?vRBoKbNUAzse9(6HYN$?Ti8aNlbhsnbIH72QXSDb< z%+hn2E%M6BRa1M_zIP;2+|oFmXR52KD?Ic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^b{XEYR5PK3A7+l6ag-LzAZ-V!J zvk#0I(mN28uUK(HmQh!s9LyWr^SFTPMl}>vx@K`s{9Zr0oTO zHyCRMz_Md#(hqwJ3+}S}l+r-@!TaJL+3&v*HT+6+Rp?19E+)NqK)T z8sV|FOR)P5dxv@=i2Wz_F+)xUD6S)yZpFoQr}X#1_RN$sfw52Wu-38iscm9cmCN$; ry7LU=8OSq`XCTi&o`F0Axnbb{VMpSSODoeM00000NkvXXu0mjfnayfa literal 0 HcmV?d00001 diff --git a/example/ios/Runner/Assets.xcassets/minipro_list_service.imageset/Contents.json b/example/ios/Runner/Assets.xcassets/minipro_list_service.imageset/Contents.json new file mode 100644 index 0000000..4a2d688 --- /dev/null +++ b/example/ios/Runner/Assets.xcassets/minipro_list_service.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "minipro_list_service@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "minipro_list_service@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/example/ios/Runner/Assets.xcassets/minipro_list_service.imageset/minipro_list_service@2x.png b/example/ios/Runner/Assets.xcassets/minipro_list_service.imageset/minipro_list_service@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..5b5e785eeea928ebcef79b771d14b9e2ee43a411 GIT binary patch literal 2782 zcmV<43L*80P)Pxe5T6=69#Tnn3-Aio8v_Kw&l!t1nMh%FxM(F3aA&KojB)6h^T)A8j=#KR0Pr%QiLD{(n1Jv z?D+O}`uo;5o7wg5y?mIe^-1>3eD80b-+Z&0R?e?6(kAH7mnRTG)Zu8G>E&`UG{)K= zAcA=O_qvymNkBZ_Isc4l&a;H}>Yl+q2QKl`QRe#~TTqvDjT4n@NDju>;-+ZgCpJ<7 zWy!cEE^m&2xTxMHBHf{#shwuf)in^{OmtR#PPL9WRsG zZj2`OscomLnxbuwSeoclk={D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P^#;U~P>F#6PK#LT^$A88Yx0xifq_2h@;=qV|hRt1XD(+{IPks}i9N7Lmj z*w zY-V@ilD-_aoq%mGalulV!R?0%$qIBBx#@f1+%GLe4G=i-lckg>cv+V-$u_0Z)|tPi z3#}f;U2V$~+H!o?^&sx?@SWXG7S?jjbIKa+Vmd$PXaHpi{ z*@!*mAlX8;lMjA&`8teG$LyyJV!*|72lDep^L&27rxQjtVq{Z}PQ?cYhKj$#D#ia; z-FFRh#*QLMZo7&jU}BAw;rNR9os044bp#@Gd^x&dIGyY+m3=C_s;%UMpH5$g=`9Nh zyf6gBupa2E3fc+&i3xrJ2frgnSf($(Kv+c15+P))L)v;{Ds_8F2|?2|*GXPHScDv9 z`AR64W9m1q*rg9c%X}={i(#uxg|(axdXEd7(#X-a)`#ZRagF249^7sq5Z1d!TQF_n zS<_?HP=D`Htfy`pEVKouv%5!{BZ=!hWUgjMM@J1h`2afTUP8d=zhAesfzEu_FRSb4 zdYmw16WInE$yTzNY&3Gh^20YN@?2H==s1@X&!gwhUH_2ChLx{^ z@HI`ag}6#Cg$MIgMmYOJ7#;YXk4jr^y=;d`0p5i7V%ptmEAu>B`x&r){rcI*-ubA@ zvcx^WFZR-4Hk`zeKBF7rXG5vvTV8xM+Z8!X&&YVu#ilgzDhnZ-Dtg(irY9xJs>op} zn;z{kJ(uU(r*LgsR?a)Rlrx>>lpH2Q^Xqg!)~TJZ!XI6n1HGIgT3F$$*`nBBY}@upg>M3P;)#R94MlRRMkeGbY9# z#Tst|-1n?j>17?kLRV%WxlOh|iSiS1ST&S3xC4ie?ZbKLB;{1RQ)g`d4NDtt27UhW k=U`?kGd(cV1HnD;AC`X#M5%~ix&QzG07*qoM6N<$f==aIJ^%m! literal 0 HcmV?d00001 diff --git a/example/ios/Runner/Assets.xcassets/minipro_list_service.imageset/minipro_list_service@3x.png b/example/ios/Runner/Assets.xcassets/minipro_list_service.imageset/minipro_list_service@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..bc2db4052b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YL-wWVvvJpSq%Q4ylNaxPCKUk#VWn8KiBv*&l7XSbN07*qoM6N<$f&`Op*8l(j literal 0 HcmV?d00001 From 5f88cf1c918f11604ca5612058aa792943a4bf4a Mon Sep 17 00:00:00 2001 From: wanghualei Date: Fri, 9 Jun 2023 16:43:26 +0800 Subject: [PATCH 05/14] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E8=8F=9C?= =?UTF-8?q?=E5=8D=95iOS=E6=94=AF=E6=8C=81=E7=BD=91=E7=BB=9C=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/lib/main.dart | 27 ++++++++------ ios/Classes/Api/MOPAppletDelegate.m | 2 +- ios/Classes/Model/MopCustomMenuModel.h | 50 ++++++++++++++++++++++++++ ios/Classes/Model/MopCustomMenuModel.m | 5 +-- ios/mop.podspec | 4 +-- 5 files changed, 73 insertions(+), 15 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 30a305c..20b97b3 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -129,16 +129,14 @@ class _MyAppState extends State { // physics: NeverScrollableScrollPhysics(), children: [ _buildAppletItem(appletId, "打开小程序", () { - // Mop.instance.openApplet(appletId, - // path: 'pages/index/index', query: ''); - // 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); + 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); - Mop.instance.qrcodeOpenApplet('https://api.finclip.com/api/v1/mop/runtime/applet/-f-MGYzN2Q1YTYzMmI2MWIyZg--'); + // Mop.instance.qrcodeOpenApplet('https://api.finclip.com/api/v1/mop/runtime/applet/-f-MGYzN2Q1YTYzMmI2MWIyZg--'); }), _buildAppletItem(appletId, "finishRunningApplet", () { @@ -198,9 +196,18 @@ class MyAppletHandler extends AppletHandler { @override Future> getCustomMenus(String appId) { + String icon1 = 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'; + if (Platform.isIOS) { + icon1 = 'minipro_list_service'; + } + List customMenus = [ CustomMenu('WXShareAPPFriends', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信好朋友', 'common'), - CustomMenu('WXShareAPPMoments', 'https://img2.baidu.com/it/u=3113705544,436318069&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信朋友圈', 'common'), + CustomMenu('WXShareAPPMoments', 'minipro_list_collect', '微信朋友圈', 'common'), + CustomMenu('MyFriends', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSpvugSNLs9R7iopz_noeotAelvgzYj-74iCg&usqp=CAU', '我的好友', 'common'), + + // CustomMenu('WXShareAPPFriends', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信好朋友', 'common'), + // CustomMenu('WXShareAPPMoments', 'https://img2.baidu.com/it/u=3113705544,436318069&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信朋友圈', 'common'), // CustomMenu('WXShareAPPFriends', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSpvugSNLs9R7iopz_noeotAelvgzYj-74iCg&usqp=CAU', '微信好朋友', 'common'), // CustomMenu('WXShareAPPMoments', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR7cO4KB4e5-Ugdcq4pIyWunliH7LZRZzguKQ&usqp=CAU', '微信朋友圈', 'common'), diff --git a/ios/Classes/Api/MOPAppletDelegate.m b/ios/Classes/Api/MOPAppletDelegate.m index 43a8c13..08c416f 100644 --- a/ios/Classes/Api/MOPAppletDelegate.m +++ b/ios/Classes/Api/MOPAppletDelegate.m @@ -91,7 +91,7 @@ NSString *imageUrl = data[@"image"]; if ([imageUrl hasPrefix:@"http"]) { // 需要异步加载,待优化! - model.menuIconImage = [UIImage fat_getImageWithUrl:imageUrl]; + model.menuIconUrl = imageUrl; } else { model.menuIconImage = [UIImage imageNamed:imageUrl]; } diff --git a/ios/Classes/Model/MopCustomMenuModel.h b/ios/Classes/Model/MopCustomMenuModel.h index 416aea9..1a0d008 100644 --- a/ios/Classes/Model/MopCustomMenuModel.h +++ b/ios/Classes/Model/MopCustomMenuModel.h @@ -12,6 +12,56 @@ NS_ASSUME_NONNULL_BEGIN @interface MopCustomMenuModel : NSObject +/** + 菜单id + */ +@property (nonatomic, copy) NSString *menuId; + +/** + 菜单的icon图标 + 我们固定菜单的大小:3倍图:90*90 + 图标中间小logo与图标宽度比是 5:8。 + 注意:菜单图标显示优先级:后台配置icon > APP注入icon + */ +@property (nonatomic, strong) UIImage *menuIconImage; + +/** + 菜单的icon图标网络链接地址 + 我们固定菜单的大小:3倍图:90*90 + 图标中间小logo与图标宽度比是 5:8,供参考 + 注意:菜单图标显示优先级:后台配置的icon path > App注入的icon + */ +@property (nonatomic, copy) NSString *menuIconUrl; + +/** + 菜单在黑暗模式下的icon图标 + 我们固定菜单的大小:3倍图:90*90 + 图标中间小logo与图标宽度比是 5:8。 + 注意:菜单图标显示优先级:后台配置icon > APP注入icon + */ +@property (nonatomic, strong) UIImage *menuIconDarkImage; + +/** + 菜单的暗黑模式icon图标网络链接地址 + 我们固定菜单的大小:3倍图:90*90 + 图标中间小logo与图标宽度比是 5:8,供参考 + 注意:菜单图标显示优先级:后台配置的darkIcon path > App注入的icon + */ +@property (nonatomic, copy) NSString *menuDarkIconUrl; + +/** + 菜单的标题 + 注意:菜单标题显示优先级:后台配置标题 > APP注入标题 + */ +@property (nonatomic, copy) NSString *menuTitle; + +/** + 菜单的类型 + FATAppletMenuStyleCommon:通用的按钮,不需要小程序提供额外信息就可以调用的,比如收藏; + FATAppletMenuStyleOnMiniProgram:需要小程序配合实现的按钮,也就是说需要小程序提供额外调用参数的按钮,比如分享到微信 + */ +@property (nonatomic, assign) FATAppletMenuStyle menuType; + @end NS_ASSUME_NONNULL_END diff --git a/ios/Classes/Model/MopCustomMenuModel.m b/ios/Classes/Model/MopCustomMenuModel.m index bfea6fc..a937019 100644 --- a/ios/Classes/Model/MopCustomMenuModel.m +++ b/ios/Classes/Model/MopCustomMenuModel.m @@ -9,15 +9,16 @@ @implementation MopCustomMenuModel -@synthesize menuId, menuIconImage, menuTitle, menuType; - - (id)copyWithZone:(NSZone *)zone { MopCustomMenuModel *model = [[MopCustomMenuModel allocWithZone:zone] init]; model.menuId = self.menuId; model.menuIconImage = self.menuIconImage; + model.menuIconDarkImage = self.menuIconDarkImage; model.menuTitle = self.menuTitle; model.menuType = self.menuType; + model.menuIconUrl = self.menuIconUrl; + model.menuDarkIconUrl = self.menuDarkIconUrl; return model; } diff --git a/ios/mop.podspec b/ios/mop.podspec index b1a0d35..6deaa11 100644 --- a/ios/mop.podspec +++ b/ios/mop.podspec @@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk. s.dependency 'Flutter' s.ios.deployment_target = '9.0' - s.dependency 'FinApplet' , '2.41.0-alpha20230602v12' - s.dependency 'FinAppletExt' , '2.41.0-alpha20230602v12' + s.dependency 'FinApplet' , '2.40.12-dev20230608v03' + s.dependency 'FinAppletExt' , '2.40.12-dev20230608v03' end From 599b48fb54fe3587ac7282d009118b3474220776 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Fri, 9 Jun 2023 16:44:06 +0800 Subject: [PATCH 06/14] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/lib/main.dart | 5 ----- 1 file changed, 5 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 20b97b3..f7aba25 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -196,11 +196,6 @@ class MyAppletHandler extends AppletHandler { @override Future> getCustomMenus(String appId) { - String icon1 = 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'; - if (Platform.isIOS) { - icon1 = 'minipro_list_service'; - } - List customMenus = [ CustomMenu('WXShareAPPFriends', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信好朋友', 'common'), CustomMenu('WXShareAPPMoments', 'minipro_list_collect', '微信朋友圈', 'common'), From 894de700bcd7d463f6af0f08967475e3d87a673a Mon Sep 17 00:00:00 2001 From: wanghualei Date: Sun, 11 Jun 2023 13:59:21 +0800 Subject: [PATCH 07/14] =?UTF-8?q?update=20vconsole=E5=BC=BA=E5=88=B6?= =?UTF-8?q?=E5=BC=80=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/lib/main.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index f7aba25..e10115e 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -45,6 +45,7 @@ class _MyAppState extends State { Config config = Config(storeConfigs); config.language = LanguageType.English; config.baseLoadingViewClass = "LoadingView"; + config.appletDebugMode = BOOLState.BOOLStateTrue; UIConfig uiconfig = UIConfig(); uiconfig.isAlwaysShowBackInDefaultNavigationBar = false; @@ -168,7 +169,7 @@ class _MyAppState extends State { children: [ _buildAppletWidget("5facb3a52dcbff00017469bd", "画图小程序"), _buildAppletWidget("5f72e3559a6a7900019b5baa", "官方小程序"), - _buildAppletWidget("5fa215459a6a7900019b5cc3", "我的对账单"), + _buildAppletWidget("5f17f457297b540001e06ebb", "测试小程序"), ], ), ), @@ -197,9 +198,9 @@ class MyAppletHandler extends AppletHandler { @override Future> getCustomMenus(String appId) { List customMenus = [ - CustomMenu('WXShareAPPFriends', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信好朋友', 'common'), - CustomMenu('WXShareAPPMoments', 'minipro_list_collect', '微信朋友圈', 'common'), - CustomMenu('MyFriends', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSpvugSNLs9R7iopz_noeotAelvgzYj-74iCg&usqp=CAU', '我的好友', 'common'), + CustomMenu('CustomMenu1', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '百度图标', 'common'), + CustomMenu('CustomMenu2', 'minipro_list_collect', '工程图标', 'common'), + CustomMenu('MyFriends', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSpvugSNLs9R7iopz_noeotAelvgzYj-74iCg&usqp=CAU', '谷歌图标', 'common'), // CustomMenu('WXShareAPPFriends', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信好朋友', 'common'), // CustomMenu('WXShareAPPMoments', 'https://img2.baidu.com/it/u=3113705544,436318069&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信朋友圈', 'common'), From 347c40f940b4e8135ba6c2efc30ab155129ce725 Mon Sep 17 00:00:00 2001 From: raozhengfa Date: Wed, 14 Jun 2023 10:22:24 +0000 Subject: [PATCH 08/14] =?UTF-8?q?=E3=80=90RT-27111=E3=80=91=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E5=BA=93=E9=A2=84=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/build.gradle | 2 +- .../java/com/finogeeks/mop/api/mop/BaseModule.java | 10 +++++++++- .../java/com/finogeeks/mop/api/mop/InitSDKModule.java | 11 ++++++++++- lib/mop.dart | 9 +++++++-- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 4c15ea0..3339b18 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -91,6 +91,6 @@ kapt { } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.finogeeks.lib:finapplet:2.40.11' + implementation 'com.finogeeks.lib:finapplet:2.40.12-dev20230614v05' implementation 'com.finogeeks.mop:plugins:2.40.11' } \ No newline at end of file diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java index 30e6680..4f93e26 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java @@ -2,6 +2,7 @@ package com.finogeeks.mop.api.mop; import android.app.Application; import android.content.Context; +import android.text.TextUtils; import android.util.Log; import com.finogeeks.lib.applet.client.FinAppClient; @@ -101,8 +102,14 @@ public class BaseModule extends BaseApi { if (fingerprint == null) fingerprint = ""; String encryptType = (String) config.get("cryptType"); Boolean encryptServerData1 = (Boolean) config.get("encryptServerData"); + Boolean enablePreloadFramework = (Boolean) config.get("enablePreloadFramework"); + //凡泰助手里,服务器是https://api.finclip.com,默认开启预加载基础库 + if(!TextUtils.isEmpty(apiServer) && apiServer.equals("https://api.finclip.com")) { + enablePreloadFramework = true; + } + if (encryptServerData1 == null) encryptServerData1 = false; - finStoreConfigs.add(new FinStoreConfig(sdkKey, sdkSecret, apiUrl, apmUrl, "", fingerprint, encryptType, encryptServerData1)); + finStoreConfigs.add(new FinStoreConfig(sdkKey, sdkSecret, apiUrl, apmUrl, "", fingerprint, encryptType, encryptServerData1, enablePreloadFramework)); } } } @@ -155,6 +162,7 @@ public class BaseModule extends BaseApi { } }; + FinAppClient.INSTANCE.preloadFramework(config, application); FinAppClient.INSTANCE.init(application, config, cb); } } \ No newline at end of file diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java index a55e5de..542a11c 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java @@ -2,6 +2,7 @@ package com.finogeeks.mop.api.mop; import android.app.Application; import android.content.Context; +import android.text.TextUtils; import android.util.Log; import com.finogeeks.lib.applet.client.FinAppClient; @@ -63,8 +64,15 @@ public class InitSDKModule extends BaseApi { } String cryptType = (String) store.get("cryptType"); Boolean encryptServerData = (Boolean) store.get("encryptServerData"); + Boolean enablePreloadFramework = (Boolean) store.get("enablePreloadFramework"); + //凡泰助手里,服务器是https://api.finclip.com,默认开启预加载基础库 + if (!TextUtils.isEmpty(apiServer) && apiServer.equals("https://api.finclip.com")) { + enablePreloadFramework = true; + } + + storeConfigs.add(new FinStoreConfig(sdkKey, sdkSecret, apiServer, apmServer, "", - fingerprint, cryptType, encryptServerData)); + fingerprint, cryptType, encryptServerData, enablePreloadFramework)); } configBuilder.setFinStoreConfigs(storeConfigs); String userId = (String) configMap.get("userId"); @@ -216,6 +224,7 @@ public class InitSDKModule extends BaseApi { } }; + FinAppClient.INSTANCE.preloadFramework(finAppConfig, application); FinAppClient.INSTANCE.init(application, finAppConfig, cb); } diff --git a/lib/mop.dart b/lib/mop.dart index f8eefc0..bdd933f 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -34,11 +34,15 @@ class FinStoreConfig { /// 是否需要接口加密验证(初始化多服务器时使用)默认为不开启,当设置为YES时开启,接口返回加密数据并处理 bool encryptServerData; + /// 是否开启预加载基础库 + bool enablePreloadFramework; + FinStoreConfig(this.sdkKey, this.sdkSecret, this.apiServer, {this.apmServer, this.cryptType = "MD5", this.fingerprint, - this.encryptServerData = false}); + this.encryptServerData = false, + this.enablePreloadFramework = false}); Map toMap() { return { @@ -48,7 +52,8 @@ class FinStoreConfig { "apmServer": apmServer, "cryptType": cryptType, "fingerprint": fingerprint, - "encryptServerData": encryptServerData + "encryptServerData": encryptServerData, + "enablePreloadFramework": enablePreloadFramework }; } } From 3e22570127e54e5d3e5350afb86a15d7bda7b585 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Wed, 14 Jun 2023 19:06:10 +0800 Subject: [PATCH 09/14] =?UTF-8?q?update=20=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/ios/Podfile.lock | 16 ++++++++-------- example/ios/Runner.xcodeproj/project.pbxproj | 1 + example/lib/main.dart | 14 ++++++++++---- ios/Classes/Api/MOPAppletDelegate.m | 6 ++++++ ios/mop.podspec | 4 ++-- lib/api.dart | 3 ++- lib/mop.dart | 3 +++ 7 files changed, 32 insertions(+), 15 deletions(-) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index fbb69b6..44b619c 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,11 +1,11 @@ PODS: - - FinApplet (2.40.12-dev20230608v03) - - FinAppletExt (2.40.12-dev20230608v03): - - FinApplet (= 2.40.12-dev20230608v03) + - FinApplet (2.40.12-dev20230614v02) + - FinAppletExt (2.40.12-dev20230614v02): + - FinApplet (= 2.40.12-dev20230614v02) - Flutter (1.0.0) - mop (0.1.1): - - FinApplet (= 2.40.12-dev20230608v03) - - FinAppletExt (= 2.40.12-dev20230608v03) + - FinApplet (= 2.40.12-dev20230614v02) + - FinAppletExt (= 2.40.12-dev20230614v02) - Flutter DEPENDENCIES: @@ -24,10 +24,10 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/mop/ios" SPEC CHECKSUMS: - FinApplet: 65349d2bff2aa592743da609a534eff8572681e4 - FinAppletExt: 92f01be77bb89ebf500b68e7f536441f62e02670 + FinApplet: de28575dab4c28c200c02844f4909b04d376def2 + FinAppletExt: eea5d939667836c744b5eb4afcc81285e248c9f3 Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a - mop: 51a9fa6dd85e339898d1d602572cccdc0f491b76 + mop: d8bad2214a82a3440c154e496d0d49c1144490a4 PODFILE CHECKSUM: 2da0220ee5ba22a2dfcec42dfe5b17d05f3c3da9 diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 95037a5..0551d33 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -496,6 +496,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; diff --git a/example/lib/main.dart b/example/lib/main.dart index e10115e..aeaa676 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -60,6 +60,7 @@ class _MyAppState extends State { uiconfig.capsuleConfig = capsuleConfig; uiconfig.appletText = "applet"; uiconfig.loadingLayoutCls = "com.finogeeks.mop_example.CustomLoadingPage"; + uiconfig.autoAdaptDarkMode = true; // if (Platform.isIOS) { // final res = await Mop.instance.initialize( @@ -197,11 +198,16 @@ class MyAppletHandler extends AppletHandler { @override Future> getCustomMenus(String appId) { - List customMenus = [ - CustomMenu('CustomMenu1', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '百度图标', 'common'), - CustomMenu('CustomMenu2', 'minipro_list_collect', '工程图标', 'common'), - CustomMenu('MyFriends', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSpvugSNLs9R7iopz_noeotAelvgzYj-74iCg&usqp=CAU', '谷歌图标', 'common'), + CustomMenu menu1 = CustomMenu('CustomMenu1', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '百度图标', 'common'); + menu1.darkImage = 'https://img95.699pic.com/xsj/14/46/mh.jpg%21/fw/700/watermark/url/L3hzai93YXRlcl9kZXRhaWwyLnBuZw/align/southeast'; + + CustomMenu menu2 = CustomMenu('CustomMenu2', 'minipro_list_collect', '工程图标', 'common'); + menu2.darkImage = 'minipro_list_service'; + List customMenus = [ + menu1, + menu2, + CustomMenu('MyFriends', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSpvugSNLs9R7iopz_noeotAelvgzYj-74iCg&usqp=CAU', '谷歌图标', 'common'), // CustomMenu('WXShareAPPFriends', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信好朋友', 'common'), // CustomMenu('WXShareAPPMoments', 'https://img2.baidu.com/it/u=3113705544,436318069&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '微信朋友圈', 'common'), diff --git a/ios/Classes/Api/MOPAppletDelegate.m b/ios/Classes/Api/MOPAppletDelegate.m index 08c416f..cdb730b 100644 --- a/ios/Classes/Api/MOPAppletDelegate.m +++ b/ios/Classes/Api/MOPAppletDelegate.m @@ -95,6 +95,12 @@ } else { model.menuIconImage = [UIImage imageNamed:imageUrl]; } + NSString *darkImageUrl = data[@"darkImage"]; + if ([darkImageUrl hasPrefix:@"http"]) { + model.menuDarkIconUrl = darkImageUrl; + } else { + model.menuIconDarkImage = [UIImage imageNamed:darkImageUrl]; + } NSString *typeString = data[@"type"]; if (typeString) { FATAppletMenuStyle style = [typeString isEqualToString:@"onMiniProgram"] ? FATAppletMenuStyleOnMiniProgram : FATAppletMenuStyleCommon; diff --git a/ios/mop.podspec b/ios/mop.podspec index 6deaa11..8077459 100644 --- a/ios/mop.podspec +++ b/ios/mop.podspec @@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk. s.dependency 'Flutter' s.ios.deployment_target = '9.0' - s.dependency 'FinApplet' , '2.40.12-dev20230608v03' - s.dependency 'FinAppletExt' , '2.40.12-dev20230608v03' + s.dependency 'FinApplet' , '2.40.12-dev20230614v02' + s.dependency 'FinAppletExt' , '2.40.12-dev20230614v02' end diff --git a/lib/api.dart b/lib/api.dart index f4c554b..5dd445d 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -1,13 +1,14 @@ class CustomMenu { String menuId; String image; + String? darkImage; String title; String type; CustomMenu(this.menuId, this.image, this.title, this.type); Map toJson() => - {'menuId': menuId, 'image': image, 'title': title, 'type': type}; + {'menuId': menuId, 'image': image, 'darkImage': darkImage, 'title': title, 'type': type}; } abstract class AppletHandler { diff --git a/lib/mop.dart b/lib/mop.dart index f8eefc0..79270df 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -1154,6 +1154,9 @@ class Mop { map["image"] = element.image; map["title"] = element.title; map["type"] = element.type; + if (element.darkImage != null) { + map["darkImage"] = element.darkImage; + } list.add(map); }); debugPrint("registerAppletHandler getCustomMenus list $list"); From cfb1e5dc3fd945e19089775fcfb9910a8254e6d4 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Wed, 14 Jun 2023 21:37:31 +0800 Subject: [PATCH 10/14] =?UTF-8?q?=E5=AE=89=E5=8D=93=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F=E5=9B=BE?= =?UTF-8?q?=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/finogeeks/mop/api/mop/AppletHandlerModule.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java index 097b636..aa54290 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java @@ -186,12 +186,17 @@ public class AppletHandlerModule extends BaseApi { if (image == null) { image = ""; } + String darkImage = (String) map.get("darkImage"); + if (darkImage == null) { + darkImage = ""; + } moreMenuItems.add( new MoreMenuItem( menuId, title, image, -1, + darkImage, moreMenuType, true ) From 47698ea673a2c1f5ad631ae7e53bc25bead54f58 Mon Sep 17 00:00:00 2001 From: jizelin Date: Wed, 14 Jun 2023 21:56:28 +0800 Subject: [PATCH 11/14] =?UTF-8?q?feat:=20iOS=20UAT=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=BC=80=E5=90=AF=E5=9F=BA=E7=A1=80=E5=BA=93?= =?UTF-8?q?=E9=A2=84=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Api/MOP_initSDK.m | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/Classes/Api/MOP_initSDK.m b/ios/Classes/Api/MOP_initSDK.m index 443b5a1..a74edf4 100644 --- a/ios/Classes/Api/MOP_initSDK.m +++ b/ios/Classes/Api/MOP_initSDK.m @@ -33,6 +33,7 @@ storeConfig.cryptType = FATApiCryptTypeMD5; } storeConfig.encryptServerData = [dict[@"encryptServerData"] boolValue]; + storeConfig.enablePreloadFramework = [storeConfig.apiServer isEqualToString:@"https://api.finclip.com"]; [storeArrayM addObject:storeConfig]; } config = [FATConfig configWithStoreConfigs:storeArrayM]; From e29cf84a9502d4e036aaf653f3302dec289b6b0e Mon Sep 17 00:00:00 2001 From: raozhengfa Date: Thu, 15 Jun 2023 09:51:19 +0800 Subject: [PATCH 12/14] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E5=BA=93=E9=A2=84=E5=8A=A0=E8=BD=BD=E4=B8=A4=E6=AC=A1=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java | 1 - .../src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java | 1 - 2 files changed, 2 deletions(-) diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java index 4f93e26..c0bf857 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/BaseModule.java @@ -162,7 +162,6 @@ public class BaseModule extends BaseApi { } }; - FinAppClient.INSTANCE.preloadFramework(config, application); FinAppClient.INSTANCE.init(application, config, cb); } } \ No newline at end of file diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java index 542a11c..8a61930 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java @@ -224,7 +224,6 @@ public class InitSDKModule extends BaseApi { } }; - FinAppClient.INSTANCE.preloadFramework(finAppConfig, application); FinAppClient.INSTANCE.init(application, finAppConfig, cb); } From ef025e79edbe9c29168f393749cb2a284ace992a Mon Sep 17 00:00:00 2001 From: yangbinqiao Date: Thu, 15 Jun 2023 16:13:38 +0800 Subject: [PATCH 13/14] update: android version; --- android/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 3339b18..2bd2bcb 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -91,6 +91,6 @@ kapt { } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.finogeeks.lib:finapplet:2.40.12-dev20230614v05' - implementation 'com.finogeeks.mop:plugins:2.40.11' + implementation 'com.finogeeks.lib:finapplet:2.40.12-dev20230615v11' + implementation 'com.finogeeks.mop:plugins:2.40.12-dev20230615v11' } \ No newline at end of file From e8de7ac45360cdd0572b705c69446032cbfca10e Mon Sep 17 00:00:00 2001 From: wanghualei Date: Thu, 15 Jun 2023 17:21:22 +0800 Subject: [PATCH 14/14] update --- example/lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index aeaa676..a2ab05c 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -198,7 +198,7 @@ class MyAppletHandler extends AppletHandler { @override Future> getCustomMenus(String appId) { - CustomMenu menu1 = CustomMenu('CustomMenu1', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '百度图标', 'common'); + CustomMenu menu1 = CustomMenu('WXTest', 'https://img1.baidu.com/it/u=2878938773,1765835171&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', '百度图标', 'common'); menu1.darkImage = 'https://img95.699pic.com/xsj/14/46/mh.jpg%21/fw/700/watermark/url/L3hzai93YXRlcl9kZXRhaWwyLnBuZw/align/southeast'; CustomMenu menu2 = CustomMenu('CustomMenu2', 'minipro_list_collect', '工程图标', 'common');