Product flavor for using mock exposure notification API
See original GitHub issueIn the code you mention a plan to add a product flavor that should use a mock exposure notification API: https://github.com/corona-warn-app/cwa-app-android/blob/a326bb4bfc2661b3e5ff8e53a1951b5ad351a395/Corona-Warn-App/build.gradle#L67-L77
Is this something that could be done as a contribution? Looking at InternalExposureNotificationClient
it seems like one option could be to inject a different/mock ExposureNotificationClient
implementation that returns some dummy values. This at least would allow launching the app without any API support on the device. Did you have more elaborate plans? (e.g. controlling the mocked API via an activity or test app?).
Would be interested in contributing this if possible.
Internal Tracking ID: EXPOSUREAPP-1967
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14 (9 by maintainers)
Top Results From Across the Web
API for Exposure Notifications - Google Developers
This guide shows you how to use the Exposure Notifications API to build Android apps that notify users of possible exposure to confirmed ......
Read more >The Case For Contact Tracing Apps Built On Apple ... - Techdirt.
The exposure notification API developed by Google and Apple is a genuine achievement: it will enable the most privacy-respecting approach to ...
Read more >Privacy-Preserving Automated Exposure Notification
We provide formal definitions for automated exposure notification and its security, and we prove the security of our constructions with ...
Read more >Exposure Notification | Apple Developer Documentation
Use the Exposure Notification framework to inform people of potential exposure to COVID-19, the disease caused by the SARS-CoV-2 virus. You can build...
Read more >SAFETY DATA SHEET - PolySpec
Toxic to aquatic life with long lasting effects. ... when using this product. ... or the American Petroleum Institute (API) Recommended Practice.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Added a first iteration to my repository: https://github.com/pocmo/cwa-app-android/commit/7043609ea79b8ee062c2e1e6542d4c7391350424
In that patch I changed
InternalExposureNotificationClient
to delegate the creation ofExposureNotificationClient
to a factory object. There are different versions of the factory for thedevice
anddeviceForTesters
flavors. Thedevice
flavor continues to useNearby.getExposureNotificationClient
while thedeviceForTesters
returns a mock implementation that for now just returns hardcoded values for the API calls.In further iterations I would like to (only in the
deviceForTesters
flavor):ExposureSummary
)Alright, I’ll work in my fork for now and will report back once something interesting comes out of it.