You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Add configuration files. The respective services have to exist if you want to have Cotect running. Get in touch with the administrator of an existing project using this code to get the information or set up the services for a fresh project.
80
+
2. Add configuration files. The respective services have to exist if you want to have Cotect running. Get in touch with the administrator of an existing project to get the information or set up the services for a fresh project.
81
81
1. Add `.env` file to `app/mobile`:
82
82
```bash
83
83
COTECT_BACKEND_URL=https://...
84
+
COTECT_PRIVACY_POLICY_URL=https://...
84
85
```
85
86
86
-
> This is the URL where the Cotect backend can be reached. You find the code forit alsoin this repository.
87
+
>`COTECT_BACKEND_URL` is the URL where the Cotect backend can be reached. You find the code forit alsoin this repository.\
88
+
`COTECT_PRIVACY_POLICY_URL` should point to your hosted GDPR-compliant privacy policy.
89
+
90
+
> We use the library [react-native-dotenv](https://github.com/zetachang/react-native-dotenv) to interpolate those variables within the code.
87
91
88
92
1. Add Firebase configuration. We use the services *Phone Authentication* and *Crashlytics* from Firebase. You can configure a Firebase project [here](https://console.firebase.google.com/).
89
93
1. Android: Download the `google-service.json` and add it to `android/app`
@@ -103,15 +107,15 @@ If you have the tool already installed, skip the respective step.
103
107
</plist>
104
108
```
105
109
1. [only once] In Xcode, right click on the project > click on "Add file...">select`GooglePlaces-Info.plist (make sure "Copy files if needed" is selected)` (make sure "Copy files if needed" is selected)
106
-
1. Run iOS version (make sure Xcode is installed; there you can also install an emulator): `npx react-native run-ios`
107
-
1. Run Android version: `npx react-native run-android`
110
+
3. Run iOS version (make sure XCode is installed; there you can also install an emulator): `npx react-native run-ios`
111
+
4. Run Android version (make sure Android Studio is installed; there you can also install an emulator): `npx react-native run-android`
108
112
109
113
### Build a Release Version
110
114
111
115
> Important: Don't use the debug certificates / keys you find in this repo for releasing your app. Rather, generate release keys and build the app with them!
1. iOS: Use XCode, select the right provisioning profile, and then build the app with. Follow standard iOS release practices from there (e.g. creating an .ipa file manually or an archive from XCode)
118
+
1. iOS: Use XCode, select the right provisioning profile, and then build the app with it. Follow standard iOS release practices from there (e.g. creating an .ipa file manually or an archive from XCode)
@@ -72,8 +74,8 @@ export default function ReportSubmitStep(props) {
72
74
onPress={()=>setConsentGiven(!isConsentGiven)}
73
75
/>
74
76
<Text>
75
-
<Transi18nKey="report.submitReport.consent">
76
-
By submitting the report, you accept that your provided information are sent to the Cotect servers for further processing. You can read more in our <Textstyle={{color: 'blue'}}onPress={()=>Linking.openURL('http://google.com')}>privacy policy</Text>.
77
+
<Transt={t}i18nKey="report.submit.consent">
78
+
By submitting the report, you accept that your provided information are sent to the Cotect servers for further processing. You can read more in our <Textstyle={{color: 'blue'}}onPress={()=>Linking.openURL(COTECT_PRIVACY_POLICY_URL)}>privacy policy</Text>.
Copy file name to clipboardExpand all lines: app/mobile/translations/de.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,8 @@
174
174
"exitAction": "Verlassen",
175
175
"successText": "Wir haben deinen Bericht erhalten! Danke für deine Hilfe im Kampf gegen Corona!",
176
176
"text": "Wir übermitteln deinen Bericht...",
177
-
"title": "Bericht abschicken"
177
+
"title": "Bericht abschicken",
178
+
"consent": "Durch das Abschicken des Reports akzeptiere ich, dass die angegebenen Informationen an die Server geschickt werden. Mehr Informationen beinhaltet die <1>Datenschutzerklärung</1>"
0 commit comments