Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Prev Previous commit
Next Next commit
Undo unecessary changes, update changelog
  • Loading branch information
camsim99 committed May 25, 2022
commit 9fbef6c3c2410f1faf4cf33bb9c99b55a75365e3
3 changes: 2 additions & 1 deletion packages/camera/camera/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## NEXT
## 0.9.4+22

* Removes unnecessary imports.
* Avoids duplicate calls to stop background camera thread and unnecessary closings of camera capture sessions.

## 0.9.4+21

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ public void onError(@NonNull CameraDevice cameraDevice, int errorCode) {
Log.i(TAG, "open | onError");

close();

String errorDescription;
switch (errorCode) {
case ERROR_CAMERA_IN_USE:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ void sendCameraClosingEvent() {
* @param description contains details regarding the error that occurred.
*/
void sendCameraErrorEvent(@Nullable String description) {
System.out.println("!!!!!!!!!!!!!!!!!!!!Sending error camera event: " + description);
this.send(
CameraEventType.ERROR,
new HashMap<String, Object>() {
Expand All @@ -158,7 +157,6 @@ private void send(CameraEventType eventType, Map<String, Object> args) {
@Override
public void run() {
cameraChannel.invokeMethod(eventType.method, args);
System.out.println("!!!!!!!!!!!!!!Sending message across channel");
}
});
}
Expand Down
10 changes: 4 additions & 6 deletions packages/camera/camera/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ description: A Flutter plugin for controlling the camera. Supports previewing
Dart.
repository: https://github.com/flutter/plugins/tree/main/packages/camera/camera
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
version: 0.9.4+21
version: 0.9.7

environment:
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
flutter: ">=2.8.0"

flutter:
plugin:
Expand All @@ -22,10 +22,8 @@ flutter:
default_package: camera_web

dependencies:
camera_platform_interface:
path: ../camera_platform_interface/
camera_web:
path: ../camera_web/
camera_platform_interface: ^2.1.0
camera_web: ^0.2.1
flutter:
sdk: flutter
flutter_plugin_android_lifecycle: ^2.0.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ class MethodChannelCamera extends CameraPlatform {
));
break;
case 'error':
print("!!!!!!!!!!!!!!!error found");
cameraEventStreamController.add(CameraErrorEvent(
cameraId,
call.arguments['description']! as String,
Expand Down
3 changes: 1 addition & 2 deletions packages/camera/camera_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ flutter:
fileName: camera_web.dart

dependencies:
camera_platform_interface:
path: ../camera_platform_interface/
camera_platform_interface: ^2.1.0
flutter:
sdk: flutter
flutter_web_plugins:
Expand Down