Skip to content

Commit

Permalink
3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcljx committed Dec 9, 2015
1 parent 70332da commit dbf5f48
Show file tree
Hide file tree
Showing 95 changed files with 11,686 additions and 171 deletions.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions PebbleKit-Static.framework/PebbleKit-Static
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

NS_ASSUME_NONNULL_BEGIN

@class PBWatch;

/**
* Data logging datatypes.
*/
Expand Down Expand Up @@ -229,10 +231,16 @@ PB_EXTERN_CLASS @interface PBDataLoggingService : NSObject
*/
- (void)setDelegateQueue:(dispatch_queue_t)delegateQueue;

/**
* Query the latestConnectedWatch for data logging data.
*/
- (void)pollForData __deprecated_msg("Method deprecated. Use `pollForDataFromWatch:`");

/**
* Query the watch for data logging data.
* @param watch The watch to query data from.
*/
- (void)pollForData;
- (void)pollForDataFromWatch:(PBWatch *)watch;

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright (c) 2015 Pebble Technology. All rights reserved.
//

#import <Foundation/Foundation.h>

#ifndef PB_EXTERN
# ifdef __cplusplus
# define PB_EXTERN extern "C" __attribute__((visibility ("default")))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ typedef enum {
PBErrorCodeMessageTooLong,
PBErrorCodeBluetoothDisabled,
PBErrorCodeBluetoothLowEnergyHandshakeFailed,
PBErrorCodeFirmwareUpdateMetadataInvalid
} PBErrorCode;

@interface NSError (Pebble)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#import <PebbleKit/PBDefines.h>

PB_EXTERN int const PBKitContext;
PB_EXTERN int const PBWSContext;

/**
* All logging will be sent through this function.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ NS_ASSUME_NONNULL_BEGIN
*/
+ (void)setDebugLogsEnabled:(BOOL)logsEnabled __deprecated_msg("Method deprecated. Use `setLogLevel:`");

@property (nonatomic, readonly) PBDataLoggingService * __nullable dataLoggingService __deprecated_msg("Method deprecated. Use `dataLoggingServiceForAppUUID:`");

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,12 @@ PB_EXTERN_CLASS @interface PBPebbleCentral : NSObject
/**
Returns the most recently connected watch from the -registeredWatches array.
*/
- (PBWatch*)lastConnectedWatch;
- (PBWatch *)lastConnectedWatch;

@property (nonatomic, readonly) PBDataLoggingService *dataLoggingService;
/**
Returns the DataLoggingService for a (previously registered) appUUID
*/
- (PBDataLoggingService * __nullable)dataLoggingServiceForAppUUID:(NSUUID *)appUUID;

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
#import <PebbleKit/PBResourceMetadata.h>


