Kaynağa Gözat

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 8 yıl önce
ebeveyn
işleme
e31d5187ef
2 değiştirilmiş dosya ile 24 ekleme ve 1 silme
  1. 21
    0
      ReactNativePermissions.podspec
  2. 3
    1
      package.json

+ 21
- 0
ReactNativePermissions.podspec Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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