-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update for Flutter 3.47 #2415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update for Flutter 3.47 #2415
Changes from all commits
7370bf4
6ec1ebf
878b848
bb012ae
06c8448
38f1d8a
8a2b14d
0c0e228
c183cbf
1117908
5a6c526
da14018
f17ca4c
f5728b7
ebb5f32
1150393
ecdb284
5d28ba1
0c65770
74b7785
bd3d15d
aca44b4
98095c8
df3df23
eed23c0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,10 @@ | ||
| analyzer: | ||
| exclude: | ||
| - build/** | ||
| - android/** | ||
| - ios/** | ||
| - web/** | ||
| - windows/** | ||
| - macos/** | ||
| - linux/** | ||
| include: ../../analysis_options.yaml |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,6 @@ | ||
| org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError | ||
| android.useAndroidX=true | ||
| # This newDsl flag was added by the Flutter template | ||
| android.newDsl=false | ||
| # This builtInKotlin flag was added by the Flutter template | ||
| android.builtInKotlin=false |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ publish_to: 'none' | |
| version: 0.1.0+1 | ||
|
|
||
| environment: | ||
| sdk: ^3.12.0-0 | ||
| sdk: ^3.13.0-0 | ||
|
|
||
| dependencies: | ||
| flutter: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,10 @@ | ||
| analyzer: | ||
| exclude: | ||
| - build/** | ||
| - android/** | ||
| - ios/** | ||
| - web/** | ||
| - windows/** | ||
| - macos/** | ||
| - linux/** | ||
| include: ../../analysis_options.yaml |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| plugins { | ||
| id("com.android.application") | ||
| id("kotlin-android") | ||
| // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. | ||
| id("dev.flutter.flutter-gradle-plugin") | ||
| } | ||
|
Comment on lines
1
to
5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Kotlin plugin ( plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
} |
||
|
|
@@ -15,17 +14,17 @@ android { | |
| targetCompatibility = JavaVersion.VERSION_17 | ||
| } | ||
|
|
||
| kotlinOptions { | ||
| jvmTarget = JavaVersion.VERSION_17.toString() | ||
| } | ||
|
|
||
| defaultConfig { | ||
| // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | ||
| applicationId = "com.example.animated_responsive_layout" | ||
| // You can update the following values to match your application needs. | ||
| // For more information, see: https://flutter.dev/to/review-gradle-config. | ||
| minSdk = flutter.minSdkVersion | ||
| targetSdk = flutter.targetSdkVersion | ||
| // Uses the version code from pubspec.yaml. When using split APKs, 1000 * ABI_VERSION | ||
| // is added automatically by Flutter. (https://developer.android.com/studio/build/configure-apk-splits#configure-APK-versions) | ||
| // You can force using the value of versionCode by specifying the `-P force-version-code-ignoring-abi=true` | ||
| // flag during build. | ||
| versionCode = flutter.versionCode | ||
| versionName = flutter.versionName | ||
| } | ||
|
|
@@ -39,6 +38,12 @@ android { | |
| } | ||
| } | ||
|
|
||
| kotlin { | ||
| compilerOptions { | ||
| jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 | ||
| } | ||
| } | ||
|
|
||
| flutter { | ||
| source = "../.." | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,6 @@ | ||
| org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError | ||
| android.useAndroidX=true | ||
| # This newDsl flag was added by the Flutter template | ||
| android.newDsl=false | ||
| # This builtInKotlin flag was added by the Flutter template | ||
| android.builtInKotlin=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Kotlin plugin (
org.jetbrains.kotlin.android) was removed from thepluginsblock, butandroid.builtInKotlinis set tofalseingradle.properties. Additionally, thekotlinconfiguration block is used later in this file. Without applying the Kotlin plugin, Gradle will fail to evaluate the build script because thekotlinextension will not be registered, and Kotlin compilation will not be configured. Please re-add the Kotlin plugin to thepluginsblock.plugins { id("com.android.application") id("org.jetbrains.kotlin.android") // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id("dev.flutter.flutter-gradle-plugin") }