Skip to content

Commit

Permalink
2.0.0.beta6
Browse files Browse the repository at this point in the history
  • Loading branch information
HBehrens committed Jan 18, 2014
1 parent 7f6150c commit 6fcda6b
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 3 deletions.
@@ -0,0 +1,14 @@
//
// NSJSONSerialization+ObjectWithNString.h
// Ejecta
//
// Created by matth on 7/19/13.
//
//

#import <Foundation/Foundation.h>

@interface NSJSONSerialization (ObjectWithNString)
+ (id)JSONObjectWithString:(NSString *)string options:(NSJSONReadingOptions)opt error:(NSError **)error;
+ (NSString*)stringWithNSDictionary:(NSDictionary*)dictionary;
@end
7 changes: 6 additions & 1 deletion PebbleKit.framework/Versions/A/Headers/PBWatch+Version.h
Expand Up @@ -83,11 +83,16 @@
- (NSComparisonResult)compare:(PBFirmwareVersion *)aVersion;

/**
* Convenience wrapper around -compare:
* Convenience wrappers around -compare:
*/
- (BOOL)isEqualOrNewer:(PBFirmwareVersion *)other;
- (BOOL)isNewer:(PBFirmwareVersion *)other;
- (BOOL)isEqualVersionOnly:(PBFirmwareVersion *)other;

@end



/**
* Values specifying the Pebble hardware platform variant.
*/
Expand Down
Binary file modified PebbleKit.framework/Versions/A/PebbleKit
Binary file not shown.
4 changes: 2 additions & 2 deletions PebbleKit.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "PebbleKit"
s.version = "2.0.0.beta5"
s.version = "2.0.0.beta6"
s.summary = "Embed PebbleKit iOS into your app to communicate with Pebble"
s.homepage = "http://developer.getpebble.com"
s.license = {
Expand All @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
LICENSE
}
s.author = { "Pebble Technology Corp." => "devsupport@getpebble.com" }
s.source = { :git => "https://github.com/HBehrens/PebbleKit.git", :tag => "2.0.0.beta5" }
s.source = { :git => "https://github.com/HBehrens/PebbleKit.git", :tag => "2.0.0.beta6" }
s.platform = :ios, '5.0'

s.preserve_paths = "PebbleKit.framework", "PebbleVendor.framework"
Expand Down
Binary file modified PebbleVendor.framework/Versions/A/PebbleVendor
Binary file not shown.
14 changes: 14 additions & 0 deletions PebbleVendor/NSJSONSerialization+ObjectWithNString.h
@@ -0,0 +1,14 @@
//
// NSJSONSerialization+ObjectWithNString.h
// Ejecta
//
// Created by matth on 7/19/13.
//
//

#import <Foundation/Foundation.h>

@interface NSJSONSerialization (ObjectWithNString)
+ (id)JSONObjectWithString:(NSString *)string options:(NSJSONReadingOptions)opt error:(NSError **)error;
+ (NSString*)stringWithNSDictionary:(NSDictionary*)dictionary;
@end
34 changes: 34 additions & 0 deletions PebbleVendor/NSJSONSerialization+ObjectWithNString.m
@@ -0,0 +1,34 @@
//
// NSJSONSerialization+ObjectWithNString.m
// Ejecta
//
// Created by matth on 7/19/13.
//
//

#import "NSJSONSerialization+ObjectWithNString.h"

@implementation NSJSONSerialization (ObjectWithNString)

+ (id)JSONObjectWithString:(NSString *)jsonString options:(NSJSONReadingOptions)opt error:(NSError **)error
{
NSData *jsonData = [jsonString dataUsingEncoding:NSUnicodeStringEncoding allowLossyConversion:YES];

return [NSJSONSerialization JSONObjectWithData:jsonData options:kNilOptions error:error];
}

+ (NSString*)stringWithNSDictionary:(NSDictionary*)dictionary {
NSError *error;

NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dictionary
options:0
error:&error];

if (!jsonData) {
return nil;
}

return [[NSString alloc]initWithBytes:[jsonData bytes] length:[jsonData length] encoding:NSUTF8StringEncoding];
}

@end

0 comments on commit 6fcda6b

Please sign in to comment.