You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Applied Gradle Plugins Declaratively All Remaining Example Apps (#8312)
Updated applying gradle plugins from usage of imperative apply to usage of declarative blocks {} apply for plugin example apps. All other android example apps under packages have been migrated.
Here are previous bulk migrations from imperative apply to declarative apply:
#8019#8037
Previously migrated applying path_provider plugin example app from imperatively to declaratively in this PR #7822. Tests for changes in the linked PR above.
More information on Flutter Gradle Pluggin Apply [here](https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply)
All instances of minSdkVersion for example plugin apps use flutter.minSdkVersion instead of the hard-coded version #8035.
Partially addresses flutter/flutter#152656
Copy file name to clipboardExpand all lines: packages/camera/camera/example/android/build.gradle
-11Lines changed: 0 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,3 @@
1
-
buildscript {
2
-
repositories {
3
-
google()
4
-
mavenCentral()
5
-
}
6
-
7
-
dependencies {
8
-
classpath 'com.android.tools.build:gradle:8.5.1'
9
-
}
10
-
}
11
-
12
1
allprojects {
13
2
repositories {
14
3
// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
Copy file name to clipboardExpand all lines: packages/camera/camera_android/example/android/build.gradle
-11Lines changed: 0 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,3 @@
1
-
buildscript {
2
-
repositories {
3
-
google()
4
-
mavenCentral()
5
-
}
6
-
7
-
dependencies {
8
-
classpath 'com.android.tools.build:gradle:8.5.2'
9
-
}
10
-
}
11
-
12
1
allprojects {
13
2
repositories {
14
3
// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
20
+
plugins {
21
+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
22
+
id "com.android.application" version "8.5.1" apply false
23
+
id "org.jetbrains.kotlin.android" version "1.9.0" apply false
24
+
id "com.google.cloud.artifactregistry.gradle-plugin" version "2.2.1"
// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
// See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info.
20
+
plugins {
21
+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
22
+
id "com.android.application" version "8.5.1" apply false
23
+
id "org.jetbrains.kotlin.android" version "1.9.0" apply false
24
+
id "com.google.cloud.artifactregistry.gradle-plugin" version "2.2.1"
0 commit comments