geolite_sdk

A Flutter package that provides integration with Geolite SDK for both Android and iOS platforms.

Features

  • Native SDK integration for both Android and iOS
  • Simple initialization API
  • Platform-specific implementation handling

Getting started

Android Setup

  1. Add the AAR file to your Android project:
    • Create a libs folder in the android directory of your app
    • Copy your AAR file into the libs folder
    • Add the following to your app's build.gradle:
      dependencies {
          implementation files('libs/your-sdk.aar')
      }
      

iOS Setup

  1. Add your framework to the iOS project:
    • Add your framework to the ios directory of your app
    • Update the ios/geolite_sdk.podspec file to include your framework:
      s.vendored_frameworks = 'Path/To/Your/Framework.framework'
      

Usage

import 'package:geolite_sdk/geolite_sdk.dart';

// Initialize the SDK
try {
  await GeoliteSdk.initialize();
  print('SDK initialized successfully');
} catch (e) {
  print('Failed to initialize SDK: $e');
}

Additional information

For more information about using this package, please visit the GitHub repository.

License

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