main.swift 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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
  15. // import Firebase
  16. import FirebaseCore
  17. import FirebaseAuth
  18. import FirebaseFunctions
  19. import FirebaseInstallations
  20. // import FirebaseInstanceID
  21. import FirebaseStorage
  22. import FirebaseStorageSwift
  23. // import GoogleDataTransport
  24. // import GoogleDataTransportCCTSupport
  25. import GoogleUtilities_AppDelegateSwizzler
  26. import GoogleUtilities_Environment
  27. import GoogleUtilities_Logger
  28. import GoogleUtilities_MethodSwizzler
  29. import GoogleUtilities_Network
  30. import GoogleUtilities_NSData
  31. import GoogleUtilities_Reachability
  32. import GoogleUtilities_UserDefaults
  33. import nanopb
  34. import XCTest
  35. class importTest: XCTestCase {
  36. func testImports() {
  37. XCTAssertFalse(GULAppEnvironmentUtil.isAppStoreReceiptSandbox())
  38. XCTAssertFalse(GULAppEnvironmentUtil.isFromAppStore())
  39. XCTAssertFalse(GULAppEnvironmentUtil.isSimulator())
  40. XCTAssertFalse(GULAppEnvironmentUtil.isAppExtension())
  41. XCTAssertNil(FirebaseApp.app())
  42. XCTAssertEqual(GULAppEnvironmentUtil.deviceModel(), "x86_64")
  43. print("System version? Answer: \(GULAppEnvironmentUtil.systemVersion() ?? "NONE")")
  44. print("Storage Version String? Answer: \(String(cString: StorageVersionString))")
  45. // print("InstanceIDScopeFirebaseMessaging? Answer: \(InstanceIDScopeFirebaseMessaging)")
  46. }
  47. }