Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit d48fab5

Browse files
committed
feat: use package.json as source of truth for podspecs
1 parent bc046cf commit d48fab5

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "React Native Mapview component for iOS + Android",
44
"main": "lib/index.js",
55
"author": "Leland Richardson <[email protected]>",
6+
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
67
"version": "1.0.0",
78
"license": "MIT",
89
"scripts": {

react-native-google-maps.podspec

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
55
Pod::Spec.new do |s|
66
s.name = "react-native-google-maps"
77
s.version = package['version']
8-
s.summary = "React Native Mapview component for iOS + Android"
9-
10-
s.authors = { "intelligibabble" => "[email protected]" }
11-
s.homepage = "https://github.com/react-native-maps/react-native-maps#readme"
12-
s.license = "MIT"
8+
s.summary = package["description"]
9+
s.authors = package["author"]
10+
s.homepage = package["homepage"]
11+
s.license = package["license"]
1312
s.platform = :ios, "13.0"
1413

1514
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }

react-native-maps.podspec

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
55
Pod::Spec.new do |s|
66
s.name = "react-native-maps"
77
s.version = package['version']
8-
s.summary = "React Native Mapview component for iOS + Android"
9-
10-
s.authors = { "intelligibabble" => "[email protected]" }
11-
s.homepage = "https://github.com/react-native-maps/react-native-maps#readme"
12-
s.license = "MIT"
8+
s.summary = package["description"]
9+
s.authors = package["author"]
10+
s.homepage = package["homepage"]
11+
s.license = package["license"]
1312
s.platform = :ios, "11.0"
1413

1514
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }

0 commit comments

Comments
 (0)