Skip to content

Commit f43bb78

Browse files
authored
[palette_generator] run agp update for example (flutter#3747)
- Run AGP upgrade assistant on pallet_generator which had the oldest gradle and agp usage in packages part 2/n for flutter#122213
1 parent a40eb7e commit f43bb78

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,12 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2222
android {
2323
compileSdkVersion flutter.compileSdkVersion
2424

25-
lintOptions {
26-
disable 'InvalidPackage'
27-
}
2825

2926
defaultConfig {
3027
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3128
applicationId "io.flutter.packages.palettegenerator.imagecolors"
32-
minSdkVersion 16
33-
targetSdkVersion 27
29+
minSdkVersion 19
30+
targetSdkVersion 33
3431
versionCode 1
3532
versionName flutterVersionName
3633
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -43,6 +40,10 @@ android {
4340
signingConfig signingConfigs.debug
4441
}
4542
}
43+
namespace 'io.flutter.packages.palettegenerator.imagecolors'
44+
lint {
45+
disable 'InvalidPackage'
46+
}
4647
}
4748

4849
flutter {

packages/palette_generator/example/android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="io.flutter.packages.palettegenerator.imagecolors">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

packages/palette_generator/example/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="io.flutter.packages.palettegenerator.imagecolors">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32

43
<!-- The INTERNET permission is required for development. Specifically,
54
flutter needs it to communicate with the running application
@@ -16,6 +15,7 @@
1615
android:theme="@style/LaunchTheme"
1716
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
1817
android:hardwareAccelerated="true"
18+
android:exported="true"
1919
android:windowSoftInputMode="adjustResize">
2020
<!-- This keeps the window background of the activity showing
2121
until Flutter renders its first frame. It can be removed if

packages/palette_generator/example/android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="io.flutter.packages.palettegenerator.imagecolors">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

packages/palette_generator/example/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.5.0'
8+
classpath 'com.android.tools.build:gradle:7.4.2'
99
}
1010
}
1111

@@ -24,6 +24,6 @@ subprojects {
2424
project.evaluationDependsOn(':app')
2525
}
2626

27-
task clean(type: Delete) {
27+
tasks.register("clean", Delete) {
2828
delete rootProject.buildDir
2929
}

packages/palette_generator/example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip

0 commit comments

Comments
 (0)