Browse Source

Merge pull request #2 from convoyinc/cocoapods

Support for a CocoaPods-based install
Yonah Forst 8 years ago
parent
commit
a1fe56ce45
2 changed files with 24 additions and 1 deletions
  1. 21
    0
      ReactNativePermissions.podspec
  2. 3
    1
      package.json

+ 21
- 0
ReactNativePermissions.podspec View File

@@ -0,0 +1,21 @@
1
+require 'json'
2
+
3
+package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+Pod::Spec.new do |s|
6
+  s.name                = 'ReactNativePermissions'
7
+  s.version             = package['version']
8
+  s.summary             = package['description']
9
+  s.description         = package['description']
10
+  s.homepage            = package['homepage']
11
+  s.license             = package['license']
12
+  s.author              = package['author']
13
+  s.source              = { :git => 'https://github.com/yonahforst/react-native-permissions.git', :tag => s.version }
14
+
15
+  s.platform            = :ios, '8.0'
16
+
17
+  s.dependency 'React'
18
+
19
+  s.preserve_paths      = 'docs', 'CHANGELOG.md', 'LICENSE', 'package.json', 'ReactNativePermissions.ios.js'
20
+  s.source_files        = '*.{h,m}'
21
+end

+ 3
- 1
package.json View File

@@ -8,5 +8,7 @@
8 8
   "license": "MIT",
9 9
   "keywords": ["react-native", "react-component"],
10 10
   "main": "ReactNativePermissions",
11
-  "author": "Yonah Forst <yonaforst@hotmail.com>"
11
+  "author": "Yonah Forst <yonaforst@hotmail.com>",
12
+  "homepage": "https://github.com/joshblour/react-native-permissions",
13
+  "description": "Check user permissions in React Native"
12 14
 }