mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
Compare commits
4 commits
bed4535910
...
75c504352a
Author | SHA1 | Date | |
---|---|---|---|
|
75c504352a | ||
|
8107a6a3bf | ||
|
7db3c6bded | ||
|
d91441bac9 |
2 changed files with 13 additions and 17 deletions
26
.github/workflows/create_release.yml
vendored
26
.github/workflows/create_release.yml
vendored
|
@ -14,6 +14,10 @@ on:
|
||||||
description: "Version"
|
description: "Version"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
release-notes:
|
||||||
|
description: "Release notes"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=240/320 -t lib/main_prod.dart
|
BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=240/320 -t lib/main_prod.dart
|
||||||
|
@ -163,20 +167,11 @@ jobs:
|
||||||
unzip app-prod-release.aab
|
unzip app-prod-release.aab
|
||||||
(cd base/lib && zip -r "$OLDPWD/merged_native_libs.zip" .)
|
(cd base/lib && zip -r "$OLDPWD/merged_native_libs.zip" .)
|
||||||
|
|
||||||
- name: Zip app bundle and merged_native_libs
|
- name: Upload merged native libs to artifacts
|
||||||
run: zip m3_lightmeter_release.zip app-prod-release.aab merged_native_libs.zip
|
|
||||||
|
|
||||||
- name: Upload merged_native_libs.zip to artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: m3_lightmeter_release
|
name: merged_native_libs
|
||||||
path: m3_lightmeter_release.zip
|
path: merged_native_libs.zip
|
||||||
|
|
||||||
# TODO: this should be moved to `create-google-play-release` step when it is implemented
|
|
||||||
- name: Delete no longer used app bundle artifact
|
|
||||||
uses: geekyeggo/delete-artifact@v2
|
|
||||||
with:
|
|
||||||
name: m3_lightmeter_bundle
|
|
||||||
|
|
||||||
# TODO: Automate Google Play releases creation
|
# TODO: Automate Google Play releases creation
|
||||||
create-google-play-release:
|
create-google-play-release:
|
||||||
|
@ -193,15 +188,14 @@ jobs:
|
||||||
merged_native_libs
|
merged_native_libs
|
||||||
|
|
||||||
- name: Create Google Play release
|
- name: Create Google Play release
|
||||||
uses: r0adkll/upload-google-play@v1
|
uses: r0adkll/upload-google-play@v1.1.1
|
||||||
with:
|
with:
|
||||||
serviceAccountJsonPlainText: #TODO:
|
serviceAccountJsonPlainText: ${{ secrets.GH_ACTIONS_SERVICE_ACCOUNT_JSON }}
|
||||||
packageName: com.vodemn.lightmeter
|
packageName: com.vodemn.lightmeter
|
||||||
releaseFiles: app-prod-release.aab
|
releaseFiles: app-prod-release.aab
|
||||||
track: production
|
track: production
|
||||||
status: inProgress
|
status: draft
|
||||||
userFraction: 1.0
|
userFraction: 1.0
|
||||||
whatsNewDirectory: #TODO:
|
|
||||||
debugSymbols: merged_native_libs.zip
|
debugSymbols: merged_native_libs.zip
|
||||||
|
|
||||||
- name: Delete no longer used app bundle & merged native libs artifacts
|
- name: Delete no longer used app bundle & merged native libs artifacts
|
||||||
|
|
|
@ -28,7 +28,9 @@ class _CameraHistogramState extends State<CameraHistogram> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
widget.controller.stopImageStream();
|
/// There is no need to stop image stream here,
|
||||||
|
/// because this widget will be disposed when CameraController is disposed
|
||||||
|
/// widget.controller.stopImageStream();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue