Skip to content

Commit

Permalink
Added podspec (#25)
Browse files Browse the repository at this point in the history
* Added podspec

* Make package.json play nice with podfile

- Make url use https
- Add description

* Update package.json
  • Loading branch information
hhunaid authored and alvaromb committed May 3, 2018
1 parent f7d9b40 commit c99381f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "react-native-version-number",
"version": "0.3.2",
"description": "",
"description": "Access app version inside React Native",
"main": "index.js",
"scripts": {
"lint": "eslint index.js",
"test": "npm run lint"
},
"repository": {
"type": "git",
"url": "git+https://github.com/APSL/react-native-version-number.git"
"url": "https://github.com/APSL/react-native-version-number.git"
},
"tags": ["react", "react-native", "react-component", "ios"],
"keywords": ["react", "react-native", "ios", "react-component"],
Expand Down
17 changes: 17 additions & 0 deletions react-native-version-number.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require 'json'
package_json = JSON.parse(File.read('package.json'))

Pod::Spec.new do |s|

s.name = "react-native-version-number"
s.version = package_json["version"]
s.summary = package_json["description"]
s.homepage = "https://github.com/APSL/react-native-version-number"
s.license = package_json["license"]
s.author = { package_json["author"] => package_json["author"] }
s.platform = :ios, "7.0"
s.source = { :git => "#{package_json["repository"]["url"]}.git", :tag => "v#{s.version}" }
s.source_files = 'ios/*.{h,m}'
s.dependency 'React'

end

0 comments on commit c99381f

Please sign in to comment.