Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podspec needed for RN0.60 #54

Open
natasha08n opened this issue Sep 17, 2019 · 2 comments
Open

Podspec needed for RN0.60 #54

natasha08n opened this issue Sep 17, 2019 · 2 comments

Comments

@natasha08n
Copy link

Is it possible to add a *.podspec file RN0.60 support?

The react-native-webview podspec is a good example of a package.json driven podspec. See https://github.com/react-native-community/react-native-webview/blob/master/react-native-webview.podspec

Thanks for your package! It is awesome!

@natasha08n natasha08n changed the title Podspec needed Podspec needed for RN0.60 Sep 17, 2019
@walaa23
Copy link

walaa23 commented Dec 17, 2019

require 'json'

package = JSON.parse(File.read(File.join(dir, 'package.json')))

Pod::Spec.new do |s|
s.name = package['name']
s.version = package['version']
s.summary = package['description']
s.license = package['license']

s.authors = package['author']
s.homepage = package['homepage']
s.platform = :ios, "9.0"

s.source = { :git => "https://github.com/droibit/react-native-custom-tabs.git", :tag => "v#{s.version}" }
s.source_files = "ios/**/*.{h,m}"

s.dependency 'React'
end

@arcollector
Copy link

require 'json'

package = JSON.parse(File.read(File.join(dir, 'package.json')))

Pod::Spec.new do |s|
s.name = package['name']
s.version = package['version']
s.summary = package['description']
s.license = package['license']

s.authors = package['author']
s.homepage = package['homepage']
s.platform = :ios, "9.0"

s.source = { :git => "https://github.com/droibit/react-native-custom-tabs.git", :tag => "v#{s.version}" }
s.source_files = "ios/**/*.{h,m}"

s.dependency 'React'
end

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants