Skip to content

Commit

Permalink
Blog post announcing Embeddinator-4000 on NuGet
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpeppers committed Aug 2, 2017
1 parent 675a95c commit b75ded4
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions _posts/2017-08-02-embeddinator-4000-for-android.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Today we are announcing the first preview release of Embeddinator-4000 for Android available on [NuGet](https://www.nuget.org/packages/Embeddinator-4000/).
```
nuget install Embeddinator-4000
```
This will place `Embeddinator-4000.exe` into the `packages/Embeddinator-4000/tools` directory.

This release supports the following scenarios:
* Call C# code from Java or C
* Package a Xamarin.Android library project into an AAR package for use in Android Studio
* Include Android layouts, drawables, assets, etc. from C# projects
* Default linker behavior of `SdkOnly`
* Generate AAR files on either Windows or OS X
* Use Xamarin.Forms' new embedding API to use Xamarin.Forms from Java
* Package a .NET library project into a JAR file for use from Java on desktop platforms
* Package a .NET library project into a `dylib`, `so`, or `dll` as appropriate per platform for use from C

For general usage, run Embeddinator on a compiled Android library assembly as follows:
```
mono Embeddinator-4000.exe -gen=Java -platform=Android -c YourAndroidLibrary.dll
```
This will output `YourAndroidLibrary.aar` for use in Android Studio.

In Android Studio, create a new module and choose `Import .JAR/.AAR package`:
![Import AAR Package](../images/e4k-android-studio-import.png)

Adding a dependency to the new module, will give Java access to your .NET code:
![Add Module Dependency](../images/e4k-android-studio-dep.png)

For detailed instructions on using Embeddinator-4000 for Android see our [Getting Started](https://mono.github.io/Embeddinator-4000/getting-started-java-android.html) guide.

For a complete walkthrough, check out this video embedding Charles Petzold's [FingerPaint demo](https://developer.xamarin.com/samples/monodroid/ApplicationFundamentals/FingerPaint/) in an Android Studio project here:

[![Embeddinator-4000 for Android](https://img.youtube.com/vi/ZVcrXUpCNpI/0.jpg)](https://www.youtube.com/watch?v=ZVcrXUpCNpI)

For iOS support, you can continue to use the iOS [Getting Started](https://mono.github.io/Embeddinator-4000/getting-started-objc-ios.html) guide and the previous installer.
Binary file added images/e4k-android-studio-dep.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/e4k-android-studio-import.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b75ded4

Please sign in to comment.