typedef NS_OPTIONS(NSUInteger, PBRemoteProtocolCapabilitiesFlags) {
typedef NS_OPTIONS(uint64_t, PBRemoteProtocolCapabilitiesFlags) {
PBRemoteProtocolCapabilitiesFlagsAppRunState = 1 << 0,
PBRemoteProtocolCapabilitiesFlagsInfiniteLogDumping = 1 << 1, // unused
PBRemoteProtocolCapabilitiesFlagsUpdateMusicProtocol = 1 << 2, // unused
PBRemoteProtocolCapabilitiesFlagsExtendedNotificationService = 1 << 3, // unused
PBRemoteProtocolCapabilitiesFlagsLanguagePacksSupported = 1 << 4, // unused
PBRemoteProtocolCapabilitiesFlagsAppMessage8kSupported = 1 << 5,
PBRemoteProtocolCapabilitiesFlagsDismissFromPhoneSupported = 1 << 6,
PBRemoteProtocolCapabilitiesFlagsInsightsSupport = 1 << 6,
PBRemoteProtocolCapabilitiesFlagsThirdPartyVoiceSupported = 1 << 7,
};

Expand Down Expand Up @@ -93,6 +93,11 @@ PB_EXTERN_CLASS @interface PBVersionInfo : NSObject
*/
- (BOOL)hasSystemResources;

/**
* YES if app messages are supported, NO if not.
*/
- (BOOL)appMessagesSupported;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param watch The watch on which the query was performed.
* @param isAppMessagesSupported YES if AppMessages are supported, NO if not.
*/
- (void)appMessagesGetIsSupported:(void(^)(PBWatch *watch, BOOL isAppMessagesSupported))fetchedBlock;
- (void)appMessagesGetIsSupported:(void(^)(PBWatch *watch, BOOL isAppMessagesSupported))fetchedBlock __deprecated_msg("Method deprecated. Use `getVersionInfo:onTimeout:` and `versionInfo.appMessagesSupported` instead.");

/**
* Pushes an update to the watch application with UUID as set using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

#import <Foundation/Foundation.h>

//! Project version number for PebbleKit.
FOUNDATION_EXPORT double PebbleKitVersionNumber;

//! Project version string for PebbleKit.
FOUNDATION_EXPORT const unsigned char PebbleKitVersionString[];

#import <PebbleKit/PBLogConfig.h>

#import <PebbleKit/PBWatch.h>
Expand Down
Binary file not shown.
File renamed without changes.
25 changes: 25 additions & 0 deletions PebbleKit-Static.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Pod::Spec.new do |s|
s.name = "PebbleKit-Static"
s.version = "3.1.0"
s.summary = "Embed PebbleKit iOS into your app to communicate with Pebble"
s.homepage = "https://github.com/pebble/pebble-ios-sdk"
s.license = {
:type => 'Commercial',
:text => <<-LICENSE
© 2015 Pebble Technology Corp. All rights reserved.
LICENSE
}
s.author = { "Pebble Technology Corp." => "[email protected]" }
s.source = { :git => "https://github.com/pebble/pebble-ios-sdk.git", :tag => s.version }

s.platform = :ios, '7.0'
s.requires_arc = true

s.header_dir = 'PebbleKit'
s.preserve_paths = "PebbleKit-Static.framework"
s.vendored_frameworks = "PebbleKit-Static.framework"
s.public_header_files = "PebbleKit-Static.framework/Versions/A/Headers/*.h"

s.frameworks = 'Foundation', 'UIKit', 'CoreGraphics'
s.weak_frameworks = 'ExternalAccessory', 'CoreBluetooth'
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<head>
<meta charset="utf-8">

<title></title>
<title>PBVersionInfoCompletionBlock Block Reference</title>

<link rel="stylesheet" href="../css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">

<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
<header>
Expand Down Expand Up @@ -59,22 +59,44 @@ <h1 id="library-title">
<div id="overview_contents" class="container">
<div id="content">
<main role="main">
<h1 class="title"></h1>
<h1 class="title">PBVersionInfoCompletionBlock Block Reference</h1>


<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<th>Declared in</th>
<td>PBWatch+Version.h</td>
</tr>
</tbody></table></div>









<a title="Block Definition" name="instance_methods"></a>
<h4 class="method-subtitle parameter-title">Block Definition</h4>
<h3 class="subsubtitle method-title">PBVersionInfoCompletionBlock</h3>


<code>typedef void (^PBVersionInfoCompletionBlock) (PBWatch *watch, PBVersionInfo *versionInfo)</code>





</main>

<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2015 Pebble Technology Corp. All rights reserved. Updated: 2015-10-08</p>
<p class="copyright">Copyright &copy; 2015 Pebble Technology Corp. All rights reserved. Updated: 2015-12-08</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>

</div>
</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<head>
<meta charset="utf-8">

<title></title>
<title>NSData(Pebble) Category Reference</title>

<link rel="stylesheet" href="../css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">

<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
<header>
Expand Down Expand Up @@ -45,8 +45,24 @@ <h1 id="library-title">




<option value="tasks">Tasks</option>









<optgroup label="Instance Methods">

<option value="//api/name/dictionaryFromPebbleDictionaryDataWithError:">- dictionaryFromPebbleDictionaryDataWithError:</option>

</optgroup>


</select>
</label>
</li>
Expand All @@ -59,22 +75,107 @@ <h1 id="library-title">
<div id="overview_contents" class="container">
<div id="content">
<main role="main">
<h1 class="title"></h1>
<h1 class="title">NSData(Pebble) Category Reference</h1>


<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<th>Declared in</th>
<td>NSDictionary+Pebble.h</td>
</tr>
</tbody></table></div>






<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>





<div class="task-list">
<div class="section-method">
<a name="//api/name/dictionaryFromPebbleDictionaryDataWithError:" title="dictionaryFromPebbleDictionaryDataWithError:"></a>
<h3 class="method-title"><code><a href="#//api/name/dictionaryFromPebbleDictionaryDataWithError:">&ndash;&nbsp;dictionaryFromPebbleDictionaryDataWithError:</a></code>
</h3>

<div class="method-info">
<div class="pointy-thing"></div>

<div class="method-info-container">


<div class="method-subsection brief-description">
<p>Interprets the receiver as Pebble dict data and deserializes it into an NSDictionary.</p>
</div>



<div class="method-subsection method-declaration"><code>- (NSDictionary *)dictionaryFromPebbleDictionaryDataWithError:(NSError *__autoreleasing *)<em>error</em></code></div>



<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<table class="argument-def parameter-def">

<tr>
<th scope="row" class="argument-name"><code>error[out]</code></th>
<td><p>Pointer to an NSError that will be set after the method has returned
in case there was an error. Possible error codes: PBErrorCodeDictionaryInternalConsistency.</p></td>
</tr>

</table>
</div>







<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Interprets the receiver as Pebble dict data and deserializes it into an NSDictionary.</p>
</div>







<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">NSDictionary+Pebble.h</code></p>
</div>


</div>
</div>
</div>
</div>

</div>






</main>

<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2015 Pebble Technology Corp. All rights reserved. Updated: 2015-10-08</p>
<p class="copyright">Copyright &copy; 2015 Pebble Technology Corp. All rights reserved. Updated: 2015-12-08</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>

</div>
</footer>
Expand Down
Loading

0 comments on commit dbf5f48

Please sign in to comment.