diff --git a/.travis.yml b/.travis.yml index 4909f83cab4e49493ebb2c085ececeecfd41df8e..0fe294a6fbff7eacedb9883c44a1b8d49a734a20 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,3 @@ language: node_js node_js: - - "6" + - "7" diff --git a/RNNotifications/RNNotifications.h b/RNNotifications/RNNotifications.h index f72b424e9c9e744411efd171f39844153b2bb405..13e6094d298bb44742a657262bc6fc28c3e177dc 100644 --- a/RNNotifications/RNNotifications.h +++ b/RNNotifications/RNNotifications.h @@ -1,6 +1,10 @@ @import UIKit; -#import "RCTBridgeModule.h" +#if __has_include() + #import +#else + #import "RCTBridgeModule.h" +#endif #import @interface RNNotifications : NSObject diff --git a/RNNotifications/RNNotifications.m b/RNNotifications/RNNotifications.m index 1f8f90610ac9b38a656aad7cf2ed4cc562c08bf2..8c7959d6b453b3c4b1d9c5bd422c013226ae179f 100644 --- a/RNNotifications/RNNotifications.m +++ b/RNNotifications/RNNotifications.m @@ -1,11 +1,19 @@ #import #import -#import "RCTBridge.h" -#import "RCTEventDispatcher.h" -#import "RNNotifications.h" -#import "RCTConvert.h" -#import "RCTUtils.h" +#if __has_include() + #import + #import + #import "RNNotifications.h" + #import + #import +#else + #import "RCTBridge.h" + #import "RCTEventDispatcher.h" + #import "RNNotifications.h" + #import "RCTConvert.h" + #import "RCTUtils.h" +#endif #import "RNNotificationsBridgeQueue.h" NSString* const RNNotificationCreateAction = @"CREATE"; diff --git a/package.json b/package.json index 2db17ec798b17a9bec575eabd9abf017d4547dc7..b77a044fb3daa4caae54f17dc4f65d66fbffe0ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-notifications", - "version": "1.1.8", + "version": "1.1.9", "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android", "author": "Lidan Hifi ", "license": "MIT",