ionic-team / ionic-team/capacitor-camera

[Bug]: build warning on Android

Open
#78 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4
Forks
1
Avg merge
2d 1h
Merged PRs (30d)
2

Description

### Current Behavior

Using the plugin, and building the android package there are warning in the build log.

### Expected Behavior

No warnings.

### Reproduction

the capacitor init sample

### Screenshots / Media

_No response_

### Environment Details

```Shell
💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 8.5.0
@capacitor/core: 8.5.0
@capacitor/android: 8.5.0
@capacitor/ios: 8.5.0

Installed Dependencies:

@capacitor/cli: 8.5.0
@capacitor/core: 8.5.0
@capacitor/android: 8.5.0
@capacitor/ios: 8.5.0

[success] iOS looking great! 👌
[success] Android looking great! 👌

Node: v24.16.0
npm: 11.13.0
```

### Versions Affected

<= 8.2.3

### Platforms Affected

- [ ] iOS
- [x] Android
- [ ] Web

### Notes / Comments

The following is the build output on our CI, can be seen here:
https://github.com/IsraelHikingMap/Site/actions/runs/33278209180/job/99168616328?pr=2653
```
[22:20:29]: ▸ > Task :capacitor-camera:compileReleaseKotlin
[22:20:29]: ▸ w: file:///home/runner/work/Site/Site/IsraelHiking.Web/node_modules/@capacitor/camera/android/src/main/java/com/capacitorjs/plugins/camera/IonCameraFlow.kt:864:13 Condition is always 'false'.
[22:20:31]: ▸ > Task :capacitor-camera:compileReleaseJavaWithJavac
[22:20:31]: ▸ Note: /home/runner/work/Site/Site/IsraelHiking.Web/node_modules/@capacitor/camera/android/src/main/java/com/capacitorjs/plugins/camera/CameraBottomSheetDialogFragment.java uses unchecked or unsafe operations.
```

Should be an easy AI prompt to solve this I guess...

Contributor guide

Open the contributing guide

Research direction

Reproduce the warning with the Capacitor init sample and an Android release build. Inspect android/src/main/java/com/capacitorjs/plugins/camera/IonCameraFlow.kt around line 864 and CameraBottomSheetDialogFragment.java, then verify the build no longer reports the listed warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.