Skip to content

Commit

Permalink
chore(): Added Desugaring to canary project
Browse files Browse the repository at this point in the history
  • Loading branch information
tyllark committed Feb 17, 2025
1 parent 09b1da9 commit 5a19f34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build-support/build_canary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ sed -i '' -e "s/sourceCompatibility = .*/sourceCompatibility = JavaVersion.VERSI
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 '/kotlinOptions {/,/}/ 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

sed -i '' -e "s#distributionUrl=.*#distributionUrl=https\\://services.gradle.org/distributions/gradle-8.9-all.zip#" ./android/gradle/wrapper/gradle-wrapper.properties
Expand Down

0 comments on commit 5a19f34

Please sign in to comment.