From cb22b90a836f0508c85745ec7dc8555d5878ea13 Mon Sep 17 00:00:00 2001 From: Nicolas Charpentier Date: Fri, 5 Oct 2018 14:01:20 -0400 Subject: [PATCH] Update podspec (#948) --- package.json | 3 ++- react-native-image-picker.podspec | 20 +++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 6c638d6f6..f5e0dd349 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,10 @@ "description": "A React Native module that allows you to use native UI to select media from the device library or directly from the camera", "version": "0.27.0", "main": "index.js", + "homepage": "https://github.com/react-community/react-native-image-picker", "repository": { "type": "git", - "url": "https://github.com/marcshilling/react-native-image-picker.git" + "url": "https://github.com/react-community/react-native-image-picker.git" }, "nativePackage": true, "author": "Marc Shilling (marcshilling)", diff --git a/react-native-image-picker.podspec b/react-native-image-picker.podspec index b116d045b..5e29526b8 100644 --- a/react-native-image-picker.podspec +++ b/react-native-image-picker.podspec @@ -1,13 +1,19 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + Pod::Spec.new do |s| - s.name = "react-native-image-picker" - s.version = "0.14.3" - s.license = "MIT" - s.homepage = "https://github.com/marcshilling/react-native-image-picker" + s.name = package['name'] + s.version = package['version'] + s.summary = package['description'] + s.authors = { 'Marc Shilling' => 'marcshilling@gmail.com' } - s.summary = "A React Native module that allows you to use the native UIImagePickerController UI to select a photo from the device library or directly from the camera" + s.homepage = package['homepage'] + s.license = package['license'] + s.platform = :ios, "7.0" + s.source = { :git => "https://github.com/marcshilling/react-native-image-picker" } s.source_files = "ios/*.{h,m}" - - s.platform = :ios, "7.0" + s.dependency 'React' end