Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
92 changes: 78 additions & 14 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.2"
code_assets:
dependency: transitive
description:
name: code_assets
sha256: "83ccdaa064c980b5596c35dd64a8d3ecc68620174ab9b90b6343b753aa721687"
url: "https://pub.dev"
source: hosted
version: "1.0.0"
collection:
dependency: transitive
description:
Expand All @@ -45,10 +53,10 @@ packages:
dependency: transitive
description:
name: cross_file
sha256: "942a4791cd385a68ccb3b32c71c427aba508a1bb949b86dff2adbe4049f16239"
sha256: "28bb3ae56f117b5aec029d702a90f57d285cd975c3c5c281eaca38dbc47c5937"
url: "https://pub.dev"
source: hosted
version: "0.3.5"
version: "0.3.5+2"
crypto:
dependency: transitive
description:
Expand All @@ -73,6 +81,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.2.0"
ffi_leak_tracker:
dependency: transitive
description:
name: ffi_leak_tracker
sha256: "4093d4ef9ca06ffe2786e73bfb25e22aa92112b9bb4ec941f11e3e6b61489a97"
url: "https://pub.dev"
source: hosted
version: "0.1.2"
file:
dependency: transitive
description:
Expand Down Expand Up @@ -120,6 +136,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
glob:
dependency: transitive
description:
name: glob
sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de
url: "https://pub.dev"
source: hosted
version: "2.1.3"
go_router:
dependency: "direct main"
description:
Expand All @@ -136,6 +160,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "8.1.0"
hooks:
dependency: transitive
description:
name: hooks
sha256: "025f060e86d2d4c3c47b56e33caf7f93bf9283340f26d23424ebcfccf34f621e"
url: "https://pub.dev"
source: hosted
version: "1.0.3"
http:
dependency: transitive
description:
Expand Down Expand Up @@ -232,6 +264,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.0"
native_toolchain_c:
dependency: transitive
description:
name: native_toolchain_c
sha256: "6ba77bb18063eebe9de401f5e6437e95e1438af0a87a3a39084fbd37c90df572"
url: "https://pub.dev"
source: hosted
version: "0.17.6"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -304,6 +344,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.8"
pub_semver:
dependency: transitive
description:
name: pub_semver
sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585"
url: "https://pub.dev"
source: hosted
version: "2.2.0"
qr:
dependency: transitive
description:
Expand All @@ -320,6 +368,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.1.0"
record_use:
dependency: transitive
description:
name: record_use
sha256: "2551bd8eecfe95d14ae75f6021ad0248be5c27f138c2ec12fcb52b500b3ba1ed"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
riverpod:
dependency: transitive
description:
Expand Down Expand Up @@ -348,18 +404,18 @@ packages:
dependency: "direct main"
description:
name: share_plus
sha256: fce43200aa03ea87b91ce4c3ac79f0cecd52e2a7a56c7a4185023c271fbfa6da
sha256: a857d8b1479250aff6b57a51b2c02d31ca05848d441817c43f1640c885c286c0
url: "https://pub.dev"
source: hosted
version: "10.1.4"
version: "13.1.0"
share_plus_platform_interface:
dependency: transitive
description:
name: share_plus_platform_interface
sha256: cc012a23fc2d479854e6c80150696c4a5f5bb62cb89af4de1c505cf78d0a5d0b
sha256: "7f7ae28cf400d13f811e297ff37742dba83b79e0a6f5dce14eec0248274e6ce9"
url: "https://pub.dev"
source: hosted
version: "5.0.2"
version: "7.1.0"
shared_preferences:
dependency: "direct main"
description:
Expand Down Expand Up @@ -489,10 +545,10 @@ packages:
dependency: transitive
description:
name: url_launcher_linux
sha256: "4e9ba368772369e3e08f231d2301b4ef72b9ff87c31192ef471b380ef29a4935"
sha256: d5e14138b3bc193a0f63c10a53c94b91d399df0512b1f29b94a043db7482384a
url: "https://pub.dev"
source: hosted
version: "3.2.1"
version: "3.2.2"
url_launcher_platform_interface:
dependency: transitive
description:
Expand All @@ -505,18 +561,18 @@ packages:
dependency: transitive
description:
name: url_launcher_web
sha256: "4bd2b7b4dc4d4d0b94e5babfffbca8eac1a126c7f3d6ecbc1a11013faa3abba2"
sha256: "85c81589622fbc87c1c683aaea164d3604a7777495a79d91e39ffcdec39ddb34"
url: "https://pub.dev"
source: hosted
version: "2.4.1"
version: "2.4.3"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
sha256: "3284b6d2ac454cf34f114e1d3319866fdd1e19cdc329999057e44ffe936cfa77"
sha256: "712c70ab1b99744ff066053cbe3e80c73332b38d46e5e945c98689b2e66fc15f"
url: "https://pub.dev"
source: hosted
version: "3.1.4"
version: "3.1.5"
uuid:
dependency: transitive
description:
Expand Down Expand Up @@ -553,10 +609,10 @@ packages:
dependency: transitive
description:
name: win32
sha256: "329edf97fdd893e0f1e3b9e88d6a0e627128cc17cc316a8d67fda8f1451178ba"
sha256: a1fc9eb9248baa05dfc12ed5b66e377b3e23f095eec078e0371622b9033810d9
url: "https://pub.dev"
source: hosted
version: "5.13.0"
version: "6.2.0"
xdg_directories:
dependency: transitive
description:
Expand All @@ -565,6 +621,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.0"
yaml:
dependency: transitive
description:
name: yaml
sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
url: "https://pub.dev"
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.7.0 <4.0.0"
flutter: ">=3.29.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
shared_preferences: ^2.5.5
qr_flutter: ^4.1.0
intl: ^0.20.2
share_plus: ^10.0.0
share_plus: ^13.1.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Find all share_plus imports and method calls to verify API compatibility

