Skip to content

build(deps): bump share_plus from 10.1.4 to 13.1.0 - #21

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pub/share_plus-13.1.0
Closed

build(deps): bump share_plus from 10.1.4 to 13.1.0#21
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pub/share_plus-13.1.0

Conversation

@dependabot

@dependabotdependabotBot commented on behalf of githubMay 14, 2026

Copy link
Copy Markdown
Contributor

Bumps share_plus from 10.1.4 to 13.1.0.

Commits
  • 6427bc6 chore(release): prepare for release (#3805)
  • d965e00 feat(share_plus): Lower requirements to Dart 3.10 and Flutter 3.38.1 (#3801)
  • 6982a68 chore(release): prepare for release (#3793)
  • 0e3eb91 feat(share_plus)!: Bump win32 from 5.15.0 to 6.0.0 (#3762)
  • c46ab89 chore(release): prepare for release (#3785)
  • ae6330b fix(share_plus): Avoid crash on iOS during file and text sharing in add-to-ap...
  • b64f663 chore(release): prepare for release (#3701)
  • 42b079b fix(share_plus): Avoid crash on iOS 26 on iPhones with no sharePositionOrigin...
  • 1d29902 chore(release): prepare for release (#3675)
  • 3bd253b fix(share_plus): unable to get the correct result on iOS (#3660)
  • Additional commits viewable in compare view

Summary by CodeRabbit

  • Chores
    • Updated package dependencies to latest compatible versions.

Review Change Stack

@dependabotdependabotBot added dart Pull requests that update dart code dependencies Pull requests that update a dependency file labels May 14, 2026
@coderabbitai

coderabbitaiBot commented May 14, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

The pull request updates the share_plus dependency version in pubspec.yaml from ^10.0.0 to ^13.1.0.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check nameStatusExplanationResolution
Description check⚠️ WarningThe description is missing the required 'Summary' and 'Test plan' sections from the template, containing only auto-generated dependency bump information.Add a 'Summary' section (1-3 sentences explaining what changed and why) and a 'Test plan' section with a checklist of validation steps before merging.
✅ Passed checks (4 passed)
Check nameStatusExplanation
Title check✅ PassedThe title clearly and accurately summarizes the main change: updating the share_plus dependency from version 10.1.4 to 13.1.0.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/pub/share_plus-13.1.0

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitaicoderabbitaiBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with 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.
Inline comments:
In `@pubspec.yaml`:
- Line 19: Update the pubspec.yaml environment constraint to match the resolved
minimum SDKs from the lockfile: change the sdk constraint to ">=3.7.0 <4.0.0"
and add/update the flutter constraint to ">=3.29.0" inside the environment block
in pubspec.yaml so the declared minimums align with the share_plus 13.1.0
transitive requirements found in pubspec.lock.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 205b75fe-b41f-4b34-addc-337c62041336

📥 Commits

Reviewing files that changed from the base of the PR and between 45aa4ed and 80e1c27.

⛔ Files ignored due to path filters (1)
  • pubspec.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • pubspec.yaml

@satyakwok

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [share_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus) from 10.1.4 to 13.1.0.
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/share_plus-v13.1.0/packages/share_plus)
---
updated-dependencies:
- dependency-name: share_plus
dependency-version: 13.1.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabotBotforce-pushed the dependabot/pub/share_plus-13.1.0 branch from 80e1c27 to cb59ec5CompareMay 14, 2026 21:17

@coderabbitaicoderabbitaiBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
pubspec.yaml (1)

7-8: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Update environment constraints to match share_plus 13.1.0 requirements.

The current SDK constraint >=3.0.0 <4.0.0 is too permissive. As noted in the previous review, share_plus 13.1.0 and its transitive dependencies require Dart >=3.7.0 and Flutter >=3.29.0. The pubspec.yaml should declare these actual minimums to prevent dependency resolution failures or runtime issues on unsupported toolchains.

🔧 Suggested fix
 environment:
- sdk: '>=3.0.0 <4.0.0'+ sdk: '>=3.7.0 <4.0.0'+ flutter: '>=3.29.0'
🤖 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` around lines 7 - 8, Update the environment SDK constraint to
match share_plus 13.1.0 requirements by changing the sdk lower bound from
'>=3.0.0' to '>=3.7.0' and add a Flutter minimum constraint; modify the
environment block in pubspec.yaml (the environment: sdk line) to use sdk:
'>=3.7.0 <4.0.0' and add flutter: '>=3.29.0' so dependency resolution will
require Dart >=3.7.0 and Flutter >=3.29.0.
🤖 Prompt for all review comments with 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.
Inline comments:
In `@pubspec.yaml`:
- 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.
---
Duplicate comments:
In `@pubspec.yaml`:
- Around line 7-8: Update the environment SDK constraint to match share_plus
13.1.0 requirements by changing the sdk lower bound from '>=3.0.0' to '>=3.7.0'
and add a Flutter minimum constraint; modify the environment block in
pubspec.yaml (the environment: sdk line) to use sdk: '>=3.7.0 <4.0.0' and add
flutter: '>=3.29.0' so dependency resolution will require Dart >=3.7.0 and
Flutter >=3.29.0.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e1233269-649c-4a6e-9496-deb728a64e0f

📥 Commits

Reviewing files that changed from the base of the PR and between 80e1c27 and cb59ec5.

⛔ Files ignored due to path filters (1)
  • pubspec.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • pubspec.yaml

Comment threadpubspec.yaml
qr_flutter: ^4.1.0
intl: ^0.20.2
share_plus: ^10.0.0
share_plus: ^13.1.0

@coderabbitaicoderabbitaiBotMay 14, 2026

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 compatibilityecho"=== 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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
echo "=== receive_screen.dart share_plus import ==="
rg -n "share_plus\|import.*share\|Share\." --type=dart lib/screens/receive/receive_screen.dart
echo -e "\n=== Full context around share usage ==="
rg -n -C5 "Share\." --type=dart lib/screens/receive/receive_screen.dart
echo -e "\n=== All share_plus usages across project ==="
rg -n "Share\.\|share_plus\|SharePlus\|ShareParams" --type=dart

Length of output: 618


🏁 Script executed:

#!/bin/bash
echo "=== Top 20 lines of receive_screen.dart ==="
head -20 lib/screens/receive/receive_screen.dart
echo -e "\n=== All imports in receive_screen.dart ==="
rg -n "^import" lib/screens/receive/receive_screen.dart

Length of output: 1284


@satyakwok, the finding is confirmed and still valid. Here's the minimal fix:

lib/screens/receive/receive_screen.dart

The import on line 6 is already correct — SharePlus and ShareParams are both exported from package:share_plus/share_plus.dart, so no import changes are needed. Only line 164 needs updating:

- onTap: () => Share.share('My SRX address: $address'),+ onTap: () => SharePlus.instance.share(ShareParams(text: 'My SRX address: $address')),

That's the only change required. The rest of the file is unaffected.

  • Update the deprecated Share.share() call site in lib/screens/receive/receive_screen.dart line 164

  • 📌 Commit the changes to this branch

@satyakwoksatyakwok self-assigned this May 24, 2026
@dependabot@github

dependabotBot commented on behalf of githubJul 2, 2026

Copy link
Copy Markdown
ContributorAuthor

Superseded by #29.

@dependabotdependabotBot closed this Jul 2, 2026
@dependabot
dependabotBot deleted the dependabot/pub/share_plus-13.1.0 branch July 2, 2026 05:45
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dartPull requests that update dart codedependenciesPull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@satyakwok