Skip to content

Commit a96ba4c

Browse files
committed
4.0.0
1 parent ed4760d commit a96ba4c

File tree

146 files changed

+15513
-3389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+15513
-3389
lines changed

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
source 'https://rubygems.org'
22

3-
gem 'cocoapods'
3+
gem 'cocoapods', '~> 1.0.1'
4+
gem 'activesupport', '< 5.0.0'
45
gem 'xcpretty'

Gemfile.lock

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (2.3.3)
5+
activesupport (4.2.7.1)
6+
i18n (~> 0.7)
7+
json (~> 1.7, >= 1.7.7)
8+
minitest (~> 5.1)
9+
thread_safe (~> 0.3, >= 0.3.4)
10+
tzinfo (~> 1.1)
11+
claide (1.0.1)
12+
cocoapods (1.0.1)
13+
activesupport (>= 4.0.2)
14+
claide (>= 1.0.0, < 2.0)
15+
cocoapods-core (= 1.0.1)
16+
cocoapods-deintegrate (>= 1.0.0, < 2.0)
17+
cocoapods-downloader (>= 1.0.0, < 2.0)
18+
cocoapods-plugins (>= 1.0.0, < 2.0)
19+
cocoapods-search (>= 1.0.0, < 2.0)
20+
cocoapods-stats (>= 1.0.0, < 2.0)
21+
cocoapods-trunk (>= 1.0.0, < 2.0)
22+
cocoapods-try (>= 1.0.0, < 2.0)
23+
colored (~> 1.2)
24+
escape (~> 0.0.4)
25+
fourflusher (~> 0.3.0)
26+
molinillo (~> 0.4.5)
27+
nap (~> 1.0)
28+
xcodeproj (>= 1.1.0, < 2.0)
29+
cocoapods-core (1.0.1)
30+
activesupport (>= 4.0.2)
31+
fuzzy_match (~> 2.0.4)
32+
nap (~> 1.0)
33+
cocoapods-deintegrate (1.0.1)
34+
cocoapods-downloader (1.1.2)
35+
cocoapods-plugins (1.0.0)
36+
nap
37+
cocoapods-search (1.0.0)
38+
cocoapods-stats (1.0.0)
39+
cocoapods-trunk (1.1.1)
40+
nap (>= 0.8, < 2.0)
41+
netrc (= 0.7.8)
42+
cocoapods-try (1.1.0)
43+
colored (1.2)
44+
escape (0.0.4)
45+
fourflusher (0.3.2)
46+
fuzzy_match (2.0.4)
47+
i18n (0.7.0)
48+
json (1.8.3)
49+
minitest (5.9.1)
50+
molinillo (0.4.5)
51+
nanaimo (0.2.2)
52+
nap (1.1.0)
53+
netrc (0.7.8)
54+
rouge (1.11.1)
55+
thread_safe (0.3.5)
56+
tzinfo (1.2.2)
57+
thread_safe (~> 0.1)
58+
xcodeproj (1.4.1)
59+
CFPropertyList (~> 2.3.3)
60+
activesupport (>= 3)
61+
claide (>= 1.0.1, < 2.0)
62+
colored (~> 1.2)
63+
nanaimo (~> 0.2.0)
64+
xcpretty (0.2.4)
65+
rouge (~> 1.8)
66+
67+
PLATFORMS
68+
ruby
69+
70+
DEPENDENCIES
71+
activesupport (< 5.0.0)
72+
cocoapods (~> 1.0.1)
73+
xcpretty
74+
75+
BUNDLED WITH
76+
1.13.5

Headers

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PebbleKit-Static.framework/Versions/A/Headers

PebbleKit-Static.framework/Versions/A/Headers/NSDictionary+Pebble.h

+46-15
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,62 @@
88

99
#import <Foundation/Foundation.h>
1010

11+
NS_ASSUME_NONNULL_BEGIN
12+
1113
@interface NSDictionary (Pebble)
1214

