From 157647e15c7afac45cf8ab7472f25bad7f8b6070 Mon Sep 17 00:00:00 2001 From: JB Theard Date: Fri, 3 Apr 2020 09:55:30 +0100 Subject: [PATCH 1/2] fix: add podspec so that pod install doesnt complain A root podspec file should be published with package so that pod install doesn't complain when installing projects with bob. I add it here but not quite sure where it should be in order to be published at the root of package. Also added homepage property in package.json as required by podspec. --- package.json | 1 + react-native-bob.podspec | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 react-native-bob.podspec diff --git a/package.json b/package.json index 9281e6349..e080467df 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.10.0", "description": "CLI to build JavaScript files for React Native libraries", "repository": "git@github.com:react-native-community/bob.git", + "homepage": "https://github.com/react-native-community/bob/blob/master/README.md", "author": "Satyajit Sahoo ", "license": "MIT", "main": "src/index.js", diff --git a/react-native-bob.podspec b/react-native-bob.podspec new file mode 100644 index 000000000..856f75fe9 --- /dev/null +++ b/react-native-bob.podspec @@ -0,0 +1,16 @@ +require "json" + +package = JSON.parse(File.read(File.join(__dir__, "package.json"))) + +Pod::Spec.new do |s| + s.name = "react-native-bob" + s.version = package["version"] + s.summary = package["description"] + s.homepage = package["homepage"] + s.license = package["license"] + s.authors = package["author"] + s.platforms = { :ios => "9.0" } + s.source = { :git => "http://foo.com.git", :tag => "#{s.version}" } + s.source_files = "ios/**/*.{h,m}" + s.dependency "React" +end From 4592f1b88fd371781d50f56744c4072475525c85 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Theard Date: Sun, 5 Apr 2020 18:39:51 +0100 Subject: [PATCH 2/2] replaced podspec with a rn-config file --- react-native-bob.podspec | 16 ---------------- react-native.config.js | 8 ++++++++ 2 files changed, 8 insertions(+), 16 deletions(-) delete mode 100644 react-native-bob.podspec create mode 100644 react-native.config.js diff --git a/react-native-bob.podspec b/react-native-bob.podspec deleted file mode 100644 index 856f75fe9..000000000 --- a/react-native-bob.podspec +++ /dev/null @@ -1,16 +0,0 @@ -require "json" - -package = JSON.parse(File.read(File.join(__dir__, "package.json"))) - -Pod::Spec.new do |s| - s.name = "react-native-bob" - s.version = package["version"] - s.summary = package["description"] - s.homepage = package["homepage"] - s.license = package["license"] - s.authors = package["author"] - s.platforms = { :ios => "9.0" } - s.source = { :git => "http://foo.com.git", :tag => "#{s.version}" } - s.source_files = "ios/**/*.{h,m}" - s.dependency "React" -end diff --git a/react-native.config.js b/react-native.config.js new file mode 100644 index 000000000..a74c296ca --- /dev/null +++ b/react-native.config.js @@ -0,0 +1,8 @@ +module.exports = { + dependency: { + platforms: { + android: null, + ios: null, + }, + }, +}; \ No newline at end of file