Commit graph

398 commits

Author SHA1 Message Date
Vadim
27d56d1061
ML-166 Golden tests (#167)
* setup golden toolkit

* implemented `GoldenTestApplicationMock`

* added devices with dark theme

* implemented MeteringScreen golden test

* moved platform channel logic to app mock

* implemented SettingsScreen golden test

* gitignore golden tests failures

* Create dart_test.yaml

* adjusted `RulerSlider` ticks height

* set master screenshots

* run golden tests on ci

* fixed `LightSensorService` tests

* removed golden workflow call from PR check

* Update pr_check.yml
2024-04-12 08:07:20 +02:00
Vadim
2f8bb983d5
MLI-7 Manually restore purchases (#165)
* added `RestorePurchasesListTile`

* added `restorePurchases` to iap stub

* reordered settings

* migrated to iap 0.9.0

* migrated to iap 0.9.1

* use version in release commit

* Revert "use version in release commit"

This reverts commit 513b13eb96.

* migrated to iap 0.9.2

* allow manual restore if Pro features are not unlocked
2024-04-10 22:30:35 +02:00
Vadim
2117df2f11
ML-44 Save zoom level for equipment profile (#164)
* made zoom slider vertical & added more ticks to ruler

* show sliders values

* increased slider tappable area

* more accurate sliders values

* added zoom slider to equipment profiles settings

* split `EquipmentListTiles` widget

* set zoom on equipment profile change

* clamp zoom to the nearest value

* added missing translations

* added zoom checks to e2e test

* removed unused import
2024-04-07 10:54:57 +02:00
Vadim
bfd0bfe531
ML-108 First exposure metering seems to be wrong (#163)
* use latest `camera_android_camerax`

* fixed trailing commas

* moved ci/cd to 3.13.9

* removed focus & exposure fix

* fixed camera not being initialized on Android

* removed unused import
2024-04-06 19:14:37 +02:00
Vadim
2128e7c2e9 Fixed test coverage script 2024-03-17 20:18:00 +01:00
Vadim
d6c4240646 ML-157 Improve CI/CD (#162)
* Update README.md

* Set exact Flutter version for workflows

* Added stub `DefaultFirebaseOptions`

* Fixed `rm`

* Removed `rm`

* Update .gitignore

* Added readable name to ci workflow

* Build -> Development

* Update ci.yml

* Extract merged native libraries

* More descriptive run name

* Delete no longer used artifacts

* Replaced "Build ..." flow with "Create release"

* renamed other flows

* try using script for iap stub

* typo

* typo

* typo

* removed working dir

* added comment to stub_iap.sh

* checkout first

* increment build number by script

* Update increment_build_number.sh

* fixed iap repo

* stub

* updated stub script to work with tags

* depend on step conclusion

* check PR number

* run integration tests before build

* reuse Build Android workflow

* added stage backend option

* reuse Build iOS workflow

* temporeraly skip release jobs

* [ios] use distribution profile for release builds

* temporary skip tests

* typo

* checkout actions

* incremented macos runner version

* Restore GoogleService-Info.plist

* Restore firebase_app_id_file.json

* style

* separated android and ios builds

* fixed invalid workflow

* simplified release workflow tree

* fixed android keystore path

* enabled integration tests

* added option to skip integration tests

* fixed android folders...

* enabled releases

* increment build number for ios

* upload ipa to app store

* test ipa upload

* typo

* try to force ipa upload

* removed flavor from ipa artefact name

* try manual ipa upload

* switched to ubuntu for upload

* decode to repo

* Update create_release.yml

* auth with username + password

* reverted temporary settings

* typo

* disable pre-release integration tests by default

* fixed integration tests

* increased integration tests timeout

* delete ipa after upload

* delete all artifacts after the run

* fixed integration tests

* reduce integration tests timeout
2024-03-17 20:04:27 +01:00
Vadim
078312c03f reduce integration tests timeout 2024-03-17 19:58:14 +01:00
Vadim
e3306ab3ba fixed integration tests 2024-03-17 18:58:47 +01:00
Vadim
17c454e4c6 delete all artifacts after the run 2024-03-17 17:00:08 +01:00
Vadim
bffa598493 delete ipa after upload 2024-03-17 16:55:01 +01:00
Vadim
e376391529 increased integration tests timeout 2024-03-17 16:43:27 +01:00
Vadim
411ec927a9 fixed integration tests 2024-03-17 15:24:16 +01:00
Vadim
8e03d3e400 disable pre-release integration tests by default 2024-03-17 13:23:10 +01:00
Vadim
a01924ab19 typo 2024-03-17 10:19:57 +01:00
Vadim
667f95662e reverted temporary settings 2024-03-17 10:18:07 +01:00
Vadim
2e6495d2db auth with username + password 2024-03-17 09:44:55 +01:00
Vadim
4874dd3368 Update create_release.yml 2024-03-16 23:03:51 +01:00
Vadim
be456a9a8f decode to repo 2024-03-16 21:10:15 +01:00
Vadim
7870138bfd switched to ubuntu for upload 2024-03-16 20:37:57 +01:00
Vadim
58565162eb try manual ipa upload 2024-03-16 20:09:40 +01:00
Vadim
ba0ed69d18 removed flavor from ipa artefact name 2024-03-16 18:12:00 +01:00
Vadim
4c46cc444c try to force ipa upload 2024-03-16 17:43:10 +01:00
Vadim
b61ed93a88 typo 2024-03-16 11:30:24 +01:00
Vadim
1dbcf27cf9 test ipa upload 2024-03-16 11:29:07 +01:00
Vadim
2fb3bdb970 upload ipa to app store 2024-03-16 11:27:46 +01:00
Vadim
257403455c increment build number for ios 2024-03-16 11:27:36 +01:00
Vadim
7fa781f4ca enabled releases 2024-03-15 08:34:19 +01:00
Vadim
f05be2ff39 fixed android folders... 2024-03-14 21:47:47 +01:00
Vadim
d98b2a62ff added option to skip integration tests 2024-03-14 20:54:56 +01:00
Vadim
846a2b2254 enabled integration tests 2024-03-14 20:41:13 +01:00
Vadim
e701d65c4b fixed android keystore path 2024-03-14 20:36:28 +01:00
Vadim
5a8eee10a4 simplified release workflow tree 2024-03-14 20:36:02 +01:00
Vadim
aad833b266 fixed invalid workflow 2024-03-14 20:32:31 +01:00
Vadim
1674d7192e separated android and ios builds 2024-03-14 20:29:36 +01:00
Vadim
14ba91edba style 2024-03-14 20:13:41 +01:00
Vadim
fb94f88401 Restore firebase_app_id_file.json 2024-03-14 20:12:59 +01:00
Vadim
60343d3974 Restore GoogleService-Info.plist 2024-03-14 19:39:08 +01:00
Vadim
ef1a28c1e7 incremented macos runner version 2024-03-14 19:02:38 +01:00
Vadim
e56a8d2500 checkout actions 2024-03-14 17:17:00 +01:00
Vadim
1e84f0dffa typo 2024-03-14 17:15:46 +01:00
Vadim
6ee8e21693 temporary skip tests 2024-03-14 17:14:38 +01:00
Vadim
a690ccfc26 [ios] use distribution profile for release builds 2024-03-14 16:00:15 +01:00
Vadim
ff36f37faa temporeraly skip release jobs 2024-03-14 15:54:34 +01:00
Vadim
682658a283 reuse Build iOS workflow 2024-03-14 15:19:15 +01:00
Vadim
6f0efe4b39 added stage backend option 2024-03-14 15:15:08 +01:00
Vadim
4ed3d4efb9 reuse Build Android workflow 2024-03-14 15:10:18 +01:00
Vadim
f314102c4b run integration tests before build 2024-03-14 15:09:21 +01:00
Vadim
ba9d011fbe Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into cd 2024-03-14 15:08:43 +01:00
Vadim
7787558713
ML-160 Integration tests (#161)
* test granting and revoking pro features

* extracted common widget tester actions

* test disabling & enabling of the metering screen layout features

* added integration tests to CI

* added integration tests to PR check

* allow matrix jobs to fail

* use base64 -d

* downgraded iphone version to the supported one

* use proper android device name

* typo in macos version

* upgraded iphone version to the supported one

* updated android compileSdkVersion

* added google services json restoration

* combined all tests in one file

* removed ipa signing for ios test

* debug prints :)

* lints

* refined tester extension and expectations

* e2e test (wip)

* added more expectations to e2e test

* changed pickers order a bit in e2e test

* added equipment profiles creation to e2e test

* added film selection to e2e test

* set android emulator API level to 32

* use flutter drive for integration tests

* removed app pre-build

* try running tests only for one platform

* added no-dds to flutter drive

* try running only on ios

* bumped macos version

* increased tests timeout

* set IPHONEOS_DEPLOYMENT_TARGET = 12.0

* removed prints

* Update Podfile

* restore firebase_app_id_file.json

* Delete run_integration_tests.sh

* run e2e with all tests

* reverted pr-check
2024-03-13 15:34:26 +01:00
Vadim
c852af2855 Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into cd 2024-02-21 13:30:10 +01:00