Add-in: Generate Android Bindings on the fly

EgorBoEgorBo BYXamarin Team ✭✭✭

Hi everyone,
I would like to share with you my add-in for Visual Studio that can generate Xamarin.Android Binding projects on the fly from dependencyId strings like java developers usually do for 3rd party libraries - https://github.com/EgorBo/Xamarin.GradleBindings (the plugin is already published to VS gallery). Thus you can easily add a reference to any of these amazing libraries: https://github.com/wasabeef/awesome-android-ui (or any other published to jcenter etc)

:-) I hope this can help you!

Posts

  • Does it also fix any errors? ;-)
    btw nice work!

  • EgorBoEgorBo BYXamarin Team ✭✭✭

    @AndreasJacobsen.5861 Unfortunately, no :smile: But lots of recommended UI 3rd parties don't require that :smile:

  • PhilippeTPhilippeT FRMember ✭✭

    Thank you for your add-in

    "But lots of recommended UI 3rd parties don't require that"
    It would be really usefull to specifiy exactly which library can be really used (without having to fix the metadata.xml)

  • EgorBoEgorBo BYXamarin Team ✭✭✭

    @PhilippeTroller indeed, I'll revise the suggestion list.

  • PhilippeTPhilippeT FRMember ✭✭

    @Egor_Bogatov Thank you Egor !!

  • BabuBabu USMember ✭✭

    hi,

    i am able to see the "This extension does not contain a digital signature" when i am trying to add

    Xamarin.GradleBinding add-in to VS.please look attached image.Even i clicked on Install button.it shows installation

    sucessfull.but when i right click on References on VS.it does not showing me option "Add dependency via

    gradle(Generates Android Binding project)".

    please help me to resolve this issue.

    Thanks&Regards,

    NagendraBabu.K,

    Sr.Sotware Engineer,

    Gold CRM.

  • IkyMasieIkyMasie BWMember ✭✭

    Egor.... YOU ARE AMAZING!!!!! I feel like a kid with a new toy!!!! GIVE THAT MAN A BEER!

  • DannyPhamDannyPham USMember ✭✭

    @EgorBo : I used your plugin to add a custom repository https://github.com/situscale/android-SDK, but I got stuck at the external dependency id. I tried com.situ.situscale.bluetooth:SITUBluetoothLib:+, but it didn't work. Could you please help me to figure it out? Thanks in advance.

  • EgorBoEgorBo BYXamarin Team ✭✭✭
    edited October 2016

    @DannyPham , the add-in is useful when you use 3rd parties published to mavenCentral, jcenter, etc.
    I don't see the sdk you mentioned is published anywhere, but I see *.aar file is there, so just create a blank Android Binding Project and add that file https://github.com/situscale/android-SDK/tree/master/SITUBluetooth/libs

    @IkyMasie thanks! :smile:

  • DannyPhamDannyPham USMember ✭✭

    @EgorBo : thanks for your reply. I created a blank Android Binding project and followed the steps from https://developer.xamarin.com/guides/android/advanced_topics/binding-a-java-library/binding-an-aar/ but the output showed these lines:

    1>JARTOXML : warning J2XA006: missing class error was raised while reflecting com.situ.situscale.bluetooth.BluetoothLeService : Expecting a stackmap frame at branch target 11 1>JARTOXML : warning J2XA006: missing class error was raised while reflecting com.situ.situscale.bluetooth.BluetoothLeService$1 : Expecting a stackmap frame at branch target 14 1>JARTOXML : warning J2XA006: missing class error was raised while reflecting com.situ.situscale.bluetooth.SITUBluetoothService : Expecting a stackmap frame at branch target 12 1>JARTOXML : warning J2XA006: missing class error was raised while reflecting com.situ.situscale.bluetooth.SITUBluetoothService$1 : Expecting a stackmap frame at branch target 44 1>JARTOXML : warning J2XA006: missing class error was raised while reflecting com.situ.situscale.bluetooth.SITUBluetoothService$2 : Expecting a stackmap frame at branch target 69 1>JARTOXML : warning J2XA006: missing class error was raised while reflecting com.situ.situscale.bluetooth.SITUEventBus : Expecting a stackmap frame at branch target 16 1>JARTOXML : warning J2XA006: missing class error was raised while reflecting com.situ.situscale.bluetooth.SITUGattAttributes : Expecting a stackmap frame at branch target 19 1>JARTOXML : Java HotSpot(TM) 64-Bit Server VM warning : ignoring option UseSplitVerifier; support was removed in 8.0 1>BINDINGSGENERATOR : warning BG8300: For LocalBinder, could not find enclosing type 'BluetoothLeService'. 1>BINDINGSGENERATOR : warning BG8300: For LocalBinder, could not find enclosing type 'SITUBluetoothService'. 1>BINDINGSGENERATOR : warning BG8604: top ancestor BluetoothLeService not found for nested type Com.Situ.Situscale.Bluetooth.BluetoothLeService.LocalBinder. 1>BINDINGSGENERATOR : warning BG8604: top ancestor SITUBluetoothService not found for nested type Com.Situ.Situscale.Bluetooth.SITUBluetoothService.LocalBinder.

    Do you think there is anything wrong with the aar file?

  • KanchanMishraKanchanMishra Member ✭✭

    Hi Experts,

    I'm trying to build a Android binding using Xamarin.GradleBindings tool.

    I've put "com.liveperson.android:lp_messaging_sdk:3.2.0" in External Dependency Id and added maven { url 'https://maven.google.com' }.

    I'm able to see all the .aar and jar files. selected few of them...

    They got added to a binding project but there is nothing added in Metadata.xml or any of the files in Transforms folder.

    Am i going something wrong or this SDK is not supported by the tool.

    can't see any of the related class/method in android project.

    Thanks in advance.

Sign In or Register to comment.