react-native-gizwits-sdk-v5 1.5.6-thirdbluetooth → 1.5.7-thirdbluetooth

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.
Files changed (128) hide show
  1. package/package.json +1 -1
  2. package/react-native-gizwits-sdk-v5.podspec +2 -2
  3. package/ios/GizwitsiOSSDK.framework/GizwitsiOSSDK +0 -0
  4. package/ios/GizwitsiOSSDK.framework/Headers/CocoaAsyncSocket.h +0 -18
  5. package/ios/GizwitsiOSSDK.framework/Headers/DDASLLogger.h +0 -41
  6. package/ios/GizwitsiOSSDK.framework/Headers/DDAbstractDatabaseLogger.h +0 -102
  7. package/ios/GizwitsiOSSDK.framework/Headers/DDContextFilterLogFormatter.h +0 -63
  8. package/ios/GizwitsiOSSDK.framework/Headers/DDDispatchQueueLogFormatter.h +0 -128
  9. package/ios/GizwitsiOSSDK.framework/Headers/DDFileLogger.h +0 -340
  10. package/ios/GizwitsiOSSDK.framework/Headers/DDLog+LOGV.h +0 -99
  11. package/ios/GizwitsiOSSDK.framework/Headers/DDLog.h +0 -632
  12. package/ios/GizwitsiOSSDK.framework/Headers/DDMultiFormatter.h +0 -30
  13. package/ios/GizwitsiOSSDK.framework/Headers/DDTTYLogger.h +0 -171
  14. package/ios/GizwitsiOSSDK.framework/Headers/ESPAES.h +0 -19
  15. package/ios/GizwitsiOSSDK.framework/Headers/ESPDataCode.h +0 -44
  16. package/ios/GizwitsiOSSDK.framework/Headers/ESPDatumCode.h +0 -38
  17. package/ios/GizwitsiOSSDK.framework/Headers/ESPGuideCode.h +0 -15
  18. package/ios/GizwitsiOSSDK.framework/Headers/ESPTools.h +0 -22
  19. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouch.h +0 -36
  20. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchDelegate.h +0 -24
  21. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchGenerator.h +0 -46
  22. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchResult.h +0 -36
  23. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTask.h +0 -124
  24. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTaskParameter.h +0 -173
  25. package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketClient.h +0 -50
  26. package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketServer.h +0 -49
  27. package/ios/GizwitsiOSSDK.framework/Headers/ESP_ByteUtil.h +0 -128
  28. package/ios/GizwitsiOSSDK.framework/Headers/ESP_CRC8.h +0 -61
  29. package/ios/GizwitsiOSSDK.framework/Headers/ESP_NetUtil.h +0 -82
  30. package/ios/GizwitsiOSSDK.framework/Headers/ESP_WifiUtil.h +0 -33
  31. package/ios/GizwitsiOSSDK.framework/Headers/ForegroundReconnection.h +0 -23
  32. package/ios/GizwitsiOSSDK.framework/Headers/GCDTimer.h +0 -19
  33. package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK-Swift.h +0 -338
  34. package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK.h +0 -24
  35. package/ios/GizwitsiOSSDK.framework/Headers/MQTTClient.h +0 -39
  36. package/ios/GizwitsiOSSDK.framework/Headers/MQTTInMemoryPersistence.h +0 -16
  37. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyDecoder.h +0 -19
  38. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyEncoder.h +0 -18
  39. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionLegacy.h +0 -112
  40. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionSynchron.h +0 -194
  41. package/ios/GizwitsiOSSDK.framework/Headers/MQTTStrict.h +0 -33
  42. package/ios/GizwitsiOSSDK.framework/Headers/MQTTUntil.h +0 -14
  43. package/ios/GizwitsiOSSDK.framework/Headers/ReconnectTimer.h +0 -21
  44. package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncSocket.h +0 -1226
  45. package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncUdpSocket.h +0 -1036
  46. package/ios/GizwitsiOSSDK.framework/Headers/_GizwitsParser.h +0 -61
  47. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketDecoder.h +0 -39
  48. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketEncoder.h +0 -38
  49. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketTransport.h +0 -79
  50. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCoreDataPersistence.h +0 -21
  51. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTDecoder.h +0 -66
  52. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTLog.h +0 -123
  53. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTMessage.h +0 -233
  54. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTPersistence.h +0 -124
  55. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTProperties.h +0 -76
  56. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicy.h +0 -158
  57. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicyTransport.h +0 -30
  58. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSession.h +0 -886
  59. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSessionManager.h +0 -237
  60. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTTransport.h +0 -114
  61. package/ios/GizwitsiOSSDK.framework/Headers/_SSZipArchive.h +0 -178
  62. package/ios/GizwitsiOSSDK.framework/Headers/_SSZipCommon.h +0 -71
  63. package/ios/GizwitsiOSSDK.framework/Headers/_ZipArchive.h +0 -26
  64. package/ios/GizwitsiOSSDK.framework/Headers/a_weighting.h +0 -88
  65. package/ios/GizwitsiOSSDK.framework/Headers/aubio.h +0 -231
  66. package/ios/GizwitsiOSSDK.framework/Headers/audio_unit.h +0 -61
  67. package/ios/GizwitsiOSSDK.framework/Headers/awhitening.h +0 -125
  68. package/ios/GizwitsiOSSDK.framework/Headers/beattracking.h +0 -121
  69. package/ios/GizwitsiOSSDK.framework/Headers/biquad.h +0 -75
  70. package/ios/GizwitsiOSSDK.framework/Headers/c_weighting.h +0 -88
  71. package/ios/GizwitsiOSSDK.framework/Headers/common.h +0 -104
  72. package/ios/GizwitsiOSSDK.framework/Headers/cvec.h +0 -247
  73. package/ios/GizwitsiOSSDK.framework/Headers/dct.h +0 -85
  74. package/ios/GizwitsiOSSDK.framework/Headers/fft.h +0 -144
  75. package/ios/GizwitsiOSSDK.framework/Headers/filter.h +0 -176
  76. package/ios/GizwitsiOSSDK.framework/Headers/filterbank.h +0 -90
  77. package/ios/GizwitsiOSSDK.framework/Headers/filterbank_mel.h +0 -72
  78. package/ios/GizwitsiOSSDK.framework/Headers/fmat.h +0 -172
  79. package/ios/GizwitsiOSSDK.framework/Headers/fvec.h +0 -178
  80. package/ios/GizwitsiOSSDK.framework/Headers/hist.h +0 -63
  81. package/ios/GizwitsiOSSDK.framework/Headers/ioutils.h +0 -60
  82. package/ios/GizwitsiOSSDK.framework/Headers/log.h +0 -99
  83. package/ios/GizwitsiOSSDK.framework/Headers/lvec.h +0 -118
  84. package/ios/GizwitsiOSSDK.framework/Headers/mathutils.h +0 -330
  85. package/ios/GizwitsiOSSDK.framework/Headers/mfcc.h +0 -79
  86. package/ios/GizwitsiOSSDK.framework/Headers/musicutils.h +0 -171
  87. package/ios/GizwitsiOSSDK.framework/Headers/notes.h +0 -113
  88. package/ios/GizwitsiOSSDK.framework/Headers/onset.h +0 -347
  89. package/ios/GizwitsiOSSDK.framework/Headers/parameter.h +0 -159
  90. package/ios/GizwitsiOSSDK.framework/Headers/peakpicker.h +0 -57
  91. package/ios/GizwitsiOSSDK.framework/Headers/phasevoc.h +0 -112
  92. package/ios/GizwitsiOSSDK.framework/Headers/pitch.h +0 -197
  93. package/ios/GizwitsiOSSDK.framework/Headers/pitchfcomb.h +0 -76
  94. package/ios/GizwitsiOSSDK.framework/Headers/pitchmcomb.h +0 -77
  95. package/ios/GizwitsiOSSDK.framework/Headers/pitchschmitt.h +0 -75
  96. package/ios/GizwitsiOSSDK.framework/Headers/pitchspecacf.h +0 -103
  97. package/ios/GizwitsiOSSDK.framework/Headers/pitchyin.h +0 -100
  98. package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfast.h +0 -102
  99. package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfft.h +0 -99
  100. package/ios/GizwitsiOSSDK.framework/Headers/resampler.h +0 -65
  101. package/ios/GizwitsiOSSDK.framework/Headers/sampler.h +0 -140
  102. package/ios/GizwitsiOSSDK.framework/Headers/scale.h +0 -80
  103. package/ios/GizwitsiOSSDK.framework/Headers/sink.h +0 -181
  104. package/ios/GizwitsiOSSDK.framework/Headers/sink_apple_audio.h +0 -163
  105. package/ios/GizwitsiOSSDK.framework/Headers/sink_sndfile.h +0 -162
  106. package/ios/GizwitsiOSSDK.framework/Headers/sink_wavwrite.h +0 -162
  107. package/ios/GizwitsiOSSDK.framework/Headers/source.h +0 -184
  108. package/ios/GizwitsiOSSDK.framework/Headers/source_apple_audio.h +0 -156
  109. package/ios/GizwitsiOSSDK.framework/Headers/source_avcodec.h +0 -155
  110. package/ios/GizwitsiOSSDK.framework/Headers/source_sndfile.h +0 -155
  111. package/ios/GizwitsiOSSDK.framework/Headers/source_wavread.h +0 -160
  112. package/ios/GizwitsiOSSDK.framework/Headers/specdesc.h +0 -204
  113. package/ios/GizwitsiOSSDK.framework/Headers/tempo.h +0 -255
  114. package/ios/GizwitsiOSSDK.framework/Headers/tss.h +0 -103
  115. package/ios/GizwitsiOSSDK.framework/Headers/types.h +0 -70
  116. package/ios/GizwitsiOSSDK.framework/Headers/vecutils.h +0 -116
  117. package/ios/GizwitsiOSSDK.framework/Headers/wavetable.h +0 -178
  118. package/ios/GizwitsiOSSDK.framework/Info.plist +0 -0
  119. package/ios/GizwitsiOSSDK.framework/LICENSE +0 -17
  120. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  121. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.abi.json +0 -57489
  122. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -1752
  123. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  124. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftinterface +0 -1752
  125. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  126. package/ios/GizwitsiOSSDK.framework/Modules/module.modulemap +0 -11
  127. package/ios/GizwitsiOSSDK.framework/PrivacyInfo.xcprivacy +0 -23
  128. package/ios/GizwitsiOSSDK.framework/README.md +0 -31
