-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rudder-Firebase.podspec
51 lines (42 loc) · 2.15 KB
/
Rudder-Firebase.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
42
43
44
45
46
47
48
49
50
51
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
firebase_sdk_version = '~> 11.4.0'
rudder_sdk_version = '~> 1.29'
deployment_target = '12.0'
firebase_analytics = 'FirebaseAnalytics'
Pod::Spec.new do |s|
s.name = 'Rudder-Firebase'
s.version = package['version']
s.summary = 'Privacy and Security focused Segment-alternative. Firebase Native SDK integration support.'
s.description = <<-DESC
Rudder is a platform for collecting, storing and routing customer event data to dozens of tools. Rudder is open-source, can run in your cloud environment (AWS, GCP, Azure or even your data-centre) and provides a powerful transformation framework to process your event data on the fly.
DESC
s.homepage = 'https://github.com/rudderlabs/rudder-integration-firebase-ios'
s.license = { :type => "Apache", :file => "LICENSE.md" }
s.author = { 'RudderStack' => '[email protected]' }
s.source = { :git => 'https://github.com/rudderlabs/rudder-integration-firebase-ios.git' , :tag => "v#{s.version}" }
s.requires_arc = true
s.source_files = 'Rudder-Firebase/Classes/**/*'
s.static_framework = true
s.ios.deployment_target = deployment_target
if defined?($FirebaseSDKVersion)
firebase_sdk_version = $FirebaseSDKVersion
if (firebase_sdk_version.to_f < 9.0)
firebase_analytics = 'Firebase/Analytics'
deployment_target = '9.0'
elsif (firebase_sdk_version.to_f >= 9.0) && (firebase_sdk_version.to_f < 10.0)
deployment_target = '10.0'
end
Pod::UI.puts "#{s.name}: Using user specified Firebase SDK version '#{firebase_sdk_version}'"
else
Pod::UI.puts "#{s.name}: Using default Firebase SDK version '#{firebase_sdk_version}'"
end
if defined?($RudderSDKVersion)
Pod::UI.puts "#{s.name}: Using user specified Rudder SDK version '#{$RudderSDKVersion}'"
rudder_sdk_version = $RudderSDKVersion
else
Pod::UI.puts "#{s.name}: Using default Rudder SDK version '#{rudder_sdk_version}'"
end
s.dependency 'Rudder', rudder_sdk_version
s.dependency firebase_analytics, firebase_sdk_version
end