Skip to content

Commit c99381f

Browse files
hhunaidalvaromb
authored andcommitted
Added podspec (APSL#25)
* Added podspec * Make package.json play nice with podfile - Make url use https - Add description * Update package.json
1 parent f7d9b40 commit c99381f

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "react-native-version-number",
33
"version": "0.3.2",
4-
"description": "",
4+
"description": "Access app version inside React Native",
55
"main": "index.js",
66
"scripts": {
77
"lint": "eslint index.js",
88
"test": "npm run lint"
99
},
1010
"repository": {
1111
"type": "git",
12-
"url": "git+https://github.com/APSL/react-native-version-number.git"
12+
"url": "https://github.com/APSL/react-native-version-number.git"
1313
},
1414
"tags": ["react", "react-native", "react-component", "ios"],
1515
"keywords": ["react", "react-native", "ios", "react-component"],

react-native-version-number.podspec

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
require 'json'
2+
package_json = JSON.parse(File.read('package.json'))
3+
4+
Pod::Spec.new do |s|
5+
6+
s.name = "react-native-version-number"
7+
s.version = package_json["version"]
8+
s.summary = package_json["description"]
9+
s.homepage = "https://github.com/APSL/react-native-version-number"
10+
s.license = package_json["license"]
11+
s.author = { package_json["author"] => package_json["author"] }
12+
s.platform = :ios, "7.0"
13+
s.source = { :git => "#{package_json["repository"]["url"]}.git", :tag => "v#{s.version}" }
14+
s.source_files = 'ios/*.{h,m}'
15+
s.dependency 'React'
16+
17+
end

0 commit comments

Comments
 (0)