Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RMET-3047 Android Advance Query #100

Merged
merged 7 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ The changes documented here do not include those from the original repository.

## [Unreleased]

## 2024-02-09
- Re-implemented AdvanceQuery feature (https://outsystemsrd.atlassian.net/browse/RMET-3047).

## 2024-02-09
- Re-implemented ListBackgroundJobs feature (https://outsystemsrd.atlassian.net/browse/RMET-3069).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,16 @@ class OSHealthFitness : CordovaImplementation() {
}

private fun advancedQuery(args: JSONArray) {
val parameters = gson.fromJson(args.getString(0), AdvancedQueryParameters::class.java)
healthStore?.advancedQueryAsync(
val parameters = gson.fromJson(args.getString(0), HealthAdvancedQueryParameters::class.java)
healthConnectViewModel.advancedQueryAsync(
parameters,
{ response ->
val pluginResponseJson = gson.toJson(response)
sendPluginResult(pluginResponseJson)
},
{ error ->
OS-ricardomoreirasilva marked this conversation as resolved.
Show resolved Hide resolved
sendPluginResult(null, Pair(error.code.toString(), error.message))
},
{ error ->
sendPluginResult(null, Pair(error.code.toString(), error.message))
}
Expand Down
Loading