2017-05-15 12:27:07 -07:00
|
|
|
Pod::Spec.new do |s|
|
2017-06-22 13:08:35 -07:00
|
|
|
s.name = 'FirebaseCommunity'
|
2017-06-02 08:26:33 -07:00
|
|
|
s.version = '0.0.1'
|
2017-05-15 12:27:07 -07:00
|
|
|
s.summary = 'Firebase Open Source Libraries for iOS.'
|
|
|
|
|
|
|
|
|
|
s.description = <<-DESC
|
2017-06-02 08:26:33 -07:00
|
|
|
Firebase Development CocoaPod including experimental and community supported features.
|
2017-05-15 12:27:07 -07:00
|
|
|
DESC
|
|
|
|
|
|
|
|
|
|
s.homepage = 'https://firebase.google.com'
|
|
|
|
|
s.license = { :type => 'Apache', :file => 'LICENSE' }
|
|
|
|
|
s.authors = 'Google, Inc.'
|
|
|
|
|
|
2017-06-22 13:08:35 -07:00
|
|
|
# NOTE that the FirebaseCommunity pod is neither publicly deployed nor yet interchangeable with the
|
2017-05-15 12:27:07 -07:00
|
|
|
# Firebase pod
|
|
|
|
|
s.source = { :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => s.version.to_s }
|
|
|
|
|
s.social_media_url = 'https://twitter.com/Firebase'
|
|
|
|
|
s.ios.deployment_target = '8.0'
|
2017-06-02 18:42:17 +01:00
|
|
|
s.osx.deployment_target = '10.10'
|
2017-05-15 12:27:07 -07:00
|
|
|
s.default_subspec = 'Root'
|
2017-06-02 08:26:33 -07:00
|
|
|
s.preserve_paths = 'README.md'
|
2017-05-15 12:27:07 -07:00
|
|
|
|
|
|
|
|
s.subspec 'Root' do |sp|
|
|
|
|
|
sp.source_files = 'Firebase/Firebase/Firebase.h'
|
|
|
|
|
sp.public_header_files = 'Firebase/Firebase/Firebase.h'
|
|
|
|
|
sp.user_target_xcconfig = { 'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_ROOT}/Firebase/Firebase/Firebase"' }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec 'Core' do |sp|
|
|
|
|
|
sp.source_files = 'Firebase/Core/**/*.[mh]'
|
2017-06-29 12:03:45 -07:00
|
|
|
sp.public_header_files = 'Firebase/Core/Public/*.h'
|
2017-05-15 12:27:07 -07:00
|
|
|
sp.dependency 'GoogleToolboxForMac/NSData+zlib', '~> 2.1'
|
2017-06-22 13:08:35 -07:00
|
|
|
sp.dependency 'FirebaseCommunity/Root'
|
2017-05-15 12:27:07 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec 'Auth' do |sp|
|
|
|
|
|
sp.source_files = 'Firebase/Auth/Source/**/*.[mh]'
|
2017-06-02 18:42:17 +01:00
|
|
|
sp.osx.exclude_files =
|
|
|
|
|
'Firebase/Auth/Source/**/FIRAuthAppDelegateProxy.[mh]',
|
|
|
|
|
'Firebase/Auth/Source/**/FIRAuthNotificationManager.[mh]',
|
|
|
|
|
'Firebase/Auth/Source/**/FIRAuthAppCredentialManager.[mh]',
|
|
|
|
|
'Firebase/Auth/Source/**/FIRAuthAPNSTokenManager.[mh]',
|
|
|
|
|
'Firebase/Auth/Source/**/FIRAuthAPNSTokenType.[mh]',
|
|
|
|
|
'Firebase/Auth/Source/**/FIRAuthAPNSToken.[mh]',
|
|
|
|
|
'Firebase/Auth/Source/**/FIRPhoneAuthProvider.[mh]'
|
2017-06-29 12:03:45 -07:00
|
|
|
sp.public_header_files = 'Firebase/Auth/Source/Public/*.h'
|
2017-05-15 12:27:07 -07:00
|
|
|
sp.preserve_paths =
|
|
|
|
|
'Firebase/Auth/README.md',
|
|
|
|
|
'Firebase/Auth/CHANGELOG.md'
|
|
|
|
|
sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRAuth_VERSION=' + s.version.to_s +
|
|
|
|
|
' -DFIRAuth_MINOR_VERSION=' + s.version.to_s.split(".")[0] + "." + s.version.to_s.split(".")[1]
|
|
|
|
|
}
|
|
|
|
|
sp.framework = 'Security'
|
2017-06-22 13:08:35 -07:00
|
|
|
sp.dependency 'FirebaseCommunity/Core'
|
2017-05-15 12:27:07 -07:00
|
|
|
sp.dependency 'GTMSessionFetcher/Core', '~> 1.1'
|
|
|
|
|
sp.dependency 'GoogleToolboxForMac/NSDictionary+URLArguments', '~> 2.1'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec 'Database' do |sp|
|
|
|
|
|
sp.source_files = 'Firebase/Database/**/*.[mh]',
|
|
|
|
|
'Firebase/Database/third_party/Wrap-leveldb/APLevelDB.mm',
|
|
|
|
|
'Firebase/Database/third_party/SocketRocket/fbase64.c'
|
2017-06-29 12:03:45 -07:00
|
|
|
sp.public_header_files = 'Firebase/Database/Public/*.h'
|
2017-05-15 12:27:07 -07:00
|
|
|
sp.library = 'c++'
|
|
|
|
|
sp.library = 'icucore'
|
|
|
|
|
sp.framework = 'CFNetwork'
|
|
|
|
|
sp.framework = 'Security'
|
|
|
|
|
sp.framework = 'SystemConfiguration'
|
|
|
|
|
sp.dependency 'leveldb-library'
|
2017-06-22 13:08:35 -07:00
|
|
|
sp.dependency 'FirebaseCommunity/Core'
|
2017-05-15 12:27:07 -07:00
|
|
|
sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRDatabase_VERSION=' + s.version.to_s }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec 'Messaging' do |sp|
|
2017-06-02 18:42:17 +01:00
|
|
|
sp.platform = 'ios'
|
2017-05-15 12:27:07 -07:00
|
|
|
sp.source_files = 'Firebase/Messaging/**/*.[mh]'
|
|
|
|
|
sp.requires_arc = 'Firebase/Messaging/*.m'
|
|
|
|
|
|
2017-06-29 12:03:45 -07:00
|
|
|
sp.public_header_files = 'Firebase/Messaging/Public/*.h'
|
2017-05-15 12:27:07 -07:00
|
|
|
sp.library = 'sqlite3'
|
|
|
|
|
sp.xcconfig ={ 'GCC_PREPROCESSOR_DEFINITIONS' =>
|
|
|
|
|
'$(inherited) ' +
|
|
|
|
|
'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ' +
|
|
|
|
|
'FIRMessaging_LIB_VERSION=' + String(s.version)
|
|
|
|
|
}
|
|
|
|
|
sp.framework = 'AddressBook'
|
|
|
|
|
sp.framework = 'SystemConfiguration'
|
2017-06-22 13:08:35 -07:00
|
|
|
sp.dependency 'FirebaseCommunity/Core'
|
2017-05-15 12:27:07 -07:00
|
|
|
sp.dependency 'GoogleToolboxForMac/Logger', '~> 2.1'
|
|
|
|
|
sp.dependency 'Protobuf', '~> 3.1'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.subspec 'Storage' do |sp|
|
|
|
|
|
sp.source_files = 'Firebase/Storage/**/*.[mh]'
|
2017-06-29 12:03:45 -07:00
|
|
|
sp.public_header_files = 'Firebase/Storage/Public/*.h'
|
2017-06-02 18:42:17 +01:00
|
|
|
sp.ios.framework = 'MobileCoreServices'
|
|
|
|
|
sp.osx.framework = 'CoreServices'
|
2017-06-22 13:08:35 -07:00
|
|
|
sp.dependency 'FirebaseCommunity/Core'
|
2017-05-15 12:27:07 -07:00
|
|
|
sp.dependency 'GTMSessionFetcher/Core', '~> 1.1'
|
|
|
|
|
sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRStorage_VERSION=' + s.version.to_s }
|
|
|
|
|
end
|
|
|
|
|
end
|