From dea8eb34627f5e936539524702ac94b4598c2c77 Mon Sep 17 00:00:00 2001 From: terra-alex Date: Mon, 2 Mar 2026 18:38:57 -0800 Subject: [PATCH 1/2] deprecate: mark FreeStyle Libre glucose functions as deprecated Add @Deprecated annotations to readGlucoseData and activateGlucoseSensor in TerraFlutter. These methods will be removed in a future release. Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/terra_flutter_bridge.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/terra_flutter_bridge.dart b/lib/terra_flutter_bridge.dart index c5e5a13..bc95a72 100644 --- a/lib/terra_flutter_bridge.dart +++ b/lib/terra_flutter_bridge.dart @@ -118,12 +118,14 @@ class TerraFlutter { }))); } + @Deprecated('This method is deprecated and will be removed in a future release.') static Future activateGlucoseSensor() async { final String? success = await _channel.invokeMethod('activateGlucoseSensor'); return success; } // only for apple + @Deprecated('This method is deprecated and will be removed in a future release.') static Future readGlucoseData() async { final String? success = await _channel.invokeMethod('readGlucoseData'); return success; From bf34f76da834399191954283d18988cc8288bee3 Mon Sep 17 00:00:00 2001 From: terra-alex Date: Mon, 2 Mar 2026 18:42:51 -0800 Subject: [PATCH 2/2] deprecate: mark planned workout functions as deprecated Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/terra_flutter_bridge.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/terra_flutter_bridge.dart b/lib/terra_flutter_bridge.dart index bc95a72..d2c5256 100644 --- a/lib/terra_flutter_bridge.dart +++ b/lib/terra_flutter_bridge.dart @@ -131,6 +131,7 @@ class TerraFlutter { return success; } + @Deprecated('This method is deprecated and will be removed in a future release.') static Future getPlannedWorkouts( Connection connection) async { return ListDataMessage.fromJson(Map.from(await _channel.invokeMethod('getPlannedWorkouts', { @@ -138,6 +139,7 @@ class TerraFlutter { }))); } + @Deprecated('This method is deprecated and will be removed in a future release.') static Future deletePlannedWorkout( Connection connection, String id) async { return SuccessMessage.fromJson(Map.from(await _channel.invokeMethod('deletePlannedWorkout', { @@ -146,6 +148,7 @@ class TerraFlutter { }))); } + @Deprecated('This method is deprecated and will be removed in a future release.') static Future completePlannedWorkout( Connection connection, String id, DateTime? at ) async { return SuccessMessage.fromJson(Map.from(await _channel.invokeMethod('completePlannedWorkout', { @@ -155,6 +158,7 @@ class TerraFlutter { }))); } + @Deprecated('This method is deprecated and will be removed in a future release.') static Future postPlannedWorkout( Connection connection, TerraPlannedWorkout payload) async { return SuccessMessage.fromJson(Map.from(await _channel.invokeMethod('postPlannedWorkout', {