Podfile 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. # Uncomment the next two lines for pre-release testing on internal repo
  2. #source 'sso://cpdc-internal/firebase'
  3. #source 'https://github.com/CocoaPods/Specs.git'
  4. # Uncomment the next two lines for pre-release testing on public repo
  5. source 'https://github.com/Firebase/SpecsStaging.git'
  6. source 'https://github.com/CocoaPods/Specs.git'
  7. use_frameworks!
  8. pod 'FirebaseAnalyticsInterop', :path => '../'
  9. pod 'FirebaseAuthInterop', :path => '../'
  10. pod 'FirebaseCore', :path => '../'
  11. pod 'GoogleUtilities', :path => '../'
  12. target 'Core_Example_iOS' do
  13. platform :ios, '8.0'
  14. # The next line is the forcing function for the Firebase pod. The Firebase
  15. # version's subspecs should depend on the component versions in their
  16. # corresponding podspec's.
  17. pod 'Firebase/CoreOnly', '6.0.0'
  18. target 'Core_Tests_iOS' do
  19. inherit! :search_paths
  20. pod 'OCMock'
  21. end
  22. end
  23. target 'Auth_Example_iOS' do
  24. platform :ios, '8.0'
  25. pod 'FirebaseAuth', :path => '../'
  26. target 'Auth_Tests_iOS' do
  27. inherit! :search_paths
  28. pod 'OCMock'
  29. end
  30. end
  31. target 'Database_Example_iOS' do
  32. platform :ios, '8.0'
  33. pod 'FirebaseDatabase', :path => '../'
  34. target 'Database_Tests_iOS' do
  35. inherit! :search_paths
  36. end
  37. target 'Database_IntegrationTests_iOS' do
  38. inherit! :search_paths
  39. end
  40. end
  41. target 'DynamicLinks_Example_iOS' do
  42. platform :ios, '8.0'
  43. pod 'FirebaseDynamicLinks', :path => '../'
  44. target 'DynamicLinks_Tests_iOS' do
  45. inherit! :search_paths
  46. pod 'OCMock'
  47. pod 'GoogleUtilities/MethodSwizzler', :path => '../'
  48. pod 'GoogleUtilities/SwizzlerTestHelpers', :path => '../'
  49. end
  50. end
  51. target 'FDLBuilderTestAppObjC' do
  52. platform :ios, '8.0'
  53. pod 'FirebaseDynamicLinks', :path => '../'
  54. target 'FDLBuilderTestAppObjCEarlGrey' do
  55. inherit! :search_paths
  56. pod 'EarlGrey'
  57. end
  58. end
  59. target 'InstanceID_Example_iOS' do
  60. platform :ios, '8.0'
  61. pod 'FirebaseInstanceID' , :path => '../'
  62. target 'InstanceID_Tests_iOS' do
  63. inherit! :search_paths
  64. pod 'OCMock'
  65. end
  66. end
  67. target 'Messaging_Example_iOS' do
  68. platform :ios, '8.0'
  69. pod 'FirebaseMessaging' , :path => '../'
  70. target 'Messaging_Tests_iOS' do
  71. inherit! :search_paths
  72. pod 'OCMock'
  73. end
  74. end
  75. target 'Messaging_NotificationService_iOS' do
  76. platform :ios, '8.0'
  77. pod 'FirebaseMessaging' , :path => '../'
  78. end
  79. target 'Messaging_Sample_iOS' do
  80. platform :ios, '8.0'
  81. pod 'FirebaseMessaging' , :path => '../'
  82. end
  83. target 'Storage_Example_iOS' do
  84. platform :ios, '8.0'
  85. pod 'FirebaseStorage', :path => '../'
  86. target 'Storage_Tests_iOS' do
  87. inherit! :search_paths
  88. pod 'OCMock'
  89. end
  90. target 'Storage_IntegrationTests_iOS' do
  91. inherit! :search_paths
  92. end
  93. end
  94. target 'Auth_Sample' do
  95. platform :ios, '8.0'
  96. pod 'FirebaseAuth', :path => '../'
  97. pod 'FirebaseCore', :path => '../'
  98. pod 'FBSDKLoginKit'
  99. pod 'GoogleSignIn'
  100. pod 'FirebaseInstanceID', :path => '../'
  101. pod 'GTMSessionFetcher/Core'
  102. target 'Auth_ApiTests' do
  103. inherit! :search_paths
  104. end
  105. target 'Auth_E2eTests' do
  106. inherit! :search_paths
  107. pod 'EarlGrey'
  108. end
  109. end
  110. target 'Core_Example_macOS' do
  111. platform :osx, '10.11'
  112. pod 'FirebaseCore', :path => '../'
  113. target 'Core_Tests_macOS' do
  114. inherit! :search_paths
  115. pod 'OCMock'
  116. end
  117. end
  118. target 'Auth_Example_macOS' do
  119. platform :osx, '10.11'
  120. pod 'FirebaseAuth', :path => '../'
  121. target 'Auth_Tests_macOS' do
  122. inherit! :search_paths
  123. pod 'OCMock'
  124. end
  125. end
  126. target 'Database_Example_macOS' do
  127. platform :osx, '10.11'
  128. pod 'FirebaseDatabase', :path => '../'
  129. target 'Database_Tests_macOS' do
  130. inherit! :search_paths
  131. end
  132. target 'Database_IntegrationTests_macOS' do
  133. inherit! :search_paths
  134. end
  135. end
  136. target 'Storage_Example_macOS' do
  137. platform :osx, '10.11'
  138. pod 'FirebaseStorage', :path => '../'
  139. target 'Storage_Tests_macOS' do
  140. inherit! :search_paths
  141. pod 'OCMock'
  142. end
  143. target 'Storage_IntegrationTests_macOS' do
  144. inherit! :search_paths
  145. end
  146. end
  147. target 'Core_Example_tvOS' do
  148. platform :tvos, '10.0'
  149. target 'Core_Tests_tvOS' do
  150. inherit! :search_paths
  151. pod 'OCMock'
  152. end
  153. end
  154. target 'Auth_Example_tvOS' do
  155. platform :tvos, '10.0'
  156. pod 'FirebaseAuth', :path => '../'
  157. target 'Auth_Tests_tvOS' do
  158. inherit! :search_paths
  159. pod 'OCMock'
  160. end
  161. end
  162. target 'Database_Example_tvOS' do
  163. platform :tvos, '10.0'
  164. pod 'FirebaseDatabase', :path => '../'
  165. target 'Database_Tests_tvOS' do
  166. inherit! :search_paths
  167. end
  168. # TODO
  169. # target 'Database_IntegrationTests_tvOS' do
  170. # inherit! :search_paths
  171. # end
  172. end
  173. target 'Storage_Example_tvOS' do
  174. platform :tvos, '10.0'
  175. pod 'FirebaseStorage', :path => '../'
  176. target 'Storage_Tests_tvOS' do
  177. inherit! :search_paths
  178. pod 'OCMock'
  179. end
  180. #TODO Storage_IntegrationTests_tvOS
  181. # target 'Storage_IntegrationTests_tvOS' do
  182. # inherit! :search_paths
  183. # end
  184. end
  185. target 'Messaging_Example_tvOS' do
  186. platform :tvos, '10.0'
  187. pod 'FirebaseMessaging', :path => '../'
  188. target 'Messaging_Tests_tvOS' do
  189. inherit! :search_paths
  190. pod 'OCMock'
  191. end
  192. end
  193. target 'InstanceID_Example_tvOS' do
  194. platform :tvos, '10.0'
  195. pod 'FirebaseInstanceID', :path => '../'
  196. target 'InstanceID_Tests_tvOS' do
  197. inherit! :search_paths
  198. pod 'OCMock'
  199. end
  200. end
  201. # Set define to turn on GUL_UNSWIZZLING and GUL_APP_DELEGATE_TESTING for the unit tests
  202. post_install do |installer_representation|
  203. installer_representation.pods_project.targets.each do |target|
  204. target.build_configurations.each do |config|
  205. if config.name != 'Release'
  206. config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'GUL_UNSWIZZLING_ENABLED=1', 'GUL_APP_DELEGATE_TESTING=1']
  207. end
  208. end
  209. end
  210. end