Flutter
Thryve provides Flutter SDK and modules that are using the Thryve native SDKs.
The Flutter wrapper for the native SDKs supports all functionalities of the native SDKs unless stated differently.
Configuration of projects
The Flutter SDK supports the development of iOS and Android applications. Follow the guide below to configure your project.
Create a directory,
plugininside the project's root directoryCopy the Thryve Flutter SDK plugins (applicable to your project) into the newly created
plugindirectory of the project.In your project's
pubspec.yaml, ensure theenvironmentsdkproperty is>=3.1.0 <4.0.0In your project's
pubspec.yaml, add the Thryve Flutter SDK dependencies applicable to your project in thedependencies:block
...
dependencies:
flutter:
sdk: flutter
thryve_sdk:
path: plugin/thryve_sdk // required for all integrations
module_samsung_health:
path: plugin/module_samsung_health // optional, required for Samsung Health integration
module_health_connect:
path: plugin/module_health_connect // optional, required for Health Connect integration
module_apple_health:
path: plugin/module_apple_health // optional, required for Apple Healthkit integration
module_shen_ai:
path: plugin/module_shen_ai // optional, required for ShenAI integration
...Add the Thryve Pods Spec source to
Podfileand/or Android dependencies repository tobuild.gradle
Add the Thryve Pods spec source the the Podfile
Add the following to the project's android/build.gradle
Migrating to Flutter SDK 5.2.0+
Breaking Changes (5.2.0)
Samsung Health
Samsung Health data types replaced
The entire ThryveSamsungHealthDataType enum has been replaced to align with the new Samsung Health data model. All previous values are removed with no backwards-compatible aliases.
You must update every reference in your app to use the new values listed in the ThryveSamsungHealthDataType reference.
Health Connect HealthConnectDataType renamed
Apple Health HKConnectorType renamed
Last updated

