Commit 0b9170e5 authored by Lidan Hifi's avatar Lidan Hifi

rename package

parent 1ee9741b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#import "RCTBridgeModule.h" #import "RCTBridgeModule.h"
@interface SmartNotifications : NSObject <RCTBridgeModule> @interface RNNotifications : NSObject <RCTBridgeModule>
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification; + (void)didReceiveRemoteNotification:(NSDictionary *)notification;
+ (void)didReceiveLocalNotification:(UILocalNotification *)notification; + (void)didReceiveLocalNotification:(UILocalNotification *)notification;
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "RCTBridge.h" #import "RCTBridge.h"
#import "RCTEventDispatcher.h" #import "RCTEventDispatcher.h"
#import "SmartNotifications.h" #import "RNNotifications.h"
#import "RCTUtils.h" #import "RCTUtils.h"
NSString *const SmartNotificationCreateAction = @"CREATE"; NSString *const RNNotificationCreateAction = @"CREATE";
NSString *const SmartNotificationClearAction = @"CLEAR"; NSString *const RNNotificationClearAction = @"CLEAR";
NSString *const SmartNotificationReceivedForeground = @"SmartNotificationReceivedForeground"; NSString *const RNNotificationReceivedForeground = @"RNNotificationReceivedForeground";
NSString *const SmartNotificationReceivedBackground = @"SmartNotificationReceivedBackground"; NSString *const RNNotificationReceivedBackground = @"RNNotificationReceivedBackground";
NSString *const SmartNotificationOpened = @"SmartNotificationOpened"; NSString *const RNNotificationOpened = @"RNNotificationOpened";
@implementation SmartNotifications @implementation RNNotifications
RCT_EXPORT_MODULE() RCT_EXPORT_MODULE()
...@@ -32,17 +32,17 @@ static NSString* username; ...@@ -32,17 +32,17 @@ static NSString* username;
[[NSNotificationCenter defaultCenter] addObserver:self [[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleNotificationReceivedForeground:) selector:@selector(handleNotificationReceivedForeground:)
name:SmartNotificationReceivedForeground name:RNNotificationReceivedForeground
object:nil]; object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self [[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleNotificationReceivedBackground:) selector:@selector(handleNotificationReceivedBackground:)
name:SmartNotificationReceivedBackground name:RNNotificationReceivedBackground
object:nil]; object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self [[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleNotificationOpened:) selector:@selector(handleNotificationOpened:)
name:SmartNotificationOpened name:RNNotificationOpened
object:nil]; object:nil];
} }
...@@ -80,7 +80,7 @@ static NSString* username; ...@@ -80,7 +80,7 @@ static NSString* username;
*/ */
+ (void)didReceiveNotificationOnForegroundState:(NSDictionary *)notification + (void)didReceiveNotificationOnForegroundState:(NSDictionary *)notification
{ {
[[NSNotificationCenter defaultCenter] postNotificationName:SmartNotificationReceivedForeground [[NSNotificationCenter defaultCenter] postNotificationName:RNNotificationReceivedForeground
object:self object:self
userInfo:notification]; userInfo:notification];
} }
...@@ -94,24 +94,24 @@ static NSString* username; ...@@ -94,24 +94,24 @@ static NSString* username;
if (action) { if (action) {
// create or delete notification // create or delete notification
if ([action isEqualToString: SmartNotificationCreateAction] if ([action isEqualToString: RNNotificationCreateAction]
&& notificationId && notificationId
&& alert) { && alert) {
[self dispatchLocalNotificationFromNotification:notification]; [self dispatchLocalNotificationFromNotification:notification];
} else if ([action isEqualToString: SmartNotificationClearAction] && notificationId) { } else if ([action isEqualToString: RNNotificationClearAction] && notificationId) {
[self clearNotificationFromNotificationsCenter:notificationId]; [self clearNotificationFromNotificationsCenter:notificationId];
} }
} }
[[NSNotificationCenter defaultCenter] postNotificationName:SmartNotificationReceivedBackground [[NSNotificationCenter defaultCenter] postNotificationName:RNNotificationReceivedBackground
object:self object:self
userInfo:notification]; userInfo:notification];
} }
+ (void)didNotificationOpen:(NSDictionary *)notification + (void)didNotificationOpen:(NSDictionary *)notification
{ {
[[NSNotificationCenter defaultCenter] postNotificationName:SmartNotificationOpened [[NSNotificationCenter defaultCenter] postNotificationName:RNNotificationOpened
object:self object:self
userInfo:notification]; userInfo:notification];
} }
...@@ -127,7 +127,7 @@ static NSString* username; ...@@ -127,7 +127,7 @@ static NSString* username;
NSString* action = [customData objectForKey:@"action"]; NSString* action = [customData objectForKey:@"action"];
NSString* notificationId = [customData objectForKey:@"notificationId"]; NSString* notificationId = [customData objectForKey:@"notificationId"];
if ([action isEqualToString: SmartNotificationCreateAction] if ([action isEqualToString: RNNotificationCreateAction]
&& notificationId && notificationId
&& alert) { && alert) {
...@@ -193,12 +193,12 @@ static NSString* username; ...@@ -193,12 +193,12 @@ static NSString* username;
RCT_EXPORT_METHOD(dispatchLocalNotificationFromNotification:(NSDictionary *)notification) RCT_EXPORT_METHOD(dispatchLocalNotificationFromNotification:(NSDictionary *)notification)
{ {
[SmartNotifications dispatchLocalNotificationFromNotification:notification]; [RNNotifications dispatchLocalNotificationFromNotification:notification];
} }
RCT_EXPORT_METHOD(clearNotificationFromNotificationsCenter:(NSString *)notificationId) RCT_EXPORT_METHOD(clearNotificationFromNotificationsCenter:(NSString *)notificationId)
{ {
[SmartNotifications clearNotificationFromNotificationsCenter:notificationId]; [RNNotifications clearNotificationFromNotificationsCenter:notificationId];
} }
@end @end
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
objects = { objects = {
/* Begin PBXBuildFile section */ /* 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 */ /* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */ /* Begin PBXCopyFilesBuildPhase section */
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
/* End PBXCopyFilesBuildPhase section */ /* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
134814201AA4EA6300B7C361 /* libSmartNotifications.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSmartNotifications.a; sourceTree = BUILT_PRODUCTS_DIR; }; 134814201AA4EA6300B7C361 /* libRNNotifications.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNNotifications.a; sourceTree = BUILT_PRODUCTS_DIR; };
13BE3DEC1AC21097009241FE /* SmartNotifications.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SmartNotifications.h; sourceTree = "<group>"; }; D8A2F7541CB57F1A002CC8F5 /* RNNotifications.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNotifications.m; sourceTree = "<group>"; };
13BE3DED1AC21097009241FE /* SmartNotifications.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SmartNotifications.m; sourceTree = "<group>"; }; D8A2F7561CB57F28002CC8F5 /* RNNotifications.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNotifications.h; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
134814211AA4EA7D00B7C361 /* Products */ = { 134814211AA4EA7D00B7C361 /* Products */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
134814201AA4EA6300B7C361 /* libSmartNotifications.a */, 134814201AA4EA6300B7C361 /* libRNNotifications.a */,
); );
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
58B511D21A9E6C8500147676 = { 58B511D21A9E6C8500147676 = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
13BE3DEC1AC21097009241FE /* SmartNotifications.h */, D8A2F7561CB57F28002CC8F5 /* RNNotifications.h */,
13BE3DED1AC21097009241FE /* SmartNotifications.m */, D8A2F7541CB57F1A002CC8F5 /* RNNotifications.m */,
134814211AA4EA7D00B7C361 /* Products */, 134814211AA4EA7D00B7C361 /* Products */,
); );
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -59,9 +59,9 @@ ...@@ -59,9 +59,9 @@
/* End PBXGroup section */ /* End PBXGroup section */
/* Begin PBXNativeTarget section */ /* Begin PBXNativeTarget section */
58B511DA1A9E6C8500147676 /* SmartNotifications */ = { 58B511DA1A9E6C8500147676 /* RNNotifications */ = {
isa = PBXNativeTarget; isa = PBXNativeTarget;
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "SmartNotifications" */; buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNNotifications" */;
buildPhases = ( buildPhases = (
58B511D71A9E6C8500147676 /* Sources */, 58B511D71A9E6C8500147676 /* Sources */,
58B511D81A9E6C8500147676 /* Frameworks */, 58B511D81A9E6C8500147676 /* Frameworks */,
...@@ -71,9 +71,9 @@ ...@@ -71,9 +71,9 @@
); );
dependencies = ( dependencies = (
); );
name = SmartNotifications; name = RNNotifications;
productName = RCTDataManager; productName = RCTDataManager;
productReference = 134814201AA4EA6300B7C361 /* libSmartNotifications.a */; productReference = 134814201AA4EA6300B7C361 /* libRNNotifications.a */;
productType = "com.apple.product-type.library.static"; productType = "com.apple.product-type.library.static";
}; };
/* End PBXNativeTarget section */ /* End PBXNativeTarget section */
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
}; };
}; };
}; };
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "SmartNotifications" */; buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNNotifications" */;
compatibilityVersion = "Xcode 3.2"; compatibilityVersion = "Xcode 3.2";
developmentRegion = English; developmentRegion = English;
hasScannedForEncodings = 0; hasScannedForEncodings = 0;
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
projectDirPath = ""; projectDirPath = "";
projectRoot = ""; projectRoot = "";
targets = ( targets = (
58B511DA1A9E6C8500147676 /* SmartNotifications */, 58B511DA1A9E6C8500147676 /* RNNotifications */,
); );
}; };
/* End PBXProject section */ /* End PBXProject section */
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
isa = PBXSourcesBuildPhase; isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
13BE3DEE1AC21097009241FE /* SmartNotifications.m in Sources */, D8A2F7551CB57F1A002CC8F5 /* RNNotifications.m in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
); );
LIBRARY_SEARCH_PATHS = ""; LIBRARY_SEARCH_PATHS = "";
OTHER_LDFLAGS = "-ObjC"; OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = SmartNotifications; PRODUCT_NAME = RNNotifications;
SKIP_INSTALL = YES; SKIP_INSTALL = YES;
}; };
name = Debug; name = Debug;
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
); );
LIBRARY_SEARCH_PATHS = ""; LIBRARY_SEARCH_PATHS = "";
OTHER_LDFLAGS = "-ObjC"; OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = SmartNotifications; PRODUCT_NAME = RNNotifications;
SKIP_INSTALL = YES; SKIP_INSTALL = YES;
}; };
name = Release; name = Release;
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
/* End XCBuildConfiguration section */ /* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */ /* Begin XCConfigurationList section */
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "SmartNotifications" */ = { 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNNotifications" */ = {
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
58B511ED1A9E6C8500147676 /* Debug */, 58B511ED1A9E6C8500147676 /* Debug */,
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
defaultConfigurationIsVisible = 0; defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release; defaultConfigurationName = Release;
}; };
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "SmartNotifications" */ = { 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNNotifications" */ = {
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
58B511F01A9E6C8500147676 /* Debug */, 58B511F01A9E6C8500147676 /* Debug */,
......
...@@ -81,7 +81,7 @@ android { ...@@ -81,7 +81,7 @@ android {
buildToolsVersion "23.0.1" buildToolsVersion "23.0.1"
defaultConfig { defaultConfig {
applicationId "com.smartnotificationsapp" applicationId "com.notifications-example-app"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 22 targetSdkVersion 22
versionCode 1 versionCode 1
......
...@@ -15,7 +15,7 @@ public class MainActivity extends ReactActivity { ...@@ -15,7 +15,7 @@ public class MainActivity extends ReactActivity {
*/ */
@Override @Override
protected String getMainComponentName() { protected String getMainComponentName() {
return "SmartNotificationsApp"; return "NotificationsExampleApp";
} }
/** /**
......
<resources> <resources>
<string name="app_name">SmartNotificationsApp</string> <string name="app_name">NotificationsExampleApp</string>
</resources> </resources>
rootProject.name = 'SmartNotificationsApp' rootProject.name = 'NotificationsExampleApp'
include ':app' include ':app'
...@@ -11,12 +11,12 @@ import React, { ...@@ -11,12 +11,12 @@ import React, {
View View
} from 'react-native'; } from 'react-native';
class SmartNotificationsApp extends Component { class NotificationsExampleApp extends Component {
render() { render() {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<Text style={styles.welcome}> <Text style={styles.welcome}>
Welcome to React Native! Welcome to React Native Notifications Demo App!
</Text> </Text>
<Text style={styles.instructions}> <Text style={styles.instructions}>
To get started, edit index.android.js To get started, edit index.android.js
...@@ -48,4 +48,4 @@ const styles = StyleSheet.create({ ...@@ -48,4 +48,4 @@ const styles = StyleSheet.create({
}, },
}); });
AppRegistry.registerComponent('SmartNotificationsApp', () => SmartNotificationsApp); AppRegistry.registerComponent('NotificationsExampleApp', () => NotificationsExampleApp);
...@@ -12,17 +12,17 @@ import React, { ...@@ -12,17 +12,17 @@ import React, {
PushNotificationIOS PushNotificationIOS
} from 'react-native'; } 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() { constructor() {
super(); super();
PushNotificationIOS.addEventListener('register', this.onPushRegistered.bind(this)); PushNotificationIOS.addEventListener('register', this.onPushRegistered.bind(this));
// PushNotificationIOS.addEventListener('notification', this.onPushNotification.bind(this)); // PushNotificationIOS.addEventListener('notification', this.onPushNotification.bind(this));
SmartNotificationsIOS.addEventListener('notificationReceivedForeground', this.onNotificationReceivedForeground.bind(this)); NotificationsIOS.addEventListener('notificationReceivedForeground', this.onNotificationReceivedForeground.bind(this));
SmartNotificationsIOS.addEventListener('notificationReceivedBackground', this.onNotificationReceivedBackground.bind(this)); NotificationsIOS.addEventListener('notificationReceivedBackground', this.onNotificationReceivedBackground.bind(this));
SmartNotificationsIOS.addEventListener('notificationOpened', this.onNotificationOpened.bind(this)); NotificationsIOS.addEventListener('notificationOpened', this.onNotificationOpened.bind(this));
} }
onPushRegistered(deviceToken) { onPushRegistered(deviceToken) {
...@@ -51,7 +51,7 @@ class SmartNotificationsApp extends Component { ...@@ -51,7 +51,7 @@ class SmartNotificationsApp extends Component {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<Text style={styles.welcome}> <Text style={styles.welcome}>
Welcome to Smart Notifications Demo App! Welcome to React Native Notifications Demo App!
</Text> </Text>
<Text style={styles.instructions}> <Text style={styles.instructions}>
To get started, edit index.ios.js To get started, edit index.ios.js
...@@ -65,9 +65,9 @@ class SmartNotificationsApp extends Component { ...@@ -65,9 +65,9 @@ class SmartNotificationsApp extends Component {
} }
componentWillUnmount() { componentWillUnmount() {
SmartNotificationsIOS.removeEventListener('notificationReceivedForeground', this.onNotificationReceivedForeground.bind(this)); NotificationsIOS.removeEventListener('notificationReceivedForeground', this.onNotificationReceivedForeground.bind(this));
SmartNotificationsIOS.removeEventListener('notificationReceivedBackground', this.onNotificationReceivedBackground.bind(this)); NotificationsIOS.removeEventListener('notificationReceivedBackground', this.onNotificationReceivedBackground.bind(this));
SmartNotificationsIOS.removeEventListener('notificationOpened', this.onNotificationOpened.bind(this)); NotificationsIOS.removeEventListener('notificationOpened', this.onNotificationOpened.bind(this));
} }
_onNotification(notification) { _onNotification(notification) {
...@@ -101,4 +101,4 @@ const styles = StyleSheet.create({ ...@@ -101,4 +101,4 @@ const styles = StyleSheet.create({
}, },
}); });
AppRegistry.registerComponent('SmartNotificationsApp', () => SmartNotificationsApp); AppRegistry.registerComponent('NotificationsExampleApp', () => NotificationsExampleApp);
...@@ -12,18 +12,19 @@ ...@@ -12,18 +12,19 @@
00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.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 */; }; 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.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 */; }; 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
D86588561CA2F4EF0076A9C8 /* libRCTPushNotification.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D86588551CA2F49C0076A9C8 /* libRCTPushNotification.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 */ /* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */ /* Begin PBXContainerItemProxy section */
...@@ -67,7 +68,7 @@ ...@@ -67,7 +68,7 @@
containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
proxyType = 1; proxyType = 1;
remoteGlobalIDString = 13B07F861A680F5B00A75B9A; remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
remoteInfo = SmartNotificationsApp; remoteInfo = NotificationsExampleApp;
}; };
139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy; isa = PBXContainerItemProxy;
...@@ -111,39 +112,38 @@ ...@@ -111,39 +112,38 @@
remoteGlobalIDString = 134814201AA4EA6300B7C361; remoteGlobalIDString = 134814201AA4EA6300B7C361;
remoteInfo = RCTPushNotification; remoteInfo = RCTPushNotification;
}; };
D8A0239D1CA6EF1700FE44E8 /* PBXContainerItemProxy */ = { D8CDE9CF1CB588CF00DC8E35 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy; isa = PBXContainerItemProxy;
containerPortal = D8A023991CA6EF1700FE44E8 /* SmartNotifications.xcodeproj */; containerPortal = D8CDE9CB1CB588CF00DC8E35 /* RNNotifications.xcodeproj */;
proxyType = 2; proxyType = 2;
remoteGlobalIDString = 134814201AA4EA6300B7C361; remoteGlobalIDString = 134814201AA4EA6300B7C361;
remoteInfo = SmartNotifications; remoteInfo = RNNotifications;
}; };
/* End PBXContainerItemProxy section */ /* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = "<group>"; }; 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = "<group>"; };
00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = "<group>"; }; 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = "<group>"; };
00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = "<group>"; }; 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = "<group>"; };
00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = "<group>"; }; 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = "<group>"; };
00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = "<group>"; }; 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = "<group>"; };
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 = "<group>"; }; 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
00E356F21AD99517003FC87E /* SmartNotificationsAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SmartNotificationsAppTests.m; sourceTree = "<group>"; }; 00E356F21AD99517003FC87E /* NotificationsExampleAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NotificationsExampleAppTests.m; sourceTree = "<group>"; };
139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = "<group>"; }; 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = "<group>"; };
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = "<group>"; }; 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = "<group>"; };
13B07F961A680F5B00A75B9A /* SmartNotificationsApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SmartNotificationsApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07F961A680F5B00A75B9A /* NotificationsExampleApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NotificationsExampleApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = SmartNotificationsApp/AppDelegate.h; sourceTree = "<group>"; };
13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = SmartNotificationsApp/AppDelegate.m; sourceTree = "<group>"; };
13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = SmartNotificationsApp/Images.xcassets; sourceTree = "<group>"; };
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = SmartNotificationsApp/Info.plist; sourceTree = "<group>"; };
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = SmartNotificationsApp/main.m; sourceTree = "<group>"; };
146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = "<group>"; }; 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = "<group>"; };
78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; }; 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; };
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = "<group>"; }; 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = "<group>"; };
D86588501CA2F49C0076A9C8 /* RCTPushNotification.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTPushNotification.xcodeproj; path = "../node_modules/react-native/Libraries/PushNotificationIOS/RCTPushNotification.xcodeproj"; sourceTree = "<group>"; }; D86588501CA2F49C0076A9C8 /* RCTPushNotification.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTPushNotification.xcodeproj; path = "../node_modules/react-native/Libraries/PushNotificationIOS/RCTPushNotification.xcodeproj"; sourceTree = "<group>"; };
D8A023991CA6EF1700FE44E8 /* SmartNotifications.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SmartNotifications.xcodeproj; path = ../../SmartNotifications/SmartNotifications.xcodeproj; sourceTree = "<group>"; }; D89EF3A71CB586FE0029DCD6 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = NotificationsExampleApp/AppDelegate.m; sourceTree = "<group>"; };
D89EF3A81CB586FE0029DCD6 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = NotificationsExampleApp/AppDelegate.h; sourceTree = "<group>"; };
D89EF3A91CB586FE0029DCD6 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = NotificationsExampleApp/Images.xcassets; sourceTree = "<group>"; };
D89EF3AA1CB586FE0029DCD6 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = NotificationsExampleApp/Info.plist; sourceTree = "<group>"; };
D89EF3AB1CB586FE0029DCD6 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = NotificationsExampleApp/main.m; sourceTree = "<group>"; };
D89EF3BD1CB5871B0029DCD6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = NotificationsExampleApp/Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
D8CDE9CB1CB588CF00DC8E35 /* RNNotifications.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNNotifications.xcodeproj; path = "../node_modules/react-native-notifications/RNNotifications/RNNotifications.xcodeproj"; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
isa = PBXFrameworksBuildPhase; isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
D8A0239F1CA6EF6700FE44E8 /* libSmartNotifications.a in Frameworks */, D8CDE9D11CB588F000DC8E35 /* libRNNotifications.a in Frameworks */,
D86588561CA2F4EF0076A9C8 /* libRCTPushNotification.a in Frameworks */, D86588561CA2F4EF0076A9C8 /* libRCTPushNotification.a in Frameworks */,
146834051AC3E58100842450 /* libReact.a in Frameworks */, 146834051AC3E58100842450 /* libReact.a in Frameworks */,
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
...@@ -216,13 +216,13 @@ ...@@ -216,13 +216,13 @@
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
00E356EF1AD99517003FC87E /* SmartNotificationsAppTests */ = { 00E356EF1AD99517003FC87E /* NotificationsExampleAppTests */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
00E356F21AD99517003FC87E /* SmartNotificationsAppTests.m */, 00E356F21AD99517003FC87E /* NotificationsExampleAppTests.m */,
00E356F01AD99517003FC87E /* Supporting Files */, 00E356F01AD99517003FC87E /* Supporting Files */,
); );
path = SmartNotificationsAppTests; path = NotificationsExampleAppTests;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
00E356F01AD99517003FC87E /* Supporting Files */ = { 00E356F01AD99517003FC87E /* Supporting Files */ = {
...@@ -249,18 +249,17 @@ ...@@ -249,18 +249,17 @@
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
13B07FAE1A68108700A75B9A /* SmartNotificationsApp */ = { 13B07FAE1A68108700A75B9A /* NotificationsExampleApp */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
008F07F21AC5B25A0029DE68 /* main.jsbundle */, D89EF3BC1CB5871B0029DCD6 /* LaunchScreen.xib */,
13B07FAF1A68108700A75B9A /* AppDelegate.h */, D89EF3A71CB586FE0029DCD6 /* AppDelegate.m */,
13B07FB01A68108700A75B9A /* AppDelegate.m */, D89EF3A81CB586FE0029DCD6 /* AppDelegate.h */,
13B07FB51A68108700A75B9A /* Images.xcassets */, D89EF3A91CB586FE0029DCD6 /* Images.xcassets */,
13B07FB61A68108700A75B9A /* Info.plist */, D89EF3AA1CB586FE0029DCD6 /* Info.plist */,
13B07FB11A68108700A75B9A /* LaunchScreen.xib */, D89EF3AB1CB586FE0029DCD6 /* main.m */,
13B07FB71A68108700A75B9A /* main.m */, );
); name = NotificationsExampleApp;
name = SmartNotificationsApp;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
146834001AC3E56700842450 /* Products */ = { 146834001AC3E56700842450 /* Products */ = {
...@@ -282,7 +281,7 @@ ...@@ -282,7 +281,7 @@
832341AE1AAA6A7D00B99B32 /* Libraries */ = { 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
D8A023991CA6EF1700FE44E8 /* SmartNotifications.xcodeproj */, D8CDE9CB1CB588CF00DC8E35 /* RNNotifications.xcodeproj */,
D86588501CA2F49C0076A9C8 /* RCTPushNotification.xcodeproj */, D86588501CA2F49C0076A9C8 /* RCTPushNotification.xcodeproj */,
146833FF1AC3E56700842450 /* React.xcodeproj */, 146833FF1AC3E56700842450 /* React.xcodeproj */,
00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
...@@ -309,9 +308,9 @@ ...@@ -309,9 +308,9 @@
83CBB9F61A601CBA00E9B192 = { 83CBB9F61A601CBA00E9B192 = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
13B07FAE1A68108700A75B9A /* SmartNotificationsApp */, 13B07FAE1A68108700A75B9A /* NotificationsExampleApp */,
832341AE1AAA6A7D00B99B32 /* Libraries */, 832341AE1AAA6A7D00B99B32 /* Libraries */,
00E356EF1AD99517003FC87E /* SmartNotificationsAppTests */, 00E356EF1AD99517003FC87E /* NotificationsExampleAppTests */,
83CBBA001A601CBA00E9B192 /* Products */, 83CBBA001A601CBA00E9B192 /* Products */,
); );
indentWidth = 2; indentWidth = 2;
...@@ -321,8 +320,8 @@ ...@@ -321,8 +320,8 @@
83CBBA001A601CBA00E9B192 /* Products */ = { 83CBBA001A601CBA00E9B192 /* Products */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
13B07F961A680F5B00A75B9A /* SmartNotificationsApp.app */, 13B07F961A680F5B00A75B9A /* NotificationsExampleApp.app */,
00E356EE1AD99517003FC87E /* SmartNotificationsAppTests.xctest */, 00E356EE1AD99517003FC87E /* NotificationsExampleAppTests.xctest */,
); );
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -335,10 +334,10 @@ ...@@ -335,10 +334,10 @@
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
D8A0239A1CA6EF1700FE44E8 /* Products */ = { D8CDE9CC1CB588CF00DC8E35 /* Products */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
D8A0239E1CA6EF1700FE44E8 /* libSmartNotifications.a */, D8CDE9D01CB588CF00DC8E35 /* libRNNotifications.a */,
); );
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -346,9 +345,9 @@ ...@@ -346,9 +345,9 @@
/* End PBXGroup section */ /* End PBXGroup section */
/* Begin PBXNativeTarget section */ /* Begin PBXNativeTarget section */
00E356ED1AD99517003FC87E /* SmartNotificationsAppTests */ = { 00E356ED1AD99517003FC87E /* NotificationsExampleAppTests */ = {
isa = PBXNativeTarget; isa = PBXNativeTarget;
buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "SmartNotificationsAppTests" */; buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "NotificationsExampleAppTests" */;
buildPhases = ( buildPhases = (
00E356EA1AD99517003FC87E /* Sources */, 00E356EA1AD99517003FC87E /* Sources */,
00E356EB1AD99517003FC87E /* Frameworks */, 00E356EB1AD99517003FC87E /* Frameworks */,
...@@ -359,14 +358,14 @@ ...@@ -359,14 +358,14 @@
dependencies = ( dependencies = (
00E356F51AD99517003FC87E /* PBXTargetDependency */, 00E356F51AD99517003FC87E /* PBXTargetDependency */,
); );
name = SmartNotificationsAppTests; name = NotificationsExampleAppTests;
productName = SmartNotificationsAppTests; productName = NotificationsExampleAppTests;
productReference = 00E356EE1AD99517003FC87E /* SmartNotificationsAppTests.xctest */; productReference = 00E356EE1AD99517003FC87E /* NotificationsExampleAppTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test"; productType = "com.apple.product-type.bundle.unit-test";
}; };
13B07F861A680F5B00A75B9A /* SmartNotificationsApp */ = { 13B07F861A680F5B00A75B9A /* NotificationsExampleApp */ = {
isa = PBXNativeTarget; isa = PBXNativeTarget;
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "SmartNotificationsApp" */; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "NotificationsExampleApp" */;
buildPhases = ( buildPhases = (
13B07F871A680F5B00A75B9A /* Sources */, 13B07F871A680F5B00A75B9A /* Sources */,
13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8C1A680F5B00A75B9A /* Frameworks */,
...@@ -377,9 +376,9 @@ ...@@ -377,9 +376,9 @@
); );
dependencies = ( dependencies = (
); );
name = SmartNotificationsApp; name = NotificationsExampleApp;
productName = "Hello World"; productName = "Hello World";
productReference = 13B07F961A680F5B00A75B9A /* SmartNotificationsApp.app */; productReference = 13B07F961A680F5B00A75B9A /* NotificationsExampleApp.app */;
productType = "com.apple.product-type.application"; productType = "com.apple.product-type.application";
}; };
/* End PBXNativeTarget section */ /* End PBXNativeTarget section */
...@@ -405,7 +404,7 @@ ...@@ -405,7 +404,7 @@
}; };
}; };
}; };
buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SmartNotificationsApp" */; buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "NotificationsExampleApp" */;
compatibilityVersion = "Xcode 3.2"; compatibilityVersion = "Xcode 3.2";
developmentRegion = English; developmentRegion = English;
hasScannedForEncodings = 0; hasScannedForEncodings = 0;
...@@ -462,14 +461,14 @@ ...@@ -462,14 +461,14 @@
ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
}, },
{ {
ProductGroup = D8A0239A1CA6EF1700FE44E8 /* Products */; ProductGroup = D8CDE9CC1CB588CF00DC8E35 /* Products */;
ProjectRef = D8A023991CA6EF1700FE44E8 /* SmartNotifications.xcodeproj */; ProjectRef = D8CDE9CB1CB588CF00DC8E35 /* RNNotifications.xcodeproj */;
}, },
); );
projectRoot = ""; projectRoot = "";
targets = ( targets = (
13B07F861A680F5B00A75B9A /* SmartNotificationsApp */, 13B07F861A680F5B00A75B9A /* NotificationsExampleApp */,
00E356ED1AD99517003FC87E /* SmartNotificationsAppTests */, 00E356ED1AD99517003FC87E /* NotificationsExampleAppTests */,
); );
}; };
/* End PBXProject section */ /* End PBXProject section */
...@@ -552,11 +551,11 @@ ...@@ -552,11 +551,11 @@
remoteRef = D86588541CA2F49C0076A9C8 /* PBXContainerItemProxy */; remoteRef = D86588541CA2F49C0076A9C8 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR; sourceTree = BUILT_PRODUCTS_DIR;
}; };
D8A0239E1CA6EF1700FE44E8 /* libSmartNotifications.a */ = { D8CDE9D01CB588CF00DC8E35 /* libRNNotifications.a */ = {
isa = PBXReferenceProxy; isa = PBXReferenceProxy;
fileType = archive.ar; fileType = archive.ar;
path = libSmartNotifications.a; path = libRNNotifications.a;
remoteRef = D8A0239D1CA6EF1700FE44E8 /* PBXContainerItemProxy */; remoteRef = D8CDE9CF1CB588CF00DC8E35 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR; sourceTree = BUILT_PRODUCTS_DIR;
}; };
/* End PBXReferenceProxy section */ /* End PBXReferenceProxy section */
...@@ -573,8 +572,9 @@ ...@@ -573,8 +572,9 @@
isa = PBXResourcesBuildPhase; isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, D89EF3AD1CB586FE0029DCD6 /* Images.xcassets in Resources */,
13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, D89EF3BE1CB5871B0029DCD6 /* LaunchScreen.xib in Resources */,
D89EF3AE1CB586FE0029DCD6 /* Info.plist in Resources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -602,7 +602,7 @@ ...@@ -602,7 +602,7 @@
isa = PBXSourcesBuildPhase; isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
00E356F31AD99517003FC87E /* SmartNotificationsAppTests.m in Sources */, 00E356F31AD99517003FC87E /* NotificationsExampleAppTests.m in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -610,8 +610,8 @@ ...@@ -610,8 +610,8 @@
isa = PBXSourcesBuildPhase; isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, D89EF3AF1CB586FE0029DCD6 /* main.m in Sources */,
13B07FC11A68108700A75B9A /* main.m in Sources */, D89EF3AC1CB586FE0029DCD6 /* AppDelegate.m in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -620,19 +620,18 @@ ...@@ -620,19 +620,18 @@
/* Begin PBXTargetDependency section */ /* Begin PBXTargetDependency section */
00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
isa = PBXTargetDependency; isa = PBXTargetDependency;
target = 13B07F861A680F5B00A75B9A /* SmartNotificationsApp */; target = 13B07F861A680F5B00A75B9A /* NotificationsExampleApp */;
targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
}; };
/* End PBXTargetDependency section */ /* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */ /* Begin PBXVariantGroup section */
13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { D89EF3BC1CB5871B0029DCD6 /* LaunchScreen.xib */ = {
isa = PBXVariantGroup; isa = PBXVariantGroup;
children = ( children = (
13B07FB21A68108700A75B9A /* Base */, D89EF3BD1CB5871B0029DCD6 /* Base */,
); );
name = LaunchScreen.xib; name = LaunchScreen.xib;
path = SmartNotificationsApp;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
/* End PBXVariantGroup section */ /* End PBXVariantGroup section */
...@@ -650,12 +649,12 @@ ...@@ -650,12 +649,12 @@
"DEBUG=1", "DEBUG=1",
"$(inherited)", "$(inherited)",
); );
INFOPLIST_FILE = SmartNotificationsAppTests/Info.plist; INFOPLIST_FILE = NotificationsExampleAppTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.2; IPHONEOS_DEPLOYMENT_TARGET = 8.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SmartNotificationsApp.app/SmartNotificationsApp"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NotificationsExampleApp.app/NotificationsExampleApp";
}; };
name = Debug; name = Debug;
}; };
...@@ -668,12 +667,12 @@ ...@@ -668,12 +667,12 @@
"$(SDKROOT)/Developer/Library/Frameworks", "$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)", "$(inherited)",
); );
INFOPLIST_FILE = SmartNotificationsAppTests/Info.plist; INFOPLIST_FILE = NotificationsExampleAppTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.2; IPHONEOS_DEPLOYMENT_TARGET = 8.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SmartNotificationsApp.app/SmartNotificationsApp"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NotificationsExampleApp.app/NotificationsExampleApp";
}; };
name = Release; name = Release;
}; };
...@@ -688,13 +687,13 @@ ...@@ -688,13 +687,13 @@
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../node_modules/react-native/React/**", "$(SRCROOT)/../node_modules/react-native/React/**",
"$(SRCROOT)/../node_modules/react-native/Libraries/PushNotificationIOS/**", "$(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"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = "-ObjC"; OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "com.wix.smart-notifications-test-app"; PRODUCT_BUNDLE_IDENTIFIER = "com.wix.smart-notifications-test-app";
PRODUCT_NAME = SmartNotificationsApp; PRODUCT_NAME = NotificationsExampleApp;
}; };
name = Debug; name = Debug;
}; };
...@@ -708,13 +707,13 @@ ...@@ -708,13 +707,13 @@
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../node_modules/react-native/React/**", "$(SRCROOT)/../node_modules/react-native/React/**",
"$(SRCROOT)/../node_modules/react-native/Libraries/PushNotificationIOS/**", "$(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"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = "-ObjC"; OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "com.wix.smart-notifications-test-app"; PRODUCT_BUNDLE_IDENTIFIER = "com.wix.smart-notifications-test-app";
PRODUCT_NAME = SmartNotificationsApp; PRODUCT_NAME = NotificationsExampleApp;
}; };
name = Release; name = Release;
}; };
...@@ -808,7 +807,7 @@ ...@@ -808,7 +807,7 @@
/* End XCBuildConfiguration section */ /* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */ /* Begin XCConfigurationList section */
00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "SmartNotificationsAppTests" */ = { 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "NotificationsExampleAppTests" */ = {
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
00E356F61AD99517003FC87E /* Debug */, 00E356F61AD99517003FC87E /* Debug */,
...@@ -817,7 +816,7 @@ ...@@ -817,7 +816,7 @@
defaultConfigurationIsVisible = 0; defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release; defaultConfigurationName = Release;
}; };
13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "SmartNotificationsApp" */ = { 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "NotificationsExampleApp" */ = {
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
13B07F941A680F5B00A75B9A /* Debug */, 13B07F941A680F5B00A75B9A /* Debug */,
...@@ -826,7 +825,7 @@ ...@@ -826,7 +825,7 @@
defaultConfigurationIsVisible = 0; defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release; defaultConfigurationName = Release;
}; };
83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "SmartNotificationsApp" */ = { 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "NotificationsExampleApp" */ = {
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
83CBBA201A601CBA00E9B192 /* Debug */, 83CBBA201A601CBA00E9B192 /* Debug */,
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A" BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "SmartNotificationsApp.app" BuildableName = "NotificationsExampleApp.app"
BlueprintName = "SmartNotificationsApp" BlueprintName = "NotificationsExampleApp"
ReferencedContainer = "container:SmartNotificationsApp.xcodeproj"> ReferencedContainer = "container:NotificationsExampleApp.xcodeproj">
</BuildableReference> </BuildableReference>
</BuildActionEntry> </BuildActionEntry>
<BuildActionEntry <BuildActionEntry
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "00E356ED1AD99517003FC87E" BlueprintIdentifier = "00E356ED1AD99517003FC87E"
BuildableName = "SmartNotificationsAppTests.xctest" BuildableName = "NotificationsExampleAppTests.xctest"
BlueprintName = "SmartNotificationsAppTests" BlueprintName = "NotificationsExampleAppTests"
ReferencedContainer = "container:SmartNotificationsApp.xcodeproj"> ReferencedContainer = "container:NotificationsExampleApp.xcodeproj">
</BuildableReference> </BuildableReference>
</BuildActionEntry> </BuildActionEntry>
</BuildActionEntries> </BuildActionEntries>
...@@ -47,9 +47,9 @@ ...@@ -47,9 +47,9 @@
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "00E356ED1AD99517003FC87E" BlueprintIdentifier = "00E356ED1AD99517003FC87E"
BuildableName = "SmartNotificationsAppTests.xctest" BuildableName = "NotificationsExampleAppTests.xctest"
BlueprintName = "SmartNotificationsAppTests" BlueprintName = "NotificationsExampleAppTests"
ReferencedContainer = "container:SmartNotificationsApp.xcodeproj"> ReferencedContainer = "container:NotificationsExampleApp.xcodeproj">
</BuildableReference> </BuildableReference>
</TestableReference> </TestableReference>
</Testables> </Testables>
...@@ -57,9 +57,9 @@ ...@@ -57,9 +57,9 @@
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A" BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "SmartNotificationsApp.app" BuildableName = "NotificationsExampleApp.app"
BlueprintName = "SmartNotificationsApp" BlueprintName = "NotificationsExampleApp"
ReferencedContainer = "container:SmartNotificationsApp.xcodeproj"> ReferencedContainer = "container:NotificationsExampleApp.xcodeproj">
</BuildableReference> </BuildableReference>
</MacroExpansion> </MacroExpansion>
<AdditionalOptions> <AdditionalOptions>
...@@ -80,9 +80,9 @@ ...@@ -80,9 +80,9 @@
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A" BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "SmartNotificationsApp.app" BuildableName = "NotificationsExampleApp.app"
BlueprintName = "SmartNotificationsApp" BlueprintName = "NotificationsExampleApp"
ReferencedContainer = "container:SmartNotificationsApp.xcodeproj"> ReferencedContainer = "container:NotificationsExampleApp.xcodeproj">
</BuildableReference> </BuildableReference>
</BuildableProductRunnable> </BuildableProductRunnable>
<AdditionalOptions> <AdditionalOptions>
...@@ -99,9 +99,9 @@ ...@@ -99,9 +99,9 @@
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A" BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "SmartNotificationsApp.app" BuildableName = "NotificationsExampleApp.app"
BlueprintName = "SmartNotificationsApp" BlueprintName = "NotificationsExampleApp"
ReferencedContainer = "container:SmartNotificationsApp.xcodeproj"> ReferencedContainer = "container:NotificationsExampleApp.xcodeproj">
</BuildableReference> </BuildableReference>
</BuildableProductRunnable> </BuildableProductRunnable>
</ProfileAction> </ProfileAction>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#import "AppDelegate.h" #import "AppDelegate.h"
#import "RCTPushNotificationManager.h" #import "RCTPushNotificationManager.h"
#import "RCTRootView.h" #import "RCTRootView.h"
#import "SmartNotifications.h" #import "RNNotifications.h"
@implementation AppDelegate @implementation AppDelegate
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"SmartNotificationsApp" moduleName:@"NotificationsExampleApp"
initialProperties:nil initialProperties:nil
launchOptions:launchOptions]; launchOptions:launchOptions];
...@@ -72,13 +72,13 @@ ...@@ -72,13 +72,13 @@
// Required for the notification event. // Required for the notification event.
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification
{ {
[SmartNotifications didReceiveRemoteNotification:notification]; [RNNotifications didReceiveRemoteNotification:notification];
} }
// Required for the localNotification event. // Required for the localNotification event.
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
{ {
[SmartNotifications didReceiveLocalNotification:notification]; [RNNotifications didReceiveLocalNotification:notification];
} }
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/> <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="SmartNotificationsApp" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX"> <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="NotificationsExampleApp" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<rect key="frame" x="20" y="140" width="441" height="43"/> <rect key="frame" x="20" y="140" width="441" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/> <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
......
...@@ -29,16 +29,16 @@ ...@@ -29,16 +29,16 @@
</dict> </dict>
<key>NSLocationWhenInUseUsageDescription</key> <key>NSLocationWhenInUseUsageDescription</key>
<string></string> <string></string>
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
</array>
<key>UILaunchStoryboardName</key> <key>UILaunchStoryboardName</key>
<string>LaunchScreen</string> <string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key> <key>UIRequiredDeviceCapabilities</key>
<array> <array>
<string>armv7</string> <string>armv7</string>
</array> </array>
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
</array>
<key>UISupportedInterfaceOrientations</key> <key>UISupportedInterfaceOrientations</key>
<array> <array>
<string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortrait</string>
......
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
#define TIMEOUT_SECONDS 240 #define TIMEOUT_SECONDS 240
#define TEXT_TO_LOOK_FOR @"Welcome to React Native!" #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
@interface SmartNotificationsAppTests : XCTestCase @interface NotificationsExampleAppTests : XCTestCase
@end @end
@implementation SmartNotificationsAppTests @implementation NotificationsExampleAppTests
- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
{ {
......
{ {
"name": "SmartNotificationsApp", "name": "NotificationsExampleApp",
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
"dependencies": { "dependencies": {
"react": "^0.14.7", "react": "^0.14.7",
"react-native": "^0.22.2", "react-native": "^0.22.2",
"react-native-smart-notifications": "../" "react-native-notifications": "../"
} }
} }
/** /**
* @providesModule SmartNotifications * @providesModule RNNotifications
* @flow * @flow
*/ */
'use strict'; 'use strict';
import { NativeModules, DeviceEventEmitter } from 'react-native'; import { NativeModules, DeviceEventEmitter } from 'react-native';
import Map from 'core-js/library/es6/map'; import Map from 'core-js/library/es6/map';
var NativeSmartNotifications = NativeModules.SmartNotifications; var NativeRNNotifications = NativeModules.RNNotifications;
var DEVICE_NOTIFICATION_RECEIVED_FOREGROUND_EVENT = 'notificationReceivedForeground'; var DEVICE_NOTIFICATION_RECEIVED_FOREGROUND_EVENT = 'notificationReceivedForeground';
var DEVICE_NOTIFICATION_RECEIVED_BACKGROUND_EVENT = 'notificationReceivedBackground'; var DEVICE_NOTIFICATION_RECEIVED_BACKGROUND_EVENT = 'notificationReceivedBackground';
...@@ -13,7 +13,7 @@ var DEVICE_NOTIFICATION_OPENED_EVENT = 'notificationOpened'; ...@@ -13,7 +13,7 @@ var DEVICE_NOTIFICATION_OPENED_EVENT = 'notificationOpened';
var _notificationHandlers = new Map(); var _notificationHandlers = new Map();
class SmartNotificationsIOS { class NotificationsIOS {
/** /**
* Attaches a listener to remote notification events while the app is running * Attaches a listener to remote notification events while the app is running
* in the foreground or the background. * in the foreground or the background.
...@@ -58,4 +58,4 @@ class SmartNotificationsIOS { ...@@ -58,4 +58,4 @@ class SmartNotificationsIOS {
} }
} }
module.exports = SmartNotificationsIOS; module.exports = NotificationsIOS;
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"type": "git", "type": "git",
"url": "https://github.com/wix-private/react-native-notifications.git" "url": "https://github.com/wix-private/react-native-notifications.git"
}, },
"version": "0.0.1", "version": "0.0.2",
"description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android", "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android",
"keywords": [ "keywords": [
"react-component", "react-component",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment