Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Parse lib for iOS platform and minor changes in documentation #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Installation
Pick one of these two commands:

```
phonegap local plugin add https://github.com/benjie/phonegap-parse-plugin --variable APP_ID=PARSE_APP_ID --variable CLIENT_KEY=PARSE_CLIENT_KEY
cordova plugin add https://github.com/benjie/phonegap-parse-plugin --variable APP_ID=PARSE_APP_ID --variable CLIENT_KEY=PARSE_CLIENT_KEY
phonegap local plugin add https://github.com/avivais/phonegap-parse-plugin --variable APP_ID=PARSE_APP_ID --variable CLIENT_KEY=PARSE_CLIENT_KEY
cordova plugin add https://github.com/avivais/phonegap-parse-plugin --variable APP_ID=PARSE_APP_ID --variable CLIENT_KEY=PARSE_CLIENT_KEY
```

Initial Setup
Expand Down Expand Up @@ -128,6 +128,15 @@ And add your application name to `AndroidManifest.xml`:
<application android:name="my.package.namespace.App" ... >...</application>
```

Parse version
-------------

Parse iOS - 1.8.3

Parse Android - 1.9.0

Parse WP8 - ...


Compatibility
-------------
Expand Down
Binary file added src/ios/Frameworks/Bolts.framework/Info.plist
Binary file not shown.
15 changes: 15 additions & 0 deletions src/ios/Frameworks/Bolts.framework/Modules/module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
framework module Bolts {
umbrella header "Bolts.h"

export *
module * { export * }

explicit module BFAppLinkResolving {
header "BFAppLinkResolving.h"
export *
}
explicit module BFWebViewAppLinkResolver {
header "BFWebViewAppLinkResolver.h"
export *
}
}
Binary file modified src/ios/Frameworks/Bolts.framework/Versions/A/Bolts
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ FOUNDATION_EXPORT NSString *const BFAppLinkVersion;

/*!
Creates a BFAppLink with the given list of BFAppLinkTargets and target URL.

Generally, this will only be used by implementers of the BFAppLinkResolving protocol,
as these implementers will produce App Link metadata for a given URL.

@param sourceURL the URL from which this App Link is derived
@param targets an ordered list of BFAppLinkTargets for this platform derived
from App Link metadata.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/*!
Asynchronously resolves App Link data for a given URL.

@param url The URL to resolve into an App Link.
@returns A BFTask that will return a BFAppLink for the given URL.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

/*!
A controller class that implements default behavior for a BFAppLinkReturnToRefererView, including
the ability to display the view above the navigation bar for navigation-bsaed apps.
the ability to display the view above the navigation bar for navigation-based apps.
*/
@interface BFAppLinkReturnToRefererController : NSObject <BFAppLinkReturnToRefererViewDelegate>

Expand Down Expand Up @@ -75,7 +75,7 @@
- (void)showViewForRefererAppLink:(BFAppLink *)refererAppLink;

/*!
Shows the BFAppLinkReturnToRefererView with referer information extracted from the specified URL.
Shows the BFAppLinkReturnToRefererView with referer information extracted from the specified URL.
If nil or missing referer App Link data, the view will not be displayed. */
- (void)showViewForRefererURL:(NSURL *)url;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
@class BFAppLinkReturnToRefererView;
@class BFURL;

typedef enum BFIncludeStatusBarInSize {
BFIncludeStatusBarInSizeNever,
BFIncludeStatusBarInSizeIOS7AndLater,
BFIncludeStatusBarInSizeAlways,
} BFIncludeStatusBarInSize;
typedef NS_ENUM(NSUInteger, BFIncludeStatusBarInSize) {
BFIncludeStatusBarInSizeNever,
BFIncludeStatusBarInSizeIOS7AndLater,
BFIncludeStatusBarInSizeAlways,
};

/*!
Protocol that a class can implement in order to be notified when the user has navigated back
Expand Down Expand Up @@ -65,7 +65,7 @@ typedef enum BFIncludeStatusBarInSize {
/*!
Indicates whether to extend the size of the view to include the current status bar
size, for use in scenarios where the view might extend under the status bar on iOS 7 and
above; this property has no effect on earlier versions of iOS.
above; this property has no effect on earlier versions of iOS.
*/
@property (nonatomic, assign) BFIncludeStatusBarInSize includeStatusBarInSize;

Expand All @@ -74,18 +74,4 @@ typedef enum BFIncludeStatusBarInSize {
*/
@property (nonatomic, assign) BOOL closed;

/*!
For apps that use a navigation controller, this method allows for displaying the view as
a banner above the navigation bar of the navigation controller. It will listen for orientation
change and other events to ensure it stays properly positioned above the nevigation bar.
If this method is called from, e.g., viewDidAppear, its counterpart, detachFromMainWindow should
be called from, e.g., viewWillDisappear.
*/
//- (void)attachToMainWindowAboveNavigationController:(UINavigationController *)navigationController view:(UIView *)view;

/*!
Indicates that the view should no longer position itself above a navigation bar.
*/
//- (void)detachFromMainWindow;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

#import <Foundation/Foundation.h>

#import <Bolts/BFCancellationTokenRegistration.h>

/*!
A block that will be called when a token is cancelled.
*/
typedef void(^BFCancellationBlock)();

/*!
The consumer view of a CancellationToken.
Propagates notification that operations should be canceled.
A BFCancellationToken has methods to inspect whether the token has been cancelled.
*/
@interface BFCancellationToken : NSObject

/*!
Whether cancellation has been requested for this token source.
*/
@property (nonatomic, assign, readonly, getter=isCancellationRequested) BOOL cancellationRequested;

/*!
Register a block to be notified when the token is cancelled.
If the token is already cancelled the delegate will be notified immediately.
*/
- (BFCancellationTokenRegistration *)registerCancellationObserverWithBlock:(BFCancellationBlock)block;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

#import <Foundation/Foundation.h>

/*!
Represents the registration of a cancellation observer with a cancellation token.
Can be used to unregister the observer at a later time.
*/
@interface BFCancellationTokenRegistration : NSObject

/*!
Removes the cancellation observer registered with the token
and releases all resources associated with this registration.
*/
- (void)dispose;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

#import <Foundation/Foundation.h>

@class BFCancellationToken;

/*!
BFCancellationTokenSource represents the producer side of a CancellationToken.
Signals to a CancellationToken that it should be canceled.
It is a cancellation token that also has methods
for changing the state of a token by cancelling it.
*/
@interface BFCancellationTokenSource : NSObject

/*!
Creates a new cancellation token source.
*/
+ (instancetype)cancellationTokenSource;

/*!
The cancellation token associated with this CancellationTokenSource.
*/
@property (nonatomic, strong, readonly) BFCancellationToken *token;

/*!
Whether cancellation has been requested for this token source.
*/
@property (nonatomic, assign, readonly, getter=isCancellationRequested) BOOL cancellationRequested;

/*!
Cancels the token if it has not already been cancelled.
*/
- (void)cancel;

/*!
Schedules a cancel operation on this CancellationTokenSource after the specified number of milliseconds.
@param millis The number of milliseconds to wait before completing the returned task.
If delay is `0` the cancel is executed immediately. If delay is `-1` any scheduled cancellation is stopped.
*/
- (void)cancelAfterDelay:(int)millis;

/*!
Releases all resources associated with this token source,
including disposing of all registrations.
*/
- (void)dispose;

@end
18 changes: 18 additions & 0 deletions src/ios/Frameworks/Bolts.framework/Versions/A/Headers/BFDefines.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

#import <Foundation/Foundation.h>

#if __has_feature(objc_generics) || __has_extension(objc_generics)
# define BF_GENERIC(type) <type>
#else
# define BF_GENERIC(type)
# define BFGenericType id
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,24 @@ FOUNDATION_EXPORT NSString *const BFMeasurementEventNameKey;
/*! The dictionary field for the arguments of the event */
FOUNDATION_EXPORT NSString *const BFMeasurementEventArgsKey;


/*! Bolts Events raised by BFMeasurementEvent for Applink */
/*!
The name of the event posted when [BFURL URLWithURL:] is called successfully. This represents the successful parsing of an app link URL.
The name of the event posted when [BFURL URLWithURL:] is called successfully. This represents the successful parsing of an app link URL.
*/
FOUNDATION_EXPORT NSString *const BFAppLinkParseEventName;

/*!
The name of the event posted when [BFURL URLWithInboundURL:] is called successfully.
/*!
The name of the event posted when [BFURL URLWithInboundURL:] is called successfully.
This represents parsing an inbound app link URL from a different application
*/
FOUNDATION_EXPORT NSString *const BFAppLinkNavigateInEventName;

/*! The event raised when the user navigates from your app to other apps */
FOUNDATION_EXPORT NSString *const BFAppLinkNavigateOutEventName;

/*!
/*!
The event raised when the user navigates out from your app and back to the referrer app.
e.g when the user leaves your app after tapping the back-to-referrer navigation bar
e.g when the user leaves your app after tapping the back-to-referrer navigation bar
*/
FOUNDATION_EXPORT NSString *const BFAppLinkNavigateBackToReferrerEventName;

Expand Down
Loading