Skip to content

Add cache support for Flash/AIR SWF library processing#47

Open
barisyild wants to merge 1 commit intoopenfl:masterfrom
barisyild:flash-cache-fix
Open

Add cache support for Flash/AIR SWF library processing#47
barisyild wants to merge 1 commit intoopenfl:masterfrom
barisyild:flash-cache-fix

Conversation

@barisyild
Copy link
Copy Markdown
Contributor

The Flash/AIR branch in processLibraries was missing the cache mechanism that the Animate branch already had. This caused generateSWFClasses to re-parse the SWF from scratch on every build even when the source file and tool had not changed.

The cache stores generated class names and template asset data in a JSON file at {targetDirectory}/obj/libraries/{name}.cache, using the same mtime-based invalidation strategy as the Animate branch.

The Flash/AIR branch in processLibraries was missing the cache mechanism
that the Animate branch already had. This caused generateSWFClasses to
re-parse the SWF from scratch on every build even when the source file
and tool had not changed.

The cache stores generated class names and template asset data in a JSON
file at {targetDirectory}/obj/libraries/{name}.cache, using the same
mtime-based invalidation strategy as the Animate branch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant