Skip to content

Commit fc8c5df

Browse files
authored
Merge pull request bolan9999#24 from shakepay/bugfix/podspec-file
Update podspec file and make it rely on package.json.
2 parents 25c6bc9 + 9022627 commit fc8c5df

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

src/ios/RNSpringScrollView.podspec

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1+
require "json"
2+
3+
package = JSON.parse(File.read(File.join(__dir__, "../package.json")))
14

25
Pod::Spec.new do |s|
36
s.name = "RNSpringScrollView"
4-
s.version = "1.0.0"
5-
s.summary = "RNSpringScrollView"
6-
s.description = <<-DESC
7-
React Native Spring ScrollView V2 is a high performance cross-platform native bounces ScrollView for React Native.(iOS & Android)
8-
DESC
7+
s.version = package["version"]
8+
s.summary = package["description"]
99
s.homepage = "https://github.com/bolan9999/react-native-spring-scrollview"
10-
s.license = "MIT"
11-
s.license = { :type => "MIT", :file => "LICENSE" }
12-
s.author = { "bolan9999" => "shanshang130@gmail.com" }
10+
s.license = package["license"]
11+
s.author = { "bolan9999" => "shanshang130@gmail.com" }
1312
s.platform = :ios, "7.0"
14-
s.source = { :git => "https://github.com/bolan9999/react-native-spring-scrollview.git", :tag => "master" }
15-
s.source_files = "src/ios/SpringScrollView/**/*.{h,m}"
13+
s.source = { :git => "https://github.com/bolan9999/react-native-spring-scrollview.git", :tag => s.version }
14+
s.source_files = "SpringScrollView/**/*.{h,m}"
1615
s.requires_arc = true
1716

1817
s.dependency "React"
19-
2018
end
21-
22-

0 commit comments

Comments
 (0)