Binding library for VGS Collect Android SDK
NOTE: This demo is just an example of how VGS Collect SDK can be integrated into your application.
Go to your VGS organization and establish Inbound connection. For this demo you can import pre-built route configuration:
- Find the configuration.yaml file inside the app repository and download it.
- Go to the Routes section on the Dashboard page and select the Inbound tab.
- Press Manage button at the right corner and select Import YAML file.
- Choose configuration.yaml file that you just downloaded and tap on Save button to save the route.
git clone [email protected]:vgs-samples/vgs-collect-android-xamarin-demo.git
- VGSCollectBindingLibrary - Android Binding Library
- AndroidSample - Sample of the Xamarin Android project with VGS collect library integrated
VGSCollectBindingLibrary
- Xamarin.Kotlin.StdLib 1.3.50.1
- Xamarin.AndroidX.AppCompat 1.1.0
- Square.OkHttp3 4.2.2
- Xamarin.Kotlin.StdLib.Jdk8 1.3.50.1
AndroidSample
- Xamarin.Android.Support.Design 28.0.0.3
- Xamarin.AndroidX.AppCompat 1.1.0
- Xamarin.AndroidX.Legacy.Support.Core.UI 1.0.0
- Xamarin.AndroidX.Lifecycle.LiveData 2.2.0
- Xamarin.Google.Android.Material 1.1.0-rc3
- Xamarin.Kotlin.StdLib 1.3.50.1
- Xamarin.Android.Support.Annotations 28.0.0.3
- Square.OkHttp3 4.2.2
- Xamarin.Kotlin.StdLib.Jdk8 1.3.50.1
Setup "<VAULT_ID>"
.
Find MainActivity.cs and replace VAULT_ID
constant with your vault id.
How to integrate compiled library
- In the target Xamarin Android project right click on References
- Add Reference
- Switch to .Net Assembly tab
- Choose compiled dll from the file system
- Open Visual Studio
- Choose configuration
- Run build
- It may be needed to install required Android SDK
Compiled library Build also available under {Project_root}/dll folder
Submit and reveal the form then go to the Logs tab on a Dashboard find a request and secure a payload. Instruction for this step you can find here.
VGS Collect Android SDK is released under the MIT license. See LICENSE for details.