Skip to content

Commit

Permalink
PIA Release 1.36.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hzi-pia-ci committed Feb 8, 2024
1 parent 2ec0625 commit b0dd557
Show file tree
Hide file tree
Showing 10 changed files with 179 additions and 159 deletions.
4 changes: 4 additions & 0 deletions psa.app.mobile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,7 @@ Remove the platform folder and try again.
### More

https://ionicframework.com/docs/developing/tips

## Prefix generation for backend_mapping.ts

For the prefix generation see [Readme](../psa.utils.scripts/prefixes-for-backend-mapping/README.md)
5 changes: 4 additions & 1 deletion psa.app.mobile/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget android-packageName="de.pia.app" id="de.pia.app" ios-CFBundleIdentifier="de.info-pia.app" version="1.36.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android">
<widget android-packageName="de.pia.app" id="de.pia.app" ios-CFBundleIdentifier="de.info-pia.app" version="1.36.3" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android">
<name>PIA</name>
<description>Mobile App for PIA</description>
<author email="[email protected]" href="https://info-pia.de/">Helmholtz-Zentrum für Infektionsforschung GmbH</author>
Expand Down Expand Up @@ -36,6 +36,9 @@
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:networkSecurityConfig="@xml/network_security_config" />
</edit-config>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
</config-file>
<resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
<allow-intent href="market:*" />
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
Expand Down
19 changes: 10 additions & 9 deletions psa.app.mobile/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 18 additions & 17 deletions psa.app.mobile/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "app-mobile",
"description": "PIA mobile app",
"version": "1.36.0",
"version": "1.36.3",
"license": "AGPL-3.0-or-later",
"scripts": {
"prestart:browser": "npm run licenses",
Expand Down Expand Up @@ -94,7 +94,7 @@
"cordova-plugin-device": "^2.1.0",
"cordova-plugin-file": "^7.0.0",
"cordova-plugin-file-opener2": "^4.0.0",
"cordova-plugin-firebasex": "^15.0.0-cli",
"cordova-plugin-firebasex": "^16.4.0",
"cordova-plugin-inappbrowser": "^5.0.0",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^5.0.0",
Expand Down Expand Up @@ -142,24 +142,25 @@
"FIREBASE_ANALYTICS_COLLECTION_ENABLED": "false",
"FIREBASE_PERFORMANCE_COLLECTION_ENABLED": "false",
"FIREBASE_CRASHLYTICS_COLLECTION_ENABLED": "false",
"FIREBASE_ANALYTICS_WITHOUT_ADS": "true",
"ANDROID_FIREBASE_PERFORMANCE_MONITORING": "false",
"ANDROID_ICON_ACCENT": "#FF00FFFF",
"ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "17.0.0",
"ANDROID_PLAY_SERVICES_AUTH_VERSION": "19.0.0",
"ANDROID_FIREBASE_ANALYTICS_VERSION": "19.0.0",
"ANDROID_FIREBASE_MESSAGING_VERSION": "22.0.0",
"ANDROID_FIREBASE_CONFIG_VERSION": "21.0.0",
"ANDROID_FIREBASE_PERF_VERSION": "20.0.2",
"ANDROID_FIREBASE_AUTH_VERSION": "21.0.1",
"ANDROID_FIREBASE_INAPPMESSAGING_VERSION": "20.0.0",
"ANDROID_FIREBASE_FIRESTORE_VERSION": "23.0.2",
"ANDROID_FIREBASE_FUNCTIONS_VERSION": "20.0.0",
"ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "18.0.4",
"ANDROID_PLAY_SERVICES_AUTH_VERSION": "20.7.0",
"ANDROID_FIREBASE_ANALYTICS_VERSION": "21.5.0",
"ANDROID_FIREBASE_MESSAGING_VERSION": "23.3.1",
"ANDROID_FIREBASE_CONFIG_VERSION": "21.5.0",
"ANDROID_FIREBASE_PERF_VERSION": "20.5.0",
"ANDROID_FIREBASE_AUTH_VERSION": "22.2.0",
"ANDROID_FIREBASE_INAPPMESSAGING_VERSION": "20.4.0",
"ANDROID_FIREBASE_FIRESTORE_VERSION": "24.9.1",
"ANDROID_FIREBASE_FUNCTIONS_VERSION": "20.4.0",
"ANDROID_FIREBASE_IID_VERSION": "21.1.0",
"ANDROID_FIREBASE_INSTALLATIONS_VERSION": "17.0.0",
"ANDROID_FIREBASE_CRASHLYTICS_VERSION": "18.1.0",
"ANDROID_FIREBASE_CRASHLYTICS_NDK_VERSION": "18.1.0",
"ANDROID_GSON_VERSION": "2.8.7",
"ANDROID_FIREBASE_PERF_GRADLE_PLUGIN_VERSION": "1.4.0",
"ANDROID_FIREBASE_INSTALLATIONS_VERSION": "17.2.0",
"ANDROID_FIREBASE_CRASHLYTICS_VERSION": "18.5.1",
"ANDROID_FIREBASE_CRASHLYTICS_NDK_VERSION": "18.5.1",
"ANDROID_GSON_VERSION": "2.9.0",
"ANDROID_FIREBASE_PERF_GRADLE_PLUGIN_VERSION": "1.4.2",
"FIREBASE_FCM_AUTOINIT_ENABLED": "true",
"ANDROID_GRPC_OKHTTP": "1.46.0"
},
Expand Down
95 changes: 31 additions & 64 deletions psa.app.mobile/src/app/backend-mapping.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2021 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI) <[email protected]>
* SPDX-FileCopyrightText: 2024 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI) <[email protected]>
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
Expand All @@ -11,7 +11,6 @@

