diff --git a/.travis.yml b/.travis.yml index 4909f83..0fe294a 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 f72b424..13e6094 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 1f8f906..8c7959d 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 2db17ec..b77a044 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",