dth-pingpong-mobileapp/README.md
2024-12-22 21:06:33 +01:00

3 KiB

dth-pingpong-mobileapp

Companion app for managing openshock-compatible devices

Minimum supported Android API: 28 (Android 9).
Minimum required iOS version: 14

Flutter application for ping pong score tracking. supports friends, elo tracking, match creation and planning.

lang os1

Installing

Installation options are available for major mobile platforms. Although we mainly support android, all the features are cross-compatible with iOS

Stable release channel (Android only)

Grab one of the builds from the releases page or run:

flutter build apk

Production artifacts will be found in the build\app\outputs\apk\ directory.

RRC (Rolling Release Channel) There's also a Rolling release available as a GitHub Actions artifact. It runs every time I commit, so it might be up to date but also potentially broken.

Building instructions (Android)

Make sure you have Flutter, Android Studio, and Visual Studio Code installed. Install the suggested Flutter, Dart, and linting extensions in Visual Studio Code.

Run the following commands to ensure all dependencies are met:

flutter doctor

You'll be guided through a first-time setup that checks for platform tools, dependencies, and missing components.

Once the setup is complete you can navigate to the repo folder and run

flutter run

If you want to build debug you can also run

flutter build apk --debug

Build artifacts for Android are saved under build\app\outputs\apk.

Building instructions (iOS)

MAJOR WORD OF WARNING: iOS builds are NOT officially supported, and we have NO clue as to why or how certain things just break on the xCode build (namely some icons and some api calls). if you encounter these issues you are free to patch them, and, if you seem fit, hit me up with a PR

Make sure you have Flutter, xCode and Apple Developer Tools, cocoapods, and Visual Studio Code installed. Install the suggested Flutter, Dart, and linting extensions in Visual Studio Code and set up xcode for "iOS on iphone" developement. Once that is done, go in the project's folder and run the following command to ensure that your build environment is properly configured, any missing component will be highlighted

flutter doctor

Once you've done that, from the same terminal, run this command to generate a .IPA file - once you're done it's a matter of sideloading it to your device. since i've never owned an apple device i have no idea how to do that. iOS artifacts are saved in build/ios/runner/.

flutter build ios