# bnovance

Bnovance iOS & Android app

## Docs

- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
- [online documentation](https://docs.flutter.dev/)

## Configuration

| name        | value                                       | group |
| ----------- | ------------------------------------------- | ----- |
| API_URL     | 'http://192.168.0.179:8888'                 |       |
| OSS_ROOT    | 'https://bucket.oss-cn-shanghai.aliyun.com' |       |
| SOCKET_URL  | 'https://socket.bnovance.com'               |       |
| SOCKET_PORT | 4005                                        |       |
| SOCKET_NS   | 'app'                                       |       |
| MQTT_HOST   | 192.168.0.179                               |       |
| MQTT_PORT   | 1883                                        |       |
| MQTT_USER   | mqtt_test                                   |       |
| MQTT_PASSWD | bXF0dF90ZXN0Cg                              |       |

## scripts

```sh
# cache clean
dart pub cache repair
dart pub cache clean

# install cocoapods
sudo gem install -n /usr/local/bin cocoapods -v 1.8.4

# get dependencies
flutter pub get google_fonts

# remove dependencies
flutter pub remove dio

# model generate
flutter pub run build_runner build

# open simulator
open -a Simulator
# run app
flutter run --no-enable-impeller -v

# Android build (AppBundle)
flutter build appbundle
# [project]/build/app/outputs/bundle/release/app.aab

# Android build (APK)
flutter build apk --split-per-abi

# connect your Android device to your computer with a USB cable
flutter install
```

## Deploy

- [iOS](https://docs.flutter.dev/deployment/ios)
- [Android](https://docs.flutter.dev/deployment/android)

## FAQ

-