META-INF.proguard.objectbox-java.pro Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectbox-java Show documentation
Show all versions of objectbox-java Show documentation
ObjectBox is a fast NoSQL database for Objects
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