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
# TODO(tyllark): replace 'gradle*'' with 'gradle.kts' Flutter version is updated to 3.29.0 or higher
28
-
sed -i '' -e "s/id \"com.android.application\" .*/id \"com.android.application\" version \"8.1.0\" apply false/" ./android/settings.gradle*#<3.29.0 only
29
-
sed -i '' -e "s/id(\"com.android.application\") .*/id(\"com.android.application\") version \"8.1.0\" apply false/" ./android/settings.gradle*
27
+
# Flutter >=3.29.0
28
+
if [ -e ./android/settings.gradle.kts ]
29
+
then
30
+
sed -i '' -e "s/id(\"com.android.application\") .*/id(\"com.android.application\") version \"8.1.0\" apply false/" ./android/settings.gradle.kts
31
+
sed -i '' -e "s/id(\"org.jetbrains.kotlin.android\") .*/id(\"org.jetbrains.kotlin.android\") version \"1.9.10\" apply false/" ./android/settings.gradle.kts
32
+
cat ./android/settings.gradle.kts
30
33
31
-
sed -i '' -e "s/id \"org.jetbrains.kotlin.android\" .*/id \"org.jetbrains.kotlin.android\" version \"1.9.10\" apply false/" ./android/settings.gradle*#<3.29.0 only
32
-
sed -i '' -e "s/id(\"org.jetbrains.kotlin.android\") .*/id(\"org.jetbrains.kotlin.android\") version \"1.9.10\" apply false/" ./android/settings.gradle*
33
-
cat ./android/settings.gradle*
34
+
# TODO(khatruong2009): remove this line after the next stable release (3.22.0 or 4.0)
35
+
sed -i '' -e "s/minSdkVersion = .*/minSdkVersion = 24/" ./android/app/build.gradle.kts
36
+
sed -i '' -e "s/minSdk = .*/minSdk = 24/" ./android/app/build.gradle.kts
34
37
35
-
# TODO(khatruong2009): remove this line after the next stable release (3.22.0 or 4.0)
36
-
sed -i '' -e "s/minSdkVersion = .*/minSdkVersion = 24/" ./android/app/build.gradle*
37
-
sed -i '' -e "s/minSdk = .*/minSdk = 24/" ./android/app/build.gradle*
38
+
sed -i '' -e '/id "kotlin-android"/a\
39
+
id '\''kotlin-parcelize'\''' ./android/app/build.gradle.kts
38
40
39
-
sed -i '' -e '/id "kotlin-android"/a\
40
-
id '\''kotlin-parcelize'\''' ./android/app/build.gradle*
41
+
sed -i '' -e "s/compileSdk = .*/compileSdk = 35/" ./android/app/build.gradle.kts
41
42
42
-
sed -i '' -e "s/compileSdk = .*/compileSdk = 35/" ./android/app/build.gradle*
43
+
sed -i '' -e "s/sourceCompatibility = .*/sourceCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle.kts
43
44
44
-
sed -i '' -e "s/sourceCompatibility = .*/sourceCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle*
45
+
# TODO(equartey): remove this line after the next stable release (3.22.0 or 4.0)
46
+
sed -i '' -e "s/targetCompatibility = .*/targetCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle.kts
45
47
46
-
# TODO(equartey): remove this line after the next stable release (3.22.0 or 4.0)
47
-
sed -i '' -e "s/targetCompatibility = .*/targetCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle*
48
+
sed -i '' -e "s/compileOptions {.*/compileOptions {\n\t\tisCoreLibraryDesugaringEnabled = true/" ./android/app/build.gradle.kts
49
+
sed -i '' -e "s/flutter {.*/dependencies {\n\tcoreLibraryDesugaring(\"com.android.tools:desugar_jdk_libs:2.0.3\")\n}\n\nflutter {/" ./android/app/build.gradle.kts
50
+
cat ./android/app/build.gradle.kts
48
51
49
-
sed -i '' -e "s/compileOptions {.*/compileOptions {\n\t\tisCoreLibraryDesugaringEnabled = true/" ./android/app/build.gradle*
50
-
sed -i '' -e "s/flutter {.*/dependencies {\n\tcoreLibraryDesugaring(\"com.android.tools:desugar_jdk_libs:2.0.3\")\n}\n\nflutter {/" ./android/app/build.gradle*
51
-
cat ./android/app/build.gradle*
52
+
sed -i '' -e "s#distributionUrl=.*#distributionUrl=https\\://services.gradle.org/distributions/gradle-8.9-all.zip#" ./android/gradle/wrapper/gradle-wrapper.properties
0 commit comments