-
Notifications
You must be signed in to change notification settings - Fork 4
Added medium sized widget that shows weekly statistics #8
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
base: master
Are you sure you want to change the base?
Conversation
|
Wohoo! Thanks for your PR. Thanks! |
| // Set to false if you don't want to see a photo | ||
| const photoWidget = true | ||
| const MAX_Y_HEIGHT = 75; // for medium widget | ||
| const DISPLAY_SINGLE_ACTIVITY_AS_MEDIUM_WIDGET = false // set it to true, if you want to display the latest activity as a medium widget |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added an easy option to opt out of the second medium sized widget
| filename = filename ? filename : 'strava-data.json' | ||
| let fm = FileManager.iCloud(); | ||
| let path = fm.joinPath(fm.documentsDirectory(), filename); | ||
| try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added error fix, as you suggested
vmarquar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added bugfix to load the file from icloud if it has not been synced yet.
Hi,
i created an new medium sized widget that shows the weekly statistics over multiple sports (mainly run, bike, swim). Feel free to add the changes to your original repository if you like to!
Kind Regards,
Valentin