Explorar el Código

Support for a CocoaPods-based install

Makes life easy if you're using CocoaPods to manage native dependencies; can just:

    pod 'ReactNativePermissions', path: './node_modules/react-native-permissions'
Ian MacLeod hace 8 años
padre
commit
e31d5187ef
Se han modificado 2 ficheros con 24 adiciones y 1 borrados
  1. 21
    0
      ReactNativePermissions.podspec
  2. 3
    1
      package.json

+ 21
- 0
ReactNativePermissions.podspec Ver fichero

@@ -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 Ver fichero

@@ -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
 }