mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 23:40:41 +00:00
ResolutionPreset.medium
-> ResolutionPreset.low
This commit is contained in:
parent
7192e2e8d3
commit
927929a8b0
6 changed files with 10 additions and 10 deletions
2
.github/workflows/build_apk.yml
vendored
2
.github/workflows/build_apk.yml
vendored
|
@ -76,7 +76,7 @@ jobs:
|
||||||
- name: Build Apk
|
- name: Build Apk
|
||||||
env:
|
env:
|
||||||
FLAVOR: ${{ github.event.inputs.flavor }}
|
FLAVOR: ${{ github.event.inputs.flavor }}
|
||||||
run: flutter build apk --release --flavor $FLAVOR --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_$FLAVOR.dart
|
run: flutter build apk --release --flavor $FLAVOR --dart-define c -t lib/main_$FLAVOR.dart
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
2
.github/workflows/create_release.yml
vendored
2
.github/workflows/create_release.yml
vendored
|
@ -16,7 +16,7 @@ on:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart
|
BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=240/320 -t lib/main_prod.dart
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
|
@ -12,7 +12,7 @@
|
||||||
"--flavor",
|
"--flavor",
|
||||||
"dev",
|
"dev",
|
||||||
"--dart-define",
|
"--dart-define",
|
||||||
"cameraPreviewAspectRatio=2/3",
|
"cameraPreviewAspectRatio=240/320",
|
||||||
],
|
],
|
||||||
"program": "${workspaceFolder}/lib/main_dev.dart",
|
"program": "${workspaceFolder}/lib/main_dev.dart",
|
||||||
},
|
},
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
"--flavor",
|
"--flavor",
|
||||||
"prod",
|
"prod",
|
||||||
"--dart-define",
|
"--dart-define",
|
||||||
"cameraPreviewAspectRatio=2/3",
|
"cameraPreviewAspectRatio=240/320",
|
||||||
],
|
],
|
||||||
"program": "${workspaceFolder}/lib/main_prod.dart",
|
"program": "${workspaceFolder}/lib/main_prod.dart",
|
||||||
},
|
},
|
||||||
|
|
6
.vscode/tasks.json
vendored
6
.vscode/tasks.json
vendored
|
@ -12,7 +12,7 @@
|
||||||
"dev",
|
"dev",
|
||||||
"--release",
|
"--release",
|
||||||
"--dart-define",
|
"--dart-define",
|
||||||
"cameraPreviewAspectRatio=2/3",
|
"cameraPreviewAspectRatio=240/320",
|
||||||
"-t",
|
"-t",
|
||||||
"lib/main_dev.dart",
|
"lib/main_dev.dart",
|
||||||
],
|
],
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
"prod",
|
"prod",
|
||||||
"--release",
|
"--release",
|
||||||
"--dart-define",
|
"--dart-define",
|
||||||
"cameraPreviewAspectRatio=2/3",
|
"cameraPreviewAspectRatio=240/320",
|
||||||
"-t",
|
"-t",
|
||||||
"lib/main_prod.dart",
|
"lib/main_prod.dart",
|
||||||
],
|
],
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
"prod",
|
"prod",
|
||||||
"--release",
|
"--release",
|
||||||
"--dart-define",
|
"--dart-define",
|
||||||
"cameraPreviewAspectRatio=2/3",
|
"cameraPreviewAspectRatio=240/320",
|
||||||
"-t",
|
"-t",
|
||||||
"lib/main_prod.dart",
|
"lib/main_prod.dart",
|
||||||
],
|
],
|
||||||
|
|
|
@ -45,11 +45,11 @@ flutter pub get
|
||||||
flutter pub run intl_utils:generate
|
flutter pub run intl_utils:generate
|
||||||
```
|
```
|
||||||
|
|
||||||
### 4. Build
|
### 4. Build (Android)
|
||||||
|
|
||||||
You can build an apk by running the following command from the root of the repository:
|
You can build an apk by running the following command from the root of the repository:
|
||||||
```console
|
```console
|
||||||
flutter build apk --release --flavor $FLAVOR --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_$FLAVOR.dart
|
flutter build apk --release --flavor $FLAVOR --dart-define cameraPreviewAspectRatio=240/320 -t lib/main_$FLAVOR.dart
|
||||||
```
|
```
|
||||||
Just replace `$FLAVOR` with `dev` or `prod`.
|
Just replace `$FLAVOR` with `dev` or `prod`.
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ class CameraContainerBloc extends EvSourceBlocBase<CameraContainerEvent, CameraC
|
||||||
(camera) => camera.lensDirection == CameraLensDirection.back,
|
(camera) => camera.lensDirection == CameraLensDirection.back,
|
||||||
orElse: () => cameras.last,
|
orElse: () => cameras.last,
|
||||||
),
|
),
|
||||||
ResolutionPreset.medium,
|
ResolutionPreset.low,
|
||||||
enableAudio: false,
|
enableAudio: false,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue