Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
try and get working on kotlin once again
  • Loading branch information
bparrishMines committed Oct 1, 2025
commit f3d9d7248f7e2de93c7712d935c2a40add55a061
9 changes: 6 additions & 3 deletions script/tool/lib/src/create_all_packages_app_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ dependencies {}

// Desugaring is required for interactive_media_ads.
final String desugaringDependency = gradleFileIsKotlin
? ' implementation("com.android.tools:desugar_jdk_libs:2.1.5")'
: " implementation 'com.android.tools:desugar_jdk_libs:2.1.5'";
? ' coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")'
: " coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'";

_adjustFile(
gradleFile,
Expand All @@ -257,7 +257,10 @@ dependencies {}
// Desugaring is required for interactive_media_ads.
RegExp(r'compileOptions\s+{$'): <String>[
'compileOptions {',
'coreLibraryDesugaringEnabled true',
if (gradleFileIsKotlin)
'isCoreLibraryDesugaringEnabled = true'
else
'coreLibraryDesugaringEnabled true',
],
// Tests for https://github.com/flutter/flutter/issues/43383
// Handling of 'dependencies' is more complex since it hasn't been very
Expand Down