1315
/**
14-
* Serializes the receiver into a Pebble dict.
15-
* @note The receiver dictionary must comply to the following constraints:
16-
* * The keys must be instances of NSNumber. Their -unsignedLongValue return value will be used as final key.
17-
* * The values must be instances of either NSString, NSData or NSNumber. Use the NSNumber (stdint) category
18-
* to specify the signedness and width of NSNumbers.
19-
* @param error[out] Pointer to an NSError that will be set after the method has returned
20-
* in case there was an error. Possible error codes: PBErrorCodeDictionaryUnsupportedKeyClass,
21-
* PBErrorCodeDictionaryUnsupportedValueClass or PBErrorCodeDictionaryUnsupportedValueClass.
22-
* @see -dictionaryFromPebbleDictionaryDataWithError:
16+
* Serializes the receiver into a Pebble dict.
17+
*
18+
* The receiver dictionary must comply to the following constraints:
19+
*
20+
* - The keys must be instances of `NSNumber`. Their `-unsignedLongValue`
21+
* return value will be used as final key.
22+
* - The values must be instances of either `NSString`, `NSData` or
23+
* `NSNumber`. Use the `NSNumber (stdint)` category to specify the
24+
* signedness and width of `NSNumber`.
25+
*
26+
* @param error Pointer to an `NSError *` that will be set in case there was an
27+
* error creating the dictionary. Possible error codes:
28+
*
29+
* - PBErrorCodeDictionaryUnsupportedKeyClass
30+
* - PBErrorCodeDictionaryUnsupportedValueClass
31+
* - PBErrorCodeDictionaryUnsupportedValueClass
32+
*
33+
* @see [NSData(Pebble) pb_dictionaryFromPebbleDictionaryDataWithError:]
2334
*/
24-
- (NSData*)pebbleDictionaryData:(NSError * __autoreleasing *)error;
35+
- (nullable NSData *)pb_pebbleDictionaryData:(NSError * __autoreleasing *)error;
2536

2637
@end
2738

2839
@interface NSData (Pebble)
2940

3041
/**
31-
* Interprets the receiver as Pebble dict data and deserializes it into an NSDictionary.
32-
* @param error[out] Pointer to an NSError that will be set after the method has returned
33-
* in case there was an error. Possible error codes: PBErrorCodeDictionaryInternalConsistency.
34-
* @see -pebbleDictionaryData:
42+
* Interprets the receiver as Pebble dict data and deserializes it into an NSDictionary.
43+
*
44+
* @param error Pointer to an `NSError *` that will be set after the method has
45+
* returned in case there was an error. Possible error codes:
46+
*
47+
* - PBErrorCodeDictionaryInternalConsistency
48+
*
49+
* @see [NSDictionary(Pebble) pb_pebbleDictionaryData:]
3550
*/
36-
- (NSDictionary*)dictionaryFromPebbleDictionaryDataWithError:(NSError * __autoreleasing *)error;
51+
- (nullable NSDictionary *)pb_dictionaryFromPebbleDictionaryDataWithError:(NSError * __autoreleasing *)error;
52+
53+
@end
54+
55+
56+
@interface NSDictionary (PebbleDeprecated)
57+
58+
- (nullable NSData *)pebbleDictionaryData:(NSError * __autoreleasing *)error DEPRECATED_MSG_ATTRIBUTE("Use pb_pebbleDictionaryData:");
3759

3860
@end
61+
62+
63+
@interface NSData (PebbleDeprecated)
64+
65+
- (nullable NSDictionary *)dictionaryFromPebbleDictionaryDataWithError:(NSError * __autoreleasing *)error DEPRECATED_MSG_ATTRIBUTE("Use pb_dictionaryFromPebbleDictionaryDataWithError:");
66+
67+
@end
68+
69+
NS_ASSUME_NONNULL_END

PebbleKit-Static.framework/Versions/A/Headers/NSNumber+stdint.h

+73-36
Original file line numberDiff line numberDiff line change
@@ -8,88 +8,125 @@
88

99
#import <Foundation/Foundation.h>
1010

11+
12+
NS_ASSUME_NONNULL_BEGIN
13+
1114
/**
12-
* This category exposes the capabilities the underlying CFNumber to explicitely
13-
* store the signedness and the width of the storage.
15+
* This category exposes the capabilities the underlying CFNumber to explicitely
16+
* store the signedness and the width of the storage.
1417
*/
15-
16-
@interface NSNumber (stdint)
18+
@interface NSNumber (PBStandardIntegerExtensions)
1719

1820
/**
19-
* Interprets the receiver as a 32-bits wide, unsigned integer.
21+
* Interprets the receiver as a 32-bits wide, unsigned integer.
2022
*/
21-
- (uint32_t)uint32Value;
23+
@property (readonly) uint32_t pb_uint32Value;
2224

2325
/**
24-
* Interprets the receiver as a 16-bits wide, unsigned integer.
26+
* Interprets the receiver as a 16-bits wide, unsigned integer.
2527
*/
26-
- (uint16_t)uint16Value;
28+
@property (readonly) uint16_t pb_uint16Value;
2729

