Skip to content

Self-Improvement App with Marshall Goldsmith's 6 Daily Questions - inofficial app

License

Notifications You must be signed in to change notification settings

mkraenz/daily-questions

Repository files navigation

Daily Questions App

Inofficial app to follow Marshall Goldsmith's 6 Daily Questions from his book Triggers.

Check the Readme of You are Awesome App! Daily Motivation Up! on how to debug and much more.

Getting Started

yarn install --frozen-lockfile
yarn dev

Warning: At least for me on Ubuntu 22 with Expo 49 and 50, I was not able to run the app inside Expo Go on an Android Emulator. However, using an actual device with Expo Go (v2.30.8) installed everything works just fine, as long as you're on the same wifi network.

Deployment

See also EAS Build Guide.

yarn eas login
# verify you're logged in
yarn eas whoami

# build and deploy
yarn eas:build

# submit to Google Playstore
# configure via eas.json
yarn eas:submit

# DEBUG: https://github.com/expo/fyi/blob/main/eas-build-archive.md

Old workflow

# complete rebuild
yarn build-and-publish:expo:android:app-bundle:prod
# or alternatively do an OTA update
yarn deploy:ota:prod

Local installation on phone or emulator

java -jar bundletool.jar build-apks --bundle=daily-questions-signed.aab --output=daily-questions.apks --mode=universal
java -jar bundletool.jar install-apks --apks=daily-questions.apks

Local .apk build

To speed up development, it is sometimes possible to build an apk without using the expo build services (Turtle). This may require some setup (like Android Studio and maybe more).

yarn build:local

Development

FAQ

Some redux middleware complaints when used with react-redux

Symptom
A non-serializable value was detected in an action, in the path: `payload`. Value:, Class {
  "_dispatchInstances": FiberNode {
...
SerializableStateInvariantMiddleware took 64ms, which is more than the warning threshold of 32ms.
...
Analysis and Solution

You probably use some code like this

<Button mode="outlined" onPress={clearHistory}>
  Clear history
</Button>

where clearHistory is an action creator injected using react-redux' connect and mapDispatch.

onPress seems to implicitely pass some argument to the function. So to fix the warning, explicitely ignore the argument and call your function without it like so

<Button mode="outlined" onPress={() => clearHistory()}>
  Clear history
</Button>

Licence

Code is licensed under MIT. Files under /assets/ are NOT licensed under MIT. You may clone or forge the repository with the assets included but please do not distribute your app using the same images and logos. Thank you :)

Links and Resources

About

Self-Improvement App with Marshall Goldsmith's 6 Daily Questions - inofficial app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published