Skip to content

Commit

Permalink
4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
drodriguez committed Nov 23, 2016
1 parent ed4760d commit a96ba4c
Show file tree
Hide file tree
Showing 146 changed files with 15,513 additions and 3,389 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source 'https://rubygems.org'

gem 'cocoapods'
gem 'cocoapods', '~> 1.0.1'
gem 'activesupport', '< 5.0.0'
gem 'xcpretty'
76 changes: 76 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.3)
activesupport (4.2.7.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
claide (1.0.1)
cocoapods (1.0.1)
activesupport (>= 4.0.2)
claide (>= 1.0.0, < 2.0)
cocoapods-core (= 1.0.1)
cocoapods-deintegrate (>= 1.0.0, < 2.0)
cocoapods-downloader (>= 1.0.0, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.0.0, < 2.0)
cocoapods-try (>= 1.0.0, < 2.0)
colored (~> 1.2)
escape (~> 0.0.4)
fourflusher (~> 0.3.0)
molinillo (~> 0.4.5)
nap (~> 1.0)
xcodeproj (>= 1.1.0, < 2.0)
cocoapods-core (1.0.1)
activesupport (>= 4.0.2)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.1)
cocoapods-downloader (1.1.2)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.1.1)
nap (>= 0.8, < 2.0)
netrc (= 0.7.8)
cocoapods-try (1.1.0)
colored (1.2)
escape (0.0.4)
fourflusher (0.3.2)
fuzzy_match (2.0.4)
i18n (0.7.0)
json (1.8.3)
minitest (5.9.1)
molinillo (0.4.5)
nanaimo (0.2.2)
nap (1.1.0)
netrc (0.7.8)
rouge (1.11.1)
thread_safe (0.3.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)
xcodeproj (1.4.1)
CFPropertyList (~> 2.3.3)
activesupport (>= 3)
claide (>= 1.0.1, < 2.0)
colored (~> 1.2)
nanaimo (~> 0.2.0)
xcpretty (0.2.4)
rouge (~> 1.8)

PLATFORMS
ruby

DEPENDENCIES
activesupport (< 5.0.0)
cocoapods (~> 1.0.1)
xcpretty

BUNDLED WITH
1.13.5
1 change: 1 addition & 0 deletions Headers
61 changes: 46 additions & 15 deletions PebbleKit-Static.framework/Versions/A/Headers/NSDictionary+Pebble.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,62 @@

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDictionary (Pebble)

/**
* Serializes the receiver into a Pebble dict.
* @note The receiver dictionary must comply to the following constraints:
* * The keys must be instances of NSNumber. Their -unsignedLongValue return value will be used as final key.
* * The values must be instances of either NSString, NSData or NSNumber. Use the NSNumber (stdint) category
* to specify the signedness and width of NSNumbers.
* @param error[out] Pointer to an NSError that will be set after the method has returned
* in case there was an error. Possible error codes: PBErrorCodeDictionaryUnsupportedKeyClass,
* PBErrorCodeDictionaryUnsupportedValueClass or PBErrorCodeDictionaryUnsupportedValueClass.
* @see -dictionaryFromPebbleDictionaryDataWithError:
* Serializes the receiver into a Pebble dict.
*
* The receiver dictionary must comply to the following constraints:
*
* - The keys must be instances of `NSNumber`. Their `-unsignedLongValue`
* return value will be used as final key.
* - The values must be instances of either `NSString`, `NSData` or
* `NSNumber`. Use the `NSNumber (stdint)` category to specify the
* signedness and width of `NSNumber`.
*
* @param error Pointer to an `NSError *` that will be set in case there was an
* error creating the dictionary. Possible error codes:
*
* - PBErrorCodeDictionaryUnsupportedKeyClass
* - PBErrorCodeDictionaryUnsupportedValueClass
* - PBErrorCodeDictionaryUnsupportedValueClass
*
* @see [NSData(Pebble) pb_dictionaryFromPebbleDictionaryDataWithError:]
*/
- (NSData*)pebbleDictionaryData:(NSError * __autoreleasing *)error;
- (nullable NSData *)pb_pebbleDictionaryData:(NSError * __autoreleasing *)error;

