Pārlūkot izejas kodu

Merge pull request #1 from Titozzz/master

Add support for cocoapods
Jamon Holmgren 6 gadus atpakaļ
vecāks
revīzija
14b2f8a3a9
No account linked to committer's email address
2 mainītis faili ar 20 papildinājumiem un 1 dzēšanām
  1. 2
    1
      package.json
  2. 18
    0
      react-native-webview.podspec

+ 2
- 1
package.json Parādīt failu

@@ -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 Parādīt failu

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