Przeglądaj źródła

CocoaPods implementation

Thibault Malbranche 6 lat temu
rodzic
commit
c9e04603d7
2 zmienionych plików z 20 dodań i 1 usunięć
  1. 2
    1
      package.json
  2. 18
    0
      react-native-webview.podspec

+ 2
- 1
package.json Wyświetl plik

@@ -4,6 +4,7 @@
4 4
   "main": "index.js",
5 5
   "author": "Jamon Holmgren <jamon@infinite.red>",
6 6
   "version": "0.1.0",
7
+  "homepage": "https://github.com/react-native-community/react-native-webview#readme",
7 8
   "peerDependencies": {
8 9
     "react": "^16.0",
9 10
     "react-native": "^0.56"
@@ -12,4 +13,4 @@
12 13
     "escape-string-regexp": "^1.0.5",
13 14
     "fbjs": "^0.8.17"
14 15
   }
15
-}
16
+}

+ 18
- 0
react-native-webview.podspec Wyświetl plik

@@ -0,0 +1,18 @@
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         = package['name']
7
+  s.version      = package['version']
8
+  s.summary      = package['description]
9
+
10
+  s.authors      = package['author']
11
+  s.homepage     = package['homepage']
12
+  s.platform     = :ios, "9.0"
13
+
14
+  s.source       = { :git => "https://github.com/react-native-community/react-native-webview.git" }
15
+  s.source_files  = "ios/**/*.{h,m}"
16
+
17
+  s.dependency 'React'
18
+end