-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-native-firebase-push-notifications.podspec
42 lines (34 loc) · 1.55 KB
/
react-native-firebase-push-notifications.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
firebase_sdk_version = package['sdkVersions']['ios']['firebase'] || '~> 6.31.0'
Pod::Spec.new do |s|
s.name = "react-native-firebase-push-notifications"
s.version = package["version"]
s.summary = package["description"]
s.description = <<-DESC
react-native-firebase-push-notifications
DESC
s.homepage = "https://github.com/lironsher/react-native-firebase-push-notifications"
s.license = "MIT"
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
s.authors = { "Your Name" => "[email protected]" }
s.platforms = { :ios => "9.0" }
s.source = { :git => "https://github.com/lironsher/react-native-firebase-push-notifications.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,swift}"
s.requires_arc = true
# React Native dependencies
s.dependency 'React-Core'
if defined?($FirebaseSDKVersion)
Pod::UI.puts "#{s.name}: Using user specified Firebase SDK version '#{$FirebaseSDKVersion}'"
firebase_sdk_version = $FirebaseSDKVersion
end
# Firebase dependencies
s.dependency 'Firebase/CoreOnly', firebase_sdk_version
s.dependency 'Firebase/Messaging', firebase_sdk_version
if defined?($RNFirebaseAsStaticFramework)
Pod::UI.puts "#{s.name}: Using overridden static_framework value of '#{$RNFirebaseAsStaticFramework}'"
s.static_framework = $RNFirebaseAsStaticFramework
else
s.static_framework = false
end
end