diff --git a/app/build.gradle b/app/build.gradle index 5a422c8..3b7e8fa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -70,8 +70,9 @@ repositories { google() mavenLocal() mavenCentral() - maven { url "https://oss.sonatype.org/content/repositories/snapshots" } - maven { url "https://repo.thehyve.nl/content/repositories/releases" } + maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } + maven { url 'https://repo.thehyve.nl/content/repositories/releases' } + maven { url 'https://jitpack.io' } } dependencies { @@ -100,11 +101,11 @@ dependencies { implementation "org.radarbase:radar-android-weather:$radar_commons_android_version" implementation "org.radarbase:radar-android-audio:$radar_commons_android_version" implementation "org.radarbase:radar-android-faros:$radar_commons_android_version" + implementation "org.radarbase:radar-android-polar:$radar_commons_android_version" implementation "org.radarbase:radar-android-google-sleep:$radar_commons_android_version" implementation "org.radarbase:radar-android-google-activity:$radar_commons_android_version" implementation "org.radarbase:radar-android-google-places:$radar_commons_android_version" - implementation "androidx.lifecycle:lifecycle-process:$lifecycle_process_version" implementation "androidx.legacy:legacy-support-v4:$legacy_support_version" implementation "com.google.android.material:material:$material_version" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b44b318..284aa78 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -34,6 +34,7 @@ Angel Pebble Phone + Polar NA diff --git a/app/src/playStore/java/org/radarcns/detail/RadarServiceImpl.kt b/app/src/playStore/java/org/radarcns/detail/RadarServiceImpl.kt index d604067..e9ecdf4 100644 --- a/app/src/playStore/java/org/radarcns/detail/RadarServiceImpl.kt +++ b/app/src/playStore/java/org/radarcns/detail/RadarServiceImpl.kt @@ -19,8 +19,6 @@ package org.radarcns.detail import android.Manifest.permission.RECEIVE_BOOT_COMPLETED import android.Manifest.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS import android.Manifest.permission.SYSTEM_ALERT_WINDOW -import android.os.Build -import org.radarbase.android.RadarConfiguration import org.radarbase.android.RadarConfiguration.Companion.START_AT_BOOT import org.radarbase.android.RadarService import org.radarbase.android.config.SingleRadarConfiguration @@ -36,6 +34,7 @@ import org.radarbase.passive.phone.PhoneBluetoothProvider import org.radarbase.passive.phone.PhoneContactListProvider import org.radarbase.passive.phone.PhoneLocationProvider import org.radarbase.passive.phone.PhoneSensorProvider +import org.radarbase.passive.polar.PolarProvider import org.radarbase.passive.phone.usage.PhoneUsageProvider import org.radarbase.passive.weather.WeatherApiProvider @@ -45,6 +44,7 @@ class RadarServiceImpl : RadarService() { OpenSmileAudioProvider(this), E4Provider(this), FarosProvider(this), + PolarProvider(this), PhoneBluetoothProvider(this), PhoneContactListProvider(this), PhoneLocationProvider(this),