Skip to content

Commit 4304a05

Browse files
committed
Added exclusion rule for credential manager in the proguard file
1 parent 7401bd6 commit 4304a05

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

EXAMPLES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,4 +1242,5 @@ You might encounter errors similar to `PKIX path building failed: sun.security.p
12421242
The rules should be applied automatically if your application is using `minifyEnabled = true`. If you want to include them manually check the [proguard directory](proguard).
12431243
By default you should at least use the following files:
12441244
* `proguard-okio.pro`
1245-
* `proguard-gson.pro`
1245+
* `proguard-gson.pro`
1246+
* `proguard-jetpack.pro`

auth0/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ android {
4545
buildConfigField "String", "LIBRARY_NAME", "\"$project.rootProject.name\""
4646
buildConfigField "String", "VERSION_NAME", "\"${project.version}\""
4747

48-
consumerProguardFiles '../proguard/proguard-gson.pro', '../proguard/proguard-okio.pro'
48+
consumerProguardFiles '../proguard/proguard-gson.pro', '../proguard/proguard-okio.pro', '../proguard/proguard-jetpack.pro'
4949
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
5050
}
5151
lintOptions {

auth0/src/main/java/com/auth0/android/authentication/AuthenticationAPIClient.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ public class AuthenticationAPIClient @VisibleForTesting(otherwise = VisibleForTe
157157
/**
158158
* Log in a user using passkeys.
159159
* This should be called after the client has received the Passkey challenge and Auth-session from the server .
160-
* Requires the client to have the **Passkey** Grant Type enabled. See [Client Grant Types](https://auth0.com/docs/clients/client-grant-types) to learn how to enable it.
160+
* Requires the client to have the **Passkey** Grant Type enabled. See [Client Grant Types](https://auth0.com/docs/clients/client-grant-types)
161+
* to learn how to enable it.
161162
*
162163
* @param authSession the auth session received from the server as part of the public challenge request.
163164
* @param authResponse the public key credential response to be sent to the server
@@ -185,7 +186,8 @@ public class AuthenticationAPIClient @VisibleForTesting(otherwise = VisibleForTe
185186

186187
/**
187188
* Register a user and returns a challenge.
188-
* Requires the client to have the **Passkey** Grant Type enabled. See [Client Grant Types](https://auth0.com/docs/clients/client-grant-types) to learn how to enable it.
189+
* Requires the client to have the **Passkey** Grant Type enabled. See [Client Grant Types](https://auth0.com/docs/clients/client-grant-types)
190+
* to learn how to enable it.
189191
*
190192
* @param userMetadata user information of the client
191193
* @param parameters additional parameter to be sent as part of the request
@@ -220,7 +222,8 @@ public class AuthenticationAPIClient @VisibleForTesting(otherwise = VisibleForTe
220222

221223
/**
222224
* Request for a challenge to initiate a passkey login flow
223-
* Requires the client to have the **Passkey** Grant Type enabled. See [Client Grant Types](https://auth0.com/docs/clients/client-grant-types) to learn how to enable it.
225+
* Requires the client to have the **Passkey** Grant Type enabled. See [Client Grant Types](https://auth0.com/docs/clients/client-grant-types)
226+
* to learn how to enable it.
224227
*
225228
* @param realm An optional connection name
226229
* @return a request to configure and start that will yield [PasskeyChallengeResponse]

proguard/proguard-jetpack.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Jetpack libraries
2+
3+
-if class androidx.credentials.CredentialManager
4+
-keep class androidx.credentials.playservices.** {
5+
*;
6+
}

0 commit comments

Comments
 (0)