geonode_sdk 2.0.0
geonode_sdk: ^2.0.0 copied to clipboard
Flutter bindings for the Geonode SDK with bundled native libraries.
geonode_sdk #
Flutter bindings for the Geonode SDK.
This package bundles the native Geonode SDK for Flutter apps on Android, Linux, macOS, and Windows, and exposes a small FFI-based Dart API for initializing the SDK and managing its connection lifecycle.
Supported platforms #
- Android
- Linux
- macOS
- Windows
Installation #
dependencies:
geonode_sdk: ^2.0.0
Then run:
flutter pub get
Usage #
import 'package:geonode_sdk/geonode_sdk.dart';
final sdk = GeonodeSdk.initialize(
apiKey,
const GeonodeAppInfo(
id: 'your-app-id',
userId: 'app-user-id',
version: '1.0.0',
buildNumber: '1',
),
);
await sdk.connect();
// ...
await sdk.disconnect();
sdk.dispose();
API overview #
GeonodeSdk.initialize(...)creates a native SDK handle.connect()anddisconnect()run the native operations off the UI isolate.isRunningreports the current native connection state.dispose()frees the native SDK handle and should be called during teardown.
Notes #
- The plugin loads bundled native libraries automatically for each supported platform.