Skip to content

Commit

Permalink
[shared_preferences] Fix Android Java version issue (flutter#3712)
Browse files Browse the repository at this point in the history
Sets the compile version to 1.8, which is required by some features added in the switch to Pigeon. This is a standard part of the current Android plugin template, but this plugin predates that template change.

Fixes flutter/flutter#124839
  • Loading branch information
stuartmorgan authored Apr 14, 2023
1 parent b09b74e commit e455133
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.2

* Sets the required Java compile version to 1.8 for new features used in 2.1.1.

## 2.1.1

* Updates minimum Flutter version to 3.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 33

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: shared_preferences_android
description: Android implementation of the shared_preferences plugin
repository: https://github.com/flutter/packages/tree/main/packages/shared_preferences/shared_preferences_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+shared_preferences%22
version: 2.1.1
version: 2.1.2

environment:
sdk: ">=2.17.0 <4.0.0"
Expand Down

0 comments on commit e455133

Please sign in to comment.