From 6c44e49e7a4999b09478947834a7187e74213530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=AA=E8=84=96=E5=AD=90?= Date: Thu, 26 Oct 2023 13:00:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E4=B8=8D=E6=94=AF=E6=8C=81=E6=A8=A1?= =?UTF-8?q?=E6=8B=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/ios/Podfile.lock | 2 +- ios/Classes/JcPrinterPlugin.m | 13 +- .../Headers/JCPrinterSDK.h | 3 +- .../Headers/JCPrinterSDK.h | 21 + .../JCPrinterSDK.framework/Info.plist | Bin 0 -> 737 bytes .../JCPrinterSDK.framework/JCPrinterSDK | Bin 0 -> 55088 bytes .../JCSDKPringterConfig.json | 571 ++++++++++++++++++ .../Modules/module.modulemap | 6 + .../_CodeSignature/CodeResources | 135 +++++ ios/jc_printer.podspec | 7 +- pubspec.yaml | 4 +- 11 files changed, 755 insertions(+), 7 deletions(-) create mode 100644 ios/Frameworks/Simulator/JCPrinterSDK.framework/Headers/JCPrinterSDK.h create mode 100644 ios/Frameworks/Simulator/JCPrinterSDK.framework/Info.plist create mode 100755 ios/Frameworks/Simulator/JCPrinterSDK.framework/JCPrinterSDK create mode 100644 ios/Frameworks/Simulator/JCPrinterSDK.framework/JCSDKPringterConfig.json create mode 100644 ios/Frameworks/Simulator/JCPrinterSDK.framework/Modules/module.modulemap create mode 100644 ios/Frameworks/Simulator/JCPrinterSDK.framework/_CodeSignature/CodeResources diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 4a44d88..35d6dc9 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -35,7 +35,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 integration_test: 13825b8a9334a850581300559b8839134b124670 - jc_printer: 98d27e989a3129f784669a21dd5883eec26ba102 + jc_printer: c4a2906ddae176e1e82fbf52f337a6b6dfc95f99 Protobuf: 351e9022fe13a6e2af00e9aefc22077cb88520f8 reactive_ble_mobile: 9ce6723d37ccf701dbffd202d487f23f5de03b4c SwiftProtobuf: bcfd2bc231cf9ae552cdc7c4e877bd3b41fe57b1 diff --git a/ios/Classes/JcPrinterPlugin.m b/ios/Classes/JcPrinterPlugin.m index f0fee2d..4a1e2aa 100644 --- a/ios/Classes/JcPrinterPlugin.m +++ b/ios/Classes/JcPrinterPlugin.m @@ -1,5 +1,8 @@ #import "JcPrinterPlugin.h" + +#if !TARGET_IPHONE_SIMULATOR #import +#endif @implementation JcPrinterPlugin + (void)registerWithRegistrar:(NSObject*)registrar { @@ -8,14 +11,15 @@ JcPrinterPlugin* instance = [[JcPrinterPlugin alloc] init]; [registrar addMethodCallDelegate:instance channel:channel]; + FlutterEventChannel* eventChannel = [FlutterEventChannel eventChannelWithName:@"printer_stream" binaryMessenger:[registrar messenger]]; [eventChannel setStreamHandler:instance]; - } - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { // NSLog(@"arguments is :%@", call.arguments); + #if !TARGET_IPHONE_SIMULATOR [self printingCount]; [self errorInfo]; @@ -49,8 +53,12 @@ } else { result(FlutterMethodNotImplemented); } + #else + result(nil); + #endif } +#if !TARGET_IPHONE_SIMULATOR - (void) disconnect { [JCAPI closePrinter]; } @@ -146,6 +154,7 @@ result(@(isSuccess)); }]; } +#endif #pragma mark - FlutterStreamHandler @@ -158,6 +167,7 @@ return nil; } +#if !TARGET_IPHONE_SIMULATOR - (void)connect:(NSString *)name { [JCAPI openPrinter:name completion:^(BOOL isSuccess) { NSDictionary *params = @{ @@ -187,5 +197,6 @@ !self.eventSink ? : self.eventSink(params); }]; } +#endif @end diff --git a/ios/Frameworks/JCPrinterSDK.framework/Headers/JCPrinterSDK.h b/ios/Frameworks/JCPrinterSDK.framework/Headers/JCPrinterSDK.h index 60070cc..2a154b1 100644 --- a/ios/Frameworks/JCPrinterSDK.framework/Headers/JCPrinterSDK.h +++ b/ios/Frameworks/JCPrinterSDK.framework/Headers/JCPrinterSDK.h @@ -15,6 +15,7 @@ FOUNDATION_EXPORT const unsigned char JCPrinterSDKVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import - +#if !TARGET_IPHONE_SIMULATOR #import #import +#endif diff --git a/ios/Frameworks/Simulator/JCPrinterSDK.framework/Headers/JCPrinterSDK.h b/ios/Frameworks/Simulator/JCPrinterSDK.framework/Headers/JCPrinterSDK.h new file mode 100644 index 0000000..2a154b1 --- /dev/null +++ b/ios/Frameworks/Simulator/JCPrinterSDK.framework/Headers/JCPrinterSDK.h @@ -0,0 +1,21 @@ +// +// JCPrinterSDK.h +// JCPrinterSDK +// +// Created by 歪脖子 on 2023/10/21. +// + +#import + +//! Project version number for JCPrinterSDK. +FOUNDATION_EXPORT double JCPrinterSDKVersionNumber; + +//! Project version string for JCPrinterSDK. +FOUNDATION_EXPORT const unsigned char JCPrinterSDKVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#if !TARGET_IPHONE_SIMULATOR +#import +#import +#endif diff --git a/ios/Frameworks/Simulator/JCPrinterSDK.framework/Info.plist b/ios/Frameworks/Simulator/JCPrinterSDK.framework/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..528c00e94885d93af26b43b8bb0f7983341da894 GIT binary patch literal 737 zcmZ9JO>fgc5QcY_uL6Z^o0if-zYDY+EIVmh2@WWYiIi5Mp>|WKqF7sJldQV_knL0i z{s1?A04F$dK}a0A@E5poKu8=AH|~f7o77e!e3_Yd-e-4aedG%sMymRqOaMM}_T2dk zBNs1S9=&okMaIU{6O-4bu1`n%j%G7Rim+cz;$|BQ+ z;#S9P2&S_WCOqF^ZnVc*+;c55p7b6*V|FK^M}iHBrG~WfCTD>~W)o-0ZF)MlBgxaC zTV+8gvs%)9L>+lTIw>pEKBg^Zc73VNB&yN&f+!}9DBx~uxY_Z2*=CK3pi$EcoX{ev zgp8p>-7I*H&qZ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ntks8w9!~}B&xM;I;?K+e|gVp4`@2Y*0i zYU0l<`&)qhd1SU_e_q*bQ*RLIX7f$yZwm`P^vy==SfBJ3 zjq!|6dofwlYs2BPMvv-a<&IWsD5~_GzXVk6q z9+@I)rT4Oh4(nr*dH+lJt0hby|Hj6EWMe5h&CjjQjqnnhu}_KA(jMsYwKp_L3;MG3 z+wALX@zu9BWjSk!1ToP%q}G-|SLRciZ*G}}WW0*CfPd#`-SaWg%Zk{Ts439|ytR6If{BmLt?l4?-VJj^;KX&5fY9Xuni%lt#6mB$lmOpba+YSu~X zs%-$wt4r9fZb(hw|0vDY(Jt6y&ADSSn}ajuwr9p;Tf*)HTlhy59%wwBeq+fI_|Jr| zCGbXWBz(<*$A9i}1edv((tf69Gt)6>(@z1RBp z{b=PcUwvr&xK>ww@WaQJ?yg>)|NNWbM<4s(e*Xh2ChvaYpWi&uJiKP@dG9>6eEPcw zzWVr~p2Q0?14r^+eeuO@xf^@(=WaWE+pW8P_soQUyzB>`)V_cEE1xgF@cp9&KfkE< zK1>$`pSDxcK7c-Ry3mZJ{j15XYrzkempf< zu>Y5g-CY zfCvx)B0vO)01+SpM1Tko0U|&IhyW2F0z`la5CI}U1c(3;AOb{y2oM1xKm>>Y5g-CY cfCvx)B0vO)01+SpM1Tko0U|&I&Ts<%1H;k34FCWD literal 0 HcmV?d00001 diff --git a/ios/Frameworks/Simulator/JCPrinterSDK.framework/JCSDKPringterConfig.json b/ios/Frameworks/Simulator/JCPrinterSDK.framework/JCSDKPringterConfig.json new file mode 100644 index 0000000..c742308 --- /dev/null +++ b/ios/Frameworks/Simulator/JCPrinterSDK.framework/JCSDKPringterConfig.json @@ -0,0 +1,571 @@ +{ + 0:{ + 0:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 1:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 2:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 3:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 4:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 5:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 6:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + }, + 1:{ + 0:"printerImageProcessingInfo": { + "name":"B3S", + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 1:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 2:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 3:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 4:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 5:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 6:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + }, + 2:{ + 0:"printerImageProcessingInfo": { + "name":"D11", + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 1:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 2:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 3:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 4:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 5:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 6:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + }, + 3:{ + 0:"printerImageProcessingInfo": { + "name":"B21", + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 1:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 2:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 3:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 4:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 5:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 6:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + }, + 4:{ + 0:"printerImageProcessingInfo": { + "name":"P1S", + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 1:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 2:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 3:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 4:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 5:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 6:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + }, + 5:{ + 0:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 1:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 2:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 3:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 4:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 5:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 6:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + }, + 6:{ + 0:"printerImageProcessingInfo": { + "name":"D11", + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 1:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 2:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 3:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 4:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 5:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 6:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + }, + 7:{ + 0:"printerImageProcessingInfo": { + "name":"B16", + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 1:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 2:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 3:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 4:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 5:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 6:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + }, + 8:{ + 0:"printerImageProcessingInfo": { + "name":"B32", + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 1:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 2:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 3:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 4:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 5:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 6:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + }, + 9:{ + 0:"printerImageProcessingInfo": { + "name":"D110", + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 1:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 2:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 3:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 4:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 5:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 6:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + }, + 10:{ + 0:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 1:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 2:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 3:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 4:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 5:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + 6:"printerImageProcessingInfo": { + "margin": [0, 0, 0, 0], + "imageCrop": [0, 0, 0, 0], + "printMultiple":8, + "horizontalOffset": 0, + "verticalOffset": 0 + }, + } +} diff --git a/ios/Frameworks/Simulator/JCPrinterSDK.framework/Modules/module.modulemap b/ios/Frameworks/Simulator/JCPrinterSDK.framework/Modules/module.modulemap new file mode 100644 index 0000000..89f8f43 --- /dev/null +++ b/ios/Frameworks/Simulator/JCPrinterSDK.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module JCPrinterSDK { + umbrella header "JCPrinterSDK.h" + export * + + module * { export * } +} diff --git a/ios/Frameworks/Simulator/JCPrinterSDK.framework/_CodeSignature/CodeResources b/ios/Frameworks/Simulator/JCPrinterSDK.framework/_CodeSignature/CodeResources new file mode 100644 index 0000000..88c9de4 --- /dev/null +++ b/ios/Frameworks/Simulator/JCPrinterSDK.framework/_CodeSignature/CodeResources @@ -0,0 +1,135 @@ + + + + + files + + Headers/JCPrinterSDK.h + + DYmSRBG4gjIfOoEkSdzw3Fw/ATA= + + Info.plist + + O2En1YQHOQ/2kA0vAiC8z5xC7jQ= + + JCSDKPringterConfig.json + + W5t+z3EDNLukcvBopm4aV4hxyPQ= + + Modules/module.modulemap + + K4stNq9fSA2Rs8SICxhF1zAoRVc= + + + files2 + + Headers/JCPrinterSDK.h + + hash2 + + b/SZR2iuu4VwNJ4P1PO7A7scPzZYumOiEF2gaaXCoeM= + + + JCSDKPringterConfig.json + + hash2 + + lavg6DNvrj9IFGCXV/9B9d97bmvkxL4O04ZT5ykbcy0= + + + Modules/module.modulemap + + hash2 + + HBi3AGrZwcen80swBSZRMRH5ByXBynl7MLk9In1dlrc= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/ios/jc_printer.podspec b/ios/jc_printer.podspec index 6f6e6bd..6cd5afb 100644 --- a/ios/jc_printer.podspec +++ b/ios/jc_printer.podspec @@ -14,11 +14,14 @@ Pod::Spec.new do |s| s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' - s.vendored_frameworks = 'Frameworks/JCPrinterSDK.framework', 'Frameworks/CocoaAsyncSocket.framework' + s.vendored_framework = 'Frameworks/JCPrinterSDK.framework' s.dependency 'Flutter' s.platform = :ios, '11.0' # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } + s.pod_target_xcconfig = { + 'DEFINES_MODULE' => 'YES', + 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386', + } end diff --git a/pubspec.yaml b/pubspec.yaml index c8540f5..3c6264a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: jc_printer description: 精臣打印机SDK -version: 0.0.1 -homepage: +version: 0.0.2 +homepage: https://git.nasme.cc:10443/rean/flutter_jc_printer_plugin environment: sdk: '>=3.1.3 <4.0.0'