GsiMaui 1.0.0

dotnet add package GsiMaui --version 1.0.0
                    
NuGet\Install-Package GsiMaui -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GsiMaui" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GsiMaui" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="GsiMaui" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GsiMaui --version 1.0.0
                    
#r "nuget: GsiMaui, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GsiMaui@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GsiMaui&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=GsiMaui&version=1.0.0
                    
Install as a Cake Tool

GsiMaui

A .NET MAUI library for integrating face detection and document verification capabilities via the GSI (Government Services Integration) SDK on Android and iOS.

Overview

GsiMaui wraps native platform SDKs to provide a unified cross-platform API for:

  • Face Detection — capture and analyze facial features
  • Document Verification — recognize and validate government IDs and travel documents
  • Personal Data Extraction — extract biographical and biometric information (name, PINFL, citizenship, photo, etc.)
  • Multi-language Support — Uzbek, English, and Russian

Project Structure

GsiMaui.sln
├── GsiMaui/                    # Shared .NET MAUI library
│   ├── IGsiFaceDetectSdk.cs    # Core interface
│   ├── GsiSdkConfig.cs         # Configuration (SSL, UI, SDK)
│   ├── GsiSdkResult.cs         # Result data models
│   ├── GsiSdkLocale.cs         # Enums (locale, camera shape, styles)
│   └── Platforms/
│       ├── Android/             # Android implementation
│       └── iOS/                 # iOS implementation
├── GsiMaui.Android/            # Android binding library (AAR + NuGet deps)
├── GsiMaui.iOS/                # iOS binding library (xcframework)
└── NativeBridge/               # Swift-to-ObjC bridge for iOS interop

Requirements

  • .NET 9.0
  • Android API 21+ (Android 5.0)
  • iOS 13.0+

Installation

Add project references to your MAUI application:

<ProjectReference Include="..\GsiMaui\GsiMaui.csproj" />

Usage

1. Configure the SDK

var config = new GsiSdkConfig
{
    AccessToken = "your-access-token",
    BaseUrl = "https://api.example.com",
    Locale = GsiSdkLocale.En,
    CameraShape = GsiCameraShape.Oval,
    ResultType = GsiResultType.Standard,
    SslConfig = new GsiSslConfig
    {
        CertificateAlias = "your-cert-alias"
    },
    UiConfig = new GsiUiConfig
    {
        LogoUrl = "https://example.com/logo.png"
    }
};

2. Start Face Detection

IGsiFaceDetectSdk sdk = /* platform-specific instance */;

GsiSdkResult result = await sdk.StartAsync(config);

3. Handle the Result

if (result.Person != null)
{
    var person = result.Person;
    // person.Name, person.Surname, person.Pinfl, person.Photo, etc.
}

if (result.NestedResult != null)
{
    // Enterprise nested result handling
}

Configuration Options

Option Description
AccessToken Authentication token for the SDK
BaseUrl API base URL
Locale UI language — Uz, En, or Ru
CameraShape Detection overlay — Circle or Oval
ResultType Standard (person data) or Nested (enterprise)
SslConfig SSL/TLS certificate pinning settings
UiConfig UI customization (logo, colors, fonts, layout)

Platform Details

Android

Uses AndroidX Activity Result API with the native facedetectsdk.aar. Key dependencies include Google ML Kit Face Detection, AndroidX Camera, and OkHttp.

iOS

Uses TGFISBIN.xcframework (native Swift SDK) via a custom ObjC bridge (TGFISBINBridge.xcframework). The bridge is built from Swift source in the NativeBridge/ folder using build.sh.

Rebuilding the iOS Bridge
cd NativeBridge
./build.sh

This compiles the Swift bridge for device (arm64) and simulator (arm64 + x86_64), then packages the result as an xcframework.

License

Proprietary. All rights reserved.

Product Compatible and additional computed target framework versions.
.NET net9.0-android35.0 is compatible.  net9.0-ios18.0 is compatible.  net10.0-android was computed.  net10.0-ios was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 109 3/29/2026