-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Upgrade CameraX to 1.4.0-beta02 (#2986)
* feat: Upgrade CameraX to 1.4.0-beta02 * Remove gradle cache * Remove build-cache * Revert "Remove gradle cache" This reverts commit ad8e5e3. * feat: Add back `--build-cache`, but stop daemons * fix: Remove Skia from `example` dir * Don't cache `~/.gradle/wrapper` * fix: Split fps cache key * Revert "fix: Split fps cache key" This reverts commit aca93db. * fix: Split with and without FPs
- Loading branch information
Showing
2 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,7 +182,7 @@ dependencies { | |
implementation "com.facebook.react:react-android:+" | ||
|
||
// CameraX dependency | ||
def camerax_version = "1.4.0-alpha04" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
cksiow
|
||
def camerax_version = "1.4.0-beta02" | ||
implementation "androidx.camera:camera-core:${camerax_version}" | ||
implementation "androidx.camera:camera-camera2:${camerax_version}" | ||
implementation "androidx.camera:camera-lifecycle:${camerax_version}" | ||
|
FYI, changing to beta02 will cause the application crash due to below changing, not sure why it rethrow the exception which mostly of the time we will using thread to call and unhandled exception will occur
else if (e instanceof CameraIdListIncorrectException) { -- | String message = "Device reporting less cameras than anticipated. On real" | + " devices: Retrying initialization might resolve temporary " | + "camera errors. On emulators: Ensure virtual camera " | + "configuration matches supported camera features as reported by" | + " PackageManager#hasSystemFeature. Available cameras: " | + ((CameraIdListIncorrectException) e).getAvailableCameraCount(); | Logger.e(TAG, message, e); | completer.setException(new InitializationException( | new CameraUnavailableException(CAMERA_ERROR, message)));https://androidx.tech/artifacts/camera/camera-core/1.4.0-beta02-source/androidx/camera/core/CameraX.java.html
line 371