Skip to content

Update to riverpod 3.x compatibility - #76

Open
Ligament wants to merge 6 commits into
chatwoot:developfrom
Ligament:develop
Open

Ligament wants to merge 6 commits into
chatwoot:developfrom
Ligament:develop

Conversation

@Ligament

Copy link
Copy Markdown

Summary

Updated chatwoot_sdk to support riverpod 3.x, resolving dependency conflicts with modern Flutter projects using riverpod_annotation ^3.0.0-dev.17 and later versions.

Changes Made

Dependencies

  • Updated riverpod from ^2.6.1 to ^3.0.0 (pubspec.yaml:20)
  • Version bump from 0.0.9 to 0.0.10 (pubspec.yaml:3)

Code Updates

  • Fixed test compatibility with riverpod 3.x API (test/chatwoot_client_test.dart:44-48)
    • Replaced deprecated overrideWithProvider() with overrideWith()
    • Updated provider override syntax to use callback functions instead of provider instances
  • Regenerated all build_runner outputs (.g.dart files)

Documentation

  • Added Requirements section to README (README.md:21-27)
    • Documents Flutter SDK ^3.5.3 requirement
    • Lists riverpod ^3.0.0 dependency
    • Notes usage of Hive and riverpod for transparency
  • Updated CHANGELOG with version 0.0.10 release notes (CHANGELOG.md:42-46)

- Updated riverpod dependency to ^3.0.0 for compatibility with latest Flutter projects
- Fixed test compatibility with riverpod 3.x API changes
- Regenerated build_runner outputs
- Added flutter_lldb_helper.py and flutter_lldbinit for LLDB integration
- Updated README with package requirements
- Updated CHANGELOG for version 0.0.10
- Updated pubspec.lock and pubspec.yaml for dependency updates
@Ligament
Ligament marked this pull request as draft November 10, 2025 08:08
@Ligament
Ligament marked this pull request as ready for review November 10, 2025 08:08
Ligament and others added 4 commits November 10, 2025 15:34
- add ChatwootClient.updateLastSeen() through repository and service
- build ws/wss URLs from the parsed base URI instead of string replacement,
  preserving host and port
- treat isMine messages without an echoId as incoming to avoid a null
  assertion on server-generated activity messages
- pass contentAttributes through sendAttachment and send the full request
  payload with attachments
- move Hive type IDs to 50-54 to avoid collisions with host-app adapters
- bump flutter_secure_storage to ^10.0.0 and flutter_lints to ^6.0.0

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
pub does not run build_runner for dependencies, so any consumer of this
package as a git or path dependency fails to compile without the generated
sources. Stop ignoring lib/**/*.g.dart and commit the 8 generated files;
example/ output stays ignored.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant