flutterFlutter

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, plugin inside the project's root directory

  • Copy the Thryve Flutter SDK pluginsarrow-up-right (applicable to your project) into the newly created plugin directory of the project.

  • In your project's pubspec.yaml, ensure the environment sdk property is >=3.1.0 <4.0.0

  • In your project's pubspec.yaml, add the Thryve Flutter SDK dependencies applicable to your project in the dependencies: block

...
dependencies:
  flutter:
    sdk: flutter
    
  thryve_sdk:
    path: plugin/thryve_sdk // required for all integrations
  module_shealth:
    path: plugin/module_shealth // 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 Podfile and/or Android dependencies repository to build.gradle

Add the Thryve Pods spec source the the Podfile

circle-info

For more details refer to the sample codearrow-up-right demonstrating the SDK configuration.

Last updated