Skip to content

Commit

Permalink
Merge pull request #34 from BIDMCDigitalPsychiatry/google_health_conn…
Browse files Browse the repository at this point in the history
…ect_changes

Android- Updating Google Fit API to HealthConnect API #790
  • Loading branch information
ZCOEngineer authored Jan 12, 2024
2 parents 8b0c548 + 5d8464d commit 6c0d969
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '11'
jvmTarget = '17'
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.3"
classpath "com.android.tools.build:gradle:7.4.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Fri Jan 12 18:46:41 IST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 3 additions & 3 deletions lamp_kotlin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '11'
jvmTarget = '17'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ data class NutritionData(
@field:[SerializeNulls] var source: Any?,
)
@JsonClass(generateAdapter = true)
data class GoogleFitData(
data class GoogleHealthConnectData(
val unit: String?,
val value: Any?,
@field:[SerializeNulls] var source: Any?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class ActivityTransitions : Service(), SensorEventListener {
Log.e(Companion.TAG, "Started Activity Transitions")

//Register the BroadcastReceiver to listen for activity transitions.
registerReceiver(mTransitionsReceiver, IntentFilter(actions))
registerReceiver(mTransitionsReceiver, IntentFilter(actions), RECEIVER_EXPORTED)
enableActivityTransitions()
return START_REDELIVER_INTENT
}
Expand Down

0 comments on commit 6c0d969

Please sign in to comment.