Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 23080f86 authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Basement: Add back safeparcel consumer proguard rules

We lost them when moving from safe-parcel module
parent 53eb20c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ android {
        minSdkVersion androidMinSdk
        targetSdkVersion androidTargetSdk
        buildConfigField "int", "VERSION_CODE", "$appVersionCode"
        consumerProguardFile 'consumer-rules.pro'
    }

    compileOptions {
+19 −0
Original line number Diff line number Diff line
# SPDX-FileCopyrightText: 2023 microG Project Team
# SPDX-License-Identifier: CC0-1.0

# Keep AutoSafeParcelables
-keep public class * extends org.microg.safeparcel.AutoSafeParcelable {
    @com.google.android.gms.common.internal.safeparcel.SafeParcelable$Field *;
    @org.microg.safeparcel.SafeParceled *;
}

# Keep asInterface method cause it's accessed from SafeParcel
-keepattributes InnerClasses
-keep public class * extends android.os.IInterface {
    public static * asInterface(android.os.IBinder);
}
-keep public class * extends android.os.Binder { public static *; }

# Keep name of SafeParcelables and their creators
-keepnames public class * implements com.google.android.gms.common.internal.safeparcel.SafeParcelable
-keepnames public class * implements com.google.android.gms.common.internal.safeparcel.SafeParcelableCreatorAndWriter
 No newline at end of file