-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tiffany Lu
committed
Apr 25, 2017
1 parent
9bb6356
commit 0500c14
Showing
12 changed files
with
111 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
target 'AppboyProject' do | ||
platform :ios, '8.0' | ||
pod 'Appboy-iOS-SDK' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
PODS: | ||
- Appboy-iOS-SDK (2.25.0): | ||
- SDWebImage (~> 3.7) | ||
- SDWebImage (3.8.2): | ||
- SDWebImage/Core (= 3.8.2) | ||
- SDWebImage/Core (3.8.2) | ||
- Appboy-iOS-SDK (2.29.0): | ||
- Appboy-iOS-SDK/UI (= 2.29.0) | ||
- Appboy-iOS-SDK/UI (2.29.0): | ||
- SDWebImage/GIF (~> 4.0) | ||
- FLAnimatedImage (1.0.12) | ||
- SDWebImage/Core (4.0.0) | ||
- SDWebImage/GIF (4.0.0): | ||
- FLAnimatedImage (~> 1.0) | ||
- SDWebImage/Core | ||
|
||
DEPENDENCIES: | ||
- Appboy-iOS-SDK | ||
|
||
SPEC CHECKSUMS: | ||
Appboy-iOS-SDK: 720819acf77bcb7bdad658d26c064278a39639d9 | ||
SDWebImage: 098e97e6176540799c27e804c96653ee0833d13c | ||
Appboy-iOS-SDK: 4c415ccf7e22e131326a9bcb89c840f87f6fdd2f | ||
FLAnimatedImage: 4a0b56255d9b05f18b6dd7ee06871be5d3b89e31 | ||
SDWebImage: 76a6348bdc74eb5a55dd08a091ef298e56b55e41 | ||
|
||
PODFILE CHECKSUM: 4a8044a2dc577ba6222e659d250842e0517dbda0 | ||
PODFILE CHECKSUM: 2f9e055aff739205d78aff436edf9dc0a9a94678 | ||
|
||
COCOAPODS: 1.1.1 | ||
COCOAPODS: 1.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<!--- Internal Appboy Usage --> | ||
<string name="com_appboy_sdk_flavor">REACT</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,10 @@ - (void)reportResultWithCallback:(RCTResponseSenderBlock)callback andError:(NSSt | |
} | ||
} | ||
|
||
RCT_EXPORT_METHOD(setSDKFlavor) { | ||
[Appboy sharedInstance].sdkFlavor = REACT; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
sen-lu
Contributor
|
||
} | ||
|
||
// Returns the deep link from the push dictionary in application:didFinishLaunchingWithOptions: launchOptions, if one exists | ||
// For more context see getInitialURL() in index.js | ||
RCT_EXPORT_METHOD(getInitialUrl:(RCTResponseSenderBlock)callback) { | ||
|
@@ -258,7 +262,7 @@ - (ABKCardCategory)getCardCategoryForString:(NSString *)category { | |
RCT_EXPORT_METHOD(requestFeedRefresh) { | ||
[[Appboy sharedInstance] requestFeedRefresh]; | ||
} | ||
|
||
RCT_EXPORT_METHOD(getCardCountForCategories:(NSString *)category callback:(RCTResponseSenderBlock)callback) { | ||
ABKCardCategory cardCategory = [self getCardCategoryForString:category]; | ||
if (cardCategory == 0) { | ||
|
@@ -285,5 +289,10 @@ - (ABKCardCategory)getCardCategoryForString:(NSString *)category { | |
[mainViewController presentViewController:feedbackModal animated:YES completion:nil]; | ||
} | ||
|
||
RCT_EXPORT_METHOD(requestImmediateDataFlush) { | ||
RCTLogInfo(@"requestImmediateDataFlush called"); | ||
[[Appboy sharedInstance] flushDataAndProcessRequestQueue]; | ||
} | ||
|
||
RCT_EXPORT_MODULE(); | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi @dcvz,
The
REACT
value is one of theABKSDKFlavor
enums declared inAppboy.h
of the Appboy iOS SDK.Is this value throwing an error in your project?
Best,
Tiff