Skip to content

Commit bab7a8b

Browse files
author
Mohit
committed
reformat
1 parent 5ce2461 commit bab7a8b

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

common/consumer-rules.pro

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,33 @@
1818

1919
##---------------Begin: proguard configuration for Common --------
2020
# Intentionally blank, left to consumers of common to implement.
21+
# keep with optmizations and shrinking, but do not obfuscate
22+
-keep,allowoptimization,allowshrinking class !com.microsoft.identity.common.java.nativeauth.**, !com.microsoft.identity.common.nativeauth.**, com.microsoft.identity.** { *; }
23+
-keep class * extends com.microsoft.identity.common.java.authorities.Authority { *; }
24+
-keep class * extends com.microsoft.identity.common.java.authorities.AzureActiveDirectoryAudience { *; }
25+
-keep class * extends com.microsoft.identity.common.java.cache.ICacheRecord { *; }
26+
-keep class * extends com.microsoft.identity.common.java.cache.ITokenCacheItem { *; }
27+
-keep class * extends com.microsoft.identity.common.java.authscheme.AbstractAuthenticationScheme { *; }
28+
-keep class com.microsoft.identity.common.internal.broker.AuthUxJsonPayload { *; }
29+
30+
31+
#For Android Credential Manager: https://developer.android.com/training/sign-in/passkeys#proguard
32+
-if class androidx.credentials.CredentialManager
33+
-keep class androidx.credentials.playservices.** {
34+
*;
35+
}
36+
37+
# Runtime annotations
38+
-keep class net.jcip.annotations.GuardedBy
39+
-keep class net.jcip.annotations.Immutable
40+
-keep class net.jcip.annotations.ThreadSafe
41+
42+
# Compile time annotations
43+
-dontwarn edu.umd.cs.findbugs.annotations.NonNull
44+
-dontwarn edu.umd.cs.findbugs.annotations.Nullable
45+
-dontwarn edu.umd.cs.findbugs.annotations.SuppressFBWarnings
46+
47+
-keepattributes SourceFile,LineNumberTable
2148

2249
##---------------Begin: proguard configuration for Nimbus ----------
2350
# Intentionally blank, left to consumers of common to implement.
@@ -28,7 +55,7 @@
2855
##---------------Begin: proguard configuration for Gson --------
2956
# Gson uses generic type information stored in a class file when working with fields. Proguard
3057
# removes such information by default, so configure it to keep all of it.
31-
-keepattributes Signature
58+
-keepattributes Signature,SourceFile,LineNumberTable
3259

3360
# For using GSON @Expose annotation
3461
-keepattributes *Annotation*
@@ -37,9 +64,6 @@
3764
-dontwarn sun.misc.**
3865
#-keep class com.google.gson.stream.** { *; }
3966

40-
# Application classes that will be serialized/deserialized over Gson
41-
-keep class com.google.gson.examples.android.model.** { <fields>; }
42-
4367
# Prevent proguard from stripping interface information from TypeAdapter, TypeAdapterFactory,
4468
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
4569
-keep class * extends com.google.gson.TypeAdapter
@@ -49,42 +73,18 @@
4973
-keep class com.google.gson.reflect.TypeToken { *; }
5074
-keep class * extends com.google.gson.reflect.TypeToken { *; }
5175

76+
##---------------Begin: proguard configuration for OpenTelemetry --------
5277
# keep everything in this package from being removed or renamed
5378
-keep class io.opentelemetry.** { *; }
5479

55-
# keep names only to allow keeping them logs and exceptions
56-
-keepnames class com.microsoft.identity.** { *; }
57-
5880
# Prevent R8 from leaving Data object members always null
5981
-keepclassmembers class com.microsoft.identity.** {
6082
@com.google.gson.annotations.SerializedName <fields>;
6183
@com.squareup.moshi.Json <fields>;
6284
}
6385

64-
-keep class * extends com.microsoft.identity.common.java.authorities.Authority { *; }
65-
-keep class * extends com.microsoft.identity.common.java.authorities.AzureActiveDirectoryAudience { *; }
66-
-keep class * extends com.microsoft.identity.common.java.cache.ICacheRecord { *; }
67-
-keep class * extends com.microsoft.identity.common.java.cache.ITokenCacheItem { *; }
68-
-keep class * extends com.microsoft.identity.common.java.authscheme.AbstractAuthenticationScheme { *; }
69-
-keep class com.microsoft.identity.common.internal.broker.AuthUxJsonPayload { *;}
70-
71-
72-
#For Android Credential Manager: https://developer.android.com/training/sign-in/passkeys#proguard
73-
-if class androidx.credentials.CredentialManager
74-
-keep class androidx.credentials.playservices.** {
75-
*;
76-
}
77-
78-
# Runtime annotations
79-
-keep class net.jcip.annotations.GuardedBy
80-
-keep class net.jcip.annotations.Immutable
81-
-keep class net.jcip.annotations.ThreadSafe
82-
83-
# Compile time annotations
84-
-dontwarn edu.umd.cs.findbugs.annotations.NonNull
85-
-dontwarn edu.umd.cs.findbugs.annotations.Nullable
86-
-dontwarn edu.umd.cs.findbugs.annotations.SuppressFBWarnings
87-
86+
## Other
87+
# Compile time annotation
8888
-dontwarn com.google.auto.value.AutoValue$CopyAnnotations
8989
-dontwarn com.google.auto.value.AutoValue
9090
-dontwarn com.google.auto.value.extension.memoized.Memoized

0 commit comments

Comments
 (0)