echo "=== Searching for share_plus imports ==="
rg -n "import.*share_plus" --type=dart

echo -e "\n=== Searching for Share class usage ==="
rg -n -C3 "Share\." --type=dart

echo -e "\n=== Searching for share method calls ==="
ast-grep --lang dart --pattern 'Share.share($$$)'
ast-grep --lang dart --pattern 'Share.shareFiles($$$)'
ast-grep --lang dart --pattern 'Share.shareXFiles($$$)'

Repository: Sentriscloud/solux

Length of output: 874


🌐 Web query:

share_plus v13 migration guide breaking changes Share.share() API compatibility

💡 Result:

share_plus v13 migration / breaking changes relevant to Share.share compatibility 1) What changed (API migration) - The plugin’s old static API methods Share.share(), Share.shareUri(), and Share.shareXFiles() are deprecated in favor of SharePlus.instance.share(params) [1][2]. - The migration guidance is: wrap your old arguments in a ShareParams(...) object, then call SharePlus.instance.share(...) instead of the static Share.* methods [1][2]. 2) Compatibility details for Share.share usage - Share.share() (and the other static methods) still exist but are marked deprecated, meaning they remain usable for now but you should migrate to avoid deprecation and eventual removal [1][2][3]. - The new approach uses a single instance (SharePlus.instance) plus ShareParams, rather than multiple static convenience methods [1][2]. 3) Concrete migration example Old: - Share.share("Shared text"); - Share.shareUri("http://example.com"); - Share.shareXFiles(files); [1] New: - SharePlus.instance.share(ShareParams(text: "Shared text")); - SharePlus.instance.share(ShareParams(uri: "http://example.com")); - SharePlus.instance.share(ShareParams(files: files)); [1] 4) “Breaking changes” in share_plus v13 itself (non-API) - The published changelog for share_plus version 13.0.0 explicitly warns that it contains breaking changes, but those breaking changes listed there are dependency/requirement related (e.g., win32 dependency bump changing requirements such as minimum Flutter/Dart versions and iOS/macOS minima) rather than the Share.share() deprecation/migration itself [4][5]. If you share your exact current code (the specific Share.share* call sites and which Share.* parameters you use, plus whether you pass title/subject/sharePositionOrigin), I can map each call to the equivalent ShareParams usage.

Citations:


The old Share.share() API is deprecated in v13 but still functional—update when convenient.

The Share.share() method used in lib/screens/receive/receive_screen.dart:164 is deprecated in share_plus v13 but remains usable. While your code will continue to work, migrate to the new API pattern to future-proof against eventual removal:

  • Old: Share.share('My SRX address: $address')
  • New: SharePlus.instance.share(ShareParams(text: 'My SRX address: $address'))

Update the import and method call at the location above to use SharePlus and ShareParams for consistency with v13 best practices.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pubspec.yaml` at line 19, Replace the deprecated Share.share call with the
v13 API: import SharePlus and ShareParams from share_plus, then replace the
Share.share('My SRX address: $address') invocation (in the receive screen
handler around the existing call site) with
SharePlus.instance.share(ShareParams(text: 'My SRX address: $address')); ensure
the new import(s) are added and remove or stop using the old Share symbol so the
code compiles against share_plus v13.

sensors_plus: ^7.0.0

dev_dependencies:
Expand Down
Loading