Skip to content

Upgrade ObjectBox to 6.0.0-preview.6 - #757

Merged
theachoem merged 1 commit into
developfrom
objectbox-6-preview
Nov 18, 2026
Merged

theachoem merged 1 commit into
developfrom
objectbox-6-preview

Conversation

@theachoem

@theachoem theachoem commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Pin objectbox, objectbox_flutter_libs, objectbox_generator to 6.0.0-preview.6 (changelog).
  • Regenerated objectbox.g.dart: openStore() no longer calls loadObjectBoxLibraryAndroidCompat() (Android 6 support dropped). objectbox-model.json unchanged.
  • iOS/macOS: the plugin now supports Swift Package Manager, so ObjectBox moved from CocoaPods to SPM. macOS no longer needs CocoaPods at all — pod deintegrate, Podfile/Podfile.lock removed.
  • Other .g.dart / assets.gen.dart changes are just current generator formatting picked up by the rebuild.

Platform notes

Platform Requirement Status
Flutter/Dart Flutter 3.44 / Dart 3.12 3.47.4 ✅
Android minSdk 24 already 24 ✅ — native lib now objectbox-android-db:6.0.0-beta3; no Admin, so no Gradle changes
iOS — target 16 ✅ — ObjectBox Swift 5.3.0 via SPM
macOS macOS 12 already 12 ✅ — ObjectBox Swift 5.3.0 via SPM
Linux/Windows native 6.0.0-beta2 fetched by the plugin's CMake ✅

No API changes needed: no Store.fromReference/attach/watch/entityChanges usage, and no ToOne/ToMany relations, so the PutMode behavior change doesn't apply.

Risk

Android/Linux/Windows now open real user databases with the 6.0 beta native library. The changelog doesn't say whether a database opened by 6.0 can still be read by 5.x — verify the downgrade path before shipping to stable.

Test plan

  • dart analyze — no issues
  • flutter test — all 1129 pass
  • Android: open existing DB, stories/tags/assets load; create + delete a story
  • iOS: same
  • macOS (no CocoaPods now): clean build, same checks, app group store still opens
  • Linux/Windows build

🤖 Generated with Claude Code

- Pin objectbox, objectbox_flutter_libs and objectbox_generator to 6.0.0-preview.6
- Regenerate objectbox.g.dart (openStore no longer calls loadObjectBoxLibraryAndroidCompat)
- iOS/macOS: ObjectBox now comes via Swift Package Manager instead of CocoaPods;
  macOS no longer needs CocoaPods at all (pod deintegrate, Podfile removed)
- Regenerated copy_with / flutter_gen output picked up current generator formatting

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@theachoem theachoem added dependencies Pull requests that update a dependency file migrate labels Nov 18, 2026
@theachoem theachoem self-assigned this Nov 18, 2026
@theachoem theachoem moved this to Done in StoryPad Nov 18, 2026
@theachoem
theachoem merged commit 1b7004b into develop Nov 18, 2026
1 check passed
@theachoem
theachoem deleted the objectbox-6-preview branch November 18, 2026 14:37
@theachoem theachoem mentioned this pull request Nov 18, 2026
2 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file migrate

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant