Geosentry SDK Flutter Package

A Flutter package that integrates the Geosentry SDK's Android AAR and iOS frameworks to provide native functionality in your Flutter applications.

Features

  • Seamless integration with Geosentry SDK for Android
  • Easy-to-use Geosentry SDK integration for iOS
  • Platform-specific implementation handling
  • Simple API for accessing Geosentry functionality

Getting Started

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  geosentry_sdk: ^0.0.1

Platform-Specific Setup

Android

  1. Place your AAR file in the android/libs directory
  2. Add the following to your android/build.gradle:
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.aar'])
}

iOS

  1. Add your framework to the iOS project
  2. Update your Podfile to include the framework
  3. Run pod install

Usage

import 'package:geosentry_sdk/geosentry_sdk.dart';

// Initialize the SDK
Future<void> initializeSDK() async {
  try {
    const apiKey = 'YOUR_API_KEY';
    const cipherKey = 'YOUR_CIPHER_KEY';
    const userID = 'USER_ID';

    final response = await GeosentrySdk.initialize(
      apiKey: apiKey,
      cipherKey: cipherKey,
      userID: userID,
    );
    print('SDK Initialization Success: $response');
  } catch (error) {
    print('SDK Initialization Error: $error');
  }
}

Additional Information

License

This project is licensed under the MIT License - see the LICENSE file for details