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
- Place your AAR file in the
android/libs
directory - Add the following to your
android/build.gradle
:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.aar'])
}
iOS
- Add your framework to the iOS project
- Update your
Podfile
to include the framework - 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
- For more detailed documentation, visit the online documentation
- File issues and feature requests at issue tracker
- Contribute to the package at repository
License
This project is licensed under the MIT License - see the LICENSE file for details