Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-notifications
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
冷佳娟
react-native-notifications
Commits
28a28117
Commit
28a28117
authored
Jan 11, 2018
by
Amit Davidi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade lib and demo projects to RN 0.51
parent
bd4d6b7b
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
254 additions
and
186 deletions
+254
-186
RNNotifications/RNNotifications.h
RNNotifications/RNNotifications.h
+1
-5
RNNotifications/RNNotifications.m
RNNotifications/RNNotifications.m
+5
-13
android/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java
.../wix/reactnativenotifications/RNNotificationsPackage.java
+1
-8
android/src/main/java/com/wix/reactnativenotifications/core/NotificationIntentAdapter.java
...ctnativenotifications/core/NotificationIntentAdapter.java
+1
-2
example/android/myapplication/src/main/java/com/wix/reactnativenotifications/app/MainApplication.java
...com/wix/reactnativenotifications/app/MainApplication.java
+1
-1
example/android/send_notif.py
example/android/send_notif.py
+1
-0
example/ios/NotificationsExampleApp.xcodeproj/project.pbxproj
...ple/ios/NotificationsExampleApp.xcodeproj/project.pbxproj
+218
-115
example/ios/NotificationsExampleApp.xcodeproj/xcshareddata/xcschemes/NotificationsExampleApp.xcscheme
...j/xcshareddata/xcschemes/NotificationsExampleApp.xcscheme
+12
-20
example/ios/NotificationsExampleApp.xcodeproj/xcshareddata/xcschemes/SmartNotificationsApp.xcscheme
...roj/xcshareddata/xcschemes/SmartNotificationsApp.xcscheme
+12
-20
example/package.json
example/package.json
+2
-2
No files found.
RNNotifications/RNNotifications.h
View file @
28a28117
@import
UIKit
;
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif
#import <React/RCTBridgeModule.h>
#import <PushKit/PushKit.h>
@interface
RNNotifications
:
NSObject
<
RCTBridgeModule
>
...
...
RNNotifications/RNNotifications.m
View file @
28a28117
#import <UIKit/UIKit.h>
#import <PushKit/PushKit.h>
#if __has_include(<React/RCTBridge.h>)
#import <React/RCTBridge.h>
#import <React/RCTEventDispatcher.h>
#import "RNNotifications.h"
#import <React/RCTConvert.h>
#import <React/RCTUtils.h>
#else
#import "RCTBridge.h"
#import "RCTEventDispatcher.h"
#import "RNNotifications.h"
#import "RCTConvert.h"
#import "RCTUtils.h"
#endif
#import <React/RCTBridge.h>
#import <React/RCTEventDispatcher.h>
#import "RNNotifications.h"
#import <React/RCTConvert.h>
#import <React/RCTUtils.h>
#import "RNNotificationsBridgeQueue.h"
#import <UserNotifications/UserNotifications.h>
...
...
android/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java
View file @
28a28117
...
...
@@ -3,7 +3,6 @@ package com.wix.reactnativenotifications;
import
android.app.Application
;
import
com.facebook.react.ReactPackage
;
import
com.facebook.react.bridge.JavaScriptModule
;
import
com.facebook.react.bridge.NativeModule
;
import
com.facebook.react.bridge.ReactApplicationContext
;
import
com.facebook.react.uimanager.ViewManager
;
...
...
@@ -14,8 +13,7 @@ import java.util.List;
public
class
RNNotificationsPackage
implements
ReactPackage
{
final
Application
mApplication
;
private
final
Application
mApplication
;
public
RNNotificationsPackage
(
Application
application
)
{
mApplication
=
application
;
...
...
@@ -26,11 +24,6 @@ public class RNNotificationsPackage implements ReactPackage {
return
Arrays
.<
NativeModule
>
asList
(
new
RNNotificationsModule
(
mApplication
,
reactContext
));
}
// Deprecated from RN 0.47
public
List
<
Class
<?
extends
JavaScriptModule
>>
createJSModules
()
{
return
Collections
.
emptyList
();
}
@Override
public
List
<
ViewManager
>
createViewManagers
(
ReactApplicationContext
reactContext
)
{
return
Collections
.
emptyList
();
...
...
android/src/main/java/com/wix/reactnativenotifications/core/NotificationIntentAdapter.java
View file @
28a28117
...
...
@@ -8,12 +8,11 @@ import android.os.Bundle;
import
com.wix.reactnativenotifications.core.notification.PushNotificationProps
;
public
class
NotificationIntentAdapter
{
private
static
final
int
PENDING_INTENT_CODE
=
0
;
private
static
final
String
PUSH_NOTIFICATION_EXTRA_NAME
=
"pushNotification"
;
public
static
PendingIntent
createPendingNotificationIntent
(
Context
appContext
,
Intent
intent
,
PushNotificationProps
notification
)
{
intent
.
putExtra
(
PUSH_NOTIFICATION_EXTRA_NAME
,
notification
.
asBundle
());
return
PendingIntent
.
getService
(
appContext
,
PENDING_INTENT_CODE
,
intent
,
PendingIntent
.
FLAG_ONE_SHOT
);
return
PendingIntent
.
getService
(
appContext
,
(
int
)
System
.
currentTimeMillis
()
,
intent
,
PendingIntent
.
FLAG_ONE_SHOT
);
}
public
static
Bundle
extractPendingNotificationDataFromIntent
(
Intent
intent
)
{
...
...
example/android/myapplication/src/main/java/com/wix/reactnativenotifications/app/MainApplication.java
View file @
28a28117
...
...
@@ -15,7 +15,7 @@ public class MainApplication extends Application implements ReactApplication {
private
final
ReactNativeHost
mReactNativeHost
=
new
ReactNativeHost
(
this
)
{
@Override
p
rotected
boolean
getUseDeveloperSupport
()
{
p
ublic
boolean
getUseDeveloperSupport
()
{
return
BuildConfig
.
DEBUG
;
}
...
...
example/android/send_notif.py
100644 → 100755
View file @
28a28117
#!/usr/bin/python
from
urllib2
import
*
import
json
import
sys
...
...
example/ios/NotificationsExampleApp.xcodeproj/project.pbxproj
View file @
28a28117
...
...
@@ -12,7 +12,6 @@
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
/* 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 */
;
};
...
...
@@ -20,7 +19,6 @@
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 */
;
};
140ED2AC1D01E1AD002B40FF
/* 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 */
;
};
D85498D21D97B37F00DEEE06
/* libRNNotifications.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
D85498D11D97B31100DEEE06
/* libRNNotifications.a */
;
};
...
...
@@ -62,13 +60,6 @@
remoteGlobalIDString
=
832C81801AAF6DEF007FA2F7
;
remoteInfo
=
RCTVibration
;
};
00E356F41AD99517003FC87E
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
83CBB9F71A601CBA00E9B192
/* Project object */
;
proxyType
=
1
;
remoteGlobalIDString
=
13B07F861A680F5B00A75B9A
;
remoteInfo
=
NotificationsExampleApp
;
};
139105C01AF99BAD00B5F7CC
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
139105B61AF99BAD00B5F7CC
/* RCTSettings.xcodeproj */
;
...
...
@@ -90,6 +81,104 @@
remoteGlobalIDString
=
83CBBA2E1A601D0E00E9B192
;
remoteInfo
=
React
;
};
18B5569B2007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
139FDEE61B06529A00C62182
/* RCTWebSocket.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
3DBE0D001F3B181A0099AA32
;
remoteInfo
=
fishhook
;
};
18B5569D2007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
139FDEE61B06529A00C62182
/* RCTWebSocket.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
3DBE0D0D1F3B181C0099AA32
;
remoteInfo
=
"fishhook-tvOS"
;
};
18B556AD2007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
3D3C059A1DE3340900C268FA
;
remoteInfo
=
yoga
;
};
18B556AF2007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
3D3C06751DE3340C00C268FA
;
remoteInfo
=
"yoga-tvOS"
;
};
18B556B12007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
3D3CD9251DE5FBEC00167DC4
;
remoteInfo
=
cxxreact
;
};
18B556B32007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
3D3CD9321DE5FBEE00167DC4
;
remoteInfo
=
"cxxreact-tvOS"
;
};
18B556B52007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
3D3CD90B1DE5FBD600167DC4
;
remoteInfo
=
jschelpers
;
};
18B556B72007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
3D3CD9181DE5FBD800167DC4
;
remoteInfo
=
"jschelpers-tvOS"
;
};
18B556B92007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
139D7ECE1E25DB7D00323FB7
;
remoteInfo
=
"third-party"
;
};
18B556BB2007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
3D383D3C1EBD27B6005632C8
;
remoteInfo
=
"third-party-tvOS"
;
};
18B556BD2007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
139D7E881E25C6D100323FB7
;
remoteInfo
=
"double-conversion"
;
};
18B556BF2007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
3D383D621EBD27B9005632C8
;
remoteInfo
=
"double-conversion-tvOS"
;
};
18B556C12007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
9936F3131F5F2E4B0010BF04
;
remoteInfo
=
privatedata
;
};
18B556C32007789B007ACD82
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
146833FF1AC3E56700842450
/* React.xcodeproj */
;
proxyType
=
2
;
remoteGlobalIDString
=
9936F32F1F5F2E5B0010BF04
;
remoteInfo
=
"privatedata-tvOS"
;
};
18BA9BF01DEC2288001F416D
/* PBXContainerItemProxy */
=
{
isa
=
PBXContainerItemProxy
;
containerPortal
=
00C302BB1ABCB91800DB3ED1
/* RCTImage.xcodeproj */
;
...
...
@@ -169,7 +258,6 @@
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>"
;
};
00C302DF1ABCB9EE00DB3ED1
/* RCTVibration.xcodeproj */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.pb-project"
;
name
=
RCTVibration.xcodeproj
;
path
=
"../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"
;
sourceTree
=
"<group>"
;
};
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>"
;
};
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>"
;
};
...
...
@@ -188,14 +276,6 @@
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
00E356EB1AD99517003FC87E
/* Frameworks */
=
{
isa
=
PBXFrameworksBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
140ED2AC1D01E1AD002B40FF
/* libReact.a in Frameworks */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
13B07F8C1A680F5B00A75B9A
/* Frameworks */
=
{
isa
=
PBXFrameworksBuildPhase
;
buildActionMask
=
2147483647
;
...
...
@@ -290,6 +370,8 @@
children
=
(
139FDEF41B06529B00C62182
/* libRCTWebSocket.a */
,
18BA9C061DEC2288001F416D
/* libRCTWebSocket-tvOS.a */
,
18B5569C2007789B007ACD82
/* libfishhook.a */
,
18B5569E2007789B007ACD82
/* libfishhook-tvOS.a */
,
);
name
=
Products
;
sourceTree
=
"<group>"
;
...
...
@@ -312,7 +394,19 @@
isa
=
PBXGroup
;
children
=
(
146834041AC3E56700842450
/* libReact.a */
,
18BA9C0A1DEC2288001F416D
/* libReact-tvOS.a */
,
18BA9C0A1DEC2288001F416D
/* libReact.a */
,
18B556AE2007789B007ACD82
/* libyoga.a */
,
18B556B02007789B007ACD82
/* libyoga.a */
,
18B556B22007789B007ACD82
/* libcxxreact.a */
,
18B556B42007789B007ACD82
/* libcxxreact.a */
,
18B556B62007789B007ACD82
/* libjschelpers.a */
,
18B556B82007789B007ACD82
/* libjschelpers.a */
,
18B556BA2007789B007ACD82
/* libthird-party.a */
,
18B556BC2007789B007ACD82
/* libthird-party.a */
,
18B556BE2007789B007ACD82
/* libdouble-conversion.a */
,
18B556C02007789B007ACD82
/* libdouble-conversion.a */
,
18B556C22007789B007ACD82
/* libprivatedata.a */
,
18B556C42007789B007ACD82
/* libprivatedata-tvOS.a */
,
);
name
=
Products
;
sourceTree
=
"<group>"
;
...
...
@@ -369,7 +463,6 @@
isa
=
PBXGroup
;
children
=
(
13B07F961A680F5B00A75B9A
/* NotificationsExampleApp.app */
,
00E356EE1AD99517003FC87E
/* NotificationsExampleAppTests.xctest */
,
);
name
=
Products
;
sourceTree
=
"<group>"
;
...
...
@@ -385,24 +478,6 @@
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
00E356ED1AD99517003FC87E
/* NotificationsExampleAppTests */
=
{
isa
=
PBXNativeTarget
;
buildConfigurationList
=
00E357021AD99517003FC87E
/* Build configuration list for PBXNativeTarget "NotificationsExampleAppTests" */
;
buildPhases
=
(
00E356EA1AD99517003FC87E
/* Sources */
,
00E356EB1AD99517003FC87E
/* Frameworks */
,
00E356EC1AD99517003FC87E
/* Resources */
,
);
buildRules
=
(
);
dependencies
=
(
00E356F51AD99517003FC87E
/* PBXTargetDependency */
,
);
name
=
NotificationsExampleAppTests
;
productName
=
NotificationsExampleAppTests
;
productReference
=
00E356EE1AD99517003FC87E
/* NotificationsExampleAppTests.xctest */
;
productType
=
"com.apple.product-type.bundle.unit-test"
;
};
13B07F861A680F5B00A75B9A
/* NotificationsExampleApp */
=
{
isa
=
PBXNativeTarget
;
buildConfigurationList
=
13B07F931A680F5B00A75B9A
/* Build configuration list for PBXNativeTarget "NotificationsExampleApp" */
;
...
...
@@ -429,12 +504,6 @@
attributes
=
{
LastUpgradeCheck
=
0810
;
ORGANIZATIONNAME
=
Facebook
;
TargetAttributes
=
{
00E356ED1AD99517003FC87E
=
{
CreatedOnToolsVersion
=
6.2
;
TestTargetID
=
13B07F861A680F5B00A75B9A
;
};
};
};
buildConfigurationList
=
83CBB9FA1A601CBA00E9B192
/* Build configuration list for PBXProject "NotificationsExampleApp" */
;
compatibilityVersion
=
"Xcode 3.2"
;
...
...
@@ -496,7 +565,6 @@
projectRoot
=
""
;
targets
=
(
13B07F861A680F5B00A75B9A
/* NotificationsExampleApp */
,
00E356ED1AD99517003FC87E
/* NotificationsExampleAppTests */
,
);
};
/* End PBXProject section */
...
...
@@ -558,6 +626,104 @@
remoteRef
=
146834031AC3E56700842450
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B5569C2007789B007ACD82
/* libfishhook.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
libfishhook.a
;
remoteRef
=
18B5569B2007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B5569E2007789B007ACD82
/* libfishhook-tvOS.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
"libfishhook-tvOS.a"
;
remoteRef
=
18B5569D2007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556AE2007789B007ACD82
/* libyoga.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
libyoga.a
;
remoteRef
=
18B556AD2007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556B02007789B007ACD82
/* libyoga.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
libyoga.a
;
remoteRef
=
18B556AF2007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556B22007789B007ACD82
/* libcxxreact.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
libcxxreact.a
;
remoteRef
=
18B556B12007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556B42007789B007ACD82
/* libcxxreact.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
libcxxreact.a
;
remoteRef
=
18B556B32007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556B62007789B007ACD82
/* libjschelpers.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
libjschelpers.a
;
remoteRef
=
18B556B52007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556B82007789B007ACD82
/* libjschelpers.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
libjschelpers.a
;
remoteRef
=
18B556B72007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556BA2007789B007ACD82
/* libthird-party.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
"libthird-party.a"
;
remoteRef
=
18B556B92007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556BC2007789B007ACD82
/* libthird-party.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
"libthird-party.a"
;
remoteRef
=
18B556BB2007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556BE2007789B007ACD82
/* libdouble-conversion.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
"libdouble-conversion.a"
;
remoteRef
=
18B556BD2007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556C02007789B007ACD82
/* libdouble-conversion.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
"libdouble-conversion.a"
;
remoteRef
=
18B556BF2007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556C22007789B007ACD82
/* libprivatedata.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
libprivatedata.a
;
remoteRef
=
18B556C12007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18B556C42007789B007ACD82
/* libprivatedata-tvOS.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
"libprivatedata-tvOS.a"
;
remoteRef
=
18B556C32007789B007ACD82
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18BA9BF11DEC2288001F416D
/* libRCTImage-tvOS.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
...
...
@@ -600,10 +766,10 @@
remoteRef
=
18BA9C051DEC2288001F416D
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
18BA9C0A1DEC2288001F416D
/* libReact
-tvOS
.a */
=
{
18BA9C0A1DEC2288001F416D
/* libReact.a */
=
{
isa
=
PBXReferenceProxy
;
fileType
=
archive.ar
;
path
=
"libReact-tvOS.a"
;
path
=
libReact.a
;
remoteRef
=
18BA9C091DEC2288001F416D
/* PBXContainerItemProxy */
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
...
...
@@ -631,13 +797,6 @@
/* End PBXReferenceProxy section */
/* Begin PBXResourcesBuildPhase section */
00E356EC1AD99517003FC87E
/* Resources */
=
{
isa
=
PBXResourcesBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
);
runOnlyForDeploymentPostprocessing
=
0
;
};
13B07F8E1A680F5B00A75B9A
/* Resources */
=
{
isa
=
PBXResourcesBuildPhase
;
buildActionMask
=
2147483647
;
...
...
@@ -662,19 +821,11 @@
);
runOnlyForDeploymentPostprocessing
=
0
;
shellPath
=
/bin/sh
;
shellScript
=
"export NODE_BINARY=node\n../node_modules/react-native/
packager
/react-native-xcode.sh"
;
shellScript
=
"export NODE_BINARY=node\n../node_modules/react-native/
scripts
/react-native-xcode.sh"
;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
00E356EA1AD99517003FC87E
/* Sources */
=
{
isa
=
PBXSourcesBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
00E356F31AD99517003FC87E
/* NotificationsExampleAppTests.m in Sources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
13B07F871A680F5B00A75B9A
/* Sources */
=
{
isa
=
PBXSourcesBuildPhase
;
buildActionMask
=
2147483647
;
...
...
@@ -686,14 +837,6 @@
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
00E356F51AD99517003FC87E
/* PBXTargetDependency */
=
{
isa
=
PBXTargetDependency
;
target
=
13B07F861A680F5B00A75B9A
/* NotificationsExampleApp */
;
targetProxy
=
00E356F41AD99517003FC87E
/* PBXContainerItemProxy */
;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
13B07FB11A68108700A75B9A
/* LaunchScreen.xib */
=
{
isa
=
PBXVariantGroup
;
...
...
@@ -707,37 +850,6 @@
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
00E356F61AD99517003FC87E
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
BUNDLE_LOADER
=
"$(TEST_HOST)"
;
GCC_PREPROCESSOR_DEFINITIONS
=
(
"DEBUG=1"
,
"$(inherited)"
,
);
INFOPLIST_FILE
=
NotificationsExampleAppTests/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
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)/NotificationsExampleApp.app/NotificationsExampleApp"
;
};
name
=
Debug
;
};
00E356F71AD99517003FC87E
/* Release */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
BUNDLE_LOADER
=
"$(TEST_HOST)"
;
COPY_PHASE_STRIP
=
NO
;
INFOPLIST_FILE
=
NotificationsExampleAppTests/Info.plist
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
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)/NotificationsExampleApp.app/NotificationsExampleApp"
;
};
name
=
Release
;
};
13B07F941A680F5B00A75B9A
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
...
...
@@ -748,7 +860,7 @@
"$(inherited)"
,
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
,
"$(SRCROOT)/../node_modules/react-native/React/**"
,
"$(SRCROOT)/../node_modules/react-native-notifications/**"
,
"$(SRCROOT)/../node_modules/react-native-notifications/
RNNotifications/
**"
,
);
INFOPLIST_FILE
=
NotificationsExampleApp/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
...
...
@@ -772,7 +884,7 @@
"$(inherited)"
,
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
,
"$(SRCROOT)/../node_modules/react-native/React/**"
,
"$(SRCROOT)/../node_modules/react-native-notifications/**"
,
"$(SRCROOT)/../node_modules/react-native-notifications/
RNNotifications/
**"
,
);
INFOPLIST_FILE
=
NotificationsExampleApp/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
...
...
@@ -830,7 +942,7 @@
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
,
"$(SRCROOT)/../node_modules/react-native/React/**"
,
);
IPHONEOS_DEPLOYMENT_TARGET
=
8
.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
9
.0
;
MTL_ENABLE_DEBUG_INFO
=
YES
;
ONLY_ACTIVE_ARCH
=
YES
;
SDKROOT
=
iphoneos
;
...
...
@@ -873,7 +985,7 @@
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
,
"$(SRCROOT)/../node_modules/react-native/React/**"
,
);
IPHONEOS_DEPLOYMENT_TARGET
=
8
.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
9
.0
;
MTL_ENABLE_DEBUG_INFO
=
NO
;
SDKROOT
=
iphoneos
;
VALIDATE_PRODUCT
=
YES
;
...
...
@@ -883,15 +995,6 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
00E357021AD99517003FC87E
/* Build configuration list for PBXNativeTarget "NotificationsExampleAppTests" */
=
{
isa
=
XCConfigurationList
;
buildConfigurations
=
(
00E356F61AD99517003FC87E
/* Debug */
,
00E356F71AD99517003FC87E
/* Release */
,
);
defaultConfigurationIsVisible
=
0
;
defaultConfigurationName
=
Release
;
};
13B07F931A680F5B00A75B9A
/* Build configuration list for PBXNativeTarget "NotificationsExampleApp" */
=
{
isa
=
XCConfigurationList
;
buildConfigurations
=
(
...
...
example/ios/NotificationsExampleApp.xcodeproj/xcshareddata/xcschemes/NotificationsExampleApp.xcscheme
View file @
28a28117
...
...
@@ -3,7 +3,7 @@
LastUpgradeVersion =
"0810"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"
YES
"
parallelizeBuildables =
"
NO
"
buildImplicitDependencies =
"YES"
>
<BuildActionEntries>
<BuildActionEntry
...
...
@@ -14,23 +14,23 @@
buildForAnalyzing =
"YES"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
13B07F861A680F5B00A75B9A
"
BuildableName =
"
NotificationsExampleApp.app
"
BlueprintName =
"
NotificationsExampleApp
"
ReferencedContainer =
"container:
NotificationsExampleApp
.xcodeproj"
>
BlueprintIdentifier =
"
83CBBA2D1A601D0E00E9B192
"
BuildableName =
"
libReact.a
"
BlueprintName =
"
React
"
ReferencedContainer =
"container:
../node_modules/react-native/React/React
.xcodeproj"
>
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting =
"YES"
buildForRunning =
"YES"
buildForProfiling =
"
NO
"
buildForArchiving =
"
NO
"
buildForProfiling =
"
YES
"
buildForArchiving =
"
YES
"
buildForAnalyzing =
"YES"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
00E356ED1AD99517003FC87E
"
BuildableName =
"NotificationsExampleApp
Tests.xctest
"
BlueprintName =
"NotificationsExampleApp
Tests
"
BlueprintIdentifier =
"
13B07F861A680F5B00A75B9A
"
BuildableName =
"NotificationsExampleApp
.app
"
BlueprintName =
"NotificationsExampleApp"
ReferencedContainer =
"container:NotificationsExampleApp.xcodeproj"
>
</BuildableReference>
</BuildActionEntry>
...
...
@@ -40,18 +40,9 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
<TestableReference
skipped =
"NO"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"00E356ED1AD99517003FC87E"
BuildableName =
"NotificationsExampleAppTests.xctest"
BlueprintName =
"NotificationsExampleAppTests"
ReferencedContainer =
"container:NotificationsExampleApp.xcodeproj"
>
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
...
...
@@ -69,6 +60,7 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
ignoresPersistentStateOnLaunch =
"NO"
...
...
example/ios/NotificationsExampleApp.xcodeproj/xcshareddata/xcschemes/SmartNotificationsApp.xcscheme
View file @
28a28117
...
...
@@ -3,7 +3,7 @@
LastUpgradeVersion =
"0810"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"
YES
"
parallelizeBuildables =
"
NO
"
buildImplicitDependencies =
"YES"
>
<BuildActionEntries>
<BuildActionEntry
...
...
@@ -14,23 +14,23 @@
buildForAnalyzing =
"YES"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
13B07F861A680F5B00A75B9A
"
BuildableName =
"
NotificationsExampleApp.app
"
BlueprintName =
"
NotificationsExampleApp
"
ReferencedContainer =
"container:
NotificationsExampleApp
.xcodeproj"
>
BlueprintIdentifier =
"
83CBBA2D1A601D0E00E9B192
"
BuildableName =
"
libReact.a
"
BlueprintName =
"
React
"
ReferencedContainer =
"container:
../node_modules/react-native/React/React
.xcodeproj"
>
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting =
"YES"
buildForRunning =
"YES"
buildForProfiling =
"
NO
"
buildForArchiving =
"
NO
"
buildForProfiling =
"
YES
"
buildForArchiving =
"
YES
"
buildForAnalyzing =
"YES"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"
00E356ED1AD99517003FC87E
"
BuildableName =
"NotificationsExampleApp
Tests.xctest
"
BlueprintName =
"NotificationsExampleApp
Tests
"
BlueprintIdentifier =
"
13B07F861A680F5B00A75B9A
"
BuildableName =
"NotificationsExampleApp
.app
"
BlueprintName =
"NotificationsExampleApp"
ReferencedContainer =
"container:NotificationsExampleApp.xcodeproj"
>
</BuildableReference>
</BuildActionEntry>
...
...
@@ -40,18 +40,9 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
<TestableReference
skipped =
"NO"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"00E356ED1AD99517003FC87E"
BuildableName =
"NotificationsExampleAppTests.xctest"
BlueprintName =
"NotificationsExampleAppTests"
ReferencedContainer =
"container:NotificationsExampleApp.xcodeproj"
>
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
...
...
@@ -69,6 +60,7 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
ignoresPersistentStateOnLaunch =
"NO"
...
...
example/package.json
View file @
28a28117
...
...
@@ -7,8 +7,8 @@
},
"dependencies"
:
{
"babel-preset-react-native-stage-0"
:
"^1.0.1"
,
"react"
:
"1
5.4.1
"
,
"react-native"
:
"0.
38
.0"
,
"react"
:
"1
6.0.0
"
,
"react-native"
:
"0.
51
.0"
,
"react-native-notifications"
:
"../"
},
"babel"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment