Skip to content

Commit 4ca2ae4

Browse files
authored
Merge branch 'main' into JonEckenrode-patch-2
2 parents 61d1fb4 + d223cb1 commit 4ca2ae4

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

gradle/libs.versions.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ androidx-constraintlayout = "2.2.1"
99
androidx-constraintlayout-compose = "1.1.0"
1010
androidx-coordinator-layout = "1.2.0"
1111
androidx-corektx = "1.15.0"
12+
androidx-credentials = "1.5.0"
13+
androidx-credentials-play-services-auth = "1.5.0"
1214
androidx-emoji2-views = "1.5.0"
1315
androidx-fragment-ktx = "1.8.6"
1416
androidx-glance-appwidget = "1.1.1"
@@ -97,6 +99,8 @@ androidx-constraintlayout-compose = { module = "androidx.constraintlayout:constr
9799
androidx-coordinator-layout = { module = "androidx.coordinatorlayout:coordinatorlayout", version.ref = "androidx-coordinator-layout" }
98100
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "androidx-corektx" }
99101
androidx-core-splashscreen = { module = "androidx.core:core-splashscreen", version.ref = "coreSplashscreen" }
102+
androidx-credentials = { module = "androidx.credentials:credentials", version.ref = "androidx-credentials" }
103+
androidx-credentials-play-services-auth = { module = "androidx.credentials:credentials-play-services-auth", version.ref = "androidx-credentials-play-services-auth" }
100104
androidx-emoji2-views = { module = "androidx.emoji2:emoji2-views", version.ref = "androidx-emoji2-views" }
101105
androidx-fragment-ktx = { module = "androidx.fragment:fragment-ktx", version.ref = "androidx-fragment-ktx" }
102106
androidx-glance-appwidget = { module = "androidx.glance:glance-appwidget", version.ref = "androidx-glance-appwidget" }

identity/credentialmanager/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ android {
4040
}
4141

4242
dependencies {
43-
4443
implementation(libs.androidx.core.ktx)
4544
implementation(libs.androidx.lifecycle.runtime)
4645
implementation(libs.androidx.activity.compose)
@@ -49,6 +48,13 @@ dependencies {
4948
implementation(libs.androidx.compose.ui.graphics)
5049
implementation(libs.androidx.compose.ui.tooling.preview)
5150
implementation(libs.androidx.compose.material3)
51+
// [START android_identity_gradle_dependencies]
52+
implementation(libs.androidx.credentials)
53+
54+
// optional - needed for credentials support from play services, for devices running
55+
// Android 13 and below.
56+
implementation(libs.androidx.credentials.play.services.auth)
57+
// [END android_identity_gradle_dependencies]
5258
debugImplementation(libs.androidx.compose.ui.tooling)
5359
debugImplementation(libs.androidx.compose.ui.test.manifest)
5460
}

identity/credentialmanager/proguard-rules.pro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,11 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
21+
#-renamesourcefileattribute SourceFile
22+
23+
# // [START android_identity_proguard_rules]
24+
-if class androidx.credentials.CredentialManager
25+
-keep class androidx.credentials.playservices.** {
26+
*;
27+
}
28+
# // [END android_identity_proguard_rules]

0 commit comments

Comments
 (0)