Skip to content

fix(android): keep image editor layouts when shrinking resources - #86

Merged
ItsChaceD merged 1 commit into
nextfrom
fix/RMET-5532/android-resource-shrinking-keep
Oct 23, 2026
Merged

ItsChaceD merged 1 commit into
nextfrom
fix/RMET-5532/android-resource-shrinking-keep

Conversation

@ItsChaceD

Copy link
Copy Markdown

Description

Adds a keep file so resource shrinking keeps the activity_image_editor and image_editor_view layouts, which ioncamera-android inflates by name. With shrinkResources true on Capacitor 9 they're removed, so the image editor can't open.

On a Pixel 11 Pro, in a Capacitor 9.0.0-alpha.8 app with R8 and shrinkResources true, editPhoto opens the image editor and closing it returns the cancel error, as without resource shrinking. Without the file, opening the editor crashes with Resources$NotFoundException.

Logs

With next:

E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{rmet5453.audit/io.ionic.libs.ioncameralib.view.IONCAMRImageEditorActivity}
E AndroidRuntime: Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0

With this branch:

editPhoto, closed with Back -> "Couldn't edit photo because the process was canceled."

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Rationale / Problems Fixed

https://outsystemsrd.atlassian.net/browse/RMET-5532

Platforms Affected

  • Android
  • iOS
  • Web

Notes

Capacitor 8 isn't affected, since AGP 8's shrinker keeps these layouts. Resource shrinking stays off by default.

@ItsChaceD
ItsChaceD merged commit a10cdae into next Oct 23, 2026
8 checks passed
@ItsChaceD
ItsChaceD deleted the fix/RMET-5532/android-resource-shrinking-keep branch October 23, 2026 14:39
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.

3 participants