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
- Add the AAR file to your Android project:
- Create a
libsfolder in theandroiddirectory of your app - Copy your AAR file into the
libsfolder - Add the following to your app's
build.gradle:dependencies { implementation files('libs/your-sdk.aar') }
- Create a
iOS Setup
- Add your framework to the iOS project:
- Add your framework to the
iosdirectory of your app - Update the
ios/geolite_sdk.podspecfile to include your framework:s.vendored_frameworks = 'Path/To/Your/Framework.framework'
- Add your framework to the
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.