Skip to content

Commit

Permalink
Fix for "ambiguous use of 'evaluateJavaScript(_:completionHandler:_)'…
Browse files Browse the repository at this point in the history
… build" in new apple SDK

See issue: pichillilorenzo/flutter_inappwebview#2221
  • Loading branch information
ddlsmurf committed Jan 13, 2025
1 parent 44495c4 commit 859d84e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ packages:
source: hosted
version: "0.1.3+2"
flutter_inappwebview:
dependency: transitive
dependency: "direct main"
description:
name: flutter_inappwebview
sha256: "3e9a443a18ecef966fb930c3a76ca5ab6a7aafc0c7b5e14a4a850cf107b09959"
Expand All @@ -841,13 +841,14 @@ packages:
source: hosted
version: "1.1.1"
flutter_inappwebview_ios:
dependency: transitive
dependency: "direct overridden"
description:
name: flutter_inappwebview_ios
sha256: f363577208b97b10b319cd0c428555cd8493e88b468019a8c5635a0e4312bd0f
url: "https://pub.dev"
source: hosted
version: "1.0.13"
path: flutter_inappwebview_ios
ref: master
resolved-ref: "615214fb2fd3f830955d526cfb6698d6e20b7b7a"
url: "https://github.com/andychucs/flutter_inappwebview.git"
source: git
version: "1.0.14"
flutter_inappwebview_macos:
dependency: transitive
description:
Expand Down
16 changes: 16 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ dependencies:

flutter_smart_dialog: 4.9.8+5

# The following is a workarounds for the updated mac SDKs
# see: https://github.com/pichillilorenzo/flutter_inappwebview/issues/2221
# and the overrides below: flutter_inappwebview_ios and flutter_inappwebview_macos
flutter_inappwebview: ^6.0.0

dev_dependencies:
flutter_test:
sdk: flutter
Expand Down Expand Up @@ -294,6 +299,17 @@ dependency_overrides:

json_annotation: 4.8.1

flutter_inappwebview_ios:
git:
url: https://github.com/andychucs/flutter_inappwebview.git
ref: master
path: flutter_inappwebview_ios
flutter_inappwebview_macos:
git:
url: https://github.com/andychucs/flutter_inappwebview.git
ref: master
path: flutter_inappwebview_macos

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

Expand Down

0 comments on commit 859d84e

Please sign in to comment.