From 94550e75fde04adf7c84fb86d569c6905719a253 Mon Sep 17 00:00:00 2001 From: Tim Kuilman Date: Wed, 11 Dec 2019 10:35:29 +0100 Subject: [PATCH 1/6] add podspec --- react-native-location-permissions | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 react-native-location-permissions diff --git a/react-native-location-permissions b/react-native-location-permissions new file mode 100644 index 0000000..fbf647a --- /dev/null +++ b/react-native-location-permissions @@ -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 = 'iolss/*.{h,m}' + + s.dependency 'React' +end \ No newline at end of file From 0d00699f7483228c82e369a91edc1d0597ec97ec Mon Sep 17 00:00:00 2001 From: Tim Kuilman Date: Wed, 11 Dec 2019 10:39:32 +0100 Subject: [PATCH 2/6] rename podspec --- ...ation-permissions => react-native-location-permissions.podspec | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename react-native-location-permissions => react-native-location-permissions.podspec (100%) diff --git a/react-native-location-permissions b/react-native-location-permissions.podspec similarity index 100% rename from react-native-location-permissions rename to react-native-location-permissions.podspec From 5803ac0a2bdf93f168246109488e4b7a985ce68d Mon Sep 17 00:00:00 2001 From: Tim Kuilman Date: Wed, 11 Dec 2019 10:54:06 +0100 Subject: [PATCH 3/6] Add homepage to package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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": { From c1c129faaa187b186ffed761f4653a9ba4262ea9 Mon Sep 17 00:00:00 2001 From: Tim Kuilman Date: Wed, 11 Dec 2019 11:48:46 +0100 Subject: [PATCH 4/6] fix typo --- react-native-location-permissions.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-native-location-permissions.podspec b/react-native-location-permissions.podspec index fbf647a..610f8c6 100644 --- a/react-native-location-permissions.podspec +++ b/react-native-location-permissions.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| s.platform = :ios, '8.0' s.preserve_paths = 'LICENSE', 'README.md', 'package.json', 'index.js' - s.source_files = 'iolss/*.{h,m}' + s.source_files = 'ios/*.{h,m}' s.dependency 'React' end \ No newline at end of file From 1956f510894f34a7eaacffb814c00d70c57fae0a Mon Sep 17 00:00:00 2001 From: Tim Kuilman Date: Wed, 11 Dec 2019 12:01:05 +0100 Subject: [PATCH 5/6] Update readme --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 68d7b47..601792f 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 From 55f72dc4bbdf924ffc19291557fbb7404a6095c7 Mon Sep 17 00:00:00 2001 From: Tim Kuilman Date: Wed, 11 Dec 2019 12:02:03 +0100 Subject: [PATCH 6/6] cleanup --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 601792f..61c808d 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ or `npm install react-native-location-permissions --save` -### react-native 0.60 and higher +#### 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 0.59 and lower -`react-native link react-native-location-permissions +react-native link react-native-location-permissions ## Usage