• Stars
    star
    146
  • Rank 252,769 (Top 5 %)
  • Language
    C#
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

VS add-in. Creates Xamarin.Android Binding Projects using gradle

Xamarin.GradleBindings - Adding Java libs to Xamarin.Android is as simple as "Adding Reference" in VS.

Link to extensions gallery: https://visualstudiogallery.msdn.microsoft.com/3a3257c7-473a-4790-9610-9a561eed0b8c

How do java developers add dependencies to their projects? Yes that's right, via gradle (something like this or that). As you can see some java-projects use those dependencies a lot so it'd be nice to use those huge amount of 3rd party libraries in your Xamarin project, right? I believe this Add-in for Visual Studio 2017 will help you with it:

Alt text

How to use

Step 1: Execute the command over "References" folder

Alt text

Step 2: Set an external dependency id and a name for Xamarin Android Binding Project (will be generated). This dialog will allow you to specify custom repositories as well soon.

Alt text

The Plugin executes gradle scripts and receives dependencies list (including transitive ones). At this step you can select or deselect needed binaries (transitive dependencies are deselected by default). NOTE: you'd better use "Xamarin Components" or directly NuGet for Support dependencies (v4, RecyclerView, AppCompact, etc..).

Alt text

Step 3: The binding project will be generated but you still may have to fix some issues via Metadata.xml because the Add-in is not smart enough. For our example you will have to change visibility of DialogBase class because it's private in Java and C# doesn't support deriving public classes from private ones. So just add it to the Transforms/Metadata.xml (more info here):

<attr path="/api/package[@name='com.afollestad.materialdialogs']/class[@name='DialogBase']" name="visibility">public</attr>

Step 4: Now you are ready to use them! i.e. the Material Dialogs:

Alt text

Enjoy!

More Repositories

1

SimdJsonSharp

C# bindings for lemire/simdjson (and full C# port)
C#
643
star
2

Disasmo

VS2022 Add-in. Click on any method or class to see what .NET Core's JIT generates for them (ASM).
C#
638
star
3

CrossChat-Xamarin.Forms

A chat application implemented using Xamarin.Forms and DDD + MVVM
C#
319
star
4

Toasts.Forms.Plugin

A plugin for Xamarin and Windows - it unites Crouton (Android), TWMessageBarManager (iOS) and my toast notificator for WP8.
C#
278
star
5

Xamaridea

Visual Studio extension. Opens *.axml/xml files in IDEA or Android Studio (Xamarin.Android)
C#
78
star
6

IntrinsicsPlayground

My toys to play with SSE/AVX in pure C# (.NET Core 2.1)
C#
64
star
7

XamarinWithUnityApp

A Xamarin app (Android) with Unity as a library (aar)
C#
46
star
8

ARKitXamarinDemo

ARKit + UrhoSharp + Xamarin
C#
45
star
9

CppPinvokeGenerator

A simple pinvoke generator based on CppAst to generate C# for C++
C#
32
star
10

Xamarin.Android-vs-Java

Performance comparison between Xamarin.Android+C# vs (Dalvik or ART)+Java
Java
25
star
11

HelloIL

A simple .NET 6.0 Hello World written in pure IL
19
star
12

UrhoAssetImporter

HLSL
16
star
13

left-pad-net

left-pad for C# via nuget
C#
13
star
14

PrejitAll

A helper tool to prejit everything in a given folder
C#
10
star
15

MonoNET5Sample

C#
9
star
16

DeclarativeVisualStates

Just trying to port VisualStateManager from Xaml (Wpf) to Android XML (Java)
Java
9
star
17

EgorBo.github.io

My blog https://egorbo.com
HTML
8
star
18

MatieBot

C#
7
star
19

MvvmNavigationToolkit

Navigation toolkit for Windows Phone & Windows Store apps
C#
7
star
20

SimpleUrhoRoomScene

A simple scene made with Blender and UrhoSharp
C#
6
star
21

UrhoArkitTemplate

Demo for https://blog.xamarin.com/bring-3d-models-life-augmented-reality-urhosharp/
C#
6
star
22

NtlmHttpHandler

NtlmHttpHandler allows to create NTLM-friendly http handlers for HttpClient.
C#
6
star
23

JitDisasmSample

COMPlus_JitDisasm usage example
Shell
4
star
24

ARVRWorkshop

C#
3
star
25

OpenALRP.SharpExperiments

OpenALRP Xamarin Workbook
2
star
26

HoloLightsaber

C#
2
star
27

JavaSSLStream

Just some tests
C
2
star
28

MyApartments

a dump of my apartments from HoloLens + UrhoSharp
C#
2
star
29

MonoMergeHelper

A tool to merge mono with CoreFX and CoreRT
C#
1
star