Explorar el Código

App distribution patch for restricted api keys (#6353)

* App distribution add bundle header (#6346)

* Add x-ios-bundle-identifier to list releases for restricted api keys

* Update changelog

* Terminate changelog statements with periods

* Clean up change log. (#6347)

* Bump the podspec version and changelog version for release patch (#6352)

We'll check for greenness in the patch.
Cleo Schneider hace 5 años
padre
commit
cb0d14835e

+ 1 - 1
FirebaseAppDistribution.podspec

@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
   s.name             = 'FirebaseAppDistribution'
-  s.version          = '0.9.0'
+  s.version          = '0.9.1'
   s.summary          = 'App Distribution for Firebase iOS SDK.'
 
   s.description      = <<-DESC

+ 4 - 0
FirebaseAppDistribution/CHANGELOG.md

@@ -1,2 +1,6 @@
+# v0.9.1
+- [changed] Updated header comments (#6321).
+- [fixed] Bug for customers with restricted API keys unable to fetch releases (#6346).
+
 # v0.9.0
 - Initial beta release.

+ 2 - 0
FirebaseAppDistribution/Sources/FIRFADApiService.m

@@ -26,6 +26,7 @@ NSString *const kReleasesEndpointURLTemplate =
     @"-/testerApps/%@/installations/%@/releases";
 NSString *const kInstallationAuthHeader = @"X-Goog-Firebase-Installations-Auth";
 NSString *const kApiHeaderKey = @"X-Goog-Api-Key";
+NSString *const kApiBundleKey = @"X-Ios-Bundle-Identifier";
 NSString *const kResponseReleasesKey = @"releases";
 
 @implementation FIRFADApiService
@@ -73,6 +74,7 @@ NSString *const kResponseReleasesKey = @"releases";
   [request setHTTPMethod:method];
   [request setValue:authTokenResult.authToken forHTTPHeaderField:kInstallationAuthHeader];
   [request setValue:[[FIRApp defaultApp] options].APIKey forHTTPHeaderField:kApiHeaderKey];
+  [request setValue:[NSBundle mainBundle].bundleIdentifier forHTTPHeaderField:kApiBundleKey];
   return request;
 }