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 0000000..528c00e Binary files /dev/null and b/ios/Frameworks/Simulator/JCPrinterSDK.framework/Info.plist differ diff --git a/ios/Frameworks/Simulator/JCPrinterSDK.framework/JCPrinterSDK b/ios/Frameworks/Simulator/JCPrinterSDK.framework/JCPrinterSDK new file mode 100755 index 0000000..e3518a6 Binary files /dev/null and b/ios/Frameworks/Simulator/JCPrinterSDK.framework/JCPrinterSDK differ 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'