2830
/**
29-
* Interprets the receiver as a 8-bits wide, unsigned integer.
31+
* Interprets the receiver as a 8-bits wide, unsigned integer.
3032
*/
31-
- (uint8_t)uint8Value;
33+
@property (readonly) uint8_t pb_uint8Value;
3234

3335
/**
34-
* Interprets the receiver as a 32-bits wide, signed integer.
36+
* Interprets the receiver as a 32-bits wide, signed integer.
3537
*/
36-
- (int32_t)int32Value;
38+
@property (readonly) int32_t pb_int32Value;
3739

3840
/**
39-
* Interprets the receiver as a 16-bits wide, signed integer.
41+
* Interprets the receiver as a 16-bits wide, signed integer.
4042
*/
41-
- (int16_t)int16Value;
43+
@property (readonly) int16_t pb_int16Value;
4244

4345
/**
44-
* Interprets the receiver as a 8-bits wide, signed integer.
46+
* Interprets the receiver as a 8-bits wide, signed integer.
4547
*/
46-
- (int8_t)int8Value;
48+
@property (readonly) int8_t pb_int8Value;
4749

4850
/**
49-
* Creates an NSNumber with a 32-bits wide, unsigned integer.
51+
* Gets whether the number that is stored by the receiver should be interpreted
52+
* as a floating pointer number or not.
5053
*/
51-
+ (NSNumber *)numberWithUint32:(uint32_t)value;
54+
@property (readonly, getter=pb_isFloat) BOOL pb_float;
5255

5356
/**
54-
* Creates an NSNumber with a 16-bits wide, unsigned integer.
57+
* Gets whether the number that is stored by the receiver should be interpreted
58+
* as a signed integer or not.
5559
*/
56-
+ (NSNumber *)numberWithUint16:(uint16_t)value;
60+
@property (readonly, getter=pb_isSigned) BOOL pb_signed;
5761

5862
/**
59-
* Creates an NSNumber with a 8-bits wide, unsigned integer.
63+
* Gets the width in bytes of the integer that is stored by the receiver.
6064
*/
61-
+ (NSNumber *)numberWithUint8:(uint8_t)value;
65+
@property (readonly) uint8_t pb_byteWidth;
6266

6367
/**
64-
* Creates an NSNumber with a 32-bits wide, signed integer.
68+
* Creates an NSNumber with a 32-bits wide, unsigned integer.
69+
*
70+
* @param value The value for the created number.
6571
*/
66-
+ (NSNumber *)numberWithInt32:(int32_t)value;
72+
+ (NSNumber *)pb_numberWithUint32:(uint32_t)value;
6773

6874
/**
69-
* Creates an NSNumber with a 16-bits wide, signed integer.
75+
* Creates an NSNumber with a 16-bits wide, unsigned integer.
76+
*
77+
* @param value The value for the created number.
7078
*/
71-
+ (NSNumber *)numberWithInt16:(int16_t)value;
79+
+ (NSNumber *)pb_numberWithUint16:(uint16_t)value;
7280

7381
/**
74-
* Creates an NSNumber with a 8-bits wide, signed integer.
82+
* Creates an NSNumber with a 8-bits wide, unsigned integer.
83+
*
84+
* @param value The value for the created number.
7585
*/
76-
+ (NSNumber *)numberWithInt8:(int8_t)value;
86+
+ (NSNumber *)pb_numberWithUint8:(uint8_t)value;
7787

7888
/**
79-
* Gets whether the number that is stored by the receiver should be interpreted
80-
* as a floating pointer number or not.
89+
* Creates an NSNumber with a 32-bits wide, signed integer.
90+
*
91+
* @param value The value for the created number.
8192
*/
82-
- (BOOL)isFloat;
93+
+ (NSNumber *)pb_numberWithInt32:(int32_t)value;
8394

8495
/**
85-
* Gets whether the number that is stored by the receiver should be interpreted
86-
* as a signed integer or not.
96+
* Creates an NSNumber with a 16-bits wide, signed integer.
97+
*
98+
* @param value The value for the created number.
8799
*/
88-
- (BOOL)isSigned;
100+
+ (NSNumber *)pb_numberWithInt16:(int16_t)value;
89101

