All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.proguard.objectbox-java.pro Maven / Gradle / Ivy

The newest version!
# When editing this file, also look at consumer-proguard-rules.pro of objectbox-android.

-keepattributes *Annotation*

# Native methods
-keepclasseswithmembernames class io.objectbox.** {
    native ;
}

# For __boxStore field in entities
-keep class io.objectbox.BoxStore

-keep class * extends io.objectbox.Cursor {
    (...);
}

# Native code expects names to match
-keep class io.objectbox.relation.ToOne {
    void setTargetId(long);
}
-keep class io.objectbox.relation.ToMany
-keep class io.objectbox.tree.LeafNode

-keep @interface io.objectbox.annotation.Entity

# Keep entity constructors
-keep @io.objectbox.annotation.Entity class * { (...); }

# For relation ID fields
-keepclassmembers @io.objectbox.annotation.Entity class * {
    ;
}

-keep interface io.objectbox.converter.PropertyConverter {*;}
-keep class * implements io.objectbox.converter.PropertyConverter {*;}

-keep class io.objectbox.exception.DbException {*;}
-keep class * extends io.objectbox.exception.DbException {*;}

-keep class io.objectbox.exception.DbExceptionListener {*;}
-keep class * implements io.objectbox.exception.DbExceptionListener {*;}

# for essentials
-dontwarn sun.misc.Unsafe
# SpotBugs annotations
-dontwarn edu.umd.cs.findbugs.annotations.SuppressFBWarnings




© 2015 - 2024 Weber Informatics LLC | Privacy Policy