Skip to content

Commit

Permalink
chore90: Update build_canary.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tyllark committed Feb 19, 2025
1 parent 66cb71c commit 87fcae1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build-support/build_canary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ then

sed -i '' -e "s/sourceCompatibility = .*/sourceCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle.kts

# TODO(equartey): remove this line after the next stable release (3.22.0 or 4.0)
sed -i '' -e "s/targetCompatibility = .*/targetCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle.kts

# TODO(equartey): remove this line after the next stable release (3.22.0 or 4.0)
sed -i '' -e "s/jvmTarget = .*/jvmTarget = JavaVersion.VERSION_17.toString()/" ./android/app/build.gradle.kts

sed -i '' -e "s/compileOptions {.*/compileOptions {\n\t\tisCoreLibraryDesugaringEnabled = true/" ./android/app/build.gradle.kts
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
cat ./android/app/build.gradle.kts
Expand All @@ -69,7 +71,9 @@ else

sed -i '' -e "s/targetCompatibility = .*/targetCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle

sed -i '' -e "s/compileOptions {.*/compileOptions {\n\t\tisCoreLibraryDesugaringEnabled = true/" ./android/app/build.gradle
sed -i '' -e "s/jvmTarget = .*/jvmTarget = JavaVersion.VERSION_17/" ./android/app/build.gradle

#sed -i '' -e "s/compileOptions {.*/compileOptions {\n\t\tCoreLibraryDesugaringEnabled = true/" ./android/app/build.gradle
sed -i '' -e "s/flutter {.*/dependencies {\n\tcoreLibraryDesugaring(\"com.android.tools:desugar_jdk_libs:2.0.3\")\n}\n\nflutter {/" ./android/app/build.gradle
cat ./android/app/build.gradle

Expand Down

0 comments on commit 87fcae1

Please sign in to comment.