90102
/**
91-
* Gets the width in bytes of the integer that is stored by the receiver.
103+
* Creates an NSNumber with a 8-bits wide, signed integer.
104+
*
105+
* @param value The value for the created number.
92106
*/
93-
- (uint8_t)width;
107+
+ (NSNumber *)pb_numberWithInt8:(int8_t)value;
108+
109+
@end
110+
111+
112+
@interface NSNumber (PBStandardIntegerExtensionsDeprecated)
113+
114+
- (uint32_t)uint32Value DEPRECATED_MSG_ATTRIBUTE("Use pb_uint32Value");
115+
- (uint16_t)uint16Value DEPRECATED_MSG_ATTRIBUTE("Use pb_uint16Value");
116+
- (uint8_t)uint8Value DEPRECATED_MSG_ATTRIBUTE("Use pb_uint8Value");
117+
- (int32_t)int32Value DEPRECATED_MSG_ATTRIBUTE("Use pb_int32Value");
118+
- (int16_t)int16Value DEPRECATED_MSG_ATTRIBUTE("Use pb_int16Value");
119+
- (int8_t)int8Value DEPRECATED_MSG_ATTRIBUTE("Use pb_int8Value");
120+
+ (NSNumber *)numberWithUint32:(uint32_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithUint32:");
121+
+ (NSNumber *)numberWithUint16:(uint16_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithUint16:");
122+
+ (NSNumber *)numberWithUint8:(uint8_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithUint8:");
123+
+ (NSNumber *)numberWithInt32:(int32_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithInt32:");
124+
+ (NSNumber *)numberWithInt16:(int16_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithInt16:");
125+
+ (NSNumber *)numberWithInt8:(int8_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithInt8:");
126+
- (BOOL)isFloat DEPRECATED_MSG_ATTRIBUTE("Use pb_isFloat");
127+
- (BOOL)isSigned DEPRECATED_MSG_ATTRIBUTE("Use pb_isSigned");
128+
- (uint8_t)width DEPRECATED_MSG_ATTRIBUTE("Use pb_byteWidth");
94129

95130
@end
131+
132+
NS_ASSUME_NONNULL_END

PebbleKit-Static.framework/Versions/A/Headers/PBBitmap.h

+15-15
Original file line numberDiff line numberDiff line change
@@ -6,48 +6,48 @@
66
// Copyright (c) 2013 Pebble Technology. All rights reserved.
77
//
88

9-
#import <PebbleKit/PBDefines.h>
109
#import <Foundation/Foundation.h>
1110
#import <UIKit/UIImage.h>
12-
#import <PebbleKit/gtypes.h>
11+
#import <PebbleKit-Static/PBDefines.h>
12+
#import <PebbleKit-Static/gtypes.h>
1313

1414
NS_ASSUME_NONNULL_BEGIN
1515

1616
/**
17-
* Helper class to convert a UIImage to Pebble bitmap pixel data and GBitmap metadata.
18-
* Refer to the documentation of Pebble's native watch app SDK on the GBitmap format.
17+
* Helper class to convert a UIImage to Pebble bitmap pixel data and GBitmap metadata.
18+
* Refer to the documentation of Pebble's native watch app SDK on the GBitmap format.
1919
*/
2020

2121
PB_EXTERN_CLASS @interface PBBitmap : NSObject
2222

2323
/**
24-
* The pixel data of the bitmap.
25-
* This corresponds to the data as pointed to by GBitmap's `addr` field.
24+
* The pixel data of the bitmap.
25+
* This corresponds to the data as pointed to by GBitmap's `addr` field.
2626
*/
2727
@property (nonatomic, readonly, strong) NSData *pixelData;
2828

2929
/**
30-
* The number of bytes per row.
31-
* Always a multiple of 4 bytes.
30+
* The number of bytes per row.
31+
* Always a multiple of 4 bytes.
3232
*/
3333
@property (nonatomic, readonly, assign) uint16_t rowSizeBytes;
3434

3535
/**
36-
* Bitfield of metadata flags.
37-
* This corresponds to GBitmap's `info_flags` field.
36+
* Bitfield of metadata flags.
37+
* This corresponds to GBitmap's `info_flags` field.
3838
*/
3939
@property (nonatomic, readonly, assign) uint16_t infoFlags;
4040

4141
/**
42-
* The box of bits inside `pixelData`, that contains
43-
* the actual image data to use.
44-
* This corresponds to GBitmap's `bounds` field.
42+
* The box of bits inside `pixelData`, that contains
43+
* the actual image data to use.
44+
* This corresponds to GBitmap's `bounds` field.
4545
*/
4646
@property (nonatomic, readonly, assign) GRect bounds;
4747

4848
/**
49-
* Factory method to create a PBBitmap from a UIImage instance.
50-
* @param image The UIImage from which to create the PBBitmap
49+
* Factory method to create a PBBitmap from a UIImage instance.
50+
* @param image The UIImage from which to create the PBBitmap
5151
*/
5252
+ (PBBitmap*)pebbleBitmapWithUIImage:(UIImage*)image;
5353

0 commit comments

Comments
 (0)