diff --git a/README.md b/README.md index 68d7b47..61c808d 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,21 @@ A simple and easy to use library for listening to location permission changes. This only works for iOS. + ## Getting started -``` -$ npm install react-native-location-permissions --save -$ react-native link -``` +`yarn add react-native-location-permissions` + +or + +`npm install react-native-location-permissions --save` + +#### react-native 0.60 and higher +Cocoapods will take care of all the magic! You're done! + +#### react-native 0.59 and lower + +react-native link react-native-location-permissions ## Usage diff --git a/package.json b/package.json index 400b4b1..8c68484 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-location-permissions", - "version": "0.0.1", + "version": "0.0.2", "description": "A simple and easy to use location permissions library for React Native.", "main": "index.js", "repository": { @@ -16,6 +16,7 @@ "ios", "location" ], + "homepage": "https://github.com/3sidedcube/react-native-location-permissions", "author": "Simon Mitchell", "license": "MIT", "peerDependencies": { diff --git a/react-native-location-permissions.podspec b/react-native-location-permissions.podspec new file mode 100644 index 0000000..610f8c6 --- /dev/null +++ b/react-native-location-permissions.podspec @@ -0,0 +1,22 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + +Pod::Spec.new do |s| + s.name = 'react-native-location-permissions' + s.version = package['version'] + s.summary = package['description'] + s.description = package['description'] + s.license = package['license'] + s.author = package['author'] + s.homepage = package['homepage'] + s.source = { git: 'https://github.com/3sidedcube/react-native-location-permissions', tag: s.version } + + s.requires_arc = true + s.platform = :ios, '8.0' + + s.preserve_paths = 'LICENSE', 'README.md', 'package.json', 'index.js' + s.source_files = 'ios/*.{h,m}' + + s.dependency 'React' +end \ No newline at end of file