New setup from scratch - all modules updated - app now in subfolder

This commit is contained in:
Martin Bauer
2023-09-29 22:04:52 +02:00
parent e28ab91935
commit 9b6bb7f126
63 changed files with 9633 additions and 44259 deletions

58
doc/environment-setup.md Normal file
View File

@@ -0,0 +1,58 @@
# Environment Setup
as of 2023-09
1. nodejs
---------
- Downloaded version `node-v18.18.0-linux-x64` and put the `node-v18.18.0-linux-x64/bin` into the path via `~/.config/fish/config.fish`
- Installed yarn as package manager (Source `https://yarnpkg.com/getting-started/install`)
- `corepack enable`
2. expo
-------
(Source `https://reactnative.dev/docs/environment-setup`)
- `yarn create expo-app SwimTracker`
- Starting with `yarn start -w` doesn't work and suggests runnig
`npx expo install react-native-web react-dom @expo/webpack-config`
3. Install Dependencies
-----------------------
use `npx expo install` instead of `yarn add` !
# Redux stuff
- react-redux
- redux-persist
- @react-native-async-storage/async-storage
# Translation
i18n-js
expo-localization
react-native-gesture-handler
react-native-reanimated
expo-app-loading # TODO deprecated
@react-navigation/native
@react-navigation/stack
react-native-safe-area-context # to not cover status bar etc
react-native-screens # not used directly, but somehow required
# Data handling
msgpack-lite
immutable
reconnecting-websocket
# Webdav reponse parsing
react-xml-parser
# Graph
react-native-svg

View File

@@ -0,0 +1,14 @@
# Based on https://docs.expo.io/distribution/turtle-cli/
npm -g install turtle-cli --legacy-peer-deps
# local hosting
expo export --public-url https://swimtracker.bauer.tech/app-update
scp -r dist/* root@server:"/volumes/swimtracker/app-update/"
# Needs jdk 8
apt install openjdk-8-jdk-headless
export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:$PATH
turtle build:android --type apk --public-url https://swimtracker.bauer.tech/app-update/android-index.json -o app.apk