FIRAppDistributionRelease.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright 2020 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #import <Foundation/Foundation.h>
  15. NS_ASSUME_NONNULL_BEGIN
  16. /**
  17. * The release information returned by the update check when a new version is available.
  18. */
  19. NS_SWIFT_NAME(AppDistributionRelease)
  20. @interface FIRAppDistributionRelease : NSObject
  21. /// The short bundle version of this build (example 1.0.0).
  22. @property(nonatomic, copy, readonly) NSString *displayVersion;
  23. /// The build number of this build (example: 123).
  24. @property(nonatomic, copy, readonly) NSString *buildVersion;
  25. /// The release notes for this build.
  26. @property(nonatomic, nullable, copy, readonly) NSString *releaseNotes;
  27. /// The URL for the build.
  28. @property(nonatomic, strong, readonly) NSURL *downloadURL;
  29. /// Whether the download URL for this release is expired.
  30. @property(nonatomic, readonly) BOOL isExpired;
  31. /** :nodoc: */
  32. - (instancetype)init NS_UNAVAILABLE;
  33. @end
  34. NS_ASSUME_NONNULL_END