File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
objectbox-java/src/main/resources/META-INF/proguard Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ # When editing this file, also look at consumer-proguard-rules.pro of objectbox-android.
2+
3+ -keepattributes *Annotation*
4+
5+ # Native methods
6+ -keepclasseswithmembernames class io.objectbox.** {
7+ native <methods>;
8+ }
9+
10+ # For __boxStore field in entities
11+ -keep class io.objectbox.BoxStore
12+
13+ -keep class * extends io.objectbox.Cursor {
14+ <init>(...);
15+ }
16+
17+ # Native code expects names to match
18+ -keep class io.objectbox.relation.ToOne {
19+ void setTargetId(long);
20+ }
21+ -keep class io.objectbox.relation.ToMany
22+
23+ -keep @interface io.objectbox.annotation.Entity
24+
25+ # Keep entity constructors
26+ -keep @io.objectbox.annotation.Entity class * { <init>(...); }
27+
28+ # For relation ID fields
29+ -keepclassmembers @io.objectbox.annotation.Entity class * {
30+ <fields>;
31+ }
32+
33+ -keep interface io.objectbox.converter.PropertyConverter {*;}
34+ -keep class * implements io.objectbox.converter.PropertyConverter {*;}
35+
36+ -keep class io.objectbox.exception.DbException {*;}
37+ -keep class * extends io.objectbox.exception.DbException {*;}
38+
39+ -keep class io.objectbox.exception.DbExceptionListener {*;}
40+ -keep class * implements io.objectbox.exception.DbExceptionListener {*;}
41+
42+ # for essentials
43+ -dontwarn sun.misc.Unsafe
You can’t perform that action at this time.
0 commit comments