@end

@interface NSData (Pebble)

/**
* Interprets the receiver as Pebble dict data and deserializes it into an NSDictionary.
* @param error[out] Pointer to an NSError that will be set after the method has returned
* in case there was an error. Possible error codes: PBErrorCodeDictionaryInternalConsistency.
* @see -pebbleDictionaryData:
* Interprets the receiver as Pebble dict data and deserializes it into an NSDictionary.
*
* @param error Pointer to an `NSError *` that will be set after the method has
* returned in case there was an error. Possible error codes:
*
* - PBErrorCodeDictionaryInternalConsistency
*
* @see [NSDictionary(Pebble) pb_pebbleDictionaryData:]
*/
- (NSDictionary*)dictionaryFromPebbleDictionaryDataWithError:(NSError * __autoreleasing *)error;
- (nullable NSDictionary *)pb_dictionaryFromPebbleDictionaryDataWithError:(NSError * __autoreleasing *)error;

@end


@interface NSDictionary (PebbleDeprecated)

- (nullable NSData *)pebbleDictionaryData:(NSError * __autoreleasing *)error DEPRECATED_MSG_ATTRIBUTE("Use pb_pebbleDictionaryData:");

@end


@interface NSData (PebbleDeprecated)

- (nullable NSDictionary *)dictionaryFromPebbleDictionaryDataWithError:(NSError * __autoreleasing *)error DEPRECATED_MSG_ATTRIBUTE("Use pb_dictionaryFromPebbleDictionaryDataWithError:");

@end

NS_ASSUME_NONNULL_END
109 changes: 73 additions & 36 deletions PebbleKit-Static.framework/Versions/A/Headers/NSNumber+stdint.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,88 +8,125 @@

#import <Foundation/Foundation.h>


NS_ASSUME_NONNULL_BEGIN

/**
* This category exposes the capabilities the underlying CFNumber to explicitely
* store the signedness and the width of the storage.
* This category exposes the capabilities the underlying CFNumber to explicitely
* store the signedness and the width of the storage.
*/

@interface NSNumber (stdint)
@interface NSNumber (PBStandardIntegerExtensions)

/**
* Interprets the receiver as a 32-bits wide, unsigned integer.
* Interprets the receiver as a 32-bits wide, unsigned integer.
*/
- (uint32_t)uint32Value;
@property (readonly) uint32_t pb_uint32Value;

/**
* Interprets the receiver as a 16-bits wide, unsigned integer.
* Interprets the receiver as a 16-bits wide, unsigned integer.
*/
- (uint16_t)uint16Value;
@property (readonly) uint16_t pb_uint16Value;

/**
* Interprets the receiver as a 8-bits wide, unsigned integer.
* Interprets the receiver as a 8-bits wide, unsigned integer.
*/
- (uint8_t)uint8Value;
@property (readonly) uint8_t pb_uint8Value;

/**
* Interprets the receiver as a 32-bits wide, signed integer.
* Interprets the receiver as a 32-bits wide, signed integer.
*/
- (int32_t)int32Value;
@property (readonly) int32_t pb_int32Value;

/**
* Interprets the receiver as a 16-bits wide, signed integer.
* Interprets the receiver as a 16-bits wide, signed integer.
*/
- (int16_t)int16Value;
@property (readonly) int16_t pb_int16Value;

/**
* Interprets the receiver as a 8-bits wide, signed integer.
* Interprets the receiver as a 8-bits wide, signed integer.
*/
- (int8_t)int8Value;
@property (readonly) int8_t pb_int8Value;

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

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

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

/**
* Creates an NSNumber with a 32-bits wide, signed integer.
* Creates an NSNumber with a 32-bits wide, unsigned integer.
*
* @param value The value for the created number.
*/
+ (NSNumber *)numberWithInt32:(int32_t)value;
+ (NSNumber *)pb_numberWithUint32:(uint32_t)value;

/**
* Creates an NSNumber with a 16-bits wide, signed integer.
* Creates an NSNumber with a 16-bits wide, unsigned integer.
*
* @param value The value for the created number.
*/
+ (NSNumber *)numberWithInt16:(int16_t)value;
+ (NSNumber *)pb_numberWithUint16:(uint16_t)value;

