forked from okta/okta-utils-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOktaLogger.podspec
75 lines (67 loc) · 2.58 KB
/
OktaLogger.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Pod::Spec.new do |s|
s.name = "OktaLogger"
s.version = "1.3.3"
s.summary = "Logging proxy for standardized logging interface across products"
s.description = "Standard interface for all logging in Okta apps + SDK. Supports file, console, firebase logging destinations."
s.homepage = "https://github.com/okta/okta-logger-swift"
s.license = { :type => 'APACHE2', :file => 'LICENSE' }
s.author = { "Okta Developers" => "[email protected]" }
s.source = { :git => "https://github.com/okta/okta-logger-swift.git", :tag => s.version.to_s }
s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.14'
s.watchos.deployment_target = '6.0'
s.swift_version = '5.0'
s.dependency 'SwiftLint'
s.default_subspec = "Complete"
s.static_framework = true
# Subspec
s.subspec "Complete" do |complete|
complete.dependency 'OktaLogger/FileLogger'
complete.dependency 'OktaLogger/FirebaseCrashlytics'
complete.dependency 'OktaLogger/InstabugLogger'
end
s.subspec "MacOS" do |macos|
macos.osx.deployment_target = '10.14'
macos.dependency 'OktaLogger/FileLogger'
macos.dependency 'OktaLogger/AppCenterLogger'
end
s.subspec 'FileLogger' do |fileLogger|
fileLogger.source_files = [
'OktaLogger/FileLoggers/*.{h,m,swift}'
]
fileLogger.dependency 'CocoaLumberjack/Swift', '~>3.6.0'
fileLogger.dependency 'OktaLogger/Core'
end
s.subspec 'FirebaseCrashlytics' do |crashlytics|
crashlytics.source_files = [
'OktaLogger/FirebaseCrashlyticsLogger/OktaLoggerFirebaseCrashlyticsLogger.swift'
]
crashlytics.dependency 'Firebase/Crashlytics', '~>7.4.0'
crashlytics.dependency 'OktaLogger/Core'
end
s.subspec 'AppCenterLogger' do |appCenterLogger|
appCenterLogger.osx.deployment_target = '10.14'
appCenterLogger.source_files = [
'OktaLogger/AppCenterLogger/*'
]
appCenterLogger.dependency 'AppCenter', '~>4.3.0'
appCenterLogger.dependency 'OktaLogger/Core'
end
s.subspec 'InstabugLogger' do |instabugLogger|
instabugLogger.ios.source_files = [
'OktaLogger/InstabugLogger/*'
]
instabugLogger.ios.dependency 'Instabug', '~> 10.7'
instabugLogger.ios.dependency 'OktaLogger/Core'
end
s.subspec "Core" do |core|
core.source_files = 'OktaLogger/*.{h,m,swift}'
core.exclude_files = [
'OktaLogger/Info.plist',
'OktaLogger/FileLoggers',
'OktaLogger/FirebaseCrashlyticsLogger',
'OktaLogger/AppCenterLogger',
'OktaLogger/InstabugLogger'
]
end
end