Reputation: 3356
I have been using Parceler
to serialize RealmObjects
. After updating to version 1.2.0 of Realm, none of the RealmProxy classes are being generated.
I have cleaned and rebuilt the project several times unsuccessfully. Here is a snippet of the parceler
.
@Parcel(implementations = {TrackRealmProxy.class},
value = Parcel.Serialization.BEAN,
analyze = {Track.class})
Upvotes: 1
Views: 250
Reputation: 5720
Update as on Realm 5.0.0
full package name is required with _
separator.
it will look like
import io.realm.com_example_test_SomeClassRealmProxy;
@Parcel(implementations = {com_example_test_SomeClassRealmProxy.class},
value = Parcel.Serialization.BEAN,
analyze = {SomeClass.class})
Upvotes: 1
Reputation: 2465
Have you tried including a default empty constructor that doesn't have any parameters? Parceler has some issues without that default constructor.
class A(){
int attributeA;
float attrubuteB;
}
Upvotes: 0