This is an automated archive made by the Lemmit Bot.
The original was posted on /r/opensource by /u/Frequent_Computer388 on 2024-11-10 00:21:18+00:00.
I’ve contributed minor things before like adding issues and fixing minor typos but I decided I wanted to add syncing my favourite open source app into Android’s Health Connect system. It had been requested in a couple of issues but no one had got around to it yet.
Turns out, because the app was written in Cordova, there needed to be a compatibility layer plugin that translated JavaScript functions into the Java calls that the API understands. I saw there was one but the feature I actually needed had been merged without being tested and was severely broken, so now as well as contributing to my favourite app, I’m contributing Java to a different plugin, a language I’ve never used before! After a few hours of studying how the other API calls work and reading the docs and trial and error (so much trial and error), I got the API working 100% and could finally put in a PR for that project with the fixes that was accepted immediately!
I could then develop a WIP PR for the app I want to add support to, importing the plugin, initialising the Health Connect API, making some test calls etc. Looking forward to finishing the functionality and getting it approved and merged!