Skip to content

Commit

Permalink
Updating deprecation message and replaceWith
Browse files Browse the repository at this point in the history
  • Loading branch information
mirzemehdi committed Oct 6, 2024
1 parent 942259b commit 96a4a90
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public actual fun AppleButtonUiContainer(
}

@Deprecated(
"Use AppleButtonUiContainer with linkAccount parameter",
ReplaceWith("AppleButtonUiContainer(modifier, requestScopes, onResult, false, content)"),
"Use AppleButtonUiContainer with the linkAccount parameter, which defaults to false.",
ReplaceWith(""),
DeprecationLevel.WARNING
)
@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public actual fun OAuthContainer(
}

@Deprecated(
"Use OAuthContainer with linkAccount parameter",
ReplaceWith("OAuthContainer(modifier, oAuthProvider, onResult, false, content)"),
"Use OAuthContainer with linkAccount parameter, which defaults to false",
ReplaceWith(""),
DeprecationLevel.WARNING
)
@OptIn(KMPAuthInternalApi::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public expect fun AppleButtonUiContainer(
)

@Deprecated(
"Use AppleButtonUiContainer with linkAccount parameter",
ReplaceWith("AppleButtonUiContainer(modifier, requestScopes, onResult, false, content)"),
"Use AppleButtonUiContainer with the linkAccount parameter, which defaults to false.",
ReplaceWith(""),
DeprecationLevel.WARNING
)
@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public expect fun OAuthContainer(
)

@Deprecated(
"Use OAuthContainer with linkAccount parameter",
ReplaceWith("OAuthContainer(modifier, oAuthProvider, onResult, false, content)"),
"Use OAuthContainer with linkAccount parameter, which defaults to false",
ReplaceWith(""),
DeprecationLevel.WARNING
)
@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ public actual fun AppleButtonUiContainer(
}

@Deprecated(
"Use AppleButtonUiContainer with linkAccount parameter",
ReplaceWith("AppleButtonUiContainer(modifier, requestScopes, onResult, false, content)"),
"Use AppleButtonUiContainer with the linkAccount parameter, which defaults to false.",
ReplaceWith(""),
DeprecationLevel.WARNING
)
@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public actual fun OAuthContainer(
}

@Deprecated(
"Use OAuthContainer with linkAccount parameter",
ReplaceWith("OAuthContainer(modifier, oAuthProvider, onResult, false, content)"),
"Use OAuthContainer with linkAccount parameter, which defaults to false",
ReplaceWith(""),
DeprecationLevel.WARNING
)
@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fun App() {
}

//Apple Sign-In with Custom Button and authentication with Firebase
AppleButtonUiContainer(onResult = onFirebaseResult) {
AppleButtonUiContainer(onResult = onFirebaseResult, linkAccount = false) {
Button(onClick = { this.onClick() }) { Text("Apple Sign-In (Custom Design)") }
}

Expand Down Expand Up @@ -114,7 +114,7 @@ fun AuthUiHelperButtonsAndFirebaseAuth(
}

//Apple Sign-In Button and authentication with Firebase
AppleButtonUiContainer(onResult = onFirebaseResult) {
AppleButtonUiContainer(onResult = onFirebaseResult, linkAccount = false) {
AppleSignInButton(modifier = Modifier.fillMaxWidth().height(44.dp)) { this.onClick() }
}

Expand All @@ -137,7 +137,7 @@ fun IconOnlyButtonsAndFirebaseAuth(
}

//Apple Sign-In IconOnly Button and authentication with Firebase
AppleButtonUiContainer(onResult = onFirebaseResult) {
AppleButtonUiContainer(onResult = onFirebaseResult, linkAccount = false) {
AppleSignInButtonIconOnly(onClick = { this.onClick() })
}
}
Expand Down

0 comments on commit 96a4a90

Please sign in to comment.