Browse Source

rn0.6.x add podspec

zhangzy 5 years ago
parent
commit
029013e654
3 changed files with 26 additions and 3 deletions
  1. 5 2
      README.md
  2. 20 0
      XMPush.podspec
  3. 1 1
      package.json

+ 5 - 2
README.md

@@ -14,9 +14,12 @@ QQ群: 161263093
 ##安装
 
 ```
-// rn > 0.4.x
+// rn > 0.6.x
 npm install react-native-xmpush --save 
 
+// rn > 0.4.x
+npm install react-native-xmpush@0.2.4 --save 
+
 // rn < 0.4.x
 npm install react-native-xmpush@0.1.2 --save 
 react-native link
@@ -300,4 +303,4 @@ setBadgeNumber(num);
  */
 getInitialNotification(handler);
 
-```
+```

+ 20 - 0
XMPush.podspec

@@ -0,0 +1,20 @@
+require 'json'
+pjson = JSON.parse(File.read('package.json'))
+
+Pod::Spec.new do |s|
+
+  s.name            = "XMPush"
+  s.version         = pjson["version"]
+  s.homepage        = pjson["homepage"]
+  s.summary         = pjson["description"]
+  s.license         = pjson["license"]
+  s.author          = { "zhangzy" => "zhangzy@5ichong.com" }
+
+  s.ios.deployment_target = '9.0'
+
+  s.source          = { :git => "https://github.com/a289459798/react-native-mipush", :tag => "v#{s.version}" }
+  s.source_files    = '*.{h,m}'
+  s.preserve_paths  = "**/*.js"
+
+  s.dependency 'React'
+end

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "react-native-xmpush",
-  "version": "0.2.4",
+  "version": "1.0.0",
   "description": "集成小米推送",
   "main": "index.js",
   "scripts": {