Alex
Alex

Reputation: 1339

How to create android library that depends on realm

Right now I have a library that has a dependency on realm 0.87 (and several apps that are using this library). As of now, I am looking for the way to upgrade to realm 1.x, but I have not found any documentation on how to apply realm plugin to the library project.

Can anyone help me with this?

Upvotes: 0

Views: 888

Answers (1)

EpicPandaForce
EpicPandaForce

Reputation: 81539

Based on Realm's library example, it seems to me that you just need to apply the plugin like normal.

However, please note that if you want to use Realm objects defined in the library, you'll need to expose your schema classes through a RealmModule.

Upvotes: 5

Related Questions