Skip to content

feat(android): implement clearMemoryCache/clearDiskCache for GraniteImage Android#250

Merged
jingjing2222 merged 4 commits intomainfrom
feature/image-android-fix
Mar 31, 2026
Merged

feat(android): implement clearMemoryCache/clearDiskCache for GraniteImage Android#250
jingjing2222 merged 4 commits intomainfrom
feature/image-android-fix

Conversation

@l2hyunwoo
Copy link
Copy Markdown
Collaborator

Summary

  • Add clearMemoryCache/clearDiskCache default methods to GraniteImageProvider interface
  • Implement cache clearing for each provider:
    • Coil: clear memory cache via Coil.imageLoader().memoryCache / disk cache not supported (no public API in Coil 2.x)
    • Glide: clear memory on main thread, clear disk on background thread
    • OkHttp: no built-in memory cache (no-op) / disk cache via client.cache?.evictAll()
  • Wire GraniteImageModule ReactMethods to delegate to the registered provider

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 30, 2026

🦋 Changeset detected

Latest commit: f48deba

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 26 packages
Name Type
@granite-js/image Patch
@granite-js/native Patch
@granite-js/blur-view Patch
@granite-js/jest Patch
@granite-js/react-native Patch
@granite-js/style-utils Patch
babel-preset-granite Patch
create-granite-app Patch
@granite-js/cli Patch
@granite-js/cookies Patch
@granite-js/screen Patch
@granite-js/lottie Patch
@granite-js/mpack Patch
@granite-js/naver-map Patch
@granite-js/plugin-core Patch
@granite-js/plugin-env Patch
@granite-js/plugin-hermes Patch
@granite-js/plugin-micro-frontend Patch
@granite-js/plugin-router Patch
@granite-js/plugin-rozenite Patch
@granite-js/plugin-sentry Patch
@granite-js/utils Patch
@granite-js/video Patch
@granite-js/deployment-manager Patch
@granite-js/forge-cli Patch
@granite-js/pulumi-aws Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
granite-docs Ready Ready Preview, Comment Mar 30, 2026 2:29pm

Request Review

Copy link
Copy Markdown
Collaborator

@jingjing2222 jingjing2222 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jingjing2222 jingjing2222 merged commit eddab4b into main Mar 31, 2026
7 checks passed
@jingjing2222 jingjing2222 deleted the feature/image-android-fix branch March 31, 2026 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants