Skip to content

Commit 7f0a8c9

Browse files
committed
Gradle file change (inversion of if-statement) now that 2023.1 is no longer built
#7145
1 parent ecf7643 commit 7f0a8c9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ intellij {
8282
"Groovy", "Dart:$dartVersion")
8383
// If 2023.3+, then "org.jetbrains.android:$androidVersion", otherwise "org.jetbrains.android",
8484
// see https://github.com/flutter/flutter-intellij/issues/7145
85-
if(ideVersion == "2023.3" || ideVersion == "2024.1" || ideVersion == "2024.2"|| ideVersion == "2024.3" || ideVersion == "2023.3.2") {
86-
pluginList.add("org.jetbrains.android:$androidVersion");
87-
} else {
85+
if(ideVersion == "2023.2.1.23") {
8886
pluginList.add("org.jetbrains.android");
87+
} else {
88+
pluginList.add("org.jetbrains.android:$androidVersion");
8989
}
9090
if (ide == "android-studio") {
9191
pluginList.add(smaliPlugin)

flutter-idea/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ intellij {
6060
"gradle", "Groovy", "yaml", "Dart:$dartVersion")
6161
// If 2023.3+, then "org.jetbrains.android:$androidVersion", otherwise "org.jetbrains.android",
6262
// see https://github.com/flutter/flutter-intellij/issues/7145
63-
if(ideVersion == "2023.3" || ideVersion == "2024.1" || ideVersion == "2024.2"|| ideVersion == "2024.3" || ideVersion == "2023.3.2") {
64-
pluginList.add("org.jetbrains.android:$androidVersion");
65-
} else {
63+
if(ideVersion == "2023.2") {
6664
pluginList.add("org.jetbrains.android");
65+
} else {
66+
pluginList.add("org.jetbrains.android:$androidVersion");
6767
}
6868
if (ide == "android-studio") {
6969
pluginList.add(smaliPlugin)

0 commit comments

Comments
 (0)