Xamarin Android Binding ReferenceJar equivalent in aar?
I am trying to link a .aar library that depends on another .aar library. In the ".jar" world, I would install the library, I want to create the binding as "InputJar" and the dependencies as "ReferenceJar".
In ".aar" the equivalent for InputJar is "LibraryProjectZip", but ... what would be the equivalent for "ReferenceJar"? EmbeddedNativeLibrary? Or "LibraryProjectProperties"?
Thank!
source to share
You need to create two binding projects, one for your .aar library (Library1) and one for your .aar dependency (Library2). Note that for both projects .aar bindings need to be buildAction
installed LibraryProjectZip
. After that, just add Library2 as a dependency as Library1. In the Xamarin world, this means adding the linked Library2 project as a reference to the Library1 binding project.
Jar dependencies can be added directly via BuildAction = ReferenceJar
.
Other common dependencies can be added via nuget package manager.
source to share