Skip to content

Commit 22a9e1d

Browse files
committed
Bump to 13.2.0, merge PRs and dependencies update
1 parent 8193218 commit 22a9e1d

File tree

11 files changed

+171
-110
lines changed

11 files changed

+171
-110
lines changed

packages/health/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
## 13.2.0
22

3-
* Add get health data by UUID (see `getHealthDataByUUID()`)
3+
* Add get health data by UUID (see `getHealthDataByUUID()`) - PR [#1193](https://github.com/carp-dk/flutter-plugins/pull/1193), [#1194](https://github.com/carp-dk/flutter-plugins/pull/1194)
4+
* Add delete by UUID (`deleteByUUID()`)
5+
* Add support for unit conversion in `WeightRecord`, `HeightRecord`, `BodyTemperatureRecord`, and `BloodGlucoseRecord` - PR [#1212](https://github.com/carp-dk/flutter-plugins/pull/1223)
6+
* Update `compileSDK` to 36 - Fix [#1261](https://github.com/carp-dk/flutter-plugins/issues/1261)
7+
* Update Gradle to 8.9.1
8+
* Update `org.jetbrains.kotlin.android` to 2.1.0
9+
* Update `androidx.health.connect:connect-client` to 1.1.0-rc03
10+
* Update `device_info_plus` to 12.1.0 - Fix [#1264](https://github.com/carp-dk/flutter-plugins/issues/1264)
411

512
## 13.1.4
613

packages/health/android/build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:8.1.4'
12+
classpath 'com.android.tools.build:gradle:8.13.0'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515
}
@@ -25,7 +25,7 @@ apply plugin: 'com.android.library'
2525
apply plugin: 'kotlin-android'
2626

2727
android {
28-
compileSdk 34
28+
compileSdk 36
2929

3030
compileOptions {
3131
sourceCompatibility JavaVersion.VERSION_11
@@ -41,7 +41,7 @@ android {
4141
}
4242
defaultConfig {
4343
minSdkVersion 26
44-
targetSdkVersion 34
44+
targetSdkVersion 36
4545
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4646
}
4747
lintOptions {
@@ -51,12 +51,11 @@ android {
5151
}
5252

5353
dependencies {
54-
def composeBom = platform('androidx.compose:compose-bom:2025.02.00')
54+
def composeBom = platform('androidx.compose:compose-bom:2025.09.00')
5555
implementation(composeBom)
56-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
56+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.2.10"
5757

58-
implementation("androidx.health.connect:connect-client:1.1.0-alpha11")
59-
def fragment_version = "1.8.6"
60-
implementation "androidx.fragment:fragment-ktx:$fragment_version"
58+
implementation("androidx.health.connect:connect-client:1.1.0-rc03")
59+
implementation "androidx.fragment:fragment-ktx:1.8.9"
6160

6261
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Tue Sep 16 09:25:00 CEST 2025
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

packages/health/android/src/main/kotlin/cachet/plugins/health/HealthDataOperations.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package cachet.plugins.health
33
import android.util.Log
44
import androidx.health.connect.client.HealthConnectClient
55
import androidx.health.connect.client.HealthConnectFeatures
6-
import androidx.health.connect.client.feature.ExperimentalFeatureAvailabilityApi
76
import androidx.health.connect.client.permission.HealthPermission
87
import androidx.health.connect.client.permission.HealthPermission.Companion.PERMISSION_READ_HEALTH_DATA_HISTORY
98
import androidx.health.connect.client.permission.HealthPermission.Companion.PERMISSION_READ_HEALTH_DATA_IN_BACKGROUND
@@ -103,7 +102,6 @@ class HealthDataOperations(
103102
* @param call Method call from Flutter (unused)
104103
* @param result Flutter result callback returning boolean availability status
105104
*/
106-
@OptIn(ExperimentalFeatureAvailabilityApi::class)
107105
fun isHealthDataHistoryAvailable(call: MethodCall, result: Result) {
108106
scope.launch {
109107
result.success(
@@ -139,7 +137,6 @@ class HealthDataOperations(
139137
* @param call Method call from Flutter (unused)
140138
* @param result Flutter result callback returning boolean availability status
141139
*/
142-
@OptIn(ExperimentalFeatureAvailabilityApi::class)
143140
fun isHealthDataInBackgroundAvailable(call: MethodCall, result: Result) {
144141
scope.launch {
145142
result.success(

packages/health/android/src/main/kotlin/cachet/plugins/health/HealthDataWriter.kt

Lines changed: 146 additions & 82 deletions
Large diffs are not rendered by default.

packages/health/example/android/app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
android {
99
namespace = "cachet.plugins.health.health_example"
1010
compileSdk = flutter.compileSdkVersion
11-
// ndkVersion = flutter.ndkVersion
11+
ndkVersion = flutter.ndkVersion
1212

1313
compileOptions {
1414
sourceCompatibility = JavaVersion.VERSION_11

packages/health/example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip

packages/health/example/android/settings.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pluginManagement {
1818

1919
plugins {
2020
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
21-
id("com.android.application") version "8.7.0" apply false
22-
id("org.jetbrains.kotlin.android") version "1.8.22" apply false
21+
id("com.android.application") version "8.9.1" apply false
22+
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
2323
}
2424

2525
include(":app")

packages/health/example/lib/main.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -685,13 +685,6 @@ class HealthAppState extends State<HealthApp> {
685685
WidgetStatePropertyAll(Colors.blue)),
686686
child: const Text("Delete Data",
687687
style: TextStyle(color: Colors.white))),
688-
TextButton(
689-
onPressed: testDeleteByClientRecordId,
690-
style: const ButtonStyle(
691-
backgroundColor:
692-
WidgetStatePropertyAll(Colors.red)),
693-
child: const Text("Test Delete by Client ID",
694-
style: TextStyle(color: Colors.white))),
695688
TextButton(
696689
onPressed: fetchStepData,
697690
style: const ButtonStyle(

packages/health/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ publish_to: "none"
44
version: 4.5.0
55

66
environment:
7-
sdk: ">=3.2.0 <4.0.0"
7+
sdk: ">=3.8.0 <4.0.0"
88
flutter: ">=3.6.0"
99

1010
dependencies:

0 commit comments

Comments
 (0)