Hyperion for Xamarin.Android
Hyperion module pack for Xamarin.Android apps
Installing
Add NuGet package to your Xamarin.Android project
PM> Install-Package Hyperion-Xamarin.Android
Setup and Usage
Once NuGet package is installed, Hyperion is integrated into your app during build. No initialization code needed. It will be started automatically with your app.
Hyperion drawer can be opened from its notification.
By default, Hyperion is included only for Debug configuration.
If you want to enable it for other configurations please set $(EnableHyperion)
MSBuild property in your .csproj
file:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
...
<EnableHyperion>true</EnableHyperion>
</PropertyGroup>
ATTENTION! If your app uses a custom Application class, please, add these lines to your AndroidManifest.xml
file:
<manifest ... >
<application ...>
...
<service android:name="xamarin.mark.for.MonoRuntimeProvider.generation.crash" android:process=":crash" />
<service android:name="xamarin.mark.for.MonoRuntimeProvider.generation.phoenix" android:process=":phoenix" />
...
This will help Xamarin.Android build tasks to generate and register MonoRuntimeProviders for processes declared in java libraries. Otherwise Hyperion-Crash and Hyperion-Phoenix plugins will crash due to uninitialized mono runtime in their processes.
Included plugins
-
Hyperion-Attr - Inspect views and adjust their attributes.
- including support.design, support.v4, support.v7, support.v7.widget.RecyclerView
- Hyperion-Crash - Show alternative activity when app crashes with the crash details. No UI for this module within drawer.
- Hyperion-Disk - Browse, delete, or share your app's files.
- Hyperion-Geiger-Counter - Check animation performance by listening for dropped frames.
- Hyperion-Measurement - Tap views to measure the distances between them.
- Hyperion-Phoenix - Clear local storage and relaunch the app.
- Hyperion-Recorder - Record, save, and share a video of your app.
- Hyperion-Shared-Preferences - View and edit your app's key-value storage.
- Hyperion-AppInfo - Plugin which shows screen of details about an application
Xamarin.Android app packaging system cannot merge same-named java service provider configuration files (META-INF\services\
) from multiple libraries.
That's why special pre-merged configuration files are included via hyperion-known-services-xamarin.aar
.
License
This project is licensed under the MIT License. See the LICENSE file for details.