Skip to content

Commit 7d60146

Browse files
authored
Merge pull request #45 from ProteGO-Safe/release/4.9.1
Release/4.9.1
2 parents 85eca1d + 7430ee6 commit 7d60146

111 files changed

Lines changed: 2041 additions & 2347 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/locale_pr.yml

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: Manaul trigger with locales PR
44
on:
55
workflow_dispatch:
66
inputs:
7-
SYNC_TERMS:
8-
description: 'Remove unused labels'
9-
required: false
10-
default: 'false'
7+
SYNC_TERMS:
8+
description: 'Remove unused labels'
9+
required: false
10+
default: 'false'
1111

1212
jobs:
1313

@@ -37,13 +37,11 @@ jobs:
3737
echo "CURRENT_DATE=$(date +'%Y-%m-%d_%H:%M')" >> $GITHUB_ENV
3838
echo "SYNC_TERMS=${{ github.event.inputs.SYNC_TERMS }}" >> $GITHUB_ENV
3939
shell: bash
40-
41-
POE_CHECK_UPDATE:
40+
41+
POE_SYNC_TERMS:
4242
runs-on: ubuntu-latest
4343
needs: [Setup]
44-
if: needs.Setup.outputs.ENVIRONMENT == 'DEV'
45-
outputs:
46-
UPGRADE: ${{ env.UPGRADE }}
44+
if: needs.Setup.outputs.ENVIRONMENT == 'DEV' && needs.Setup.outputs.SYNC_TERMS == 'true'
4745
env:
4846
COMMIT_TO: ${{ needs.Setup.outputs.COMMIT_TO }}
4947
TEMP_BRANCH: ${{ needs.Setup.outputs.TEMP_BRANCH }}
@@ -56,8 +54,23 @@ jobs:
5654

5755
- name: Sync terms from PL file
5856
run: |
59-
sh locales/scripts/sync_terms.sh -i ${{ secrets.POEDITOR_ID }} -t ${{ secrets.POEDITOR_TOKEN }} -o locales
60-
if: env.SYNC_TERMS == 'true'
57+
sh locales/scripts/sync_terms.sh -i ${{ secrets.POEDITOR_ID }} -t ${{ secrets.POEDITOR_TOKEN }} -o locales
58+
59+
POE_CHECK_UPDATE:
60+
runs-on: ubuntu-latest
61+
needs: [Setup]
62+
if: needs.Setup.outputs.ENVIRONMENT == 'DEV' && needs.Setup.outputs.SYNC_TERMS == 'false'
63+
outputs:
64+
UPGRADE: ${{ env.UPGRADE }}
65+
env:
66+
COMMIT_TO: ${{ needs.Setup.outputs.COMMIT_TO }}
67+
TEMP_BRANCH: ${{ needs.Setup.outputs.TEMP_BRANCH }}
68+
SYNC_TERMS: ${{ needs.Setup.outputs.SYNC_TERMS }}
69+
steps:
70+
- name: Checkout Repo
71+
uses: actions/checkout@v2
72+
with:
73+
ref: ${{ env.COMMIT_TO }}
6174

6275
- name: Download REMOTE LOCALES from POEditor
6376
run: |
@@ -66,6 +79,7 @@ jobs:
6679
echo "Processing $l"
6780
mv locales/$l.json /tmp/
6881
sh locales/scripts/export.sh -i ${{ secrets.POEDITOR_ID }} -t ${{ secrets.POEDITOR_TOKEN }} -l $l
82+
python3 locales/scripts/format_checker.py $l
6983
if ! diff -q locales/$l.json /tmp/$l.json 2>/dev/null
7084
then
7185
echo "UPGRADE=true" >> $GITHUB_ENV
@@ -91,7 +105,7 @@ jobs:
91105
POE_MAKE_PR:
92106
runs-on: ubuntu-latest
93107
needs: [Setup,POE_CHECK_UPDATE]
94-
if: needs.Setup.outputs.ENVIRONMENT == 'DEV' && needs.POE_CHECK_UPDATE.outputs.UPGRADE == 'true'
108+
if: needs.Setup.outputs.ENVIRONMENT == 'DEV' && needs.Setup.outputs.SYNC_TERMS == 'false' && needs.POE_CHECK_UPDATE.outputs.UPGRADE == 'true'
95109
env:
96110
COMMIT_TO: ${{ needs.Setup.outputs.COMMIT_TO }}
97111
TEMP_BRANCH: ${{ needs.Setup.outputs.TEMP_BRANCH }}

