SShortSingh.
Back to feed

CommonKotlin Flow leak in iOS apps using KMP bridge identified and fixed

0
·6 views

A resource leak occurs in Kotlin Multiplatform apps when iOS repeatedly observes shared Kotlin Flow without proper cancellation. The leak happens when Swift view models call observation functions multiple times without canceling previous jobs. This creates lingering coroutine jobs that continue running and consuming resources even when the view model is deallocated. Developers can fix the issue by implementing proper cancellation logic or modifying the CommonFlow wrapper to automatically cancel previous jobs.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Developer creates meditation app designed for outdoor use with eyes open

A developer has built a new meditation app called Outside, specifically designed for use outdoors. The app provides guided meditation while users keep their eyes open, differing from traditional apps that instruct users to close their eyes. It features a voice interface that listens to user feedback during sessions and adapts the practice accordingly. The app intentionally lacks common engagement features like accounts, streaks, and saved data to minimize screen interaction.

0
ProgrammingDEV Community ·

Developer creates offline AI trail companion app for nature identification

A developer has built Trail Whisperer, an offline-first application for hikers and nature enthusiasts. The app allows users to photograph plants and animals or record bird sounds during outdoor excursions. It provides AI-generated species identification suggestions using locally-run models on a laptop connected to a phone via local Wi-Fi. Users can save discoveries with notes and later review them in a digital memory book. The application is currently only available as a local setup project with no public hosted version.

0
ProgrammingDEV Community ·

RahaLune Launches Browser-Based Bulk QR Code Generator for 500 Codes

The RahaLune Bulk QR Generator has been launched as a tool for creating up to 500 QR codes at once entirely within a web browser. It is designed for event organizers, retailers, and marketers who need many codes, addressing the limitation of single-code generators. Users can input data via CSV upload, pasted lists, or manual entry and customize the design uniformly across all codes. The tool works fully client-side using React, JSZip, and Canvas, with no data sent to a backend server. Finished codes can be downloaded as a ZIP file containing PNGs or JPGs, or as a print-ready PDF sheet.