Skip to content

Commit

Permalink
Include exercise types in README
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamsinghshubham777 committed Dec 1, 2024
1 parent b2f7922 commit 447ab65
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 41 deletions.
199 changes: 160 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ kotlin {

3. (Android only) Add the dependencies you require to use in `AndroidManifest.xml`

| Type | Permissions |
|-------------------------|----------------------------------------------------------------------------------------------------------------------|
| Type | Permissions |
|-------------------------|------------------------------------------------------------------------------------------------------------------------|
| ACTIVE_CALORIES_BURNED | `android.permission.health.READ_ACTIVE_CALORIES_BURNED`<br/>`android.permission.health.WRITE_ACTIVE_CALORIES_BURNED` |
| BASAL_METABOLIC_RATE | `android.permission.health.READ_BASAL_METABOLIC_RATE`<br/>`android.permission.health.WRITE_BASAL_METABOLIC_RATE` |
| BLOOD_GLUCOSE | `android.permission.health.READ_BLOOD_GLUCOSE`<br/>`android.permission.health.WRITE_BLOOD_GLUCOSE` |
Expand Down Expand Up @@ -261,45 +261,166 @@ KHealth supports reading and writing the following data types on the following p

| Type | Android | Apple (iOS & watchOS) |
|------------------------|---------|-----------------------|
| ActiveCaloriesBurned |||
| BasalMetabolicRate |||
| BloodGlucose |||
| BloodPressure |||
| BodyFat |||
| BodyTemperature |||
| BodyWaterMass |||
| BoneMass |||
| CervicalMucus |||
| CyclingPedalingCadence |||
| Distance |||
| ElevationGained |||
| FloorsClimbed |||
| HeartRate |||
| HeartRateVariability |||
| Height |||
| Hydration |||
| IntermenstrualBleeding |||
| LeanBodyMass |||
| MenstruationPeriod |||
| MenstruationFlow |||
| Nutrition |||
| OvulationTest |||
| OxygenSaturation |||
| Power |||
| RespiratoryRate |||
| RestingHeartRate |||
| SexualActivity |||
| SleepSession |||
| Speed |||
| RunningSpeed |||
| CyclingSpeed |||
| StepCount |||
| Vo2Max |||
| Weight |||
| WheelChairPushes |||
| ActiveCaloriesBurned |||
| BasalMetabolicRate |||
| BloodGlucose |||
| BloodPressure |||
| BodyFat |||
| BodyTemperature |||
| BodyWaterMass || |
| BoneMass || |
| CervicalMucus |||
| CyclingPedalingCadence || |
| Distance |||
| ElevationGained || |
| Exercise |||
| FloorsClimbed |||
| HeartRate |||
| HeartRateVariability |||
| Height |||
| Hydration |||
| IntermenstrualBleeding |||
| LeanBodyMass |||
| MenstruationPeriod || |
| MenstruationFlow |||
| Nutrition |||
| OvulationTest |||
| OxygenSaturation |||
| Power |||
| RespiratoryRate |||
| RestingHeartRate |||
| SexualActivity |||
| SleepSession |||
| Speed || |
| RunningSpeed | ||
| CyclingSpeed | ||
| StepCount |||
| Vo2Max |||
| Weight |||
| WheelChairPushes |||

## Supported Exercise Types (based on platforms)

KHealth supports reading and writing the following exercise/workout types on the following
platforms:

| Type | Android | Apple (iOS & watchOS) |
|-------------------------------|---------|------------------------|
| AmericanFootball |||
| Archery | ||
| AustralianFootball |||
| Badminton |||
| Barre | ||
| Baseball |||
| Basketball |||
| Biking |||
| BikingStationary |||
| BootCamp |||
| Bowling | ||
| Boxing |||
| Calisthenics |||
| CardioDance | ||
| Climbing | ||
| Cooldown | ||
| CoreTraining | ||
| Cricket |||
| CrossCountrySkiing | ||
| CrossTraining | ||
| Curling | ||
| Cycling | ||
| Dance | ||
| DanceInspiredTraining | ||
| Dancing |||
| DiscSports | ||
| DownhillSkiing | ||
| Elliptical |||
| EquestrianSports | ||
| ExerciseClass |||
| Fencing |||
| Fishing | ||
| FitnessGaming | ||
| Flexibility | ||
| FrisbeeDisc | ||
| FunctionalStrengthTraining | ||
| Golf |||
| GuidedBreathing |||
| Gymnastics |||
| HandCycling | ||
| Handball |||
| HighIntensityIntervalTraining |||
| Hiking |||
| Hockey | ||
| Hunting | ||
| IceHockey |||
| IceSkating |||
| JumpRope | ||
| Kickboxing | ||
| Lacrosse | ||
| MartialArts |||
| MindAndBody | ||
| MixedCardio | ||
| MixedMetabolicCardioTraining | ||
| Other |||
| PaddleSports | ||
| Paddling |||
| Paragliding |||
| Pickleball | ||
| Pilates |||
| Play | ||
| PreparationAndRecovery | ||
| Racquetball |||
| RockClimbing |||
| RollerHockey |||
| Rowing |||
| RowingMachine |||
| Rugby |||
| Running |||
| RunningTreadmill |||
| Sailing |||
| ScubaDiving |||
| Skating |||
| SkatingSports | ||
| Skiing |||
| SnowSports | ||
| Snowboarding |||
| Snowshoeing |||
| Soccer |||
| SocialDance | ||
| Softball |||
| Squash |||
| StairClimbing |||
| StairClimbingMachine |||
| Stairs | ||
| StepTraining | ||
| StrengthTraining |||
| Stretching |||
| Surfing |||
| SurfingSports | ||
| SwimBikeRun | ||
| Swimming | ||
| SwimmingOpenWater || |
| SwimmingPool || |
| TableTennis |||
| TaiChi | ||
| Tennis |||
| TrackAndField | ||
| TraditionalStrengthTraining | ||
| Transition | ||
| UnderwaterDiving | ||
| Volleyball |||
| Walking |||
| WaterFitness | ||
| WaterPolo |||
| WaterSports | ||
| Weightlifting |||
| Wheelchair |||
| WheelchairRunPace | ||
| WheelchairWalkPace | ||
| Wrestling | ||
| Yoga |||

> [!NOTE]
> The unsupported data types will simply be ignored by all platforms.
> The unsupported types will simply be ignored by all platforms.
## 🤝 Contributing

Expand Down
6 changes: 4 additions & 2 deletions khealth/src/commonMain/kotlin/com/khealth/KHExerciseType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,13 @@ enum class KHExerciseType {
FunctionalStrengthTraining,

Golf,

GuidedBreathing,
Gymnastics,

/** Supported on Apple only */
HandCycling,

Handball,

HighIntensityIntervalTraining,
Hiking,

Expand Down Expand Up @@ -216,8 +214,12 @@ enum class KHExerciseType {
/** Supported on Apple only */
Swimming,

/** Supported on Android only */
SwimmingOpenWater,

/** Supported on Android only */
SwimmingPool,

TableTennis,

/** Supported on Apple only */
Expand Down

0 comments on commit 447ab65

Please sign in to comment.