Skip to content

Commit 4a36dc6

Browse files
authored
[all_packages] Enforce property assignment for compile sdk over method assignment (#8897)
No issue I just noticed that we were almost consistent in our approach to compileSdk.
1 parent eaf475c commit 4a36dc6

File tree

45 files changed

+100
-60
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+100
-60
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (flutterVersionName == null) {
2424

2525
android {
2626
namespace 'io.flutter.plugins.cameraexample'
27-
compileSdk flutter.compileSdkVersion
27+
compileSdk = flutter.compileSdkVersion
2828

2929

3030
defaultConfig {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (flutterVersionName == null) {
2424

2525
android {
2626
namespace 'io.flutter.plugins.cameraexample'
27-
compileSdk flutter.compileSdkVersion
27+
compileSdk = flutter.compileSdkVersion
2828

2929

3030
defaultConfig {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ if (flutterVersionName == null) {
2424

2525
android {
2626
namespace 'io.flutter.plugins.cameraxexample'
27-
compileSdk flutter.compileSdkVersion
28-
ndkVersion flutter.ndkVersion
27+
compileSdk = flutter.compileSdkVersion
28+
ndkVersion = flutter.ndkVersion
2929

3030
compileOptions {
3131
sourceCompatibility JavaVersion.VERSION_11

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (flutterVersionName == null) {
2323
}
2424

2525
android {
26-
compileSdk flutter.compileSdkVersion
26+
compileSdk = flutter.compileSdkVersion
2727
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
2828
namespace "com.example.espresso_example"
2929

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (flutterVersionName == null) {
2424
}
2525

2626
android {
27-
compileSdk flutter.compileSdkVersion
27+
compileSdk = flutter.compileSdkVersion
2828

2929
compileOptions {
3030
sourceCompatibility JavaVersion.VERSION_11

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ if (flutterVersionName == null) {
2424

2525
android {
2626
namespace "dev.flutter.plugins.file_selector_example"
27-
compileSdk flutter.compileSdkVersion
28-
ndkVersion flutter.ndkVersion
27+
compileSdk = flutter.compileSdkVersion
28+
ndkVersion = flutter.ndkVersion
2929

3030
compileOptions {
3131
sourceCompatibility JavaVersion.VERSION_11

packages/file_selector/file_selector_android/example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ if (flutterVersionName == null) {
2424

2525
android {
2626
namespace "dev.flutter.packages.file_selector_android_example"
27-
compileSdk flutter.compileSdkVersion
28-
ndkVersion flutter.ndkVersion
27+
compileSdk = flutter.compileSdkVersion
28+
ndkVersion = flutter.ndkVersion
2929

3030
compileOptions {
3131
sourceCompatibility JavaVersion.VERSION_11

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if (flutterVersionName == null) {
2323
}
2424

2525
android {
26-
compileSdk flutter.compileSdkVersion
27-
ndkVersion flutter.ndkVersion
26+
compileSdk = flutter.compileSdkVersion
27+
ndkVersion = flutter.ndkVersion
2828

2929
compileOptions {
3030
sourceCompatibility JavaVersion.VERSION_11

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ if (flutterVersionName == null) {
2424

2525
android {
2626
namespace "com.example.example"
27-
compileSdk flutter.compileSdkVersion
28-
ndkVersion flutter.ndkVersion
27+
compileSdk = flutter.compileSdkVersion
28+
ndkVersion = flutter.ndkVersion
2929

3030
compileOptions {
3131
sourceCompatibility JavaVersion.VERSION_11

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (flutterVersionName == null) {
2323
}
2424

2525
android {
26-
compileSdk flutter.compileSdkVersion
26+
compileSdk = flutter.compileSdkVersion
2727

2828
compileOptions {
2929
sourceCompatibility JavaVersion.VERSION_11

0 commit comments

Comments
 (0)