Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 59086bd

Browse files
authored
Revert compileSdkVersion to 29 (#3496)
1 parent a455576 commit 59086bd

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

packages/camera/camera/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.7.0+3
2+
3+
* Revert compileSdkVersion back to 29 (from 30) as this is causing problems with add-to-app configurations.
4+
15
## 0.7.0+2
26

37
* Fix example reference in README.

packages/camera/camera/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ project.getTasks().withType(JavaCompile){
2727
apply plugin: 'com.android.library'
2828

2929
android {
30-
compileSdkVersion 30
30+
compileSdkVersion 29
3131

3232
defaultConfig {
3333
minSdkVersion 21

packages/camera/camera/android/src/main/java/io/flutter/plugins/camera/DeviceOrientationManager.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import android.content.IntentFilter;
1212
import android.content.res.Configuration;
1313
import android.hardware.SensorManager;
14-
import android.os.Build.VERSION;
15-
import android.os.Build.VERSION_CODES;
1614
import android.provider.Settings;
1715
import android.view.Display;
1816
import android.view.OrientationEventListener;
@@ -191,11 +189,6 @@ private int getDeviceDefaultOrientation() {
191189

192190
@SuppressWarnings("deprecation")
193191
private Display getDisplay() {
194-
if (VERSION.SDK_INT >= VERSION_CODES.R) {
195-
return activity.getDisplay();
196-
} else {
197-
return ((WindowManager) activity.getSystemService(Context.WINDOW_SERVICE))
198-
.getDefaultDisplay();
199-
}
192+
return ((WindowManager) activity.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
200193
}
201194
}

packages/camera/camera/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
2525
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2626

2727
android {
28-
compileSdkVersion 30
28+
compileSdkVersion 29
2929

3030
lintOptions {
3131
disable 'InvalidPackage'

packages/camera/camera/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera
22
description: A Flutter plugin for getting information about and controlling the
33
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
44
and streaming image buffers to dart.
5-
version: 0.7.0+2
5+
version: 0.7.0+3
66
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera
77

88
dependencies:

0 commit comments

Comments
 (0)