From 75acd27b7afa29ea50be6c74f38b86079582f9a4 Mon Sep 17 00:00:00 2001 From: berkcaputcu Date: Sun, 20 Sep 2015 15:45:40 -0400 Subject: [PATCH 1/2] move iOS specific files to iOS folder --- .../RNEventSource.xcodeproj}/project.pbxproj | 8 ++++---- .../project.xcworkspace/contents.xcworkspacedata | 0 {RNEventSource => iOS/RNEventSource}/EventSource.h | 0 {RNEventSource => iOS/RNEventSource}/EventSource.m | 0 {RNEventSource => iOS/RNEventSource}/RNEventSource.h | 0 {RNEventSource => iOS/RNEventSource}/RNEventSource.m | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename {RNEventSource.xcodeproj => iOS/RNEventSource.xcodeproj}/project.pbxproj (98%) rename {RNEventSource.xcodeproj => iOS/RNEventSource.xcodeproj}/project.xcworkspace/contents.xcworkspacedata (100%) rename {RNEventSource => iOS/RNEventSource}/EventSource.h (100%) rename {RNEventSource => iOS/RNEventSource}/EventSource.m (100%) rename {RNEventSource => iOS/RNEventSource}/RNEventSource.h (100%) rename {RNEventSource => iOS/RNEventSource}/RNEventSource.m (100%) diff --git a/RNEventSource.xcodeproj/project.pbxproj b/iOS/RNEventSource.xcodeproj/project.pbxproj similarity index 98% rename from RNEventSource.xcodeproj/project.pbxproj rename to iOS/RNEventSource.xcodeproj/project.pbxproj index f293e85..7b8facf 100644 --- a/RNEventSource.xcodeproj/project.pbxproj +++ b/iOS/RNEventSource.xcodeproj/project.pbxproj @@ -295,8 +295,8 @@ isa = XCBuildConfiguration; buildSettings = { HEADER_SEARCH_PATHS = ( - "$(SRCROOT)/../react-native/React/**", - "$(SRCROOT)/node_modules/react-native/React/**", + "$(SRCROOT)/../../react-native/React/**", + "$(SRCROOT)/../node_modules/react-native/React/**", ); OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -308,8 +308,8 @@ isa = XCBuildConfiguration; buildSettings = { HEADER_SEARCH_PATHS = ( - "$(SRCROOT)/../react-native/React/**", - "$(SRCROOT)/node_modules/react-native/React/**", + "$(SRCROOT)/../../react-native/React/**", + "$(SRCROOT)/../node_modules/react-native/React/**", ); OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/RNEventSource.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/iOS/RNEventSource.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from RNEventSource.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to iOS/RNEventSource.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/RNEventSource/EventSource.h b/iOS/RNEventSource/EventSource.h similarity index 100% rename from RNEventSource/EventSource.h rename to iOS/RNEventSource/EventSource.h diff --git a/RNEventSource/EventSource.m b/iOS/RNEventSource/EventSource.m similarity index 100% rename from RNEventSource/EventSource.m rename to iOS/RNEventSource/EventSource.m diff --git a/RNEventSource/RNEventSource.h b/iOS/RNEventSource/RNEventSource.h similarity index 100% rename from RNEventSource/RNEventSource.h rename to iOS/RNEventSource/RNEventSource.h diff --git a/RNEventSource/RNEventSource.m b/iOS/RNEventSource/RNEventSource.m similarity index 100% rename from RNEventSource/RNEventSource.m rename to iOS/RNEventSource/RNEventSource.m From ee1350417021ae2a2e978099ae7e20439c38b4b4 Mon Sep 17 00:00:00 2001 From: berkcaputcu Date: Thu, 24 Sep 2015 10:01:29 -0400 Subject: [PATCH 2/2] update readme with regards to new iOS folder --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a8beaa7..562b9c5 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ $ npm install react-native-event-source --save ``` In XCode add the library from -`node_modules/react-native-event-source/RNEventSource.xcodeproj` to your project +`node_modules/react-native-event-source/iOS/RNEventSource.xcodeproj` to your project then add `libRNEventSource` to your project's __Build Phase__ > __Link Binary With Libraries__ list.