Search code examples
androidxamarinxamarin.androidrealmaar

Realm Java as a dependency to Native Android Library bind to Xamarin


I have an Android library that contains Realm as a dependency. I need to create C# bindings for that library but I can't understand how to create bindings for Realm. Could I just download Realm Aars from bin tray, create bindings for them and add them as a reference to Xamarin project? Or there should be another way of doing this?


Solution

  • Realm uses generic types a lot, and as I found out Xamarin Bindings doesn't work well with them. So I couldn't create working bindings for Realm and needed to replace Realm in the library with SQLite standard database. Also, I haven't found existing bindings for Realm (Java) and because of that, I will mark this answer as correct, if u have a solution for this issue please post your answer here and if it works I will accept it.