diff --git a/Gemfile.lock b/Gemfile.lock index 0e27c25b5..70d5d3c64 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,28 +1,31 @@ GEM remote: https://rubygems.org/ specs: - CFPropertyList (2.3.6) + CFPropertyList (3.0.2) activesupport (4.2.11.1) i18n (~> 0.7) minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) - addressable (2.6.0) - public_suffix (>= 2.0.2, < 4.0) + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) + algoliasearch (1.27.1) + httpclient (~> 2.8, >= 2.8.3) + json (>= 1.5.1) atomos (0.1.3) - babosa (1.0.2) - backports (3.15.0) - claide (1.0.2) - cocoapods (1.7.5) + babosa (1.0.3) + backports (3.16.1) + claide (1.0.3) + cocoapods (1.8.4) activesupport (>= 4.0.2, < 5) claide (>= 1.0.2, < 2.0) - cocoapods-core (= 1.7.5) + cocoapods-core (= 1.8.4) cocoapods-deintegrate (>= 1.0.3, < 2.0) cocoapods-downloader (>= 1.2.2, < 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.3.1, < 2.0) + cocoapods-trunk (>= 1.4.0, < 2.0) cocoapods-try (>= 1.1.0, < 2.0) colored2 (~> 3.1) escape (~> 0.0.4) @@ -31,18 +34,20 @@ GEM molinillo (~> 0.6.6) nap (~> 1.0) ruby-macho (~> 1.4) - xcodeproj (>= 1.10.0, < 2.0) - cocoapods-core (1.7.5) + xcodeproj (>= 1.11.1, < 2.0) + cocoapods-core (1.8.4) activesupport (>= 4.0.2, < 6) + algoliasearch (~> 1.0) + concurrent-ruby (~> 1.1) fuzzy_match (~> 2.0.4) nap (~> 1.0) cocoapods-deintegrate (1.0.4) - cocoapods-downloader (1.2.2) + cocoapods-downloader (1.3.0) cocoapods-plugins (1.0.0) nap cocoapods-search (1.0.0) cocoapods-stats (1.1.0) - cocoapods-trunk (1.3.1) + cocoapods-trunk (1.4.1) nap (>= 0.8, < 2.0) netrc (~> 0.11) cocoapods-try (1.1.0) @@ -50,28 +55,28 @@ GEM colored2 (3.1.2) commander-fastlane (4.4.6) highline (~> 1.7.2) - concurrent-ruby (1.1.5) + concurrent-ruby (1.1.6) connection_pool (2.2.2) declarative (0.0.10) declarative-option (0.1.0) digest-crc (0.4.1) domain_name (0.5.20190701) unf (>= 0.0.5, < 1.0.0) - dotenv (2.7.4) + dotenv (2.7.5) emoji_regex (1.0.1) escape (0.0.4) ethon (0.12.0) ffi (>= 1.3.0) - excon (0.65.0) - faraday (0.15.4) + excon (0.72.0) + faraday (0.17.3) multipart-post (>= 1.2, < 3) faraday-cookie_jar (0.0.6) faraday (>= 0.7.4) http-cookie (~> 1.0.0) faraday_middleware (0.13.1) faraday (>= 0.7.4, < 1.0) - fastimage (2.1.5) - fastlane (2.128.1) + fastimage (2.1.7) + fastlane (2.142.0) CFPropertyList (>= 2.3, < 4.0.0) addressable (>= 2.3, < 3.0.0) babosa (>= 1.0.2, < 2.0.0) @@ -80,13 +85,13 @@ GEM commander-fastlane (>= 4.4.6, < 5.0.0) dotenv (>= 2.1.1, < 3.0.0) emoji_regex (>= 0.1, < 2.0) - excon (>= 0.45.0, < 1.0.0) - faraday (~> 0.9) + excon (>= 0.71.0, < 1.0.0) + faraday (~> 0.17) faraday-cookie_jar (~> 0.0.6) - faraday_middleware (~> 0.9) + faraday_middleware (~> 0.13.1) fastimage (>= 2.1.0, < 3.0.0) gh_inspector (>= 1.1.2, < 2.0.0) - google-api-client (>= 0.21.2, < 0.24.0) + google-api-client (>= 0.29.2, < 0.37.0) google-cloud-storage (>= 1.15.0, < 2.0.0) highline (>= 1.7.2, < 2.0.0) json (< 3.0.0) @@ -96,7 +101,7 @@ GEM multipart-post (~> 2.0.0) plist (>= 3.1.0, < 4.0.0) public_suffix (~> 2.0.0) - rubyzip (>= 1.2.2, < 2.0.0) + rubyzip (>= 1.3.0, < 2.0.0) security (= 0.1.3) simctl (~> 1.6.3) slack-notifier (>= 2.0.0, < 3.0.0) @@ -105,13 +110,13 @@ GEM tty-screen (>= 0.6.3, < 1.0.0) tty-spinner (>= 0.8.0, < 1.0.0) word_wrap (~> 1.0.0) - xcodeproj (>= 1.8.1, < 2.0.0) + xcodeproj (>= 1.13.0, < 2.0.0) xcpretty (~> 0.3.0) xcpretty-travis-formatter (>= 0.0.3) fastlane-plugin-patch (0.5.0) pattern_patch (>= 0.5.1) - fastlane-plugin-yarn (1.1) - ffi (1.11.1) + fastlane-plugin-yarn (1.2) + ffi (1.12.2) fourflusher (2.3.1) fuzzy_match (2.0.4) gh (0.14.0) @@ -122,48 +127,50 @@ GEM net-http-persistent (>= 2.7) net-http-pipeline gh_inspector (1.1.3) - google-api-client (0.23.9) + google-api-client (0.36.4) addressable (~> 2.5, >= 2.5.1) - googleauth (>= 0.5, < 0.7.0) + googleauth (~> 0.9) httpclient (>= 2.8.1, < 3.0) - mime-types (~> 3.0) + mini_mime (~> 1.0) representable (~> 3.0) retriable (>= 2.0, < 4.0) - signet (~> 0.9) - google-cloud-core (1.3.0) + signet (~> 0.12) + google-cloud-core (1.5.0) google-cloud-env (~> 1.0) - google-cloud-env (1.2.0) + google-cloud-errors (~> 1.0) + google-cloud-env (1.3.0) faraday (~> 0.11) - google-cloud-storage (1.16.0) + google-cloud-errors (1.0.0) + google-cloud-storage (1.25.1) + addressable (~> 2.5) digest-crc (~> 0.4) - google-api-client (~> 0.23) + google-api-client (~> 0.33) google-cloud-core (~> 1.2) - googleauth (>= 0.6.2, < 0.10.0) - googleauth (0.6.7) - faraday (~> 0.12) + googleauth (~> 0.9) + mini_mime (~> 1.0) + googleauth (0.11.0) + faraday (>= 0.17.3, < 2.0) jwt (>= 1.4, < 3.0) memoist (~> 0.16) multi_json (~> 1.11) os (>= 0.9, < 2.0) - signet (~> 0.7) + signet (~> 0.12) highline (1.7.10) http-cookie (1.0.3) domain_name (~> 0.5) httpclient (2.8.3) i18n (0.9.5) concurrent-ruby (~> 1.0) - json (2.2.0) + json (2.3.0) jwt (2.1.0) launchy (2.4.3) addressable (~> 2.3) - memoist (0.16.0) - mime-types (3.2.2) - mime-types-data (~> 3.2015) - mime-types-data (3.2019.0331) - mini_magick (4.9.5) - minitest (5.11.3) + memoist (0.16.2) + mini_magick (4.10.1) + mini_mime (1.0.2) + minitest (5.14.0) molinillo (0.6.6) - multi_json (1.13.1) + multi_json (1.14.1) multi_xml (0.6.0) multipart-post (2.0.0) nanaimo (0.2.6) @@ -174,8 +181,8 @@ GEM net-http-pipeline (1.0.1) netrc (0.11.0) os (1.0.1) - pattern_patch (0.5.5) - activesupport (~> 4.2) + pattern_patch (1.0.0) + activesupport (>= 4.0.2, < 6) plist (3.5.0) public_suffix (2.0.5) pusher-client (0.6.2) @@ -188,14 +195,14 @@ GEM retriable (3.1.2) rouge (2.0.7) ruby-macho (1.4.0) - rubyzip (1.2.3) + rubyzip (1.3.0) security (0.1.3) - signet (0.11.0) + signet (0.13.0) addressable (~> 2.3) - faraday (~> 0.9) + faraday (>= 0.17.3, < 2.0) jwt (>= 1.5, < 3.0) multi_json (~> 1.10) - simctl (1.6.5) + simctl (1.6.8) CFPropertyList naturally slack-notifier (2.3.2) @@ -212,22 +219,22 @@ GEM launchy (~> 2.1) pusher-client (~> 0.4) typhoeus (~> 0.6, >= 0.6.8) - tty-cursor (0.7.0) - tty-screen (0.7.0) - tty-spinner (0.9.1) + tty-cursor (0.7.1) + tty-screen (0.7.1) + tty-spinner (0.9.3) tty-cursor (~> 0.7) typhoeus (0.8.0) ethon (>= 0.8.0) - tzinfo (1.2.5) + tzinfo (1.2.6) thread_safe (~> 0.1) uber (0.1.0) unf (0.1.4) unf_ext unf_ext (0.0.7.6) - unicode-display_width (1.6.0) + unicode-display_width (1.6.1) websocket (1.2.8) word_wrap (1.0.0) - xcodeproj (1.11.0) + xcodeproj (1.15.0) CFPropertyList (>= 2.3.3, < 4.0) atomos (~> 0.1.3) claide (>= 1.0.2, < 2.0) diff --git a/README.md b/README.md index 0ebf80b65..58764c7d2 100644 --- a/README.md +++ b/README.md @@ -68,10 +68,6 @@ Note that the `react-native-branch` module requires `react-native` >= 0.40, < 4. Install the native Branch SDK using [CocoaPods](./docs/cocoapods.md) or [Carthage](./docs/carthage.md). 5. Follow the [setup instructions](#setup). -**Note:** This SDK currently does not work in projects using NPM instead of yarn. -See #433. The RN toolchain will use yarn by default. Please use -`yarn add react-native-branch` to add the SDK to your project. - ___ ### Updating from an earlier version or starting with v3.0.0 @@ -812,12 +808,10 @@ JavaScript finishes loading. To use these methods, two options are available. - Add a [branch.json](./docs/branch.json.md) file to your project. This allows you to enable debug mode (to simulate install events on both - Android and iOS), Apple Search Ads attribution and Apple Search Ads debug - mode from a configuration file. + Android and iOS), Apple Search Ads attribution from a configuration file. - Add native iOS and Android method calls to your project. - + [Debug mode (simulated install events)](./docs/setDebug.md) + [Apple Search Ads attribution](https://github.com/BranchMetrics/ios-branch-deep-linking#apple-search-ads) ___ diff --git a/android/build.gradle b/android/build.gradle index 438f0e376..66db0c658 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,5 +22,5 @@ android { dependencies { implementation 'com.facebook.react:react-native:+' // From node_modules - api 'io.branch.sdk.android:library:3.2.0' + api 'io.branch.sdk.android:library:4.3.2' } diff --git a/android/src/main/java/io/branch/rnbranch/RNBranchModule.java b/android/src/main/java/io/branch/rnbranch/RNBranchModule.java index f0860f6be..defccb31c 100644 --- a/android/src/main/java/io/branch/rnbranch/RNBranchModule.java +++ b/android/src/main/java/io/branch/rnbranch/RNBranchModule.java @@ -245,16 +245,6 @@ public Map getConstants() { constants.put(INIT_SESSION_SUCCESS, RN_INIT_SESSION_SUCCESS_EVENT); constants.put(INIT_SESSION_ERROR, RN_INIT_SESSION_ERROR_EVENT); - // Constants for use with userCompletedAction (deprecated) - - constants.put(ADD_TO_CART_EVENT, BranchEvent.ADD_TO_CART); - constants.put(ADD_TO_WISHLIST_EVENT, BranchEvent.ADD_TO_WISH_LIST); - constants.put(PURCHASED_EVENT, BranchEvent.PURCHASED); - constants.put(PURCHASE_INITIATED_EVENT, BranchEvent.PURCHASE_STARTED); - constants.put(REGISTER_VIEW_EVENT, BranchEvent.VIEW); - constants.put(SHARE_COMPLETED_EVENT, BranchEvent.SHARE_COMPLETED); - constants.put(SHARE_INITIATED_EVENT, BranchEvent.SHARE_STARTED); - // constants for use with BranchEvent // Commerce events diff --git a/docs/branch.json.md b/docs/branch.json.md index 2950b527d..f290fa6b9 100644 --- a/docs/branch.json.md +++ b/docs/branch.json.md @@ -96,7 +96,6 @@ version 3.x of react-native-branch, using [RNBranchModule.getAutoInstance()](../ |key|description|type| |---|---|---| -|appleSearchAdsDebugMode|If true, `setAppleSearchAdsDebugMode` will be called on the iOS Branch instance. Ignored on Android.|Boolean| |branchKey|The Branch key to use. Overrides liveKey, testKey and useTestInstance.|String| |liveKey|The live Branch key to use if useTestInstance is false. Ignored if useTestInstance is true or branchKey is present.|String| |debugMode|If true, `setDebug` will be called in the native SDK, enabling testing of install events.|Boolean| @@ -114,7 +113,6 @@ See [branch.example.json](https://github.com/BranchMetrics/react-native-branch-d "liveKey": "key_live_xxxx", "testKey": "key_test_yyyy", "useTestInstance": true, - "delayInitToCheckForSearchAds": true, - "appleSearchAdsDebugMode": true + "delayInitToCheckForSearchAds": true } ``` diff --git a/docs/carthage.md b/docs/carthage.md index 431d7c1d0..842c25f70 100644 --- a/docs/carthage.md +++ b/docs/carthage.md @@ -1,6 +1,6 @@ # Installation using Carthage -Carthage requires version 3.0.1 of react-native-branch. +Carthage requires version 3.x of react-native-branch. Add react-native-branch to your project: @@ -12,7 +12,7 @@ react-native link react-native-branch If you already have a Cartfile, add this to your Cartfile: ``` -github "BranchMetrics/ios-branch-deep-linking" "0.27.0" +github "BranchMetrics/ios-branch-deep-linking" "0.31.3" ``` Now run `carthage build`. diff --git a/examples/webview_example/ios/Podfile.lock b/examples/webview_example/ios/Podfile.lock index ba3a627a2..49079cd54 100644 --- a/examples/webview_example/ios/Podfile.lock +++ b/examples/webview_example/ios/Podfile.lock @@ -84,7 +84,7 @@ DEPENDENCIES: - yoga (from `../node_modules/react-native/ReactCommon/yoga`) SPEC REPOS: - https://github.com/cocoapods/specs.git: + trunk: - boost-for-react-native - Branch - DoubleConversion @@ -121,4 +121,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: dc80f3ddb20f97698e6bb83eb449978b5fb673ec -COCOAPODS: 1.7.5 +COCOAPODS: 1.8.4 diff --git a/ios/RNBranch.h b/ios/RNBranch.h index 777398940..4de31f8a4 100644 --- a/ios/RNBranch.h +++ b/ios/RNBranch.h @@ -28,7 +28,6 @@ extern NSString * _Nonnull const RNBranchLinkOpenedNotificationLinkPropertiesKey + (void)setDebug; + (void)delayInitToCheckForSearchAds; -+ (void)setAppleSearchAdsDebugMode; + (void)setRequestMetadataKey:(NSString * _Nonnull)key value:(NSObject * _Nonnull)value; @end diff --git a/ios/RNBranch.m b/ios/RNBranch.m index cf96c76df..31a07e30a 100644 --- a/ios/RNBranch.m +++ b/ios/RNBranch.m @@ -29,8 +29,6 @@ static NSString * const RNBranchErrorDomain = @"RNBranchErrorDomain"; static NSInteger const RNBranchUniversalObjectNotFoundError = 1; -static NSString * const REQUIRED_BRANCH_SDK = @"0.27.1"; - #pragma mark - Private RNBranch declarations @interface RNBranch() @@ -78,9 +76,6 @@ + (BOOL)requiresMainQueueSetup { + (void)setupBranchInstance:(Branch *)instance { RCTLogInfo(@"Initializing Branch SDK v. %@", BNC_SDK_VERSION); - if (![BNC_SDK_VERSION isEqualToString:REQUIRED_BRANCH_SDK]) { - RCTLogError(@"Please use v. %@ of Branch. In your Podfile: pod 'Branch', '%@'. Then pod install.", REQUIRED_BRANCH_SDK, REQUIRED_BRANCH_SDK); - } RNBranchConfig *config = RNBranchConfig.instance; if (config.debugMode) { @@ -89,9 +84,6 @@ + (void)setupBranchInstance:(Branch *)instance if (config.delayInitToCheckForSearchAds) { [instance delayInitToCheckForSearchAds]; } - if (config.appleSearchAdsDebugMode) { - [instance setAppleSearchAdsDebugMode]; - } } - (NSDictionary *)constantsToExport { @@ -100,15 +92,6 @@ + (void)setupBranchInstance:(Branch *)instance @"INIT_SESSION_SUCCESS": kRNBranchInitSessionSuccess, @"INIT_SESSION_ERROR": kRNBranchInitSessionError, - // constants for use with userCompletedAction - @"ADD_TO_CART_EVENT": BNCAddToCartEvent, - @"ADD_TO_WISHLIST_EVENT": BNCAddToWishlistEvent, - @"PURCHASED_EVENT": BNCPurchasedEvent, - @"PURCHASE_INITIATED_EVENT": BNCPurchaseInitiatedEvent, - @"REGISTER_VIEW_EVENT": BNCRegisterViewEvent, - @"SHARE_COMPLETED_EVENT": BNCShareCompletedEvent, - @"SHARE_INITIATED_EVENT": BNCShareInitiatedEvent, - // constants for use with BranchEvent // Commerce events @@ -147,11 +130,6 @@ + (void)delayInitToCheckForSearchAds [self.branch delayInitToCheckForSearchAds]; } -+ (void)setAppleSearchAdsDebugMode -{ - [self.branch setAppleSearchAdsDebugMode]; -} - + (void)setRequestMetadataKey:(NSString *)key value:(NSObject *)value { [self.branch setRequestMetadataKey:key value:value]; diff --git a/native-tests/ios/NativeTestsTests/RNBranchTests.m b/native-tests/ios/NativeTestsTests/RNBranchTests.m index 8ec899754..c3ee81dbf 100644 --- a/native-tests/ios/NativeTestsTests/RNBranchTests.m +++ b/native-tests/ios/NativeTestsTests/RNBranchTests.m @@ -38,41 +38,6 @@ - (void)testInitSessionErrorConstant ASSERT_CONSTANT(@"INIT_SESSION_ERROR", kRNBranchInitSessionError); } -- (void)testAddToCartEventConstant -{ - ASSERT_CONSTANT(@"ADD_TO_CART_EVENT", BNCAddToCartEvent); -} - -- (void)testAddToWishlistEventConstant -{ - ASSERT_CONSTANT(@"ADD_TO_WISHLIST_EVENT", BNCAddToWishlistEvent); -} - -- (void)testPurchasedEventConstant -{ - ASSERT_CONSTANT(@"PURCHASED_EVENT", BNCPurchasedEvent); -} - -- (void)testPurchaseInitiatedEventConstant -{ - ASSERT_CONSTANT(@"PURCHASE_INITIATED_EVENT", BNCPurchaseInitiatedEvent); -} - -- (void)testRegisterViewEventConstant -{ - ASSERT_CONSTANT(@"REGISTER_VIEW_EVENT", BNCRegisterViewEvent); -} - -- (void)testShareCompletedEventConstant -{ - ASSERT_CONSTANT(@"SHARE_COMPLETED_EVENT", BNCShareCompletedEvent); -} - -- (void)testShareInitiatedEventConstant -{ - ASSERT_CONSTANT(@"SHARE_INITIATED_EVENT", BNCShareInitiatedEvent); -} - - (void)testStandardAddtoCartEventConstant { ASSERT_CONSTANT(@"STANDARD_EVENT_ADD_TO_CART", BranchStandardEventAddToCart); diff --git a/native-tests/ios/Podfile.lock b/native-tests/ios/Podfile.lock index f9dff748e..d4fe2c623 100644 --- a/native-tests/ios/Podfile.lock +++ b/native-tests/ios/Podfile.lock @@ -1,24 +1,19 @@ PODS: - boost-for-react-native (1.63.0) - - Branch (0.27.1): - - Branch/Core (= 0.27.1) - - Branch/Core (0.27.1) + - Branch (0.31.3): + - Branch/Core (= 0.31.3) + - Branch/Core (0.31.3) - DoubleConversion (1.1.5) - Folly (2018.10.22.00): - - boost-for-react-native - - DoubleConversion - - Folly/Default (= 2018.10.22.00) - - glog - - Folly/Default (2018.10.22.00): - boost-for-react-native - DoubleConversion - glog - glog (0.3.4) - - OCMock (3.4.3) + - OCMock (3.6) - React (0.59.10): - React/Core (= 0.59.10) - react-native-branch (3.1.2): - - Branch (= 0.27.1) + - Branch (= 0.31.3) - React - React/Core (0.59.10): - yoga (= 0.59.10.React) @@ -69,7 +64,7 @@ DEPENDENCIES: - yoga (from `../../node_modules/react-native/ReactCommon/yoga`) SPEC REPOS: - https://github.com/cocoapods/specs.git: + trunk: - boost-for-react-native - Branch - DoubleConversion @@ -88,15 +83,15 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c - Branch: 1ace77c04b6e3efbf982bf4364f0662bfac156a0 + Branch: 9b299693ee54b308ff8c18146afe1f711c2069ec DoubleConversion: e22e0762848812a87afd67ffda3998d9ef29170c - Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51 + Folly: de497beb10f102453a1afa9edbf8cf8a251890de glog: 1de0bb937dccdc981596d3b5825ebfb765017ded - OCMock: 43565190abc78977ad44a61c0d20d7f0784d35ab + OCMock: 5ea90566be239f179ba766fd9fbae5885040b992 React: 36d0768f9e93be2473b37e7fa64f92c1d5341eef - react-native-branch: 978d67c41b6cc30bb4ff2b335e7299ab9ca21b61 + react-native-branch: d331fdbc663c767594e2a23fef5a47c3dd70ad85 yoga: 684513b14b03201579ba3cee20218c9d1298b0cc PODFILE CHECKSUM: 7e9d5ee0f6ae095e090eae4851f9ec8bc15c4c31 -COCOAPODS: 1.7.5 +COCOAPODS: 1.8.4 diff --git a/react-native-branch.podspec b/react-native-branch.podspec index 19dcea534..52f1a492d 100644 --- a/react-native-branch.podspec +++ b/react-native-branch.podspec @@ -20,6 +20,6 @@ Pod::Spec.new do |s| s.platform = :ios, "7.0" s.source = { spec['repository']['type'].to_sym => spec['repository']['url'].sub(/^[a-z]+\+/, '') } s.source_files = [ "ios/*.h", "ios/*.m"] - s.dependency 'Branch', '0.27.1' + s.dependency 'Branch', '0.31.3' s.dependency 'React' # to ensure the correct build order end diff --git a/test/BranchEventTest.js b/test/BranchEventTest.js index c2e1ab933..c92a21493 100644 --- a/test/BranchEventTest.js +++ b/test/BranchEventTest.js @@ -6,30 +6,14 @@ import { BranchEvent } from '../src/index.js' // --- Constant mapping --- -test('AddToCart is correct', t => { - t.is(RNBranch.STANDARD_EVENT_ADD_TO_CART, BranchEvent.AddToCart) -}) - -test('AddToWishlist is correct', t => { - t.is(RNBranch.STANDARD_EVENT_ADD_TO_WISHLIST, BranchEvent.AddToWishlist) -}) - test('ViewCart is correct', t => { t.is(RNBranch.STANDARD_EVENT_VIEW_CART, BranchEvent.ViewCart) }) -test('InitiatePurchase is correct', t => { - t.is(RNBranch.STANDARD_EVENT_INITIATE_PURCHASE, BranchEvent.InitiatePurchase) -}) - test('AddPaymentInfo is correct', t => { t.is(RNBranch.STANDARD_EVENT_ADD_PAYMENT_INFO, BranchEvent.AddPaymentInfo) }) -test('Purchase is correct', t => { - t.is(RNBranch.STANDARD_EVENT_PURCHASE, BranchEvent.Purchase) -}) - test('SpendCredits is correct', t => { t.is(RNBranch.STANDARD_EVENT_SPEND_CREDITS, BranchEvent.SpendCredits) })