mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 23:40:41 +00:00
Compare commits
No commits in common. "a7a8fe2a2e80d769365735e43f9fb0694f2bbcc1" and "d8e07bc3c3c059b30bb912d9fecd0ec183ca52f2" have entirely different histories.
a7a8fe2a2e
...
d8e07bc3c3
3 changed files with 9 additions and 52 deletions
57
.github/workflows/cd_prod.yml
vendored
57
.github/workflows/cd_prod.yml
vendored
|
@ -142,55 +142,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: m3_lightmeter_apk
|
name: m3_lightmeter_apk
|
||||||
|
|
||||||
- name: Rename apk
|
- name: Download app bundle
|
||||||
run: mv app-prod-release.apk m3_lightmeter.apk
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: m3_lightmeter_bundle
|
||||||
|
|
||||||
|
- name: Rename artifacts
|
||||||
|
run: |
|
||||||
|
mv app-prod-release.apk m3_lightmeter.apk
|
||||||
|
mv app-prod-release.aab m3_lightmeter.aab
|
||||||
|
|
||||||
- uses: ncipollo/release-action@v1.12.0
|
- uses: ncipollo/release-action@v1.12.0
|
||||||
with:
|
with:
|
||||||
artifacts: "m3_lightmeter.apk"
|
artifacts: "m3_lightmeter.apk, m3_lightmeter.aab"
|
||||||
skipIfReleaseExists: true
|
skipIfReleaseExists: true
|
||||||
tag: "v${{ github.event.inputs.version }}"
|
tag: "v${{ github.event.inputs.version }}"
|
||||||
|
|
||||||
extract-merged-native-libs:
|
|
||||||
name: Extract merged native libraries
|
|
||||||
needs: [build]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Download app bundle
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: m3_lightmeter_bundle
|
|
||||||
|
|
||||||
- name: Extract & zip merged_native_libs
|
|
||||||
run: |
|
|
||||||
unzip app-prod-release.aab
|
|
||||||
(cd base/lib && zip -r "$OLDPWD/merged_native_libs.zip" .)
|
|
||||||
|
|
||||||
- name: Zip app bundle and merged_native_libs
|
|
||||||
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
|
|
||||||
with:
|
|
||||||
name: m3_lightmeter_release
|
|
||||||
path: m3_lightmeter_release.zip
|
|
||||||
|
|
||||||
# TODO: Automate Google Play releases creation
|
|
||||||
create-google-play-release:
|
|
||||||
if: false
|
|
||||||
name: Create Google Play release
|
|
||||||
needs: [build, extract-merged-native-libs]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Download app bundle
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: m3_lightmeter_bundle
|
|
|
@ -205,13 +205,7 @@ class CameraContainerBloc extends EvSourceBlocBase<CameraContainerEvent, CameraC
|
||||||
|
|
||||||
Future<double?> _takePhoto() async {
|
Future<double?> _takePhoto() async {
|
||||||
try {
|
try {
|
||||||
// https://github.com/flutter/flutter/issues/84957#issuecomment-1661155095
|
|
||||||
await _cameraController!.setFocusMode(FocusMode.locked);
|
|
||||||
await _cameraController!.setExposureMode(ExposureMode.locked);
|
|
||||||
final file = await _cameraController!.takePicture();
|
final file = await _cameraController!.takePicture();
|
||||||
await _cameraController!.setFocusMode(FocusMode.auto);
|
|
||||||
await _cameraController!.setExposureMode(ExposureMode.auto);
|
|
||||||
|
|
||||||
final Uint8List bytes = await file.readAsBytes();
|
final Uint8List bytes = await file.readAsBytes();
|
||||||
Directory(file.path).deleteSync(recursive: true);
|
Directory(file.path).deleteSync(recursive: true);
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: lightmeter
|
name: lightmeter
|
||||||
description: A new Flutter project.
|
description: A new Flutter project.
|
||||||
publish_to: "none"
|
publish_to: "none"
|
||||||
version: 0.12.4+35
|
version: 0.12.2+33
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
@ -9,7 +9,7 @@ environment:
|
||||||
dependencies:
|
dependencies:
|
||||||
app_settings: 4.2.0
|
app_settings: 4.2.0
|
||||||
bloc_concurrency: 0.2.2
|
bloc_concurrency: 0.2.2
|
||||||
camera: 0.10.5+2
|
camera: 0.10.5
|
||||||
clipboard: 0.1.3
|
clipboard: 0.1.3
|
||||||
dynamic_color: 1.6.5
|
dynamic_color: 1.6.5
|
||||||
exif: 3.1.4
|
exif: 3.1.4
|
||||||
|
|
Loading…
Reference in a new issue