Ver código fonte

Update Dangerfile, Firebase.h, and Firebase.podspec for launch readiness (#6127)

* Update Dangerfile, Firebase.h, and Firebase.podspec for launch readiness

* Add appDistribution to FirebasePods.swift

* Update versions to match what we expect for launch

* Add FirebaseAppDistribution to FirebasePodTest/Podfile

Co-authored-by: Jeremy Durham <jeremydurham@google.com>
Cleo Schneider 5 anos atrás
pai
commit
89d1d203af

+ 6 - 0
CoreOnly/Sources/Firebase.h

@@ -35,6 +35,12 @@
     #import "FirebaseAuth.h"
   #endif
 
+  #if __has_include(<FirebaseAppDistribution/FirebaseAppDistribution.h>)
+    #import <FirebaseAppDistribution/FirebaseAppDistribution.h>
+  #elif  __has_include("FirebaseAppDistribution.h")
+    #import "FirebaseAppDistribution.h"
+  #endif
+
   #if __has_include(<FirebaseCrashlytics/FirebaseCrashlytics.h>)
     #import <FirebaseCrashlytics/FirebaseCrashlytics.h>
   #elif  __has_include("FirebaseCrashlytics.h")

+ 1 - 0
CoreOnly/Tests/FirebasePodTest/Podfile

@@ -10,6 +10,7 @@ target 'FirebasePodTest' do
 
   pod 'Firebase', :path => '../../../'
   pod 'FirebaseABTesting', :path => '../../../'
+  pod 'FirebaseAppDistribution', :path => '../../../'
   pod 'FirebaseAuth', :path => '../../../'
   pod 'FirebaseCore', :path => '../../../'
   pod 'FirebaseCoreDiagnostics', :path => '../../../'

+ 4 - 0
Dangerfile

@@ -36,6 +36,7 @@ end
 def labelsForModifiedFiles()
   labels = []
   labels.push("api: abtesting") if @has_abtesting_changes
+  labels.push("api: appdistribution") if @has_appdistribution_changes
   labels.push("api: auth") if @has_auth_changes
   labels.push("api: core") if @has_core_changes
   labels.push("api: crashlytics") if @has_crashlytics_changes
@@ -72,6 +73,8 @@ has_license_changes = didModify(["LICENSE"])
 ## Product directories
 @has_abtesting_changes = hasChangesIn("FirebaseABTesting/")
 @has_abtesting_api_changes = hasChangesIn("FirebaseABTesting/Sources/Public/")
+@has_appdistribution_changes = hasChangesIn("FirebaseAppDistribution/")
+@has_appdistribution_api_changes = hasChangesIn("FirebaseAppDistribution/Sources/Public")
 @has_auth_changes = hasChangesIn("FirebaseAuth")
 @has_auth_api_changes = hasChangesIn("FirebaseAuth/Sources/Public/")
 @has_core_changes = hasChangesIn([
@@ -110,6 +113,7 @@ has_license_changes = didModify(["LICENSE"])
 # Convenient flag for all API changes.
 @has_api_changes = @has_abtesting_api_changes ||
                      @has_auth_api_changes ||
+                     @has_appdistribution_api_changes ||
                      @has_core_api_changes ||
                      @has_crashlytics_api_changes ||
                      @has_database_api_changes ||

+ 5 - 0
Firebase.podspec

@@ -69,6 +69,11 @@ Simplify your app development, grow your user base, and monetize more effectivel
     ss.ios.dependency 'Google-Mobile-Ads-SDK', '~> 7.50'
   end
 
+  s.subspec 'AppDistribution' do |ss|
+    ss.dependency 'Firebase/CoreOnly'
+    ss.dependency 'FirebaseAppDistribution', '~> 0.9.0'
+  end
+
   s.subspec 'Auth' do |ss|
     ss.dependency 'Firebase/CoreOnly'
     ss.dependency 'FirebaseAuth', '~> 6.8.0'

+ 3 - 3
FirebaseAppDistribution.podspec

@@ -32,11 +32,11 @@ iOS SDK for App Distribution for Firebase.
   ]
   s.public_header_files = base_dir + 'Public/*.h'
 
-  s.dependency 'FirebaseCore', '~> 6.9'
+  s.dependency 'FirebaseCore', '~> 6.10'
   s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 6.7'
   s.dependency 'GoogleUtilities/UserDefaults', '~> 6.7'
-  s.dependency 'FirebaseInstallations', '~> 1.5'
-  s.dependency 'GoogleDataTransport', '~> 7.0'
+  s.dependency 'FirebaseInstallations', '~> 1.6'
+  s.dependency 'GoogleDataTransport', '~> 7.2'
 
   s.pod_target_xcconfig = {
     'GCC_C_LANGUAGE_STANDARD' => 'c99',

+ 1 - 0
ZipBuilder/Sources/ZipBuilder/FirebasePods.swift

@@ -22,6 +22,7 @@ enum FirebasePods: String, CaseIterable {
   case abTesting = "FirebaseABTesting"
   case adMob = "Google-Mobile-Ads-SDK"
   case analytics = "FirebaseAnalytics"
+  case appdistribution = "FirebaseAppDistribution"
   case auth = "FirebaseAuth"
   case core = "FirebaseCore"
   case crashlytics = "FirebaseCrashlytics"