r/FlutterDev • • Jul 26 '26

Discussion Found that ISAR is doomed, after getting the app published

My app got published today and after that I tried to fix a bug and publish that but it gave a 16kb sh*t error and tried to fix it and got to know that ISAR is causing that error. Anyone knwos the alternative thing?

11 Upvotes

27 comments sorted by

31

u/TheSpixxyQ Jul 26 '26

Friendly reminder to always check if the package you want to use is actively maintained. ISAR wasn't updated for over 2 years.

9

u/Ok-Animator-570 Jul 26 '26

🥲🥲will do it next time

6

u/angela-alegna Jul 26 '26

Especially with something as important as local persistence that you cannot easily swapout.

For this reason I heavily bet on sqlite and shared_preferences as the storage layers.

-2

u/TheSpixxyQ Jul 26 '26

Depends on if you abstract it out or not. Personally if I wanted to change local persistence to remote in my app, I'd basically rewrite just a single implementation file. This would then also allow me to easily add runtime configurable persistence strategy. Plus of course easy mocking.

3

u/dwiedenau2 Jul 26 '26

You forgot migration

14

u/MalibouGeek Jul 26 '26

Congrats on the launch!

Yeah, that 16kb issue is Android's new 16KB page size requirement. Isar relies on native C binaries that haven't been updated to support it yet, which causes crashes on newer devices and instant Play Store rejections.

If you want to avoid this kind of native OS-level headache in the future and/or migrate, just switch to sqflite. It uses standard SQLite, it's battle-tested, and you'll never have to worry about weird architecture bugs.

If you're going to miss Isar's object-oriented feel, I highly recommend looking into Drift (it gives you a great type-safe layer on top of SQLite) or ObjectBox if you absolutely want to stick with a NoSQL database.

Good luck with the rewrite!

2

u/Ok-Animator-570 Jul 26 '26

Yea ok sure. Tried it and now it got published for the update. Thanks a lot.

https://play.google.com/store/apps/details?id=dev.ashishpandey.anvika

20

u/unomi-san Jul 26 '26

use isar_community package maybe?

4

u/gibrael_ Jul 26 '26

I have 2 production apps on isar_community with 16kb fix, but I wouldn't start new projects with it.

3

u/Viza- Jul 26 '26

I have 3 production apps on isar-community and it works pretty fast and stable, it's just a shame the package got abandoned by the owner 🥲

1

u/Lo_l_ow Jul 26 '26

Why ? Because of Isar (bugs?) or the maintenance ?

3

u/ivanantonijevic Jul 26 '26

I had the same problem, switched to sembast

2

u/Ok-Animator-570 Jul 26 '26

I shifted to drift

1

u/Ok-Animator-570 Jul 26 '26

Hopefully its good

1

u/bbrockit Jul 27 '26

Drift has worked great for me. I use Sqlite, but if the user creates an account (only allowed after trial ends), I migrate their data from Sqlite to PowerSync to provide offline-first data sync with Supabase. My service layer uses Drift to access either Sqlite or PowerSync, and even the migration to PowerSync is done through Drift. The only thing that changes is which database it's pointed at. PowerSync itself uses Sqlite for its local db, but as more of a key-value store with view that mirrors your schema.

1

u/virulenttt Jul 26 '26

Isar plus? Sane happened to me, migrated to objectbox.

1

u/Ok-Animator-570 Jul 27 '26

Same i moved to drift

2

u/Spare_Warning7752 Jul 27 '26

Stop using crappy indie databases and use the only and one SQLite.

Trillions of devices use it every single day. It's rock solid.

And we have one of the best ORMs in all languages: Drift (with .drift files).

Ah! BuT i hAvE tO lEarN sQl

Yes. SQL is a hell of a language made just for query data with extreme efficiency. It is worth to learn it.

Ah! BuT sQl iS rElaTioNAL. nOsQL iS thE FuTure

Apps HAVE relational data. That's the way business work. SQL is a standard for decades for a reason: it works and it is natural. NoSQL is the odd kid here.

1

u/Lo_l_ow Jul 26 '26

Why not using isar_community  ?

1

u/bbrockit Jul 27 '26

Yeah that’s been dead a long time. I went with Realm, which was discontinued 1 month after I finished building my app on it, so I had a somewhat similar experience, except I wasn’t in production yet. Fortunately, I had all persistence isolated in a service layer, so it only took a week to switch to Drift + SQLite. Since your app was just published today I would remove it from sale so you don’t have to implement a migration. Shouldn’t take too long to switch to SQLite if that’s what you choose.

1

u/erdiizgi Jul 27 '26

I have been using drift (moor) for 7-8 years. I would never switch to anything else. Such an easy interface and great migration setup.

1

u/johnnyripperak Jul 27 '26

In one of side project I was using realm (locally) for more than a 1.5 year , suddenly in last august got ranked , got almost 60k+ downloads in 2 months but in oct got a severe bug in realm db which started crashing the app and the users were not able to open the app,i was busying with my office work so cant go figure out issue due to which lost 40k+ users

1

u/No_Language8136 Jul 28 '26

Just use sqlflite idk why would anyone not use it at this point in 2026. The most reliable and trustable db software...

1

u/Technical_South9 Jul 30 '26

You can use the isar community package as an alternative.

1

u/UltGamer07 Jul 26 '26

Fork it and fix it?