export const backendMapping = [
{ prefix: 'TCSG', url: 'https://train-sb.sormas.ch' },
{ prefix: 'SPTS', url: 'https://pentest-sb-pia.sormas-oegd.de' },
{ prefix: 'TSSW', url: 'https://test-sb.sormas.ch' },
{ prefix: 'SSTG', url: 'https://test-sb.sormas.ch' },
{ prefix: 'Test', url: 'https://testpia-app.de' },
Expand All @@ -33,8 +32,6 @@ export const backendMapping = [
{ prefix: 'LCOD', url: 'https://pia-app.de' },
{ prefix: 'IQOH', url: 'https://pia-app.de' },
{ prefix: 'XSVV', url: 'https://pia-app.de' },
{ prefix: 'Dtest', url: 'https://pia-develop.netzlink.com' },
{ prefix: 'Rtest', url: 'https://pia-release.netzlink.com' },
{ prefix: 'BFBQ', url: 'https://zh-sb.sormas.ch' },
{ prefix: 'MMDE', url: 'https://be-sb.sormas.ch' },
{ prefix: 'KASH', url: 'https://lu-sb.sormas.ch' },
Expand Down Expand Up @@ -62,7 +59,6 @@ export const backendMapping = [
{ prefix: 'ANKK', url: 'https://ge-sb.sormas.ch' },
{ prefix: 'DVYS', url: 'https://ju-sb.sormas.ch' },
{ prefix: 'WKOO', url: 'https://fl-sb.sormas.ch' },
{ prefix: 'XLYK', url: 'https://sb-pia.sormas.netzlink.com' },
{ prefix: 'ZHOY', url: 'https://pia-app.de' },
{ prefix: 'IGSX', url: 'https://pia-app.de' },
{ prefix: 'RFEE', url: 'https://pia-app.de' },
Expand All @@ -78,64 +74,35 @@ export const backendMapping = [
{ prefix: 'CSCQ', url: 'https://testpia-app.de' },
{ prefix: 'THNA', url: 'https://testpia-app.de' },
{ prefix: 'BTOB', url: 'https://testpia-app.de' },
{ prefix: 'MKPY', url: 'https://ammerland-sb.sormas-oegd.de' },
{ prefix: 'VWUE', url: 'https://landkreis-aurich-sb.sormas-oegd.de' },
{ prefix: 'LTRO', url: 'https://braunschweig-sb.sormas-oegd.de' },
{ prefix: 'TPVC', url: 'https://landkreis-celle-sb.sormas-oegd.de' },
{ prefix: 'JYZS', url: 'https://cloppenburg-sb.sormas-oegd.de' },
{ prefix: 'BRWP', url: 'https://landkreis-cuxhaven-sb.sormas-oegd.de' },
{ prefix: 'LRWZ', url: 'https://delmenhorst-sb.sormas-oegd.de' },
{ prefix: 'ELQV', url: 'https://diepholz-sb.sormas-oegd.de' },
{ prefix: 'JKMY', url: 'https://emsland-sb.sormas-oegd.de' },
{ prefix: 'BAYL', url: 'https://friesland-sb.sormas-oegd.de' },
{ prefix: 'HZHU', url: 'https://gifhorn-sb.sormas-oegd.de' },
{ prefix: 'LSCR', url: 'https://goslar-sb.sormas-oegd.de' },
{ prefix: 'CXUY', url: 'https://goettingen-sb.sormas-oegd.de' },
{ prefix: 'PLWO', url: 'https://grafschaft-bentheim-sb.sormas-oegd.de' },
{ prefix: 'MFHF', url: 'https://hameln-pyrmont-sb.sormas-oegd.de' },
{ prefix: 'NODI', url: 'https://hannover-sb.sormas-oegd.de' },
{ prefix: 'WQJI', url: 'https://landkreis-harburg-sb.sormas-oegd.de' },
{ prefix: 'NTXG', url: 'https://landkreis-heidekreis-sb.sormas-oegd.de' },
{ prefix: 'CRBK', url: 'https://helmstedt-sb.sormas-oegd.de' },
{ prefix: 'ZMOI', url: 'https://landkreishildesheim-sb.sormas-oegd.de' },
{ prefix: 'OSZV', url: 'https://holzminden-sb.sormas-oegd.de' },
{ prefix: 'ZJEG', url: 'https://landkreis-leer-sb.sormas-oegd.de' },
{ prefix: 'COUP', url: 'https://landkreis-lueneburg-sb.sormas-oegd.de' },
{ prefix: 'XBXX', url: 'https://lk-nienburg-sb.sormas-oegd.de' },
{ prefix: 'VLQM', url: 'https://landkreis-northeim-sb.sormas-oegd.de' },
{ prefix: 'NLKA', url: 'https://oldenburg-sb.sormas-oegd.de' },
{ prefix: 'NZXW', url: 'https://landkreis-oldenburg-sb.sormas-oegd.de' },
{ prefix: 'DJKR', url: 'https://landkreis-osnabrück-sb.sormas-oegd.de' },
{ prefix: 'YPCM', url: 'https://landkreis-osterholz-sb.sormas-oegd.de' },
{ prefix: 'IBUA', url: 'https://gesundheitsamt-peine-sb.sormas-oegd.de' },
{ prefix: 'CEIC', url: 'https://landkreis-rotenburg-sb.sormas-oegd.de' },
{ prefix: 'YEBM', url: 'https://salzgitter-sb.sormas-oegd.de' },
{ prefix: 'KIVH', url: 'https://schaumburg-sb.sormas-oegd.de' },
{ prefix: 'GKHT', url: 'https://landkreis-stade-sb.sormas-oegd.de' },
{ prefix: 'BFLQ', url: 'https://landkreis-uelzen-sb.sormas-oegd.de' },
{ prefix: 'OFZB', url: 'https://luechow-dannenberg-sb.sormas-oegd.de' },
{ prefix: 'OMYZ', url: 'https://landkreis-vechta-sb.sormas-oegd.de' },
{ prefix: 'MGRM', url: 'https://landkreis-verden-sb.sormas-oegd.de' },
{ prefix: 'BSMK', url: 'https://landkreis-wesermarsch-sb.sormas-oegd.de' },
{ prefix: 'TKMN', url: 'https://wilhelmshaven-sb.sormas-oegd.de' },
{ prefix: 'WLIR', url: 'https://landkreis-wittmund-sb.sormas-oegd.de' },
{ prefix: 'CATG', url: 'https://lkwf-sb.sormas-oegd.de' },
{ prefix: 'FULP', url: 'https://wolfsburg-sb.sormas-oegd.de' },
{ prefix: 'BFAP', url: 'https://bremerhaven-sb.sormas-oegd.de' },
{ prefix: 'UGJJ', url: 'https://qpia.imise.uni-leipzig.de' },
{ prefix: 'XOUW', url: 'https://qpia.imise.uni-leipzig.de' },
{ prefix: 'XMQE', url: 'https://qpia.imise.uni-leipzig.de' },
{ prefix: 'VVWH', url: 'https://qpia.imise.uni-leipzig.de' },
{ prefix: 'HJHV', url: 'https://qpia.imise.uni-leipzig.de' },
{ prefix: 'USYC', url: 'https://qpia.imise.uni-leipzig.de' },
{ prefix: 'ZMSW', url: 'https://qpia.imise.uni-leipzig.de' },
{ prefix: 'DOFN', url: 'https://qpia.imise.uni-leipzig.de' },
{ prefix: 'DFCO', url: 'https://qpia.imise.uni-leipzig.de' },
{ prefix: 'CNQG', url: 'https://qpia.imise.uni-leipzig.de' },
{ prefix: 'VQBU', url: 'https://pia.ship-med.uni-greifswald.de' },
{ prefix: 'RCHN', url: 'https://pia.ship-med.uni-greifswald.de' },
{ prefix: 'RYEY', url: 'https://pia.ship-med.uni-greifswald.de' },
{ prefix: 'ITPH', url: 'https://pia.ship-med.uni-greifswald.de' },
{ prefix: 'JTHB', url: 'https://pia.ship-med.uni-greifswald.de' },
{ prefix: 'LOCAL', url: 'https://pia-app' },
{ prefix: 'mdmy', url: 'https://pia-release.de' },
{ prefix: 'iwpx', url: 'https://pia-release.de' },
{ prefix: 'hsbo', url: 'https://pia-release.de' },
{ prefix: 'waog', url: 'https://pia-release.de' },
{ prefix: 'zcxj', url: 'https://pia-release.de' },
{ prefix: 'zozk', url: 'https://pia-release.de' },
{ prefix: 'xhvs', url: 'https://pia-release.de' },
{ prefix: 'agde', url: 'https://pia-release.de' },
{ prefix: 'xfuj', url: 'https://pia-release.de' },
{ prefix: 'jxth', url: 'https://pia-release.de' },
{ prefix: 'pjno', url: 'https://pia-epi.med.uni-muenchen.de' },
{ prefix: 'mhjf', url: 'https://pia-epi.med.uni-muenchen.de' },
{ prefix: 'cqiq', url: 'https://pia-epi.med.uni-muenchen.de' },
{ prefix: 'rbvu', url: 'https://pia-epi.med.uni-muenchen.de' },
{ prefix: 'pgtx', url: 'https://pia-epi.med.uni-muenchen.de' },
{ prefix: 'rxvn', url: 'https://pia-epi.med.uni-muenchen.de' },
{ prefix: 'veuh', url: 'https://pia-epi.med.uni-muenchen.de' },
{ prefix: 'cwhf', url: 'https://pia-epi.med.uni-muenchen.de' },
{ prefix: 'pgif', url: 'https://pia-epi.med.uni-muenchen.de' },
{ prefix: 'xsgh', url: 'https://pia-epi.med.uni-muenchen.de' },
{ prefix: 'hkrn', url: 'https://pia-app.de' },
{ prefix: 'ijpx', url: 'https://pia-app.de' },
{ prefix: 'kewu', url: 'https://pia-app.de' },
{ prefix: 'mvob', url: 'https://pia-app.de' },
{ prefix: 'rwep', url: 'https://pia-app.de' },
{ prefix: 'diaf', url: 'https://pia-app.de' },
{ prefix: 'ombr', url: 'https://pia-app.de' },
{ prefix: 'gqex', url: 'https://pia-app.de' },
{ prefix: 'bpxb', url: 'https://pia-app.de' },
{ prefix: 'oodn', url: 'https://pia-app.de' },
];
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ describe('EndpointService', () => {
});

it('should set a new endpoint if a backend mapping entry matches', () => {
const result = service.setEndpointForUser('Dtest-exists');
const result = service.setEndpointForUser('LOCAL-exists');

expect(result).toBeTrue();
expect(service.getUrl()).toEqual('https://pia-develop.netzlink.com');
expect(service.getUrl()).toEqual('https://pia-app');
});

it('should match backend mapping entries case-insensitive', () => {
const result = service.setEndpointForUser('DTEST-also-exists');
const result = service.setEndpointForUser('local-also-exists');

expect(result).toBeTrue();
expect(service.getUrl()).toEqual('https://pia-develop.netzlink.com');
expect(service.getUrl()).toEqual('https://pia-app');
});
});

Expand Down
Loading

0 comments on commit b0dd557

Please sign in to comment.