-
Notifications
You must be signed in to change notification settings - Fork 375
/
react-native-onesignal.podspec
26 lines (23 loc) · 1.27 KB
/
react-native-onesignal.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'json'
package_json = JSON.parse(File.read('package.json'))
Pod::Spec.new do |s|
s.name = "react-native-onesignal"
s.version = package_json["version"]
s.summary = package_json["description"]
s.homepage = "https://github.com/OneSignal/react-native-onesignal"
s.license = package_json["license"]
s.author = { package_json["author"] => package_json["author"] }
s.platform = :ios, "11.0"
s.source = { :git => "#{package_json["repository"]["url"]}.git", :tag => "#{s.version}" }
s.source_files = 'ios/RCTOneSignal/*.{h,m}'
s.static_framework = true
# The "React" pod is required due to the use of RCTBridgeModule, RCTEventEmitter, etc
# Ensuring we have version 0.13.0 or greater to avoid a cocoapods issue noted in React Native's release notes
# https://github.com/facebook/react-native/releases/tag/v0.13.0
# The last stable version on Cocapod's repo is 0.11.0 as we want to ignore it to always use the local copy.
s.dependency 'React', '>= 0.13.0', '< 1.0.0'
# REQUIRED: Ensure you have the following in your project's Podfile
# pod 'React', :path => '../node_modules/react-native/'
# The Native OneSignal-iOS-SDK XCFramework from cocoapods.
s.dependency 'OneSignalXCFramework', '5.2.9'
end