Installation
Add the Koolbase SDK to your Flutter project and get auth, database, storage, realtime, feature flags, and functions in one package.
Requirements
Flutter≥ 3.0.0
Dart≥ 3.0.0
iOS≥ 13.0
AndroidAPI 21+
Install the SDK
Add the Koolbase SDK to your pubspec.yaml:
pubspec.yamlYAML
dependencies:
flutter:
sdk: flutter
koolbase: ^1.4.0Or install via the command line:
flutter pub add koolbaseThen fetch dependencies:
flutter pub getWhat's Included
The koolbase package includes the full platform in one dependency:
Koolbase.authRegister, login, sessions, email verification, password resetKoolbase.dbJSONB collections, CRUD, access rules, realtime subscriptionsKoolbase.storageFile upload, download, and delete via Cloudflare R2Koolbase.realtimeWebSocket subscriptions for live data updatesKoolbase.flagsFeature flags with percentage rollouts and targetingKoolbase.configRemote config values updated without app releasesKoolbase.versionForce or soft-prompt users to update the appAndroid Setup
Add internet permission to your AndroidManifest.xml:
android/app/src/main/AndroidManifest.xmlXML
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
...
</manifest>Ensure your minSdkVersion is at least 21:
android/app/build.gradleGroovy
android {
defaultConfig {
minSdkVersion 21
...
}
}iOS Setup
No additional configuration required. Koolbase works out of the box on iOS 13+. Ensure your deployment target is set to iOS 13.0 or higher in Xcode.
Internal Dependencies
The Koolbase SDK manages these dependencies automatically:
httpAPI requestsweb_socket_channelRealtime WebSocket subscriptionsshared_preferencesLocal caching of flags and configflutter_secure_storageSecure session token storagepackage_info_plusApp version detection for version enforcementcryptoPercentage-based rollout bucketingVerify Installation
Confirm the SDK was installed correctly:
flutter pub deps | grep koolbaseYou should see koolbase 1.4.0 in the output.