@@ -1,340 +0,0 @@
1
- #import <Foundation/Foundation.h>
2
- #import "DDLog.h"
3
-
4
- @class DDLogFileInfo;
5
-
6
- /**
7
- * Welcome to Cocoa Lumberjack!
8
- *
9
- * The project page has a wealth of documentation if you have any questions.
10
- * https://github.com/CocoaLumberjack/CocoaLumberjack
11
- *
12
- * If you're new to the project you may wish to read the "Getting Started" wiki.
13
- * https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/GettingStarted
14
- *
15
- *
16
- * This class provides a logger to write log statements to a file.
17
- **/
18
-
19
-
20
- // Default configuration and safety/sanity values.
21
- //
22
- // maximumFileSize -> DEFAULT_LOG_MAX_FILE_SIZE
23
- // rollingFrequency -> DEFAULT_LOG_ROLLING_FREQUENCY
24
- // maximumNumberOfLogFiles -> DEFAULT_LOG_MAX_NUM_LOG_FILES
25
- //
26
- // You should carefully consider the proper configuration values for your application.
27
-
28
- #define DEFAULT_LOG_MAX_FILE_SIZE (1024 * 1024) // 1 MB
29
- #define DEFAULT_LOG_ROLLING_FREQUENCY (60 * 60 * 24) // 24 Hours
30
- #define DEFAULT_LOG_MAX_NUM_LOG_FILES (5) // 5 Files
31
-
32
-
33
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
34
- #pragma mark -
35
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
36
-
37
- // The LogFileManager protocol is designed to allow you to control all aspects of your log files.
38
- //
39
- // The primary purpose of this is to allow you to do something with the log files after they have been rolled.
40
- // Perhaps you want to compress them to save disk space.
41
- // Perhaps you want to upload them to an FTP server.
42
- // Perhaps you want to run some analytics on the file.
43
- //
44
- // A default LogFileManager is, of course, provided.
45
- // The default LogFileManager simply deletes old log files according to the maximumNumberOfLogFiles property.
46
- //
47
- // This protocol provides various methods to fetch the list of log files.
48
- //
49
- // There are two variants: sorted and unsorted.
50
- // If sorting is not necessary, the unsorted variant is obviously faster.
51
- // The sorted variant will return an array sorted by when the log files were created,
52
- // with the most recently created log file at index 0, and the oldest log file at the end of the array.
53
- //
54
- // You can fetch only the log file paths (full path including name), log file names (name only),
55
- // or an array of DDLogFileInfo objects.
56
- // The DDLogFileInfo class is documented below, and provides a handy wrapper that
57
- // gives you easy access to various file attributes such as the creation date or the file size.
58
-
59
- @protocol DDLogFileManager <NSObject>
60
- @required
61
-
62
- // Public properties
63
-
64
- /**
65
- * The maximum number of archived log files to keep on disk.
66
- * For example, if this property is set to 3,
67
- * then the LogFileManager will only keep 3 archived log files (plus the current active log file) on disk.
68
- * Once the active log file is rolled/archived, then the oldest of the existing 3 rolled/archived log files is deleted.
69
- *
70
- * You may optionally disable deleting old/rolled/archived log files by setting this property to zero.
71
- **/
72
- @property (readwrite, assign) NSUInteger maximumNumberOfLogFiles;
73
-
74
- // Public methods
75
-
76
- - (NSString *)logsDirectory;
77
-
78
- - (NSArray *)unsortedLogFilePaths;
79
- - (NSArray *)unsortedLogFileNames;
80
- - (NSArray *)unsortedLogFileInfos;
81
-
82
- - (NSArray *)sortedLogFilePaths;
83
- - (NSArray *)sortedLogFileNames;
84
- - (NSArray *)sortedLogFileInfos;
85
-
86
- // Private methods (only to be used by DDFileLogger)
87
-
88
- - (NSString *)createNewLogFile;
89
-
90
- @optional
91
-
92
- // Notifications from DDFileLogger
93
-
94
- - (void)didArchiveLogFile:(NSString *)logFilePath;
95
- - (void)didRollAndArchiveLogFile:(NSString *)logFilePath;
96
-
97
- @end
98
-
99
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
100
- #pragma mark -
101
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
102
-
103
- /**
104
- * Default log file manager.
105
- *
106
- * All log files are placed inside the logsDirectory.
107
- * If a specific logsDirectory isn't specified, the default directory is used.
108
- * On Mac, this is in ~/Library/Logs/<Application Name>.
109
- * On iPhone, this is in ~/Library/Caches/Logs.
110
- *
111
- * Log files are named "<app name> <date> <time>.log"
112
- * Example: MobileSafari 2013-12-03 17-14.log
113
- *
114
- * Archived log files are automatically deleted according to the maximumNumberOfLogFiles property.
115
- **/
116
- @interface DDLogFileManagerDefault : NSObject <DDLogFileManager>
117
- {
118
- NSUInteger maximumNumberOfLogFiles;
119
- NSString *_logsDirectory;
120
- }
121
-
122
- - (id)init;
123
- - (instancetype)initWithLogsDirectory:(NSString *)logsDirectory;
124
-
125
- /* Inherited from DDLogFileManager protocol:
126
-
127
- @property (readwrite, assign) NSUInteger maximumNumberOfLogFiles;
128
-
129
- - (NSString *)logsDirectory;
130
-
131
- - (NSArray *)unsortedLogFilePaths;
132
- - (NSArray *)unsortedLogFileNames;
133
- - (NSArray *)unsortedLogFileInfos;
134
-
135
- - (NSArray *)sortedLogFilePaths;
136
- - (NSArray *)sortedLogFileNames;
137
- - (NSArray *)sortedLogFileInfos;
138
-
139
- */
140
-
141
- @end
142
-
143
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
144
- #pragma mark -
145
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
146
-
147
- /**
148
- * Most users will want file log messages to be prepended with the date and time.
149
- * Rather than forcing the majority of users to write their own formatter,
150
- * we will supply a logical default formatter.
151
- * Users can easily replace this formatter with their own by invoking the setLogFormatter method.
152
- * It can also be removed by calling setLogFormatter, and passing a nil parameter.
153
- *
154
- * In addition to the convenience of having a logical default formatter,
155
- * it will also provide a template that makes it easy for developers to copy and change.
156
- **/
157
- @interface DDLogFileFormatterDefault : NSObject <DDLogFormatter>
158
- {
159
- NSDateFormatter *dateFormatter;
160
- }
161
-
162
- - (id)init;
163
- - (instancetype)initWithDateFormatter:(NSDateFormatter *)dateFormatter;
164
-
165
- @end
166
-
167
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
168
- #pragma mark -
169
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
170
-
171
- @interface DDFileLogger : DDAbstractLogger <DDLogger>
172
- {
173
- __strong id <DDLogFileManager> logFileManager;
174
-
175
- DDLogFileInfo *currentLogFileInfo;
176
- NSFileHandle *currentLogFileHandle;
177
-
178
- dispatch_source_t currentLogFileVnode;
179
- dispatch_source_t rollingTimer;
180
-
181
- unsigned long long maximumFileSize;
182
- NSTimeInterval rollingFrequency;
183
- }
184
-
185
- - (id)init;
186
- - (instancetype)initWithLogFileManager:(id <DDLogFileManager>)logFileManager;
187
-
188
- /**
189
- * Log File Rolling:
190
- *
191
- * maximumFileSize:
192
- * The approximate maximum size to allow log files to grow.
193
- * If a log file is larger than this value after a log statement is appended,
194
- * then the log file is rolled.
195
- *
196
- * rollingFrequency
197
- * How often to roll the log file.
198
- * The frequency is given as an NSTimeInterval, which is a double that specifies the interval in seconds.
199
- * Once the log file gets to be this old, it is rolled.
200
- *
201
- * Both the maximumFileSize and the rollingFrequency are used to manage rolling.
202
- * Whichever occurs first will cause the log file to be rolled.
203
- *
204
- * For example:
205
- * The rollingFrequency is 24 hours,
206
- * but the log file surpasses the maximumFileSize after only 20 hours.
207
- * The log file will be rolled at that 20 hour mark.
208
- * A new log file will be created, and the 24 hour timer will be restarted.
209
- *
210
- * You may optionally disable rolling due to filesize by setting maximumFileSize to zero.
211
- * If you do so, rolling is based solely on rollingFrequency.
212
- *
213
- * You may optionally disable rolling due to time by setting rollingFrequency to zero (or any non-positive number).
214
- * If you do so, rolling is based solely on maximumFileSize.
215
- *
216
- * If you disable both maximumFileSize and rollingFrequency, then the log file won't ever be rolled.
217
- * This is strongly discouraged.
218
- **/
219
- @property (readwrite, assign) unsigned long long maximumFileSize;
220
- @property (readwrite, assign) NSTimeInterval rollingFrequency;
221
-
222
- /**
223
- * The DDLogFileManager instance can be used to retrieve the list of log files,
224
- * and configure the maximum number of archived log files to keep.
225
- *
226
- * @see DDLogFileManager.maximumNumberOfLogFiles
227
- **/
228
- @property (strong, nonatomic, readonly) id <DDLogFileManager> logFileManager;
229
-
230
-
231
- // You can optionally force the current log file to be rolled with this method.
232
- // CompletionBlock will be called on main queue.
233
-
234
- - (void)rollLogFileWithCompletionBlock:(void (^)())completionBlock;
235
-
236
- // Method is deprecated. Use rollLogFileWithCompletionBlock: method instead.
237
-
238
- - (void)rollLogFile __attribute((deprecated));
239
-
240
- // Inherited from DDAbstractLogger
241
-
242
- // - (id <DDLogFormatter>)logFormatter;
243
- // - (void)setLogFormatter:(id <DDLogFormatter>)formatter;
244
-
245
- @end
246
-
247
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
248
- #pragma mark -
249
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
250
-
251
- /**
252
- * DDLogFileInfo is a simple class that provides access to various file attributes.
253
- * It provides good performance as it only fetches the information if requested,
254
- * and it caches the information to prevent duplicate fetches.
255
- *
256
- * It was designed to provide quick snapshots of the current state of log files,
257
- * and to help sort log files in an array.
258
- *
259
- * This class does not monitor the files, or update it's cached attribute values if the file changes on disk.
260
- * This is not what the class was designed for.
261
- *
262
- * If you absolutely must get updated values,
263
- * you can invoke the reset method which will clear the cache.
264
- **/
265
- @interface DDLogFileInfo : NSObject
266
- {
267
- __strong NSString *filePath;
268
- __strong NSString *fileName;
269
-
270
- __strong NSDictionary *fileAttributes;
271
-
272
- __strong NSDate *creationDate;
273
- __strong NSDate *modificationDate;
274
-
275
- unsigned long long fileSize;
276
- }
277
-
278
- @property (strong, nonatomic, readonly) NSString *filePath;
279
- @property (strong, nonatomic, readonly) NSString *fileName;
280
-
281
- @property (strong, nonatomic, readonly) NSDictionary *fileAttributes;
282
-
283
- @property (strong, nonatomic, readonly) NSDate *creationDate;
284
- @property (strong, nonatomic, readonly) NSDate *modificationDate;
285
-
286
- @property (nonatomic, readonly) unsigned long long fileSize;
287
-
288
- @property (nonatomic, readonly) NSTimeInterval age;
289
-
290
- @property (nonatomic, readwrite) BOOL isArchived;
291
-
292
- + (instancetype)logFileWithPath:(NSString *)filePath;
293
-
294
- - (instancetype)initWithFilePath:(NSString *)filePath;
295
-
296
- - (void)reset;
297
- - (void)renameFile:(NSString *)newFileName;
298
-
299
- #if TARGET_IPHONE_SIMULATOR
300
-
301
- // So here's the situation.
302
- // Extended attributes are perfect for what we're trying to do here (marking files as archived).
303
- // This is exactly what extended attributes were designed for.
304
- //
305
- // But Apple screws us over on the simulator.
306
- // Everytime you build-and-go, they copy the application into a new folder on the hard drive,
307
- // and as part of the process they strip extended attributes from our log files.
308
- // Normally, a copy of a file preserves extended attributes.
309
- // So obviously Apple has gone to great lengths to piss us off.
310
- //
311
- // Thus we use a slightly different tactic for marking log files as archived in the simulator.
312
- // That way it "just works" and there's no confusion when testing.
313
- //
314
- // The difference in method names is indicative of the difference in functionality.
315
- // On the simulator we add an attribute by appending a filename extension.
316
- //
317
- // For example:
318
- // log-ABC123.txt -> log-ABC123.archived.txt
319
-
320
- - (BOOL)hasExtensionAttributeWithName:(NSString *)attrName;
321
-
322
- - (void)addExtensionAttributeWithName:(NSString *)attrName;
323
- - (void)removeExtensionAttributeWithName:(NSString *)attrName;
324
-
325
- #else
326
-
327
- // Normal use of extended attributes used everywhere else,
328
- // such as on Macs and on iPhone devices.
329
-
330
- - (BOOL)hasExtendedAttributeWithName:(NSString *)attrName;
331
-
332
- - (void)addExtendedAttributeWithName:(NSString *)attrName;
333
- - (void)removeExtendedAttributeWithName:(NSString *)attrName;
334
-
335
- #endif
336
-
337
- - (NSComparisonResult)reverseCompareByCreationDate:(DDLogFileInfo *)another;
338
- - (NSComparisonResult)reverseCompareByModificationDate:(DDLogFileInfo *)another;
339
-
340
- @end
@@ -1,99 +0,0 @@
1
- //
2
- // DDLog+LOGV.h
3
- // Lumberjack
4
- //
5
- // Created by Mike Pontillo on 11/20/12.
6
- //
7
- //
8
-
9
- #ifndef Lumberjack_DDLog_LOGV_h
10
- #define Lumberjack_DDLog_LOGV_h
11
-
12
- #import "DDLog.h"
13
-
14
-
15
- #define LOGV_MACRO(isAsynchronous, lvl, flg, ctx, atag, fnct, frmt, avalist) \
16
- [DDLog log:isAsynchronous \
17
- level:lvl \
18
- flag:flg \
19
- context:ctx \
20
- file:__FILE__ \
21
- function:fnct \
22
- line:__LINE__ \
23
- tag:atag \
24
- format:frmt \
25
- args:avalist]
26
-
27
- #define LOGV_OBJC_MACRO(async, lvl, flg, ctx, frmt, avalist) \
28
- LOGV_MACRO(async, lvl, flg, ctx, nil, sel_getName(_cmd), frmt, avalist)
29
-
30
- #define LOGV_C_MACRO(async, lvl, flg, ctx, frmt, avalist) \
31
- LOGV_MACRO(async, lvl, flg, ctx, nil, __FUNCTION__, frmt, avalist)
32
-
33
-
34
-
35
- #define SYNC_LOGV_OBJC_MACRO(lvl, flg, ctx, frmt, avalist) \
36
- LOGV_OBJC_MACRO( NO, lvl, flg, ctx, frmt, avalist)
37
-
38
- #define ASYNC_LOGV_OBJC_MACRO(lvl, flg, ctx, frmt, avalist) \
39
- LOGV_OBJC_MACRO(YES, lvl, flg, ctx, frmt, avalist)
40
-
41
- #define SYNC_LOGV_C_MACRO(lvl, flg, ctx, frmt, avalist) \
42
- LOGV_C_MACRO( NO, lvl, flg, ctx, frmt, avalist)
43
-
44
- #define ASYNC_LOGV_C_MACRO(lvl, flg, ctx, frmt, avalist) \
45
- LOGV_C_MACRO(YES, lvl, flg, ctx, frmt, avalist)
46
-
47
-
48
-
49
- #define LOGV_MAYBE(async, lvl, flg, ctx, fnct, frmt, avalist) \
50
- do { if(lvl & flg) LOGV_MACRO(async, lvl, flg, ctx, nil, fnct, frmt, avalist); } while(0)
51
-
52
- #define LOGV_OBJC_MAYBE(async, lvl, flg, ctx, frmt, avalist) \
53
- LOGV_MAYBE(async, lvl, flg, ctx, sel_getName(_cmd), frmt, avalist)
54
-
55
- #define LOGV_C_MAYBE(async, lvl, flg, ctx, frmt, avalist) \
56
- LOGV_MAYBE(async, lvl, flg, ctx, __FUNCTION__, frmt, avalist)
57
-
58
- #define SYNC_LOGV_OBJC_MAYBE(lvl, flg, ctx, frmt, avalist) \
59
- LOGV_OBJC_MAYBE( NO, lvl, flg, ctx, frmt, avalist)
60
-
61
- #define ASYNC_LOGV_OBJC_MAYBE(lvl, flg, ctx, frmt, avalist) \
62
- LOGV_OBJC_MAYBE(YES, lvl, flg, ctx, frmt, avalist)
63
-
64
- #define SYNC_LOGV_C_MAYBE(lvl, flg, ctx, frmt, avalist) \
65
- LOGV_C_MAYBE( NO, lvl, flg, ctx, frmt, avalist)
66
-
67
- #define ASYNC_LOGV_C_MAYBE(lvl, flg, ctx, frmt, avalist) \
68
- LOGV_C_MAYBE(YES, lvl, flg, ctx, frmt, avalist)
69
-
70
-
71
-
72
- #define LOGV_OBJC_TAG_MACRO(async, lvl, flg, ctx, tag, frmt, avalist) \
73
- LOGV_MACRO(async, lvl, flg, ctx, tag, sel_getName(_cmd), frmt, avalist)
74
-
75
- #define LOGV_C_TAG_MACRO(async, lvl, flg, ctx, tag, frmt, avalist) \
76
- LOGV_MACRO(async, lvl, flg, ctx, tag, __FUNCTION__, frmt, avalist)
77
-
78
- #define LOGV_TAG_MAYBE(async, lvl, flg, ctx, tag, fnct, frmt, avalist) \
79
- do { if(lvl & flg) LOGV_MACRO(async, lvl, flg, ctx, tag, fnct, frmt, avalist); } while(0)
80
-
81
- #define LOGV_OBJC_TAG_MAYBE(async, lvl, flg, ctx, tag, frmt, avalist) \
82
- LOGV_TAG_MAYBE(async, lvl, flg, ctx, tag, sel_getName(_cmd), frmt, avalist)
83
-
84
- #define LOGV_C_TAG_MAYBE(async, lvl, flg, ctx, tag, frmt, avalist) \
85
- LOGV_TAG_MAYBE(async, lvl, flg, ctx, tag, __FUNCTION__, frmt, avalist)
86
-
87
-
88
-
89
- #define DDLogvError(frmt, avalist) LOGV_OBJC_MAYBE(LOG_ASYNC_ERROR, _ddLogLevel, LOG_FLAG_ERROR, 0, frmt, avalist)
90
- #define DDLogvWarn(frmt, avalist) LOGV_OBJC_MAYBE(LOG_ASYNC_WARN, _ddLogLevel, LOG_FLAG_WARN, 0, frmt, avalist)
91
- #define DDLogvInfo(frmt, avalist) LOGV_OBJC_MAYBE(LOG_ASYNC_INFO, _ddLogLevel, LOG_FLAG_INFO, 0, frmt, avalist)
92
- #define DDLogvVerbose(frmt, avalist) LOGV_OBJC_MAYBE(LOG_ASYNC_VERBOSE, _ddLogLevel, LOG_FLAG_VERBOSE, 0, frmt, avalist)
93
-
94
- #define DDLogvCError(frmt, avalist) LOGV_C_MAYBE(LOG_ASYNC_ERROR, _ddLogLevel, LOG_FLAG_ERROR, 0, frmt, avalist)
95
- #define DDLogvCWarn(frmt, avalist) LOGV_C_MAYBE(LOG_ASYNC_WARN, _ddLogLevel, LOG_FLAG_WARN, 0, frmt, avalist)
96
- #define DDLogvCInfo(frmt, avalist) LOGV_C_MAYBE(LOG_ASYNC_INFO, _ddLogLevel, LOG_FLAG_INFO, 0, frmt, avalist)
97
- #define DDLogvCVerbose(frmt, avalist) LOGV_C_MAYBE(LOG_ASYNC_VERBOSE, _ddLogLevel, LOG_FLAG_VERBOSE, 0, frmt, avalist)
98
-
99
- #endif