Skip to content

Commit

Permalink
Add Android support for caffeine
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamsinghmutualmobile committed Mar 25, 2024
1 parent 2c39ccb commit 6254f87
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ class HealthPlugin(private var channel: MethodChannel? = null) :
val carbs = call.argument<Double>("carbohydrates") as Double?
val protein = call.argument<Double>("protein") as Double?
val fat = call.argument<Double>("fatTotal") as Double?
val caffeine = call.argument<Double>("caffeine") as Double?
val name = call.argument<String>("name")
val mealType = call.argument<String>("mealType")!!

Expand All @@ -636,6 +637,7 @@ class HealthPlugin(private var channel: MethodChannel? = null) :
totalCarbohydrate = carbs?.grams,
protein = protein?.grams,
totalFat = fat?.grams,
caffeine = caffeine?.grams,
startTime = startTime,
startZoneOffset = null,
endTime = endTime,
Expand Down

0 comments on commit 6254f87

Please sign in to comment.