.github/workflows/nodejs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
&& github.event_name == 'push'
2525
run: |
2626
echo "ENVIRONMENT=DEV" >> $GITHUB_ENV
27-
27+
2828
- name: Set env to STAGE
2929
if: startsWith(github.ref, 'refs/tags/')
3030
&& github.repository_owner != 'ProteGO-Safe'
3131
&& ( github.event.release.target_commitish == 'master' || startsWith( github.event.release.target_commitish, 'release' ))
3232
&& github.event_name == 'release'
3333
run: |
3434
echo "ENVIRONMENT=STAGE" >> $GITHUB_ENV
35-
35+
3636
- name: Set env to PROD
3737
if: startsWith(github.ref, 'refs/tags/')
3838
&& github.repository_owner == 'ProteGO-Safe'
@@ -61,7 +61,7 @@ jobs:
6161
${{ runner.os }}-yarn-
6262
- run: yarn install
6363
- run: yarn test
64-
64+
6565
Build:
6666
runs-on: ubuntu-latest
6767
needs: [Setup]
@@ -78,7 +78,7 @@ jobs:
7878
- name: Get yarn cache directory path
7979
id: yarn-cache-dir-path
8080
run: echo "::set-output name=dir::$(yarn cache dir)"
81-
81+
8282
- uses: actions/cache@v2
8383
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
8484
with:
@@ -92,15 +92,15 @@ jobs:
9292
env:
9393
EV: "${{ env.ENVIRONMENT }}_ENV"
9494
if: ${{ needs.Setup.outputs.ENVIRONMENT }}
95-
95+
9696
- name: Upload PL locale to the POEditor
9797
run: |
9898
sh locales/scripts/upload.sh -l pl -i $POEDITOR_ID -t $POEDITOR_TOKEN | grep '"code":"200"' || exit 1
9999
if: env.ENVIRONMENT == 'DEV'
100100
env:
101101
POEDITOR_ID: ${{ secrets.POEDITOR_ID }}
102102
POEDITOR_TOKEN: ${{ secrets.POEDITOR_TOKEN }}
103-
103+
104104
- name: Setu Correct curl for static assets from cdn
105105
run: echo "CURL_COMMAND=${{ secrets[env.CURL] }}" >> $GITHUB_ENV
106106
env:

.github/workflows/schedule.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ jobs:
5353
outputs:
5454
UPGRADE: ${{ env.UPGRADE }}
5555
env:
56-
MIN_COVER: 25
5756
LOCAL_LOCALE: /tmp/local
5857
REMOTE_LOCALE: /tmp/remote
5958
LATEST_BRANCH: ${{ needs.Setup.outputs.LATEST_BRANCH }}
@@ -74,7 +73,7 @@ jobs:
7473

7574
- name: Download REMOTE from POEditor
7675
run: |
77-
sh locales/scripts/download_all.sh -i ${{ secrets.POEDITOR_ID }} -t ${{ secrets.POEDITOR_TOKEN }} -p ${{ env.MIN_COVER }} -o ${{ env.REMOTE_LOCALE }}
76+
sh locales/scripts/download_all.sh -i ${{ secrets.POEDITOR_ID }} -t ${{ secrets.POEDITOR_TOKEN }} -o ${{ env.REMOTE_LOCALE }}
7877
shell: bash
7978

8079
- name: Diff LOCAL with REMOTE

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
8+
## 4.9.1
9+
10+
### Added
11+
- vaccination statistics for Poland
12+
13+
### Changed
14+
- tab "How does the application work?"
15+
16+
## Fixed
17+
- error of double notification entry in notification history
18+
719
## 4.9.0
820

921
### Added

doc/exampleNativeBridgeActions/102-fetch-covid-stats.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ window.bridgeDataResponse(
77
totalDeaths: 2000,
88
newRecovered: 200,
99
totalRecovered: 14000,
10+
newVaccinations: 20000,
11+
totalVaccinations: 450500,
12+
newVaccinationsDose1: 19000,
13+
totalVaccinationsDose1: 400500,
14+
newVaccinationsDose2: 1000,
15+
totalVaccinationsDose2: 50000,
1016
updated: 123234234
1117
}
1218
}),
@@ -24,6 +30,12 @@ window.onBridgeData(
2430
totalDeaths: 2000,
2531
newRecovered: 200,
2632
totalRecovered: 14000,
33+
newVaccinations: 20000,
34+
totalVaccinations: 450500,
35+
newVaccinationsDose1: 19000,
36+
totalVaccinationsDose1: 400500,
37+
newVaccinationsDose2: 1000,
38+
totalVaccinationsDose2: 50000,
2739
updated: 123234234
2840
}
2941
})
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
window.onBridgeData(
2+
11,
3+
JSON.stringify({
4+
appState: 1
5+
})
6+
);

0 commit comments

Comments
 (0)