Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Extend poster testability (EXPOSUREAPP-6308) #2792

Merged
merged 16 commits into from
Apr 12, 2021

Conversation

mtwalli
Copy link
Contributor

@mtwalli mtwalli commented Apr 9, 2021

  • Renamed testing package to presencetracing
  • Extended Qr code poster testability
  • Moved QrCodeDetailsFragmentModule from test to actual Module
device-2021-04-09-171013.mp4

@mtwalli mtwalli added ui Issue related to UI aspects maintainers Tag pull requests created by maintainers labels Apr 9, 2021
@mtwalli mtwalli added this to the 2.0.0 milestone Apr 9, 2021
@mtwalli mtwalli changed the base branch from main to release/2.0.x April 9, 2021 11:05
@mtwalli mtwalli marked this pull request as ready for review April 9, 2021 15:13
@mtwalli mtwalli requested a review from a team April 9, 2021 15:13
@d4rken d4rken self-assigned this Apr 12, 2021
@d4rken d4rken self-requested a review April 12, 2021 06:38
@d4rken d4rken added the prio PRs to review first. label Apr 12, 2021
Copy link
Member

@d4rken d4rken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Suppress("BlockingMethodInNonBlockingContext")
fun createPDF(view: View) = launch(context = dispatcher.IO) {
try {
val weakViewRef = WeakReference(view) // Accessing view in background thread
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this works or if the view a function parameters will still cause a reference to be held by the coroutine due to having theoretical access to it in this scope.

Not a blocker for me in a test fragment.

@chiljamgossow chiljamgossow self-assigned this Apr 12, 2021
Copy link
Contributor

@chiljamgossow chiljamgossow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonarcloud
Copy link

sonarcloud bot commented Apr 12, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mtwalli mtwalli merged commit 41d3c1b into release/2.0.x Apr 12, 2021
@mtwalli mtwalli deleted the feature/6308-extend_poster_testaiblity branch April 12, 2021 08:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
maintainers Tag pull requests created by maintainers prio PRs to review first. ui Issue related to UI aspects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants