@m430/capacitor-label-printer 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API.md +218 -0
- package/LICENSE +21 -0
- package/M430CapacitorLabelPrinter.podspec +21 -0
- package/README.md +190 -0
- package/android/build.gradle +46 -0
- package/android/libs/.gitkeep +1 -0
- package/android/libs/fat-generic-tspl-bluetooth-classic-0.1.16-GA.jar +0 -0
- package/android/src/main/AndroidManifest.xml +12 -0
- package/android/src/main/java/com/m430/capacitor/labelprinter/.gitkeep +1 -0
- package/android/src/main/java/com/m430/capacitor/labelprinter/AndroidPrinterManager.java +132 -0
- package/android/src/main/java/com/m430/capacitor/labelprinter/AndroidStatusMapper.java +54 -0
- package/android/src/main/java/com/m430/capacitor/labelprinter/LabelPrinterPlugin.java +273 -0
- package/android/src/main/java/com/m430/capacitor/labelprinter/VendorAndroidDeviceCatalog.java +81 -0
- package/android/src/main/java/com/m430/capacitor/labelprinter/VendorAndroidPrinterSession.java +189 -0
- package/capacitor-label-printer.podspec +21 -0
- package/dist/docs.json +443 -0
- package/dist/esm/cpcl/builder.d.ts +10 -0
- package/dist/esm/cpcl/builder.js +35 -0
- package/dist/esm/definitions.d.ts +107 -0
- package/dist/esm/definitions.js +1 -0
- package/dist/esm/errors.d.ts +1 -0
- package/dist/esm/errors.js +1 -0
- package/dist/esm/index.d.ts +9 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/tspl/builder.d.ts +13 -0
- package/dist/esm/tspl/builder.js +45 -0
- package/dist/esm/tspl/helpers.d.ts +2 -0
- package/dist/esm/tspl/helpers.js +6 -0
- package/dist/esm/types.d.ts +12 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/web.d.ts +21 -0
- package/dist/esm/web.js +34 -0
- package/dist/plugin.cjs.js +143 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +136 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Plugin/.gitkeep +1 -0
- package/ios/Plugin/IOSPrinterManager.swift +230 -0
- package/ios/Plugin/IOSStatusMapper.swift +57 -0
- package/ios/Plugin/LabelPrinterPlugin.swift +141 -0
- package/ios/VendorFrameworks/.gitkeep +1 -0
- package/ios/VendorFrameworks/adapter.framework/Headers/BasedOtherConnectedDevice.h +17 -0
- package/ios/VendorFrameworks/adapter.framework/Headers/ConnectedDevice.h +213 -0
- package/ios/VendorFrameworks/adapter.framework/Headers/IPRTBlueToothBaseDef.h +22 -0
- package/ios/VendorFrameworks/adapter.framework/Headers/KeepStateConnectedDevice.h +18 -0
- package/ios/VendorFrameworks/adapter.framework/Headers/QueueConfig.h +18 -0
- package/ios/VendorFrameworks/adapter.framework/Headers/ReadOptions.h +22 -0
- package/ios/VendorFrameworks/adapter.framework/Headers/WroteReporter.h +23 -0
- package/ios/VendorFrameworks/adapter.framework/Headers/adapter.h +18 -0
- package/ios/VendorFrameworks/adapter.framework/Info.plist +0 -0
- package/ios/VendorFrameworks/adapter.framework/Modules/module.modulemap +6 -0
- package/ios/VendorFrameworks/adapter.framework/adapter +0 -0
- package/ios/VendorFrameworks/appleble.framework/Frameworks/adapter.framework/Info.plist +0 -0
- package/ios/VendorFrameworks/appleble.framework/Frameworks/adapter.framework/_CodeSignature/CodeResources +101 -0
- package/ios/VendorFrameworks/appleble.framework/Frameworks/adapter.framework/adapter +0 -0
- package/ios/VendorFrameworks/appleble.framework/Frameworks/ibridge.framework/Frameworks/adapter.framework/Info.plist +0 -0
- package/ios/VendorFrameworks/appleble.framework/Frameworks/ibridge.framework/Frameworks/adapter.framework/adapter +0 -0
- package/ios/VendorFrameworks/appleble.framework/Frameworks/ibridge.framework/Info.plist +0 -0
- package/ios/VendorFrameworks/appleble.framework/Frameworks/ibridge.framework/_CodeSignature/CodeResources +132 -0
- package/ios/VendorFrameworks/appleble.framework/Frameworks/ibridge.framework/ibridge +0 -0
- package/ios/VendorFrameworks/appleble.framework/Headers/AppleBle.h +25 -0
- package/ios/VendorFrameworks/appleble.framework/Info.plist +0 -0
- package/ios/VendorFrameworks/appleble.framework/Modules/module.modulemap +6 -0
- package/ios/VendorFrameworks/appleble.framework/_CodeSignature/CodeResources +252 -0
- package/ios/VendorFrameworks/appleble.framework/appleble +0 -0
- package/ios/VendorFrameworks/father.framework/Frameworks/adapter.framework/Info.plist +0 -0
- package/ios/VendorFrameworks/father.framework/Frameworks/adapter.framework/adapter +0 -0
- package/ios/VendorFrameworks/father.framework/Headers/Appendat.h +28 -0
- package/ios/VendorFrameworks/father.framework/Headers/Arg.h +22 -0
- package/ios/VendorFrameworks/father.framework/Headers/BasicBatteryVolumeArg.h +16 -0
- package/ios/VendorFrameworks/father.framework/Headers/BinaryCommand.h +17 -0
- package/ios/VendorFrameworks/father.framework/Headers/CPCLCommand.h +10 -0
- package/ios/VendorFrameworks/father.framework/Headers/CallbackData.h +26 -0
- package/ios/VendorFrameworks/father.framework/Headers/Checker.h +16 -0
- package/ios/VendorFrameworks/father.framework/Headers/Command.h +25 -0
- package/ios/VendorFrameworks/father.framework/Headers/CommandClause.h +33 -0
- package/ios/VendorFrameworks/father.framework/Headers/Commander.h +31 -0
- package/ios/VendorFrameworks/father.framework/Headers/DataWriteOperation.h +42 -0
- package/ios/VendorFrameworks/father.framework/Headers/DefaultCommand.h +16 -0
- package/ios/VendorFrameworks/father.framework/Headers/EasyArg.h +16 -0
- package/ios/VendorFrameworks/father.framework/Headers/FastBinary.h +20 -0
- package/ios/VendorFrameworks/father.framework/Headers/HexOutput.h +19 -0
- package/ios/VendorFrameworks/father.framework/Headers/IDataWriteCallback.h +25 -0
- package/ios/VendorFrameworks/father.framework/Headers/Lifecycle.h +21 -0
- package/ios/VendorFrameworks/father.framework/Headers/NewLineArg.h +15 -0
- package/ios/VendorFrameworks/father.framework/Headers/OnlyBinaryHeaderArg.h +15 -0
- package/ios/VendorFrameworks/father.framework/Headers/OnlyTextHeaderArg.h +16 -0
- package/ios/VendorFrameworks/father.framework/Headers/PImageTool.h +22 -0
- package/ios/VendorFrameworks/father.framework/Headers/PReplaceKit.h +16 -0
- package/ios/VendorFrameworks/father.framework/Headers/PSDK.h +60 -0
- package/ios/VendorFrameworks/father.framework/Headers/PVariableKit.h +18 -0
- package/ios/VendorFrameworks/father.framework/Headers/PsdkConst.h +33 -0
- package/ios/VendorFrameworks/father.framework/Headers/Raw.h +22 -0
- package/ios/VendorFrameworks/father.framework/Headers/SimpleCheck.h +16 -0
- package/ios/VendorFrameworks/father.framework/Headers/SingleCommand.h +32 -0
- package/ios/VendorFrameworks/father.framework/Headers/TSPLCommand.h +10 -0
- package/ios/VendorFrameworks/father.framework/Headers/WriteControl.h +12 -0
- package/ios/VendorFrameworks/father.framework/Headers/WriteOptions.h +28 -0
- package/ios/VendorFrameworks/father.framework/Headers/father.h +21 -0
- package/ios/VendorFrameworks/father.framework/Info.plist +0 -0
- package/ios/VendorFrameworks/father.framework/Modules/module.modulemap +6 -0
- package/ios/VendorFrameworks/father.framework/father +0 -0
- package/ios/VendorFrameworks/tspl.framework/Frameworks/father.framework/Frameworks/adapter.framework/Info.plist +0 -0
- package/ios/VendorFrameworks/tspl.framework/Frameworks/father.framework/Frameworks/adapter.framework/adapter +0 -0
- package/ios/VendorFrameworks/tspl.framework/Frameworks/father.framework/Info.plist +0 -0
- package/ios/VendorFrameworks/tspl.framework/Frameworks/father.framework/father +0 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/BasicTSPL.h +146 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/BasicTSPLArg.h +17 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/GenericTSPL.h +16 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TBar.h +30 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TBarCode.h +54 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TBatteryVolume.h +19 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TBox.h +32 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TCircle.h +26 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TCleanBmpFlash.h +20 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TClear.h +20 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TCut.h +21 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TDensity.h +21 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TDirection.h +51 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TDmatrix.h +29 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TDownloadBmpFlash.h +16 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TGap.h +21 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TImage.h +36 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TLine.h +34 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TMddle.h +16 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TPage.h +22 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TPrint.h +21 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TQRCode.h +35 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TReadState.h +16 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TReverse.h +27 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSN.h +19 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSPLCodeType.h +53 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSPLCorrectLevel.h +21 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSPLFont.h +83 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSPLImageMode.h +30 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSPLLineMode.h +37 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSPLLineType.h +21 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSPLOutDirection.h +27 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSPLRotation.h +36 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSPLShowType.h +36 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSPL_.h +18 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TSpeed.h +20 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TText.h +38 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TTextBox.h +44 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/TVersion.h +19 -0
- package/ios/VendorFrameworks/tspl.framework/Headers/tspl.h +45 -0
- package/ios/VendorFrameworks/tspl.framework/Info.plist +0 -0
- package/ios/VendorFrameworks/tspl.framework/Modules/module.modulemap +6 -0
- package/ios/VendorFrameworks/tspl.framework/tspl +0 -0
- package/package.json +95 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Frameworks/adapter.framework/Info.plist</key>
|
|
8
|
+
<data>
|
|
9
|
+
TAVyv2vEIAmPJAQ/p+c45neerAc=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Frameworks/adapter.framework/adapter</key>
|
|
12
|
+
<data>
|
|
13
|
+
2wsO88ZrUnjkzXRwVJdPPwWqfsg=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Info.plist</key>
|
|
16
|
+
<data>
|
|
17
|
+
J978kOQN+WEug/MbC2Hc4qEA1kA=
|
|
18
|
+
</data>
|
|
19
|
+
</dict>
|
|
20
|
+
<key>files2</key>
|
|
21
|
+
<dict>
|
|
22
|
+
<key>Frameworks/adapter.framework/Info.plist</key>
|
|
23
|
+
<dict>
|
|
24
|
+
<key>hash</key>
|
|
25
|
+
<data>
|
|
26
|
+
TAVyv2vEIAmPJAQ/p+c45neerAc=
|
|
27
|
+
</data>
|
|
28
|
+
<key>hash2</key>
|
|
29
|
+
<data>
|
|
30
|
+
Dp9MMPFFeJOwX+WygDSDhacyGw9DQOn6iz+5Ol7iKaE=
|
|
31
|
+
</data>
|
|
32
|
+
</dict>
|
|
33
|
+
<key>Frameworks/adapter.framework/adapter</key>
|
|
34
|
+
<dict>
|
|
35
|
+
<key>hash</key>
|
|
36
|
+
<data>
|
|
37
|
+
2wsO88ZrUnjkzXRwVJdPPwWqfsg=
|
|
38
|
+
</data>
|
|
39
|
+
<key>hash2</key>
|
|
40
|
+
<data>
|
|
41
|
+
It6az7YBxsgeliyKZN7KwadhLeeTUeBNKwqefzR0iAk=
|
|
42
|
+
</data>
|
|
43
|
+
</dict>
|
|
44
|
+
</dict>
|
|
45
|
+
<key>rules</key>
|
|
46
|
+
<dict>
|
|
47
|
+
<key>^.*</key>
|
|
48
|
+
<true/>
|
|
49
|
+
<key>^.*\.lproj/</key>
|
|
50
|
+
<dict>
|
|
51
|
+
<key>optional</key>
|
|
52
|
+
<true/>
|
|
53
|
+
<key>weight</key>
|
|
54
|
+
<real>1000</real>
|
|
55
|
+
</dict>
|
|
56
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
57
|
+
<dict>
|
|
58
|
+
<key>omit</key>
|
|
59
|
+
<true/>
|
|
60
|
+
<key>weight</key>
|
|
61
|
+
<real>1100</real>
|
|
62
|
+
</dict>
|
|
63
|
+
<key>^Base\.lproj/</key>
|
|
64
|
+
<dict>
|
|
65
|
+
<key>weight</key>
|
|
66
|
+
<real>1010</real>
|
|
67
|
+
</dict>
|
|
68
|
+
<key>^version.plist$</key>
|
|
69
|
+
<true/>
|
|
70
|
+
</dict>
|
|
71
|
+
<key>rules2</key>
|
|
72
|
+
<dict>
|
|
73
|
+
<key>.*\.dSYM($|/)</key>
|
|
74
|
+
<dict>
|
|
75
|
+
<key>weight</key>
|
|
76
|
+
<real>11</real>
|
|
77
|
+
</dict>
|
|
78
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
79
|
+
<dict>
|
|
80
|
+
<key>omit</key>
|
|
81
|
+
<true/>
|
|
82
|
+
<key>weight</key>
|
|
83
|
+
<real>2000</real>
|
|
84
|
+
</dict>
|
|
85
|
+
<key>^.*</key>
|
|
86
|
+
<true/>
|
|
87
|
+
<key>^.*\.lproj/</key>
|
|
88
|
+
<dict>
|
|
89
|
+
<key>optional</key>
|
|
90
|
+
<true/>
|
|
91
|
+
<key>weight</key>
|
|
92
|
+
<real>1000</real>
|
|
93
|
+
</dict>
|
|
94
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
95
|
+
<dict>
|
|
96
|
+
<key>omit</key>
|
|
97
|
+
<true/>
|
|
98
|
+
<key>weight</key>
|
|
99
|
+
<real>1100</real>
|
|
100
|
+
</dict>
|
|
101
|
+
<key>^Base\.lproj/</key>
|
|
102
|
+
<dict>
|
|
103
|
+
<key>weight</key>
|
|
104
|
+
<real>1010</real>
|
|
105
|
+
</dict>
|
|
106
|
+
<key>^Info\.plist$</key>
|
|
107
|
+
<dict>
|
|
108
|
+
<key>omit</key>
|
|
109
|
+
<true/>
|
|
110
|
+
<key>weight</key>
|
|
111
|
+
<real>20</real>
|
|
112
|
+
</dict>
|
|
113
|
+
<key>^PkgInfo$</key>
|
|
114
|
+
<dict>
|
|
115
|
+
<key>omit</key>
|
|
116
|
+
<true/>
|
|
117
|
+
<key>weight</key>
|
|
118
|
+
<real>20</real>
|
|
119
|
+
</dict>
|
|
120
|
+
<key>^embedded\.provisionprofile$</key>
|
|
121
|
+
<dict>
|
|
122
|
+
<key>weight</key>
|
|
123
|
+
<real>20</real>
|
|
124
|
+
</dict>
|
|
125
|
+
<key>^version\.plist$</key>
|
|
126
|
+
<dict>
|
|
127
|
+
<key>weight</key>
|
|
128
|
+
<real>20</real>
|
|
129
|
+
</dict>
|
|
130
|
+
</dict>
|
|
131
|
+
</dict>
|
|
132
|
+
</plist>
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AppleBle.h
|
|
3
|
+
// appleble
|
|
4
|
+
//
|
|
5
|
+
// Created by aiyin on 2023/4/17.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <adapter/adapter.h>
|
|
9
|
+
|
|
10
|
+
@protocol AppleBleDelegate <ConnectedDeviceDelegate>
|
|
11
|
+
|
|
12
|
+
@optional
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@end
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
18
|
+
|
|
19
|
+
@interface AppleBle : ConnectedDevice
|
|
20
|
+
|
|
21
|
+
@property (nonatomic, weak, nullable) id <AppleBleDelegate> delegate;
|
|
22
|
+
|
|
23
|
+
@end
|
|
24
|
+
|
|
25
|
+
NS_ASSUME_NONNULL_END
|
|
Binary file
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Frameworks/adapter.framework/Info.plist</key>
|
|
8
|
+
<data>
|
|
9
|
+
TAVyv2vEIAmPJAQ/p+c45neerAc=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Frameworks/adapter.framework/_CodeSignature/CodeResources</key>
|
|
12
|
+
<data>
|
|
13
|
+
pB7MCLq5cEU74+sHPXSEVV2hGSI=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Frameworks/adapter.framework/adapter</key>
|
|
16
|
+
<data>
|
|
17
|
+
U/BvDO6M+Mue+4deE9X9FHUniB8=
|
|
18
|
+
</data>
|
|
19
|
+
<key>Frameworks/ibridge.framework/Frameworks/adapter.framework/Info.plist</key>
|
|
20
|
+
<data>
|
|
21
|
+
TAVyv2vEIAmPJAQ/p+c45neerAc=
|
|
22
|
+
</data>
|
|
23
|
+
<key>Frameworks/ibridge.framework/Frameworks/adapter.framework/adapter</key>
|
|
24
|
+
<data>
|
|
25
|
+
2wsO88ZrUnjkzXRwVJdPPwWqfsg=
|
|
26
|
+
</data>
|
|
27
|
+
<key>Frameworks/ibridge.framework/Info.plist</key>
|
|
28
|
+
<data>
|
|
29
|
+
J978kOQN+WEug/MbC2Hc4qEA1kA=
|
|
30
|
+
</data>
|
|
31
|
+
<key>Frameworks/ibridge.framework/_CodeSignature/CodeResources</key>
|
|
32
|
+
<data>
|
|
33
|
+
av9NYlZiWfVdCA4N3TxSed8zy7U=
|
|
34
|
+
</data>
|
|
35
|
+
<key>Frameworks/ibridge.framework/ibridge</key>
|
|
36
|
+
<data>
|
|
37
|
+
lDD1x3jbg1obfZtNlF8pQUSgPWI=
|
|
38
|
+
</data>
|
|
39
|
+
<key>Headers/AppleBle.h</key>
|
|
40
|
+
<data>
|
|
41
|
+
HThukwz4B8ekZXcSEY1zsLuTj8I=
|
|
42
|
+
</data>
|
|
43
|
+
<key>Info.plist</key>
|
|
44
|
+
<data>
|
|
45
|
+
zW65BokJG1glz0avJstT/tBii/w=
|
|
46
|
+
</data>
|
|
47
|
+
<key>Modules/module.modulemap</key>
|
|
48
|
+
<data>
|
|
49
|
+
TJ5I42zOp8QpPE0Jo4O4E/BtXJI=
|
|
50
|
+
</data>
|
|
51
|
+
</dict>
|
|
52
|
+
<key>files2</key>
|
|
53
|
+
<dict>
|
|
54
|
+
<key>Frameworks/adapter.framework/Info.plist</key>
|
|
55
|
+
<dict>
|
|
56
|
+
<key>hash</key>
|
|
57
|
+
<data>
|
|
58
|
+
TAVyv2vEIAmPJAQ/p+c45neerAc=
|
|
59
|
+
</data>
|
|
60
|
+
<key>hash2</key>
|
|
61
|
+
<data>
|
|
62
|
+
Dp9MMPFFeJOwX+WygDSDhacyGw9DQOn6iz+5Ol7iKaE=
|
|
63
|
+
</data>
|
|
64
|
+
</dict>
|
|
65
|
+
<key>Frameworks/adapter.framework/_CodeSignature/CodeResources</key>
|
|
66
|
+
<dict>
|
|
67
|
+
<key>hash</key>
|
|
68
|
+
<data>
|
|
69
|
+
pB7MCLq5cEU74+sHPXSEVV2hGSI=
|
|
70
|
+
</data>
|
|
71
|
+
<key>hash2</key>
|
|
72
|
+
<data>
|
|
73
|
+
EmnIrb2JwUThVHLuIm9bsoZqgNGbjBKLXyfgk+qO2Fk=
|
|
74
|
+
</data>
|
|
75
|
+
</dict>
|
|
76
|
+
<key>Frameworks/adapter.framework/adapter</key>
|
|
77
|
+
<dict>
|
|
78
|
+
<key>hash</key>
|
|
79
|
+
<data>
|
|
80
|
+
U/BvDO6M+Mue+4deE9X9FHUniB8=
|
|
81
|
+
</data>
|
|
82
|
+
<key>hash2</key>
|
|
83
|
+
<data>
|
|
84
|
+
HFuigMN2xFZfLijA096a8PAF4DtZH9mudYVtiTQNO80=
|
|
85
|
+
</data>
|
|
86
|
+
</dict>
|
|
87
|
+
<key>Frameworks/ibridge.framework/Frameworks/adapter.framework/Info.plist</key>
|
|
88
|
+
<dict>
|
|
89
|
+
<key>hash</key>
|
|
90
|
+
<data>
|
|
91
|
+
TAVyv2vEIAmPJAQ/p+c45neerAc=
|
|
92
|
+
</data>
|
|
93
|
+
<key>hash2</key>
|
|
94
|
+
<data>
|
|
95
|
+
Dp9MMPFFeJOwX+WygDSDhacyGw9DQOn6iz+5Ol7iKaE=
|
|
96
|
+
</data>
|
|
97
|
+
</dict>
|
|
98
|
+
<key>Frameworks/ibridge.framework/Frameworks/adapter.framework/adapter</key>
|
|
99
|
+
<dict>
|
|
100
|
+
<key>hash</key>
|
|
101
|
+
<data>
|
|
102
|
+
2wsO88ZrUnjkzXRwVJdPPwWqfsg=
|
|
103
|
+
</data>
|
|
104
|
+
<key>hash2</key>
|
|
105
|
+
<data>
|
|
106
|
+
It6az7YBxsgeliyKZN7KwadhLeeTUeBNKwqefzR0iAk=
|
|
107
|
+
</data>
|
|
108
|
+
</dict>
|
|
109
|
+
<key>Frameworks/ibridge.framework/Info.plist</key>
|
|
110
|
+
<dict>
|
|
111
|
+
<key>hash</key>
|
|
112
|
+
<data>
|
|
113
|
+
J978kOQN+WEug/MbC2Hc4qEA1kA=
|
|
114
|
+
</data>
|
|
115
|
+
<key>hash2</key>
|
|
116
|
+
<data>
|
|
117
|
+
gJHSG70YmSlaFMew11I76xL6TOiHMqf2g2BQbqVVjEw=
|
|
118
|
+
</data>
|
|
119
|
+
</dict>
|
|
120
|
+
<key>Frameworks/ibridge.framework/_CodeSignature/CodeResources</key>
|
|
121
|
+
<dict>
|
|
122
|
+
<key>hash</key>
|
|
123
|
+
<data>
|
|
124
|
+
av9NYlZiWfVdCA4N3TxSed8zy7U=
|
|
125
|
+
</data>
|
|
126
|
+
<key>hash2</key>
|
|
127
|
+
<data>
|
|
128
|
+
W1eWbsrfn0DDD7tlFLkQBewOce1HVqRBMQZ7GCGzt0k=
|
|
129
|
+
</data>
|
|
130
|
+
</dict>
|
|
131
|
+
<key>Frameworks/ibridge.framework/ibridge</key>
|
|
132
|
+
<dict>
|
|
133
|
+
<key>hash</key>
|
|
134
|
+
<data>
|
|
135
|
+
lDD1x3jbg1obfZtNlF8pQUSgPWI=
|
|
136
|
+
</data>
|
|
137
|
+
<key>hash2</key>
|
|
138
|
+
<data>
|
|
139
|
+
wEmh7n1APm5u+HvBI7a27jl2LAZmqXia4HysGQki4/Y=
|
|
140
|
+
</data>
|
|
141
|
+
</dict>
|
|
142
|
+
<key>Headers/AppleBle.h</key>
|
|
143
|
+
<dict>
|
|
144
|
+
<key>hash</key>
|
|
145
|
+
<data>
|
|
146
|
+
HThukwz4B8ekZXcSEY1zsLuTj8I=
|
|
147
|
+
</data>
|
|
148
|
+
<key>hash2</key>
|
|
149
|
+
<data>
|
|
150
|
+
ntGcKQHKaQYliAGdjJBGchGuWwAi55gWWJdEXQi4HZY=
|
|
151
|
+
</data>
|
|
152
|
+
</dict>
|
|
153
|
+
<key>Modules/module.modulemap</key>
|
|
154
|
+
<dict>
|
|
155
|
+
<key>hash</key>
|
|
156
|
+
<data>
|
|
157
|
+
TJ5I42zOp8QpPE0Jo4O4E/BtXJI=
|
|
158
|
+
</data>
|
|
159
|
+
<key>hash2</key>
|
|
160
|
+
<data>
|
|
161
|
+
bP4sHd2I4w2q3qiFh4y4oB12cuaPuY+WbH4nm8q4Xbs=
|
|
162
|
+
</data>
|
|
163
|
+
</dict>
|
|
164
|
+
</dict>
|
|
165
|
+
<key>rules</key>
|
|
166
|
+
<dict>
|
|
167
|
+
<key>^.*</key>
|
|
168
|
+
<true/>
|
|
169
|
+
<key>^.*\.lproj/</key>
|
|
170
|
+
<dict>
|
|
171
|
+
<key>optional</key>
|
|
172
|
+
<true/>
|
|
173
|
+
<key>weight</key>
|
|
174
|
+
<real>1000</real>
|
|
175
|
+
</dict>
|
|
176
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
177
|
+
<dict>
|
|
178
|
+
<key>omit</key>
|
|
179
|
+
<true/>
|
|
180
|
+
<key>weight</key>
|
|
181
|
+
<real>1100</real>
|
|
182
|
+
</dict>
|
|
183
|
+
<key>^Base\.lproj/</key>
|
|
184
|
+
<dict>
|
|
185
|
+
<key>weight</key>
|
|
186
|
+
<real>1010</real>
|
|
187
|
+
</dict>
|
|
188
|
+
<key>^version.plist$</key>
|
|
189
|
+
<true/>
|
|
190
|
+
</dict>
|
|
191
|
+
<key>rules2</key>
|
|
192
|
+
<dict>
|
|
193
|
+
<key>.*\.dSYM($|/)</key>
|
|
194
|
+
<dict>
|
|
195
|
+
<key>weight</key>
|
|
196
|
+
<real>11</real>
|
|
197
|
+
</dict>
|
|
198
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
199
|
+
<dict>
|
|
200
|
+
<key>omit</key>
|
|
201
|
+
<true/>
|
|
202
|
+
<key>weight</key>
|
|
203
|
+
<real>2000</real>
|
|
204
|
+
</dict>
|
|
205
|
+
<key>^.*</key>
|
|
206
|
+
<true/>
|
|
207
|
+
<key>^.*\.lproj/</key>
|
|
208
|
+
<dict>
|
|
209
|
+
<key>optional</key>
|
|
210
|
+
<true/>
|
|
211
|
+
<key>weight</key>
|
|
212
|
+
<real>1000</real>
|
|
213
|
+
</dict>
|
|
214
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
215
|
+
<dict>
|
|
216
|
+
<key>omit</key>
|
|
217
|
+
<true/>
|
|
218
|
+
<key>weight</key>
|
|
219
|
+
<real>1100</real>
|
|
220
|
+
</dict>
|
|
221
|
+
<key>^Base\.lproj/</key>
|
|
222
|
+
<dict>
|
|
223
|
+
<key>weight</key>
|
|
224
|
+
<real>1010</real>
|
|
225
|
+
</dict>
|
|
226
|
+
<key>^Info\.plist$</key>
|
|
227
|
+
<dict>
|
|
228
|
+
<key>omit</key>
|
|
229
|
+
<true/>
|
|
230
|
+
<key>weight</key>
|
|
231
|
+
<real>20</real>
|
|
232
|
+
</dict>
|
|
233
|
+
<key>^PkgInfo$</key>
|
|
234
|
+
<dict>
|
|
235
|
+
<key>omit</key>
|
|
236
|
+
<true/>
|
|
237
|
+
<key>weight</key>
|
|
238
|
+
<real>20</real>
|
|
239
|
+
</dict>
|
|
240
|
+
<key>^embedded\.provisionprofile$</key>
|
|
241
|
+
<dict>
|
|
242
|
+
<key>weight</key>
|
|
243
|
+
<real>20</real>
|
|
244
|
+
</dict>
|
|
245
|
+
<key>^version\.plist$</key>
|
|
246
|
+
<dict>
|
|
247
|
+
<key>weight</key>
|
|
248
|
+
<real>20</real>
|
|
249
|
+
</dict>
|
|
250
|
+
</dict>
|
|
251
|
+
</dict>
|
|
252
|
+
</plist>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Appendat.h
|
|
3
|
+
// Father
|
|
4
|
+
//
|
|
5
|
+
// Created by IPRT on 2022/9/22.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
@interface Appendat<T> : NSObject
|
|
13
|
+
@property (nonatomic , strong) T argument_;
|
|
14
|
+
@property (nonatomic , assign) BOOL condition_;
|
|
15
|
+
@property (nonatomic , copy) T (^callback)(id _Nullable object);
|
|
16
|
+
@property (nonatomic , strong) T callBack;
|
|
17
|
+
@property (nonatomic , readonly) Appendat *(^callBackfunc)(id func);
|
|
18
|
+
-(id)argument;
|
|
19
|
+
-(BOOL)condition;
|
|
20
|
+
-(instancetype)initWithArgument:(T)argument andCondition:(BOOL)condition andCallback:(T(^)(id _Nullable object))callback;
|
|
21
|
+
@end
|
|
22
|
+
|
|
23
|
+
@interface TextAppendat : Appendat<NSString *>
|
|
24
|
+
-(NSString *)quote;
|
|
25
|
+
-(instancetype)createWithArgument:(NSString *)argument;
|
|
26
|
+
-(instancetype)createWithArgument:(NSString *)argument andCondition:(BOOL)condition;
|
|
27
|
+
@end
|
|
28
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Arg.h
|
|
3
|
+
// fatherArgs
|
|
4
|
+
//
|
|
5
|
+
// Created by IPRT on 2022/10/6.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import "CommandClause.h"
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
@interface Arg<T> : NSObject
|
|
13
|
+
-(T)header;
|
|
14
|
+
-(BOOL)newline;
|
|
15
|
+
@property (nonatomic , readonly) Arg *(^prepend)(Arg <T> * arg);
|
|
16
|
+
@property (nonatomic , readonly) Arg *(^append)(Arg<T> *arg);
|
|
17
|
+
-(CommandClause *)clause;
|
|
18
|
+
-(NSArray <CommandClause *> *)clauses;
|
|
19
|
+
-(void)clear;
|
|
20
|
+
@end
|
|
21
|
+
|
|
22
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//
|
|
2
|
+
// BinaryCommand.h
|
|
3
|
+
// Father
|
|
4
|
+
//
|
|
5
|
+
// Created by IPRT on 2022/10/13.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "FastBinary.h"
|
|
9
|
+
#import "CommandClause.h"
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
@interface BinaryCommand : FastBinary
|
|
13
|
+
-(BinaryCommand *)withData:(NSData *)data;
|
|
14
|
+
-(CommandClause *)clause;
|
|
15
|
+
@end
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CallbackData.h
|
|
3
|
+
// Father
|
|
4
|
+
//
|
|
5
|
+
// Created by IPRT on 2022/10/25.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
@interface DataWrite : NSObject
|
|
13
|
+
|
|
14
|
+
@property(nonatomic , strong)NSData *binary;
|
|
15
|
+
@property(nonatomic , assign)int currentTimes;
|
|
16
|
+
@property(nonatomic , assign)int totalTimes;
|
|
17
|
+
|
|
18
|
+
@end
|
|
19
|
+
|
|
20
|
+
@interface CallbackData : NSObject
|
|
21
|
+
|
|
22
|
+
@property (nonatomic,strong)DataWrite *dataWrite;
|
|
23
|
+
|
|
24
|
+
@end
|
|
25
|
+
|
|
26
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Command.h
|
|
3
|
+
// Father
|
|
4
|
+
//
|
|
5
|
+
// Created by IPRT on 2022/9/23.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <father/HexOutput.h>
|
|
10
|
+
#import <father/CommandClause.h>
|
|
11
|
+
#import <father/PVariableKit.h>
|
|
12
|
+
#import <father/PsdkConst.h>
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
15
|
+
@interface Command : NSObject
|
|
16
|
+
-(NSData *)binary;
|
|
17
|
+
-(NSString *)string;
|
|
18
|
+
-(NSString *)base64;
|
|
19
|
+
-(NSString *)getStringWithCharset:(CFStringEncodings)charset;
|
|
20
|
+
-(NSString *)hex;
|
|
21
|
+
-(NSString *)getHexWihtOutput:(HexOutput *)output;
|
|
22
|
+
|
|
23
|
+
@end
|
|
24
|
+
|
|
25
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CommandClause.h
|
|
3
|
+
// Father
|
|
4
|
+
//
|
|
5
|
+
// Created by aiyin on 2022/3/18.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
typedef enum {
|
|
11
|
+
TEXT,
|
|
12
|
+
BINARY,
|
|
13
|
+
NEWLINE,
|
|
14
|
+
NONE
|
|
15
|
+
} Type;
|
|
16
|
+
|
|
17
|
+
@interface CommandClause : NSObject
|
|
18
|
+
|
|
19
|
+
@property (nonatomic, assign) Type type;
|
|
20
|
+
@property (nonatomic, strong) NSData *binary;
|
|
21
|
+
@property (nonatomic, strong) NSString *text;
|
|
22
|
+
@property (nonatomic, assign) CFStringEncodings charset;
|
|
23
|
+
//public
|
|
24
|
+
+ (instancetype)commandClauseWithText:(NSString *)command;
|
|
25
|
+
+ (instancetype)commandClauseWithText:(NSString *)command andCharset:(CFStringEncodings)charset;
|
|
26
|
+
+ (instancetype)commandClauseWithBinary:(NSData *)binary;
|
|
27
|
+
+ (instancetype)commandClauseWithNewline;
|
|
28
|
+
|
|
29
|
+
- (Type)type;
|
|
30
|
+
|
|
31
|
+
@end
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Commander.h
|
|
3
|
+
// father
|
|
4
|
+
//
|
|
5
|
+
// Created by IPRT on 2022/12/7.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <father/Arg.h>
|
|
10
|
+
#import <father/Command.h>
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface Commander : NSObject
|
|
14
|
+
+(Commander *)make;
|
|
15
|
+
@property(nonatomic , readonly) Commander *(^pushString)(NSString *command);
|
|
16
|
+
@property(nonatomic , readonly) Commander *(^pushStringAndCharset)(NSString *command,CFStringEncodings charset);
|
|
17
|
+
@property(nonatomic , readonly) Commander *(^pushStringAndNewline)(NSString *command,BOOL isNewline);
|
|
18
|
+
@property(nonatomic , readonly) Commander *(^pushStringAndCharsetAndNewline)(NSString *command , CFStringEncodings charset, BOOL isNewline);
|
|
19
|
+
@property(nonatomic , readonly) Commander *(^pushBinary)(NSData *binary);
|
|
20
|
+
@property(nonatomic , readonly) Commander *(^pushBinaryAndNewline)(NSData *binary, BOOL isNewline);
|
|
21
|
+
@property(nonatomic , readonly) Commander *(^pushArg)(Arg *arg);
|
|
22
|
+
@property(nonatomic , readonly) Commander *(^pushClause)(CommandClause *clause);
|
|
23
|
+
@property(nonatomic , readonly) Commander *(^pushClauseAndNewline)(CommandClause *clause ,BOOL isNewline);
|
|
24
|
+
@property(nonatomic , readonly) Commander *(^newline)(void);
|
|
25
|
+
@property(nonatomic , readonly) Commander *(^varibleKeyValue)(NSString *name, id value);
|
|
26
|
+
@property(nonatomic , readonly) Commander *(^clear)(void);
|
|
27
|
+
-(void)pushArg:(Arg *)arg;
|
|
28
|
+
-(Command *)command;
|
|
29
|
+
@end
|
|
30
|
+
|
|
31
|
+
NS_ASSUME_NONNULL_END
|