Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/terra_flutter_bridge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,24 +118,28 @@ class TerraFlutter {
})));
}

@Deprecated('This method is deprecated and will be removed in a future release.')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with readGlucoseData and to improve clarity, please add a comment indicating that activateGlucoseSensor is also an Apple-specific function. This will help prevent confusion and potential runtime errors on other platforms like Android where it is not implemented.

  // only for apple
  @Deprecated('This method is deprecated and will be removed in a future release.')

static Future<String?> 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<String?> readGlucoseData() async {
final String? success = await _channel.invokeMethod('readGlucoseData');
return success;
}

@Deprecated('This method is deprecated and will be removed in a future release.')
static Future<ListDataMessage?> getPlannedWorkouts(
Connection connection) async {
return ListDataMessage.fromJson(Map<String, dynamic>.from(await _channel.invokeMethod('getPlannedWorkouts', {
"connection": connection.connectionString
})));
}

@Deprecated('This method is deprecated and will be removed in a future release.')
static Future<SuccessMessage?> deletePlannedWorkout(
Connection connection, String id) async {
return SuccessMessage.fromJson(Map<String, dynamic>.from(await _channel.invokeMethod('deletePlannedWorkout', {
Expand All @@ -144,6 +148,7 @@ class TerraFlutter {
})));
}

@Deprecated('This method is deprecated and will be removed in a future release.')
static Future<SuccessMessage?> completePlannedWorkout(
Connection connection, String id, DateTime? at ) async {
return SuccessMessage.fromJson(Map<String, dynamic>.from(await _channel.invokeMethod('completePlannedWorkout', {
Expand All @@ -153,6 +158,7 @@ class TerraFlutter {
})));
}

@Deprecated('This method is deprecated and will be removed in a future release.')
static Future<SuccessMessage?> postPlannedWorkout(
Connection connection, TerraPlannedWorkout payload) async {
return SuccessMessage.fromJson(Map<String, dynamic>.from(await _channel.invokeMethod('postPlannedWorkout', {
Expand Down