diff --git a/SmartNotifications/SmartNotifications.h b/RNNotifications/RNNotifications.h similarity index 76% rename from SmartNotifications/SmartNotifications.h rename to RNNotifications/RNNotifications.h index c587ed18b2265bc56277c9c4e0baba0d7a524007..65dcf951b2581e24e2f5bac075e34f9ff21300a5 100644 --- a/SmartNotifications/SmartNotifications.h +++ b/RNNotifications/RNNotifications.h @@ -2,7 +2,7 @@ #import "RCTBridgeModule.h" -@interface SmartNotifications : NSObject +@interface RNNotifications : NSObject + (void)didReceiveRemoteNotification:(NSDictionary *)notification; + (void)didReceiveLocalNotification:(UILocalNotification *)notification; diff --git a/SmartNotifications/SmartNotifications.m b/RNNotifications/RNNotifications.m similarity index 80% rename from SmartNotifications/SmartNotifications.m rename to RNNotifications/RNNotifications.m index 4a52df1b6239192132ad9ba79467fbf5a41890d2..f601dcb7081d0c66c0eac0d98e40ca66672b6218 100644 --- a/SmartNotifications/SmartNotifications.m +++ b/RNNotifications/RNNotifications.m @@ -2,18 +2,18 @@ #import #import "RCTBridge.h" #import "RCTEventDispatcher.h" -#import "SmartNotifications.h" +#import "RNNotifications.h" #import "RCTUtils.h" -NSString *const SmartNotificationCreateAction = @"CREATE"; -NSString *const SmartNotificationClearAction = @"CLEAR"; +NSString *const RNNotificationCreateAction = @"CREATE"; +NSString *const RNNotificationClearAction = @"CLEAR"; -NSString *const SmartNotificationReceivedForeground = @"SmartNotificationReceivedForeground"; -NSString *const SmartNotificationReceivedBackground = @"SmartNotificationReceivedBackground"; -NSString *const SmartNotificationOpened = @"SmartNotificationOpened"; +NSString *const RNNotificationReceivedForeground = @"RNNotificationReceivedForeground"; +NSString *const RNNotificationReceivedBackground = @"RNNotificationReceivedBackground"; +NSString *const RNNotificationOpened = @"RNNotificationOpened"; -@implementation SmartNotifications +@implementation RNNotifications RCT_EXPORT_MODULE() @@ -29,20 +29,20 @@ static NSString* username; - (void)setBridge:(RCTBridge *)bridge { _bridge = bridge; - + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotificationReceivedForeground:) - name:SmartNotificationReceivedForeground + name:RNNotificationReceivedForeground object:nil]; - + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotificationReceivedBackground:) - name:SmartNotificationReceivedBackground + name:RNNotificationReceivedBackground object:nil]; - + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotificationOpened:) - name:SmartNotificationOpened + name:RNNotificationOpened object:nil]; } @@ -52,7 +52,7 @@ static NSString* username; + (void)didReceiveRemoteNotification:(NSDictionary *)notification { UIApplicationState state = [UIApplication sharedApplication].applicationState; - + if (state == UIApplicationStateActive) { [self didReceiveNotificationOnForegroundState:notification]; } else if (state == UIApplicationStateInactive) { @@ -65,7 +65,7 @@ static NSString* username; + (void)didReceiveLocalNotification:(UILocalNotification *)notification { UIApplicationState state = [UIApplication sharedApplication].applicationState; - + if (state == UIApplicationStateInactive) { NSString* notificationId = [notification.userInfo objectForKey:@"notificationId"]; if (notificationId) { @@ -80,7 +80,7 @@ static NSString* username; */ + (void)didReceiveNotificationOnForegroundState:(NSDictionary *)notification { - [[NSNotificationCenter defaultCenter] postNotificationName:SmartNotificationReceivedForeground + [[NSNotificationCenter defaultCenter] postNotificationName:RNNotificationReceivedForeground object:self userInfo:notification]; } @@ -94,24 +94,24 @@ static NSString* username; if (action) { // create or delete notification - if ([action isEqualToString: SmartNotificationCreateAction] + if ([action isEqualToString: RNNotificationCreateAction] && notificationId && alert) { [self dispatchLocalNotificationFromNotification:notification]; - - } else if ([action isEqualToString: SmartNotificationClearAction] && notificationId) { + + } else if ([action isEqualToString: RNNotificationClearAction] && notificationId) { [self clearNotificationFromNotificationsCenter:notificationId]; } } - - [[NSNotificationCenter defaultCenter] postNotificationName:SmartNotificationReceivedBackground + + [[NSNotificationCenter defaultCenter] postNotificationName:RNNotificationReceivedBackground object:self userInfo:notification]; } + (void)didNotificationOpen:(NSDictionary *)notification { - [[NSNotificationCenter defaultCenter] postNotificationName:SmartNotificationOpened + [[NSNotificationCenter defaultCenter] postNotificationName:RNNotificationOpened object:self userInfo:notification]; } @@ -126,27 +126,27 @@ static NSString* username; NSDictionary* alert = [customData objectForKey:@"alert"]; NSString* action = [customData objectForKey:@"action"]; NSString* notificationId = [customData objectForKey:@"notificationId"]; - - if ([action isEqualToString: SmartNotificationCreateAction] + + if ([action isEqualToString: RNNotificationCreateAction] && notificationId && alert) { - + // trigger new client push notification UILocalNotification* note = [[UILocalNotification alloc] init]; note.alertTitle = [alert objectForKey:@"title"]; note.alertBody = [alert objectForKey:@"body"]; note.userInfo = customData; note.soundName = [customData objectForKey:@"sound"]; - + NSLog(@"Presenting local notification..."); [[UIApplication sharedApplication] presentLocalNotificationNow:note]; - + // Serialize it and store so we can delete it later NSData* data = [NSKeyedArchiver archivedDataWithRootObject:note]; NSString* notificationKey = [self buildNotificationKeyfromNotification:notificationId]; [[NSUserDefaults standardUserDefaults] setObject:data forKey:notificationKey]; [[NSUserDefaults standardUserDefaults] synchronize]; - + NSLog(@"Local notification was triggered: %@", notificationKey); } } @@ -158,11 +158,11 @@ static NSString* username; if (data) { UILocalNotification* notification = [NSKeyedUnarchiver unarchiveObjectWithData: data]; NSLog(@"Remove local notification: %@", notificationKey); - + // delete the notification [[UIApplication sharedApplication] cancelLocalNotification:notification]; [[NSUserDefaults standardUserDefaults] removeObjectForKey:notificationKey]; - + return; } } @@ -193,12 +193,12 @@ static NSString* username; RCT_EXPORT_METHOD(dispatchLocalNotificationFromNotification:(NSDictionary *)notification) { - [SmartNotifications dispatchLocalNotificationFromNotification:notification]; + [RNNotifications dispatchLocalNotificationFromNotification:notification]; } RCT_EXPORT_METHOD(clearNotificationFromNotificationsCenter:(NSString *)notificationId) { - [SmartNotifications clearNotificationFromNotificationsCenter:notificationId]; + [RNNotifications clearNotificationFromNotificationsCenter:notificationId]; } @end diff --git a/SmartNotifications/SmartNotifications.xcodeproj/project.pbxproj b/RNNotifications/RNNotifications.xcodeproj/project.pbxproj similarity index 82% rename from SmartNotifications/SmartNotifications.xcodeproj/project.pbxproj rename to RNNotifications/RNNotifications.xcodeproj/project.pbxproj index 5486279c36e2298d937338eef2cb5a3f234bfbb6..816d451e3315e571a9883eed7a71cbecd58f7855 100644 --- a/SmartNotifications/SmartNotifications.xcodeproj/project.pbxproj +++ b/RNNotifications/RNNotifications.xcodeproj/project.pbxproj @@ -7,7 +7,7 @@ objects = { /* Begin PBXBuildFile section */ - 13BE3DEE1AC21097009241FE /* SmartNotifications.m in Sources */ = {isa = PBXBuildFile; fileRef = 13BE3DED1AC21097009241FE /* SmartNotifications.m */; }; + D8A2F7551CB57F1A002CC8F5 /* RNNotifications.m in Sources */ = {isa = PBXBuildFile; fileRef = D8A2F7541CB57F1A002CC8F5 /* RNNotifications.m */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -23,9 +23,9 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 134814201AA4EA6300B7C361 /* libSmartNotifications.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSmartNotifications.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 13BE3DEC1AC21097009241FE /* SmartNotifications.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SmartNotifications.h; sourceTree = ""; }; - 13BE3DED1AC21097009241FE /* SmartNotifications.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SmartNotifications.m; sourceTree = ""; }; + 134814201AA4EA6300B7C361 /* libRNNotifications.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNNotifications.a; sourceTree = BUILT_PRODUCTS_DIR; }; + D8A2F7541CB57F1A002CC8F5 /* RNNotifications.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNotifications.m; sourceTree = ""; }; + D8A2F7561CB57F28002CC8F5 /* RNNotifications.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNotifications.h; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -42,7 +42,7 @@ 134814211AA4EA7D00B7C361 /* Products */ = { isa = PBXGroup; children = ( - 134814201AA4EA6300B7C361 /* libSmartNotifications.a */, + 134814201AA4EA6300B7C361 /* libRNNotifications.a */, ); name = Products; sourceTree = ""; @@ -50,8 +50,8 @@ 58B511D21A9E6C8500147676 = { isa = PBXGroup; children = ( - 13BE3DEC1AC21097009241FE /* SmartNotifications.h */, - 13BE3DED1AC21097009241FE /* SmartNotifications.m */, + D8A2F7561CB57F28002CC8F5 /* RNNotifications.h */, + D8A2F7541CB57F1A002CC8F5 /* RNNotifications.m */, 134814211AA4EA7D00B7C361 /* Products */, ); sourceTree = ""; @@ -59,9 +59,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 58B511DA1A9E6C8500147676 /* SmartNotifications */ = { + 58B511DA1A9E6C8500147676 /* RNNotifications */ = { isa = PBXNativeTarget; - buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "SmartNotifications" */; + buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNNotifications" */; buildPhases = ( 58B511D71A9E6C8500147676 /* Sources */, 58B511D81A9E6C8500147676 /* Frameworks */, @@ -71,9 +71,9 @@ ); dependencies = ( ); - name = SmartNotifications; + name = RNNotifications; productName = RCTDataManager; - productReference = 134814201AA4EA6300B7C361 /* libSmartNotifications.a */; + productReference = 134814201AA4EA6300B7C361 /* libRNNotifications.a */; productType = "com.apple.product-type.library.static"; }; /* End PBXNativeTarget section */ @@ -90,7 +90,7 @@ }; }; }; - buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "SmartNotifications" */; + buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNNotifications" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -102,7 +102,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 58B511DA1A9E6C8500147676 /* SmartNotifications */, + 58B511DA1A9E6C8500147676 /* RNNotifications */, ); }; /* End PBXProject section */ @@ -112,7 +112,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 13BE3DEE1AC21097009241FE /* SmartNotifications.m in Sources */, + D8A2F7551CB57F1A002CC8F5 /* RNNotifications.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -204,7 +204,7 @@ ); LIBRARY_SEARCH_PATHS = ""; OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = SmartNotifications; + PRODUCT_NAME = RNNotifications; SKIP_INSTALL = YES; }; name = Debug; @@ -220,7 +220,7 @@ ); LIBRARY_SEARCH_PATHS = ""; OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = SmartNotifications; + PRODUCT_NAME = RNNotifications; SKIP_INSTALL = YES; }; name = Release; @@ -228,7 +228,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "SmartNotifications" */ = { + 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNNotifications" */ = { isa = XCConfigurationList; buildConfigurations = ( 58B511ED1A9E6C8500147676 /* Debug */, @@ -237,7 +237,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "SmartNotifications" */ = { + 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNNotifications" */ = { isa = XCConfigurationList; buildConfigurations = ( 58B511F01A9E6C8500147676 /* Debug */, diff --git a/SmartNotifications/SmartNotifications.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/RNNotifications/RNNotifications.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from SmartNotifications/SmartNotifications.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to RNNotifications/RNNotifications.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 0bccf4ecbffc3c01b387640e863b99d5082f2a37..40d72173bfd2fcc22b7277f75f67024a979a636b 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -81,7 +81,7 @@ android { buildToolsVersion "23.0.1" defaultConfig { - applicationId "com.smartnotificationsapp" + applicationId "com.notifications-example-app" minSdkVersion 16 targetSdkVersion 22 versionCode 1 diff --git a/example/android/app/src/main/java/com/smartnotificationsapp/MainActivity.java b/example/android/app/src/main/java/com/smartnotificationsapp/MainActivity.java index bbac99e1f329a13d280a1614bb88d77aceebeaad..72decbdf9160f4159a304c866f538eb2d4d4344f 100644 --- a/example/android/app/src/main/java/com/smartnotificationsapp/MainActivity.java +++ b/example/android/app/src/main/java/com/smartnotificationsapp/MainActivity.java @@ -15,7 +15,7 @@ public class MainActivity extends ReactActivity { */ @Override protected String getMainComponentName() { - return "SmartNotificationsApp"; + return "NotificationsExampleApp"; } /** diff --git a/example/android/app/src/main/res/values/strings.xml b/example/android/app/src/main/res/values/strings.xml index 796617091564c363b5ecb1c20e4a9afe2259310f..66110ffe5b890023941059c7f7f9cb53915cd3d7 100644 --- a/example/android/app/src/main/res/values/strings.xml +++ b/example/android/app/src/main/res/values/strings.xml @@ -1,3 +1,3 @@ - SmartNotificationsApp + NotificationsExampleApp diff --git a/example/android/settings.gradle b/example/android/settings.gradle index a98cabf79df55421f8941781d5511669808cf7da..9ec85f37fcc6c1b01d6205bd6fa10cb8629e7692 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -1,3 +1,3 @@ -rootProject.name = 'SmartNotificationsApp' +rootProject.name = 'NotificationsExampleApp' include ':app' diff --git a/example/index.android.js b/example/index.android.js index 4e9a47c05b5fee9ee417196b0da3a55645404e73..f3659067e73b6550212971ab374622a7b198b1bf 100644 --- a/example/index.android.js +++ b/example/index.android.js @@ -11,12 +11,12 @@ import React, { View } from 'react-native'; -class SmartNotificationsApp extends Component { +class NotificationsExampleApp extends Component { render() { return ( - Welcome to React Native! + Welcome to React Native Notifications Demo App! To get started, edit index.android.js @@ -48,4 +48,4 @@ const styles = StyleSheet.create({ }, }); -AppRegistry.registerComponent('SmartNotificationsApp', () => SmartNotificationsApp); +AppRegistry.registerComponent('NotificationsExampleApp', () => NotificationsExampleApp); diff --git a/example/index.ios.js b/example/index.ios.js index e5a8e6f99dd067293d0782b0ef2a1aad655b22c8..ed540fc7853ab44ce0f9b63354ea285238527be3 100644 --- a/example/index.ios.js +++ b/example/index.ios.js @@ -12,17 +12,17 @@ import React, { PushNotificationIOS } from 'react-native'; -import SmartNotificationsIOS from 'react-native-smart-notifications'; +import NotificationsIOS from 'react-native-notifications'; -class SmartNotificationsApp extends Component { +class NotificationsExampleApp extends Component { constructor() { super(); PushNotificationIOS.addEventListener('register', this.onPushRegistered.bind(this)); // PushNotificationIOS.addEventListener('notification', this.onPushNotification.bind(this)); - SmartNotificationsIOS.addEventListener('notificationReceivedForeground', this.onNotificationReceivedForeground.bind(this)); - SmartNotificationsIOS.addEventListener('notificationReceivedBackground', this.onNotificationReceivedBackground.bind(this)); - SmartNotificationsIOS.addEventListener('notificationOpened', this.onNotificationOpened.bind(this)); + NotificationsIOS.addEventListener('notificationReceivedForeground', this.onNotificationReceivedForeground.bind(this)); + NotificationsIOS.addEventListener('notificationReceivedBackground', this.onNotificationReceivedBackground.bind(this)); + NotificationsIOS.addEventListener('notificationOpened', this.onNotificationOpened.bind(this)); } onPushRegistered(deviceToken) { @@ -51,7 +51,7 @@ class SmartNotificationsApp extends Component { return ( - Welcome to Smart Notifications Demo App! + Welcome to React Native Notifications Demo App! To get started, edit index.ios.js @@ -65,9 +65,9 @@ class SmartNotificationsApp extends Component { } componentWillUnmount() { - SmartNotificationsIOS.removeEventListener('notificationReceivedForeground', this.onNotificationReceivedForeground.bind(this)); - SmartNotificationsIOS.removeEventListener('notificationReceivedBackground', this.onNotificationReceivedBackground.bind(this)); - SmartNotificationsIOS.removeEventListener('notificationOpened', this.onNotificationOpened.bind(this)); + NotificationsIOS.removeEventListener('notificationReceivedForeground', this.onNotificationReceivedForeground.bind(this)); + NotificationsIOS.removeEventListener('notificationReceivedBackground', this.onNotificationReceivedBackground.bind(this)); + NotificationsIOS.removeEventListener('notificationOpened', this.onNotificationOpened.bind(this)); } _onNotification(notification) { @@ -101,4 +101,4 @@ const styles = StyleSheet.create({ }, }); -AppRegistry.registerComponent('SmartNotificationsApp', () => SmartNotificationsApp); +AppRegistry.registerComponent('NotificationsExampleApp', () => NotificationsExampleApp); diff --git a/example/ios/SmartNotificationsApp.xcodeproj/project.pbxproj b/example/ios/NotificationsExampleApp.xcodeproj/project.pbxproj similarity index 81% rename from example/ios/SmartNotificationsApp.xcodeproj/project.pbxproj rename to example/ios/NotificationsExampleApp.xcodeproj/project.pbxproj index fb1ecbc24fa2006949c2cf45510e1e6b159c5c62..936fe6c3d5857ef26de069eba907db4699883c9d 100644 --- a/example/ios/SmartNotificationsApp.xcodeproj/project.pbxproj +++ b/example/ios/NotificationsExampleApp.xcodeproj/project.pbxproj @@ -12,18 +12,19 @@ 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; - 00E356F31AD99517003FC87E /* SmartNotificationsAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* SmartNotificationsAppTests.m */; }; + 00E356F31AD99517003FC87E /* NotificationsExampleAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* NotificationsExampleAppTests.m */; }; 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; - 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; - 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; - 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; - 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; D86588561CA2F4EF0076A9C8 /* libRCTPushNotification.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D86588551CA2F49C0076A9C8 /* libRCTPushNotification.a */; }; - D8A0239F1CA6EF6700FE44E8 /* libSmartNotifications.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D8A0239E1CA6EF1700FE44E8 /* libSmartNotifications.a */; }; + D89EF3AC1CB586FE0029DCD6 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D89EF3A71CB586FE0029DCD6 /* AppDelegate.m */; }; + D89EF3AD1CB586FE0029DCD6 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D89EF3A91CB586FE0029DCD6 /* Images.xcassets */; }; + D89EF3AE1CB586FE0029DCD6 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = D89EF3AA1CB586FE0029DCD6 /* Info.plist */; }; + D89EF3AF1CB586FE0029DCD6 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D89EF3AB1CB586FE0029DCD6 /* main.m */; }; + D89EF3BE1CB5871B0029DCD6 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = D89EF3BC1CB5871B0029DCD6 /* LaunchScreen.xib */; }; + D8CDE9D11CB588F000DC8E35 /* libRNNotifications.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D8CDE9D01CB588CF00DC8E35 /* libRNNotifications.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -67,7 +68,7 @@ containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; proxyType = 1; remoteGlobalIDString = 13B07F861A680F5B00A75B9A; - remoteInfo = SmartNotificationsApp; + remoteInfo = NotificationsExampleApp; }; 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; @@ -111,39 +112,38 @@ remoteGlobalIDString = 134814201AA4EA6300B7C361; remoteInfo = RCTPushNotification; }; - D8A0239D1CA6EF1700FE44E8 /* PBXContainerItemProxy */ = { + D8CDE9CF1CB588CF00DC8E35 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = D8A023991CA6EF1700FE44E8 /* SmartNotifications.xcodeproj */; + containerPortal = D8CDE9CB1CB588CF00DC8E35 /* RNNotifications.xcodeproj */; proxyType = 2; remoteGlobalIDString = 134814201AA4EA6300B7C361; - remoteInfo = SmartNotifications; + remoteInfo = RNNotifications; }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; - 00E356EE1AD99517003FC87E /* SmartNotificationsAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SmartNotificationsAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 00E356EE1AD99517003FC87E /* NotificationsExampleAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NotificationsExampleAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 00E356F21AD99517003FC87E /* SmartNotificationsAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SmartNotificationsAppTests.m; sourceTree = ""; }; + 00E356F21AD99517003FC87E /* NotificationsExampleAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NotificationsExampleAppTests.m; sourceTree = ""; }; 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; - 13B07F961A680F5B00A75B9A /* SmartNotificationsApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SmartNotificationsApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = SmartNotificationsApp/AppDelegate.h; sourceTree = ""; }; - 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = SmartNotificationsApp/AppDelegate.m; sourceTree = ""; }; - 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; - 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = SmartNotificationsApp/Images.xcassets; sourceTree = ""; }; - 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SmartNotificationsApp/Info.plist; sourceTree = ""; }; - 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = SmartNotificationsApp/main.m; sourceTree = ""; }; + 13B07F961A680F5B00A75B9A /* NotificationsExampleApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NotificationsExampleApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; D86588501CA2F49C0076A9C8 /* RCTPushNotification.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTPushNotification.xcodeproj; path = "../node_modules/react-native/Libraries/PushNotificationIOS/RCTPushNotification.xcodeproj"; sourceTree = ""; }; - D8A023991CA6EF1700FE44E8 /* SmartNotifications.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SmartNotifications.xcodeproj; path = ../../SmartNotifications/SmartNotifications.xcodeproj; sourceTree = ""; }; + D89EF3A71CB586FE0029DCD6 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = NotificationsExampleApp/AppDelegate.m; sourceTree = ""; }; + D89EF3A81CB586FE0029DCD6 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = NotificationsExampleApp/AppDelegate.h; sourceTree = ""; }; + D89EF3A91CB586FE0029DCD6 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = NotificationsExampleApp/Images.xcassets; sourceTree = ""; }; + D89EF3AA1CB586FE0029DCD6 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = NotificationsExampleApp/Info.plist; sourceTree = ""; }; + D89EF3AB1CB586FE0029DCD6 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = NotificationsExampleApp/main.m; sourceTree = ""; }; + D89EF3BD1CB5871B0029DCD6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = NotificationsExampleApp/Base.lproj/LaunchScreen.xib; sourceTree = ""; }; + D8CDE9CB1CB588CF00DC8E35 /* RNNotifications.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNNotifications.xcodeproj; path = "../node_modules/react-native-notifications/RNNotifications/RNNotifications.xcodeproj"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -158,7 +158,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - D8A0239F1CA6EF6700FE44E8 /* libSmartNotifications.a in Frameworks */, + D8CDE9D11CB588F000DC8E35 /* libRNNotifications.a in Frameworks */, D86588561CA2F4EF0076A9C8 /* libRCTPushNotification.a in Frameworks */, 146834051AC3E58100842450 /* libReact.a in Frameworks */, 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, @@ -216,13 +216,13 @@ name = Products; sourceTree = ""; }; - 00E356EF1AD99517003FC87E /* SmartNotificationsAppTests */ = { + 00E356EF1AD99517003FC87E /* NotificationsExampleAppTests */ = { isa = PBXGroup; children = ( - 00E356F21AD99517003FC87E /* SmartNotificationsAppTests.m */, + 00E356F21AD99517003FC87E /* NotificationsExampleAppTests.m */, 00E356F01AD99517003FC87E /* Supporting Files */, ); - path = SmartNotificationsAppTests; + path = NotificationsExampleAppTests; sourceTree = ""; }; 00E356F01AD99517003FC87E /* Supporting Files */ = { @@ -249,18 +249,17 @@ name = Products; sourceTree = ""; }; - 13B07FAE1A68108700A75B9A /* SmartNotificationsApp */ = { + 13B07FAE1A68108700A75B9A /* NotificationsExampleApp */ = { isa = PBXGroup; children = ( - 008F07F21AC5B25A0029DE68 /* main.jsbundle */, - 13B07FAF1A68108700A75B9A /* AppDelegate.h */, - 13B07FB01A68108700A75B9A /* AppDelegate.m */, - 13B07FB51A68108700A75B9A /* Images.xcassets */, - 13B07FB61A68108700A75B9A /* Info.plist */, - 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, - 13B07FB71A68108700A75B9A /* main.m */, - ); - name = SmartNotificationsApp; + D89EF3BC1CB5871B0029DCD6 /* LaunchScreen.xib */, + D89EF3A71CB586FE0029DCD6 /* AppDelegate.m */, + D89EF3A81CB586FE0029DCD6 /* AppDelegate.h */, + D89EF3A91CB586FE0029DCD6 /* Images.xcassets */, + D89EF3AA1CB586FE0029DCD6 /* Info.plist */, + D89EF3AB1CB586FE0029DCD6 /* main.m */, + ); + name = NotificationsExampleApp; sourceTree = ""; }; 146834001AC3E56700842450 /* Products */ = { @@ -282,7 +281,7 @@ 832341AE1AAA6A7D00B99B32 /* Libraries */ = { isa = PBXGroup; children = ( - D8A023991CA6EF1700FE44E8 /* SmartNotifications.xcodeproj */, + D8CDE9CB1CB588CF00DC8E35 /* RNNotifications.xcodeproj */, D86588501CA2F49C0076A9C8 /* RCTPushNotification.xcodeproj */, 146833FF1AC3E56700842450 /* React.xcodeproj */, 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, @@ -309,9 +308,9 @@ 83CBB9F61A601CBA00E9B192 = { isa = PBXGroup; children = ( - 13B07FAE1A68108700A75B9A /* SmartNotificationsApp */, + 13B07FAE1A68108700A75B9A /* NotificationsExampleApp */, 832341AE1AAA6A7D00B99B32 /* Libraries */, - 00E356EF1AD99517003FC87E /* SmartNotificationsAppTests */, + 00E356EF1AD99517003FC87E /* NotificationsExampleAppTests */, 83CBBA001A601CBA00E9B192 /* Products */, ); indentWidth = 2; @@ -321,8 +320,8 @@ 83CBBA001A601CBA00E9B192 /* Products */ = { isa = PBXGroup; children = ( - 13B07F961A680F5B00A75B9A /* SmartNotificationsApp.app */, - 00E356EE1AD99517003FC87E /* SmartNotificationsAppTests.xctest */, + 13B07F961A680F5B00A75B9A /* NotificationsExampleApp.app */, + 00E356EE1AD99517003FC87E /* NotificationsExampleAppTests.xctest */, ); name = Products; sourceTree = ""; @@ -335,10 +334,10 @@ name = Products; sourceTree = ""; }; - D8A0239A1CA6EF1700FE44E8 /* Products */ = { + D8CDE9CC1CB588CF00DC8E35 /* Products */ = { isa = PBXGroup; children = ( - D8A0239E1CA6EF1700FE44E8 /* libSmartNotifications.a */, + D8CDE9D01CB588CF00DC8E35 /* libRNNotifications.a */, ); name = Products; sourceTree = ""; @@ -346,9 +345,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 00E356ED1AD99517003FC87E /* SmartNotificationsAppTests */ = { + 00E356ED1AD99517003FC87E /* NotificationsExampleAppTests */ = { isa = PBXNativeTarget; - buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "SmartNotificationsAppTests" */; + buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "NotificationsExampleAppTests" */; buildPhases = ( 00E356EA1AD99517003FC87E /* Sources */, 00E356EB1AD99517003FC87E /* Frameworks */, @@ -359,14 +358,14 @@ dependencies = ( 00E356F51AD99517003FC87E /* PBXTargetDependency */, ); - name = SmartNotificationsAppTests; - productName = SmartNotificationsAppTests; - productReference = 00E356EE1AD99517003FC87E /* SmartNotificationsAppTests.xctest */; + name = NotificationsExampleAppTests; + productName = NotificationsExampleAppTests; + productReference = 00E356EE1AD99517003FC87E /* NotificationsExampleAppTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; - 13B07F861A680F5B00A75B9A /* SmartNotificationsApp */ = { + 13B07F861A680F5B00A75B9A /* NotificationsExampleApp */ = { isa = PBXNativeTarget; - buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "SmartNotificationsApp" */; + buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "NotificationsExampleApp" */; buildPhases = ( 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, @@ -377,9 +376,9 @@ ); dependencies = ( ); - name = SmartNotificationsApp; + name = NotificationsExampleApp; productName = "Hello World"; - productReference = 13B07F961A680F5B00A75B9A /* SmartNotificationsApp.app */; + productReference = 13B07F961A680F5B00A75B9A /* NotificationsExampleApp.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -405,7 +404,7 @@ }; }; }; - buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SmartNotificationsApp" */; + buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "NotificationsExampleApp" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -462,14 +461,14 @@ ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; }, { - ProductGroup = D8A0239A1CA6EF1700FE44E8 /* Products */; - ProjectRef = D8A023991CA6EF1700FE44E8 /* SmartNotifications.xcodeproj */; + ProductGroup = D8CDE9CC1CB588CF00DC8E35 /* Products */; + ProjectRef = D8CDE9CB1CB588CF00DC8E35 /* RNNotifications.xcodeproj */; }, ); projectRoot = ""; targets = ( - 13B07F861A680F5B00A75B9A /* SmartNotificationsApp */, - 00E356ED1AD99517003FC87E /* SmartNotificationsAppTests */, + 13B07F861A680F5B00A75B9A /* NotificationsExampleApp */, + 00E356ED1AD99517003FC87E /* NotificationsExampleAppTests */, ); }; /* End PBXProject section */ @@ -552,11 +551,11 @@ remoteRef = D86588541CA2F49C0076A9C8 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - D8A0239E1CA6EF1700FE44E8 /* libSmartNotifications.a */ = { + D8CDE9D01CB588CF00DC8E35 /* libRNNotifications.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; - path = libSmartNotifications.a; - remoteRef = D8A0239D1CA6EF1700FE44E8 /* PBXContainerItemProxy */; + path = libRNNotifications.a; + remoteRef = D8CDE9CF1CB588CF00DC8E35 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXReferenceProxy section */ @@ -573,8 +572,9 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, - 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, + D89EF3AD1CB586FE0029DCD6 /* Images.xcassets in Resources */, + D89EF3BE1CB5871B0029DCD6 /* LaunchScreen.xib in Resources */, + D89EF3AE1CB586FE0029DCD6 /* Info.plist in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -602,7 +602,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 00E356F31AD99517003FC87E /* SmartNotificationsAppTests.m in Sources */, + 00E356F31AD99517003FC87E /* NotificationsExampleAppTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -610,8 +610,8 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, - 13B07FC11A68108700A75B9A /* main.m in Sources */, + D89EF3AF1CB586FE0029DCD6 /* main.m in Sources */, + D89EF3AC1CB586FE0029DCD6 /* AppDelegate.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -620,19 +620,18 @@ /* Begin PBXTargetDependency section */ 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 13B07F861A680F5B00A75B9A /* SmartNotificationsApp */; + target = 13B07F861A680F5B00A75B9A /* NotificationsExampleApp */; targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ - 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { + D89EF3BC1CB5871B0029DCD6 /* LaunchScreen.xib */ = { isa = PBXVariantGroup; children = ( - 13B07FB21A68108700A75B9A /* Base */, + D89EF3BD1CB5871B0029DCD6 /* Base */, ); name = LaunchScreen.xib; - path = SmartNotificationsApp; sourceTree = ""; }; /* End PBXVariantGroup section */ @@ -650,12 +649,12 @@ "DEBUG=1", "$(inherited)", ); - INFOPLIST_FILE = SmartNotificationsAppTests/Info.plist; + INFOPLIST_FILE = NotificationsExampleAppTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.2; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SmartNotificationsApp.app/SmartNotificationsApp"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NotificationsExampleApp.app/NotificationsExampleApp"; }; name = Debug; }; @@ -668,12 +667,12 @@ "$(SDKROOT)/Developer/Library/Frameworks", "$(inherited)", ); - INFOPLIST_FILE = SmartNotificationsAppTests/Info.plist; + INFOPLIST_FILE = NotificationsExampleAppTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.2; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SmartNotificationsApp.app/SmartNotificationsApp"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NotificationsExampleApp.app/NotificationsExampleApp"; }; name = Release; }; @@ -688,13 +687,13 @@ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, "$(SRCROOT)/../node_modules/react-native/React/**", "$(SRCROOT)/../node_modules/react-native/Libraries/PushNotificationIOS/**", - "$(SRCROOT)/../../SmartNotifications/**", + "$(SRCROOT)/../node_modules/react-native-notifications/RNNotifications/**", ); - INFOPLIST_FILE = SmartNotificationsApp/Info.plist; + INFOPLIST_FILE = NotificationsExampleApp/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_LDFLAGS = "-ObjC"; PRODUCT_BUNDLE_IDENTIFIER = "com.wix.smart-notifications-test-app"; - PRODUCT_NAME = SmartNotificationsApp; + PRODUCT_NAME = NotificationsExampleApp; }; name = Debug; }; @@ -708,13 +707,13 @@ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, "$(SRCROOT)/../node_modules/react-native/React/**", "$(SRCROOT)/../node_modules/react-native/Libraries/PushNotificationIOS/**", - "$(SRCROOT)/../../SmartNotifications/**", + "$(SRCROOT)/../node_modules/react-native-notifications/RNNotifications/**", ); - INFOPLIST_FILE = SmartNotificationsApp/Info.plist; + INFOPLIST_FILE = NotificationsExampleApp/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_LDFLAGS = "-ObjC"; PRODUCT_BUNDLE_IDENTIFIER = "com.wix.smart-notifications-test-app"; - PRODUCT_NAME = SmartNotificationsApp; + PRODUCT_NAME = NotificationsExampleApp; }; name = Release; }; @@ -808,7 +807,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "SmartNotificationsAppTests" */ = { + 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "NotificationsExampleAppTests" */ = { isa = XCConfigurationList; buildConfigurations = ( 00E356F61AD99517003FC87E /* Debug */, @@ -817,7 +816,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "SmartNotificationsApp" */ = { + 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "NotificationsExampleApp" */ = { isa = XCConfigurationList; buildConfigurations = ( 13B07F941A680F5B00A75B9A /* Debug */, @@ -826,7 +825,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SmartNotificationsApp" */ = { + 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "NotificationsExampleApp" */ = { isa = XCConfigurationList; buildConfigurations = ( 83CBBA201A601CBA00E9B192 /* Debug */, diff --git a/example/ios/SmartNotificationsApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/example/ios/NotificationsExampleApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from example/ios/SmartNotificationsApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to example/ios/NotificationsExampleApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/example/ios/SmartNotificationsApp.xcodeproj/xcshareddata/xcschemes/SmartNotificationsApp.xcscheme b/example/ios/NotificationsExampleApp.xcodeproj/xcshareddata/xcschemes/SmartNotificationsApp.xcscheme similarity index 73% rename from example/ios/SmartNotificationsApp.xcodeproj/xcshareddata/xcschemes/SmartNotificationsApp.xcscheme rename to example/ios/NotificationsExampleApp.xcodeproj/xcshareddata/xcschemes/SmartNotificationsApp.xcscheme index cb0c33429a2bd167695c1f653ca9797ba75b4f36..1279500166b4d425f04d266557d7043cf394d839 100644 --- a/example/ios/SmartNotificationsApp.xcodeproj/xcshareddata/xcschemes/SmartNotificationsApp.xcscheme +++ b/example/ios/NotificationsExampleApp.xcodeproj/xcshareddata/xcschemes/SmartNotificationsApp.xcscheme @@ -15,9 +15,9 @@ + BuildableName = "NotificationsExampleApp.app" + BlueprintName = "NotificationsExampleApp" + ReferencedContainer = "container:NotificationsExampleApp.xcodeproj"> + BuildableName = "NotificationsExampleAppTests.xctest" + BlueprintName = "NotificationsExampleAppTests" + ReferencedContainer = "container:NotificationsExampleApp.xcodeproj"> @@ -47,9 +47,9 @@ + BuildableName = "NotificationsExampleAppTests.xctest" + BlueprintName = "NotificationsExampleAppTests" + ReferencedContainer = "container:NotificationsExampleApp.xcodeproj"> @@ -57,9 +57,9 @@ + BuildableName = "NotificationsExampleApp.app" + BlueprintName = "NotificationsExampleApp" + ReferencedContainer = "container:NotificationsExampleApp.xcodeproj"> @@ -80,9 +80,9 @@ + BuildableName = "NotificationsExampleApp.app" + BlueprintName = "NotificationsExampleApp" + ReferencedContainer = "container:NotificationsExampleApp.xcodeproj"> @@ -99,9 +99,9 @@ + BuildableName = "NotificationsExampleApp.app" + BlueprintName = "NotificationsExampleApp" + ReferencedContainer = "container:NotificationsExampleApp.xcodeproj"> diff --git a/example/ios/SmartNotificationsApp/AppDelegate.h b/example/ios/NotificationsExampleApp/AppDelegate.h similarity index 100% rename from example/ios/SmartNotificationsApp/AppDelegate.h rename to example/ios/NotificationsExampleApp/AppDelegate.h diff --git a/example/ios/SmartNotificationsApp/AppDelegate.m b/example/ios/NotificationsExampleApp/AppDelegate.m similarity index 94% rename from example/ios/SmartNotificationsApp/AppDelegate.m rename to example/ios/NotificationsExampleApp/AppDelegate.m index fc5d65c054e83d15e2b3bea49eea30929498180e..ee2ee6e189137db5ff98c7f90a8c86621d2724da 100644 --- a/example/ios/SmartNotificationsApp/AppDelegate.m +++ b/example/ios/NotificationsExampleApp/AppDelegate.m @@ -10,7 +10,7 @@ #import "AppDelegate.h" #import "RCTPushNotificationManager.h" #import "RCTRootView.h" -#import "SmartNotifications.h" +#import "RNNotifications.h" @implementation AppDelegate @@ -45,7 +45,7 @@ // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation - moduleName:@"SmartNotificationsApp" + moduleName:@"NotificationsExampleApp" initialProperties:nil launchOptions:launchOptions]; @@ -72,13 +72,13 @@ // Required for the notification event. - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification { - [SmartNotifications didReceiveRemoteNotification:notification]; + [RNNotifications didReceiveRemoteNotification:notification]; } // Required for the localNotification event. - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { - [SmartNotifications didReceiveLocalNotification:notification]; + [RNNotifications didReceiveLocalNotification:notification]; } diff --git a/example/ios/SmartNotificationsApp/Base.lproj/LaunchScreen.xib b/example/ios/NotificationsExampleApp/Base.lproj/LaunchScreen.xib similarity index 93% rename from example/ios/SmartNotificationsApp/Base.lproj/LaunchScreen.xib rename to example/ios/NotificationsExampleApp/Base.lproj/LaunchScreen.xib index 8499a780fc0d306198b2d6dfe504f3e9629a7f4a..8fb114ea640f0b938e752a6e32fd79557312bae3 100644 --- a/example/ios/SmartNotificationsApp/Base.lproj/LaunchScreen.xib +++ b/example/ios/NotificationsExampleApp/Base.lproj/LaunchScreen.xib @@ -18,7 +18,7 @@ -