Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 2.2 KB

README.md

File metadata and controls

42 lines (27 loc) · 2.2 KB

FitEtc

A standalone React Native Pedometer App based on Google Android API, currently support Android platform only.

run npm install https://github.com/aboveyunhai/FitEtc.git,
then execute react-native run android

require your own api key to enable google-fit api to work

Helpful link: https://github.com/StasDoskalenko/react-native-google-fit/blob/master/docs/INSTALLATION.md

Disclaimer

If you happened to find this because of the react-native-google-fit,
maybe this file (

export const auth = async() => {
) is the only useful place you want to take at look.
Other than that, while the app is still functionaily OK (at least I'm still using it by my own, and enough for dev testing), the entire codebase is a mess and requires a full rewrite, you will see tons of Typescript/React abuses. But I found many of two-years-old codes are stupid, entertaining but creative, so I just left what it is now until I want to rewrite it someday.

Motivation:

There are already tons of well-built fitness apps around, but I'm the particular oddity who has no interest in those fitness communities, notifications, etc.
Those also created many unnecessary bundles and huge battery comsumption
So I just want to create a pure pedometer app for myself and my family. Silently run in the background with minimal battery usage.

Do some NON-SENSE react-native UI/UX experiments for data presentation, battery consumption check and possible RN optimization

I currently use it to debug and help improve https://github.com/StasDoskalenko/react-native-google-fit. The core functionality of this app.

Todos:

  • Possibly fully expand the app to for all fitness data,
  • Code structure optimization

All credit to @aboveyunhai.

If you found anything interesting and want to take part of it for personal or commercial usage, just let me know.