GURUUMEDITATION

[responsive-menu menu="HamburgerMenu"]

Cross platform unit tests with mock

Following my post on the framework SimpleStubs for UWP Unit tests, I’ll show how to do a cross platform unit test. The idea is not to test the PCL in a “neutral” way , but test it on the 3 platforms supported by Xamarin (Android, iOS and UWP). All by reusing the same code for the tests, of course. Creation of projects For iOS and [...]

Genymotion ADB server version (xx) doesn’t match this client (yy)

I recently had this very explicit error message (he seems write cryptic messages is part of the specification now): “Genymotion ADB server version (xx) doesn’t match this customer (yy)”. The error comes from the fact that the ADB used by Genymotion is not the same as that used by Xamarin (which is installed with the Android SDK). To [...]

Autolayout with Fluentlayout

  I am currently developing some iOS app with Xamarin. I wanted to use Autolayout for the UI as it is the modern way. Besides, I like those “reactive” layout. Autolayout is not the most intuitive (at least for me ) so I was looking for something to make it easier. I found this, Fluentlayout. As it is developed by the author of MvvmCross, I know [...]

Xamarin Forms behaviors

A new thing in Xamarin Forms 1.3 is the behaviors. The behaviors are a kind of super attached property. You can see it as a independent reusable functionality you can add to existing controls as you want. You don’t need to subclass the control, it is just like a piece you clip on the control.   As example, I’ll make a behavior that executes a command [...]

Could not load type in release mode (Xamarin)

I got a weird problem with a Xamarin Android app today. In debug mode, it works. In release, I have a weird exception “Could not load type System.Guid”. The problem is with the linker. Sometimes it “forget” to include some types. You can reproduce it in debug mode by copying the same linker release settings to the debug settings. Mainly : and With [...]