Skip to content

Commit b783df0

Browse files
[various] Standardize Gradle namespace (#10084)
Standardizes namespace on the `=` form of property assignment, and updates the existing namespace check to require that version. Also standardizes these lines on `"` rather than `'` while touching them. Part of flutter/flutter#176065 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 389c678 commit b783df0

File tree

61 files changed

+67
-69
lines changed

Some content is hidden

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

61 files changed

+67
-69
lines changed

packages/camera/camera/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-
namespace 'io.flutter.plugins.cameraexample'
26+
namespace = "io.flutter.plugins.cameraexample"
2727
compileSdk = flutter.compileSdkVersion
2828

2929

packages/camera/camera_android/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ android {
3030
buildFeatures {
3131
buildConfig true
3232
}
33-
namespace 'io.flutter.plugins.camera'
33+
namespace = "io.flutter.plugins.camera"
3434
compileSdk = 36
3535

3636
defaultConfig {

packages/camera/camera_android/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-
namespace 'io.flutter.plugins.cameraexample'
26+
namespace = "io.flutter.plugins.cameraexample"
2727
compileSdk = flutter.compileSdkVersion
2828

2929

packages/camera/camera_android_camerax/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apply plugin: 'com.android.library'
2525
apply plugin: 'kotlin-android'
2626

2727
android {
28-
namespace 'io.flutter.plugins.camerax'
28+
namespace = "io.flutter.plugins.camerax"
2929
// CameraX dependencies require compilation against version 33 or later.
3030
compileSdk = flutter.compileSdkVersion
3131

packages/camera/camera_android_camerax/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-
namespace 'io.flutter.plugins.cameraxexample'
26+
namespace = "io.flutter.plugins.cameraxexample"
2727
compileSdk = flutter.compileSdkVersion
2828
ndkVersion = flutter.ndkVersion
2929

packages/espresso/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ rootProject.allprojects {
2222
apply plugin: 'com.android.library'
2323

2424
android {
25-
namespace 'com.example.espresso'
25+
namespace = "com.example.espresso"
2626
compileSdk = flutter.compileSdkVersion
2727

2828
defaultConfig {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (flutterVersionName == null) {
2525
android {
2626
compileSdk = flutter.compileSdkVersion
2727
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
28-
namespace "com.example.espresso_example"
28+
namespace = "com.example.espresso_example"
2929

3030

3131
defaultConfig {

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
@@ -47,7 +47,7 @@ android {
4747
signingConfig signingConfigs.debug
4848
}
4949
}
50-
namespace 'io.flutter.plugins.googlesigninexample'
50+
namespace = "io.flutter.plugins.googlesigninexample"
5151
}
5252

5353
flutter {

packages/file_selector/file_selector/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-
namespace "dev.flutter.plugins.file_selector_example"
26+
namespace = "dev.flutter.plugins.file_selector_example"
2727
compileSdk = flutter.compileSdkVersion
2828
ndkVersion = flutter.ndkVersion
2929

packages/file_selector/file_selector_android/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ rootProject.allprojects {
2222
apply plugin: 'com.android.library'
2323

2424
android {
25-
namespace 'dev.flutter.packages.file_selector_android'
25+
namespace = "dev.flutter.packages.file_selector_android"
2626
compileSdk = flutter.compileSdkVersion
2727

2828
compileOptions {

0 commit comments

Comments
 (0)