Skip to content

Commit 89b9339

Browse files
committed
support cocoapod
1 parent 327a3c8 commit 89b9339

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

JMessageRN.podspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
require 'json'
2+
pjson = JSON.parse(File.read('package.json'))
3+
4+
Pod::Spec.new do |s|
5+
6+
s.name = "JMessageRN"
7+
s.version = pjson["version"]
8+
s.homepage = "https://github.com/jpush/jmessage-react-native"
9+
s.summary = pjson["description"]
10+
s.license = pjson["license"]
11+
s.author = { "huminios" => "[email protected]" }
12+
13+
s.ios.deployment_target = '7.0'
14+
15+
s.source = { :git => "https://github.com/jpush/jmessage-react-native", :tag => "#{s.version}" }
16+
s.source_files = 'ios/RCTJMessageModule/*.{h,m}'
17+
s.preserve_paths = "*.js"
18+
s.frameworks = 'UIKit','CFNetwork','CoreFoundation','CoreTelephony','SystemConfiguration','CoreGraphics','Foundation','Security','CoreLocation','CoreAudio','AudioToolbox','AVFoundation'
19+
s.weak_frameworks = 'UserNotifications'
20+
s.libraries = 'z','resolv','sqlite3.0'
21+
s.vendored_libraries = "ios/RCTJMessageModule/*.a"
22+
s.vendored_frameworks = "ios/RCTJMessageModule/JMessage.framework"
23+
s.dependency 'React'
24+
end

0 commit comments

Comments
 (0)