mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-09 22:36:01 +05:45
[CI] Update to swiftformat 0.55.5 (#14810)
This commit is contained in:
1 parent
6efa753a5f
commit
b51d06bebf
4 files changed
+7
-7
No files matched your search
@@ -25,8 +25,8 @@ import VertexAITestApp
|
||||
|
||||
@testable import struct FirebaseAI.BackendError
|
||||
|
||||
@Suite(.serialized)
|
||||
/// Test the schema fields.
|
||||
@Suite(.serialized)
|
||||
struct SchemaTests {
|
||||
// Set temperature, topP and topK to lowest allowed values to make responses more deterministic.
|
||||
let generationConfig = GenerationConfig(temperature: 0.0, topP: 0.0, topK: 1)
|
||||
|
||||
@@ -84,12 +84,12 @@ class GoogleTests: TestsBase {
|
||||
return returnValue
|
||||
}
|
||||
|
||||
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
|
||||
/// Sends http request to Google OAuth2 token server to use refresh token to exchange for Google
|
||||
/// access token.
|
||||
/// Returns a dictionary that constains "access_token", "token_type", "expires_in" and sometimes
|
||||
/// the "id_token". (The id_token is not guaranteed to be returned during a refresh exchange;
|
||||
/// see https://openid.net/specs/openid-connect-core-1_0.html#RefreshTokenResponse)
|
||||
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
|
||||
func getGoogleAccessTokenAsync() async throws -> [String: Any] {
|
||||
let googleOauth2TokenServerUrl = "https://www.googleapis.com/oauth2/v4/token"
|
||||
let bodyString = "client_id=\(Credentials.kGoogleClientID)&grant_type=refresh_token" +
|
||||
|
||||
@@ -104,20 +104,20 @@ import Foundation
|
||||
/**
|
||||
* Prepares a task and begins execution.
|
||||
*/
|
||||
@objc func enqueue() -> Void
|
||||
@objc func enqueue()
|
||||
|
||||
/**
|
||||
* Pauses a task currently in progress.
|
||||
*/
|
||||
@objc optional func pause() -> Void
|
||||
@objc optional func pause()
|
||||
|
||||
/**
|
||||
* Cancels a task.
|
||||
*/
|
||||
@objc optional func cancel() -> Void
|
||||
@objc optional func cancel()
|
||||
|
||||
/**
|
||||
* Resumes a paused task.
|
||||
*/
|
||||
@objc optional func resume() -> Void
|
||||
@objc optional func resume()
|
||||
}
|
||||
Reference in new issue
Block a user