From bbb78df07637623654e147cde7f3643e877f4b1d Mon Sep 17 00:00:00 2001 From: Tadeu Zagallo Date: Wed, 25 Mar 2015 22:09:45 -0700 Subject: [PATCH] [React Native] Add CocoaPods spec --- Libraries/Image/RCTNetworkImage.podspec | 28 --------- Libraries/Network/RCTDataManager.podspec | 28 --------- Libraries/Text/RCTText.podspec | 28 --------- React.podspec | 79 ++++++++++++++++++++++++ ReactKit/ReactKit.podspec | 16 ----- 5 files changed, 79 insertions(+), 100 deletions(-) delete mode 100644 Libraries/Image/RCTNetworkImage.podspec delete mode 100644 Libraries/Network/RCTDataManager.podspec delete mode 100644 Libraries/Text/RCTText.podspec create mode 100644 React.podspec delete mode 100644 ReactKit/ReactKit.podspec diff --git a/Libraries/Image/RCTNetworkImage.podspec b/Libraries/Image/RCTNetworkImage.podspec deleted file mode 100644 index 47eb0e5f6..000000000 --- a/Libraries/Image/RCTNetworkImage.podspec +++ /dev/null @@ -1,28 +0,0 @@ -Pod::Spec.new do |spec| - spec.name = 'RCTNetworkImage' - spec.version = '0.0.1' - spec.summary = 'Provides basic Text capabilities in ReactNative apps.' - spec.description = <<-DESC - Text can be rendered in ReactNative apps with the component using this module. - DESC - spec.homepage = 'https://facebook.github.io/react-native/' - spec.license = { :type => 'BSD' } - spec.author = 'Facebook' - spec.platform = :ios, '7.0' - spec.requires_arc = true - spec.source_files = '**/*.{h,m,c}' - spec.dependency "ReactKit", "~> 0.0.1" - - # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # Link your library with frameworks, or libraries. Libraries do not include - # the lib prefix of their name. - # - - # s.framework = "SomeFramework" - # s.frameworks = "SomeFramework", "AnotherFramework" - - # s.library = "iconv" - #spec.libraries = "RCTNetworkImage", "ReactKit" - -end diff --git a/Libraries/Network/RCTDataManager.podspec b/Libraries/Network/RCTDataManager.podspec deleted file mode 100644 index 84df787b8..000000000 --- a/Libraries/Network/RCTDataManager.podspec +++ /dev/null @@ -1,28 +0,0 @@ -Pod::Spec.new do |spec| - spec.name = 'RCTDataManager' - spec.version = '0.0.1' - spec.summary = 'Provides basic networking capabilities in ReactNative apps.' - spec.description = <<-DESC - Use XMLHttpRequest to fetch data over the network. - DESC - spec.homepage = 'https://facebook.github.io/react-native/' - spec.license = { :type => 'BSD' } - spec.author = 'Facebook' - spec.platform = :ios, '7.0' - spec.requires_arc = true - spec.source_files = '**/*.{h,m,c}' - spec.dependency "ReactKit", "~> 0.0.1" - - # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # Link your library with frameworks, or libraries. Libraries do not include - # the lib prefix of their name. - # - - # s.framework = "SomeFramework" - # s.frameworks = "SomeFramework", "AnotherFramework" - - # s.library = "iconv" - #spec.libraries = "RCTDataManager", "ReactKit" - -end diff --git a/Libraries/Text/RCTText.podspec b/Libraries/Text/RCTText.podspec deleted file mode 100644 index 656e0ee74..000000000 --- a/Libraries/Text/RCTText.podspec +++ /dev/null @@ -1,28 +0,0 @@ -Pod::Spec.new do |spec| - spec.name = 'RCTText' - spec.version = '0.0.1' - spec.summary = 'Provides basic Text capabilities in ReactNative apps.' - spec.description = <<-DESC - Text can be rendered in ReactNative apps with the component using this module. - DESC - spec.homepage = 'https://facebook.github.io/react-native/' - spec.license = { :type => 'BSD' } - spec.author = 'Facebook' - spec.platform = :ios, '7.0' - spec.requires_arc = true - spec.source_files = '**/*.{h,m,c}' - spec.dependency "ReactKit", "~> 0.0.1" - - # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # Link your library with frameworks, or libraries. Libraries do not include - # the lib prefix of their name. - # - - # s.framework = "SomeFramework" - # s.frameworks = "SomeFramework", "AnotherFramework" - - # s.library = "iconv" - #spec.libraries = "RCTText", "ReactKit" - -end diff --git a/React.podspec b/React.podspec new file mode 100644 index 000000000..102051998 --- /dev/null +++ b/React.podspec @@ -0,0 +1,79 @@ +Pod::Spec.new do |s| + s.name = "React" + s.version = "0.1.0" + s.summary = "Build high quality mobile apps using React." + s.description= <<-DESC + React Native apps are built using the React JS framework, + and render directly to native UIKit elements using a fully + asynchronous architecture. There is no browser and no HTML. + We have picked what we think is the best set of features from + these and other technologies to build what we hope to become + the best product development framework available, with an + emphasis on iteration speed, developer delight, continuity + of technology, and absolutely beautiful and fast products + with no compromises in quality or capability. + DESC + s.homepage = "http://facebook.github.io/react-native/" + s.license = "BSD" + s.author = "Facebook" + s.platform = :ios, "7.0" + s.source = { :git => "https://github.com/facebook/react-native.git", :tag => "v#{s.version}" } + s.source_files = "ReactKit/**/*.{c,h,m}" + s.resources = "Resources/*.png" + s.preserve_paths = "cli.js", "Libraries/**/*.js", "lint", "linter.js", "node_modules", "package.json", "packager", "PATENTS", "react-native-cli" + s.exclude_files = "**/__tests__/*", "IntegrationTests/*" + s.frameworks = "JavaScriptCore" + s.requires_arc = true + s.prepare_command = 'npm install' + s.libraries = 'libicucore' + s.xcconfig = { 'OTHER_LDFLAGS' => '-lObjC' } + + s.subspec 'RCTActionSheet' do |ss| + ss.source_files = "Libraries/ActionSheetIOS/*.{h,m}" + ss.preserve_paths = "Libraries/ActionSheetIOS/*.js" + end + + s.subspec 'RCTAdSupport' do |ss| + ss.source_files = "Libraries/RCTAdSupport/*.{h,m}" + ss.preserve_paths = "Libraries/RCTAdSupport/*.js" + end + + s.subspec 'RCTAnimation' do |ss| + ss.source_files = "Libraries/Animation/*.{h,m}" + ss.preserve_paths = "Libraries/Animation/*.js" + end + + s.subspec 'RCTGeolocation' do |ss| + ss.source_files = "Libraries/Geolocation/*.{h,m}" + ss.preserve_paths = "Libraries/Geolocation/*.js" + end + + s.subspec 'RCTImage' do |ss| + ss.source_files = "Libraries/Image/*.{h,m}" + ss.preserve_paths = "Libraries/Image/*.js" + end + + s.subspec 'RCTNetwork' do |ss| + ss.source_files = "Libraries/Network/*.{h,m}" + ss.preserve_paths = "Libraries/Network/*.js" + end + + s.subspec 'RCTPushNotification' do |ss| + ss.source_files = "Libraries/PushNotificationIOS/*.{h,m}" + ss.preserve_paths = "Libraries/PushNotificationIOS/*.js" + end + + s.subspec 'RCTWebSocketDebugger' do |ss| + ss.source_files = "Libraries/RCTWebSocketDebugger/*.{h,m}" + end + + s.subspec 'RCTText' do |ss| + ss.source_files = "Libraries/Text/*.{h,m}" + ss.preserve_paths = "Libraries/Text/*.js" + end + + s.subspec 'RCTVibration' do |ss| + ss.source_files = "Libraries/Vibration/*.{h,m}" + ss.preserve_paths = "Libraries/Vibration/*.js" + end +end diff --git a/ReactKit/ReactKit.podspec b/ReactKit/ReactKit.podspec deleted file mode 100644 index 3e1a8a6e2..000000000 --- a/ReactKit/ReactKit.podspec +++ /dev/null @@ -1,16 +0,0 @@ -Pod::Spec.new do |spec| - spec.name = 'ReactKit' - spec.version = '0.0.1' - spec.summary = 'An implementation of React that targets UIKit for iOS' - spec.description = <<-DESC - Our first React Native implementation is ReactKit, targeting iOS. We are also working on an Android implementation which we will release later. ReactKit apps are built using the React JS framework, and render directly to native UIKit elements using a fully asynchronous architecture. There is no browser and no HTML. We have picked what we think is the best set of features from these and other technologies to build what we hope to become the best product development framework available, with an emphasis on iteration speed, developer delight, continuity of technology, and absolutely beautiful and fast products with no compromises in quality or capability. - DESC - spec.homepage = 'https://facebook.github.io/react-native/' - spec.license = { :type => 'BSD' } - spec.author = 'Facebook' - spec.platform = :ios, '7.0' - spec.requires_arc = true - spec.source_files = '**/*.{h,m,c}' - spec.public_header_files = "**/*.h" - #spec.library = "ReactKit" -end