/**
* Creates an NSNumber with a 8-bits wide, signed integer.
* Creates an NSNumber with a 8-bits wide, unsigned integer.
*
* @param value The value for the created number.
*/
+ (NSNumber *)numberWithInt8:(int8_t)value;
+ (NSNumber *)pb_numberWithUint8:(uint8_t)value;

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

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

/**
* Gets the width in bytes of the integer that is stored by the receiver.
* Creates an NSNumber with a 8-bits wide, signed integer.
*
* @param value The value for the created number.
*/
- (uint8_t)width;
+ (NSNumber *)pb_numberWithInt8:(int8_t)value;

@end


@interface NSNumber (PBStandardIntegerExtensionsDeprecated)

- (uint32_t)uint32Value DEPRECATED_MSG_ATTRIBUTE("Use pb_uint32Value");
- (uint16_t)uint16Value DEPRECATED_MSG_ATTRIBUTE("Use pb_uint16Value");
- (uint8_t)uint8Value DEPRECATED_MSG_ATTRIBUTE("Use pb_uint8Value");
- (int32_t)int32Value DEPRECATED_MSG_ATTRIBUTE("Use pb_int32Value");
- (int16_t)int16Value DEPRECATED_MSG_ATTRIBUTE("Use pb_int16Value");
- (int8_t)int8Value DEPRECATED_MSG_ATTRIBUTE("Use pb_int8Value");
+ (NSNumber *)numberWithUint32:(uint32_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithUint32:");
+ (NSNumber *)numberWithUint16:(uint16_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithUint16:");
+ (NSNumber *)numberWithUint8:(uint8_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithUint8:");
+ (NSNumber *)numberWithInt32:(int32_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithInt32:");
+ (NSNumber *)numberWithInt16:(int16_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithInt16:");
+ (NSNumber *)numberWithInt8:(int8_t)value DEPRECATED_MSG_ATTRIBUTE("Use pb_numberWithInt8:");
- (BOOL)isFloat DEPRECATED_MSG_ATTRIBUTE("Use pb_isFloat");
- (BOOL)isSigned DEPRECATED_MSG_ATTRIBUTE("Use pb_isSigned");
- (uint8_t)width DEPRECATED_MSG_ATTRIBUTE("Use pb_byteWidth");

@end

NS_ASSUME_NONNULL_END
30 changes: 15 additions & 15 deletions PebbleKit-Static.framework/Versions/A/Headers/PBBitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,48 @@
// Copyright (c) 2013 Pebble Technology. All rights reserved.
//

#import <PebbleKit/PBDefines.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIImage.h>
#import <PebbleKit/gtypes.h>
#import <PebbleKit-Static/PBDefines.h>
#import <PebbleKit-Static/gtypes.h>

NS_ASSUME_NONNULL_BEGIN

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

PB_EXTERN_CLASS @interface PBBitmap : NSObject

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

/**
* The number of bytes per row.
* Always a multiple of 4 bytes.
* The number of bytes per row.
* Always a multiple of 4 bytes.
*/
@property (nonatomic, readonly, assign) uint16_t rowSizeBytes;

/**
* Bitfield of metadata flags.
* This corresponds to GBitmap's `info_flags` field.
* Bitfield of metadata flags.
* This corresponds to GBitmap's `info_flags` field.
*/
@property (nonatomic, readonly, assign) uint16_t infoFlags;

/**
* The box of bits inside `pixelData`, that contains
* the actual image data to use.
* This corresponds to GBitmap's `bounds` field.
* The box of bits inside `pixelData`, that contains
* the actual image data to use.
* This corresponds to GBitmap's `bounds` field.
*/
@property (nonatomic, readonly, assign) GRect bounds;

/**
* Factory method to create a PBBitmap from a UIImage instance.
* @param image The UIImage from which to create the PBBitmap
* Factory method to create a PBBitmap from a UIImage instance.
* @param image The UIImage from which to create the PBBitmap
*/
+ (PBBitmap*)pebbleBitmapWithUIImage:(UIImage*)image;

Expand Down
Loading

0 comments on commit a96ba4c

Please sign in to comment.