Skip to main content

Introduction

Install the rook-sdk-samsung library and learn about its features.

Features

  • Get authorization.
  • Register users.
  • Sync Samsung Health summaries and events.
  • Schedule automatic Samsung Health data syncs in background.

Restrictions

  • Samsung Health Data SDK requires Samsung Health v6.29 or later version installation.
  • Samsung Health runs on devices with Android 10 (API level 29) or above. It is available on all Samsung smartphones and also non-Samsung Android smartphones.
  • The SDK doesn’t support an emulator.

Development environment

Android Studio

The SDK requires Android Studio Koala Feature Drop | 2024.1.2 Patch 1 or higher.

Installation

Maven Central Version

In your build.gradle (app module) add the required dependencies.

dependencies {
implementation 'io.tryrook.android:rook-sdk-samsung:version'
}

Copy the samsung-health-data.aar file to your project libs directory and include it as a dependency:

dependencies {
implementation(files("$rootDir/libs/samsung-health-data-api-1.0.0-b2.aar"))
}

Samsung Health Data also needs the following dependencies to work correctly:

dependencies {
implementation("com.google.code.gson:gson:2.13.0")
}