- Jan 22, 2021
-
-
Matthias Urhahn authored
* Fix statistics data missing on in-app data reset due to no refresh being triggered. Don't do a full reset and add statistics data subscription timeout. * Fix test (bad changeset)
-
- Jan 21, 2021
-
-
Lukas Lechner authored
Fix flickering of statistics cards when returning from statistics information screen (EXPOSUREAPP-4704) (#2175) * Override equals() of StatisticsHomeCard.Item to ignore onHelpAction click listener * Override hashCode() in StatisticsHomeCard.Item
-
- Jan 19, 2021
-
-
Juraj Kusnier authored
-
- Jan 18, 2021
-
-
Juraj Kusnier authored
* Introduce getFormattedDate() * Update strings
-
Chilja Gossow authored
* do not schedule reminders when test result has been viewed * clean up * renaming to make clear which notification is meant * refactor worker * rename * DI issues * DI test code * add else branch test code * test code * refactoring * comment
-
Lukas Lechner authored
* Implement StatisticsNumberValueFormatter.kt and add tests * Fix ktlint issues * Improve StatisticsNumberValueFormatter.kt * Reduce parameters for formatter, adapt test * Define formatting function as top-level function instead of a function in object
-
Matthias Urhahn authored
* Replace mock data with data loaded from server. * Revert unrelated change. * Some refactoring, add a generic statistics scope annotation. Clear retrofit cache on clear. * Clear statistic data on app reset. * Unit tests for StatisticsCache.kt * Implement tests for StatisticsModule init. * Add tests for statistics api. * Add statistics server tests that check signature validation behavior. * Add tests for StatisticsProvider behavior. * Tests for parsing statistics data. * LINTING * Add helper methods to access each cards values, and validate card KeyFigure count and types before exposing them. * LINTs. * Rename variable.
-
- Jan 15, 2021
-
-
Matthias Urhahn authored
-
- Jan 14, 2021
-
-
Matthias Urhahn authored
* Remove unused layout? * Add unit test that checks if we give consent. * Actually give consent. * Add more debug output. Log all the things! Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Jan 13, 2021
-
-
Katharina Seiz authored
* use Reuse Tool for Copyright and Licenses * adapt README * add chnaged open source libraries * NOTICE and THIRD-PARTY-NOTICE not needed anymore with reuse tool * add new file to dep5 file for reuse tool * fix badge info link and add Licensing chapter again * fix link to license within repo * fix badge info link * fix link to license within repo * add info about the reuse tool and the info link about the repo compliance * change wording * adapt year of copyright and add modification staements q * add license file again to root folder * adapt copyrights and add gradlew files to dep5 file * add link to chapter licensing again * fix links to LICENSE Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Jan 12, 2021
-
-
Mohamed Metwalli authored
* Pump dependencies versions * Traget Android 11 * Fix lint errors * Add method for failing binding * Fix lint errors * Fix more lint errors * Move away from deprecated Handler constructor with no specified looper * Use ResourcesCompat to retrieve drawables * Replace getDrawable with getDrawableCompat * Fix unit test * Fix content is not showing in Onboarding flow * lint * Fix lint failure Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Mohamed Metwalli authored
-
- Jan 11, 2021
-
-
Matthias Urhahn authored
* Add log censoring for diary locations, persons and QR code token. * Fix divider not being hidden if bug report entry is hidden. * Fix censor modules not being applied in succession if multiple modules match. * Remove debug helper and address registration token PR issue Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
ralfgehrer <mail@ralfgehrer.com>
-
Mohamed Metwalli authored
* Fix some Kotlin warning * Klint * lint
-
BMItter authored
* Removed unused method formatEmptyString * Moved formatColorDivider into layout * Moved formatColorIcon into layout * Removed unused FormatterSettingsHelper * Removed leftovers of FormatterSettingsHelper * Removed static app context from formatColor * Removed unused formatDrawable * Removed app context from FormatterSubmissionHelper * Adjusted tests - formattersubmissionhelperTest * Removed app context from FormatterInformationLegalHelper * replaced dimen/match_constraint with 0dp * fix - base on current 1.11.x * fix for formattestTestResult call
-
Matthias Urhahn authored
-
- Jan 08, 2021
-
-
Matthias Urhahn authored
This allows our internal logging to capture those errors too.
-
Juraj Kusnier authored
* Cancel test result notification after submission finish (EXPOSUREAPP-4309) * remove trailing comma to fix circleci check * update tests Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
* Skeletons for showing statistics in the home screen feed. Introduce nested horizontally scrolling recycler view that supports dynamic content updates. * Fix homescreen unit test. * LINT doesn't like the TODO. * Refactor nested if to flatter when.
-
- Jan 07, 2021
-
-
Matthias Urhahn authored
* Initial draft for user accessible debug logs in production. TODO: Sharing, Tests, Cleanup FileLoggerTree? * Ready strings for translation. * Log file compression for sharing (zip). * Add log sharing * Change how DebugLogger is initialized to make sure we can record issues that happen very early in the apps lifecycle. * Add missing toolbar back arrow navigation. * Fix initial delay for ui state emissions. * Censor registration token. * Adjust warning regarding sensitive data in debug logs. * Use property injection instead of component getters. * Hide option until greenlit. * Add test for RegistrationTokenCensor * Unit tests. * Make unit test without triggerfile more specific. * LINTs * Fix missing injection provider in release mode. * Fix regtoken censor if condition. * Fix typos. * Remove empty manifest specific to deviceForTesters build. * Wait until log job is canceled before deleting log files. Otherwise a race condition could lead to file creation after job cancellation. * Replace runBlockingTest with runBlocking we don't need scheduler control and runBlockingTest is sometimes unreliable. * Refactor FileSharing to use compat builder from androidx. * Handle exceptions on debug log start() * Print device infos when log is started. * Text changes requested by UA Co-authored-by:
ralfgehrer <mail@ralfgehrer.com>
-
- Jan 06, 2021
-
-
fynngodau authored
* Use ContextCompat when accessing color resources #1924 * Update tests for #1924 * Fix incorrect color A previous commit changed a color incorrectly, related to some mistake made when merging changes. * Add compat extension to Context * Replace ContextCompat calls with Context extension functions * Update tests * Add missing imports * Fix tests * Fix lint Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Mohamed Metwalli authored
-
fynngodau authored
Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Jan 05, 2021
-
-
Mohamed Metwalli authored
* Add tooling layout tag for better overview * Ignore error for ProtectedPermissions * Add instrumentation tests to capture screenshots in Onboarding flow * Specify java version to avoid assembling APK failure * Define custom annotation for tests * Use fastlane Screengrab * ignore screenshots folder * Remove redundant imports and rules * Add View assertion to make sure Fragment is already displaying its views to avoid capturing blank screenshots * List some configurations for fastlane * Add TODO for locale change * Allow timestamp suffix to have different screenshots names * Scroll and grab another screenshot in OnboardingFragment * Delete import * Filter tests using Screenshot annotation * Add locale change rule in UI tests * Limit screenshots only for DE locale * Enable screenshots for all locales * Enable screenshot test * lint cleaning * Use JavaVersion to specify java version * Add an inline function that defaults to AppTheme * Update dcos for launchFragmentInContainer2 * lint * Define generic apk_path * Support cleaning device status bar before taking screenshot * Correct docs Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Philipp Nowak authored
* Localize dates in contact diary (EXPOSUREAPP-4485) (#2009) * Add additional unit test to cover US and UK for english date formatting (EXPOSUREAPP-4485) (#2009) * Adjust expected date strings (EXPOSUREAPP-4485) (#2009) * Correct the suffix for "year" for bulgarian dates in unit tests (EXPOSUREAPP-4485) (#2009) * Use SystemInfoProvider implementation instead of static Locale.getDefault (EXPOSUREAPP-4485) (#2009) * - Revert usage of SystemInfoProvider - Introduce Context.getLocale() extension function - Adjust unit tests to use kotest matchers (EXPOSUREAPP-4485) (#2009) * (Add accidentally missing files of the previous commit) - Revert usage of SystemInfoProvider - Introduce Context.getLocale() extension function - Adjust unit tests to use kotest matchers (EXPOSUREAPP-4485) (#2009) Co-authored-by:
I502720 <axel.herbstreith@sap.com>
-
Matthias Urhahn authored
* Introduce lastSubmissionUserActivityUTC settings and use it as "skip condition" for the SubmissionTask * Introduce background submission. * Fix worker not being canceled. * Disable auto submission is consent is not given. * Cancel worker by tag. * Introduce per TaskRequest error-handling. Set SubmissionWorker deployed task requests to SILENT. * Fix test regressions due to api change. * Add SubmissionWorker test. * Add AutoSubmissionTest.kt * Don't reset retry attempt count and date when enabling MONITOR or SUBMIT_ASAP. Otherwise would loose that data when the app is restarted despite it still "trying". Only reset the data on DISABLED, i.e. when the task finishes or give sup. * Add additional SubmissionTaskTest.kt related to automatic submission behavior. * Remove unused value. * Fix typo * Return Result.retry() on exceptions. We retry until we are successful, any abort conditions will be handled by the task. * LINTs * Fix test regression.
-
Philipp Nowak authored
Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Jan 04, 2021
-
-
Philipp Nowak authored
Fix sorting of persons and places to be case insensitive for names (EXPOSUREAPP-4488)(closes #2012) (#2017) * Fix sorting of persons and places to be case insensitive for names and add some unit tests for both parts (#2012) * Address code review comments (EXPOSUREAPP-4488) (#2012) Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Matthias Urhahn authored
* If maxExposureDetectionsPerDay is 0, return a saner value than 99 days. maxExposureDetectionsPerDay is checked separately and will abort the download task if necessary. * When checking whether the last detection was recent, add a sanity check that causes it to not skip, if the last detection was in our future. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
* Change primary key for risk result database to a monotonic ID. This prevents time travel from breaking "get latest" as we will get the latest by monotonic ID, instead of "calculatedAt". * We don't need `fallbackToDestructiveMigrationFrom(3)` until we actually upgrade the schema to 3. * Fix database test (missing monotonicId) * Catch exceptions during migrations and recreate the table. * Add check for result size after recreating+insertion. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 30, 2020
-
-
Mohamed Metwalli authored
-
- Dec 28, 2020
-
-
Matthias Urhahn authored
* Add state-aware illustrations for Settings>BackgroundModeStatus Refactor various background mode related functions into a common class that can be injected and observed. * Rename c to context * Use core-ktx extension to access system services * Fix wrong import statement and a typo * Add more test cases Co-authored-by:
Mohamed Metwalli <mohamed.metwalli@sap.com>
-
Matthias Urhahn authored
* Fix deadman notification text not being expandable and clean up code. * Further notification code cleanup. * Use core-ktx extension to access system services Co-authored-by:
Mohamed Metwalli <mohamed.metwalli@sap.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
* Fix icon in settings when bluetooth is disabled. * Rename c to context Co-authored-by:
Mohamed Metwalli <mohamed.metwalli@sap.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 23, 2020
-
-
Matthias Urhahn authored
* Let the AppConfig validity check use absolute values, to support device time check behavior. * Add mapping for "disable-device-time-check" to app config. * Show popup dialog if the device time is invalid. * Remove extra retrofit cache (use only LocalAppConfigSource.kt) * Exposure device time check * Reset user acknowledgement * LINTs * Add test menu option to disable device time check via affecting the config mapping. * Download, but don't submit keys if device time is incorrect. Abort risk level calculation if time is incorrect. * Due to multiple properties in ConfigData affecting `isDeviceTimeCorrect`, make it a body property and don't allow overriding via constructor. * Add unit test for test settings affecting the device config only in tester builds. * Show notification regarding incorrect time when device is in the background. * Fix test regressions and add additional test cases for download and risk task abort conditions on incorrect device time. * Fix merge regressions. * Add time unit to log statement. * Fix incorrect time dialog showing in a loop when entering leaving the home screen. * Remove unused code path for clear(). * Print additional timestamps to help debugging efforts in the future.
-
Matthias Urhahn authored
* Don't log all exposure windows on `RiskLevelTaskResult.toString()` due to performance impact when logging. * Add RiskLevelResult flow optimized for just getting the latest two results. * Share risk level result subscriptions. The delay when switching from Home to RiskDetails fragment will be bridged and no re-loading necessary. * Fix test regressions * Remove test code. * Introduce specific query for "latestAndLastSuccessful". Add unit tests for SQL queries. * Fix test regressions due to missing mocking. * Address merge conflicts. * Fix instrumentation tests not building. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 22, 2020
-
-
Matthias Urhahn authored
* Refactor home-screen and tracing details fragment. * Use recycler view to display list items * Remove nested/included layouts and make Android Studio layout previews functional * Split list items into independent elements (positive/negative/pending) * Layout cleanups & flattening * Small padding and alignment fixes * Clean up tests and fix class names. * Move UI classes towards "package by feature", each feature has their own ui package. * LINTs * Fix log statements. * Only crash in tester builds. * Update Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/main/home/HomeAdapter.kt Co-authored-by:
fynngodau <fynngodau@mailbox.org> * Refactor adapter init. * LINT * Remove "card" from property name, the "TracingStateProvider" is UI agnostic. * LINTs * Don't show the risk card if there is a positive test result. * Fix crash on init with unknown resource IDs (before data binding is available). * Fix progress card not being colored in risk details fragment * LINTs * Prepare viewholders for payload use. * Update Corona-Warn-App/src/main/res/layout/home_fragment_layout.xml Co-authored-by:
fynngodau <fynngodau@mailbox.org> * Improve toolbar and tracing bar behavior, scrollable, fewer nested layouts. * Adjust popup theme. * Remove color state list for cards, click behavior is done via `selectableItemBackground` * Fix visual artifact when expanding toolbar menu. * Align box coloring in dark mode and click animation. * Fix flickering Test and FAQ card. * Fix missing "enable tracing" button in home card. * Fix risk/tracing details elevation/dividers in light and dark mode * Resolve merge regressions and include contact diary card via recyclerview. * Adjust toolbar background color to new mockups (diary mockups have lighter darkmode). * Update Corona-Warn-App/src/main/res/layout/home_card_container_layout.xml Co-authored-by:
fynngodau <fynngodau@mailbox.org> * Update Corona-Warn-App/src/main/res/layout/tracing_content_failed_view.xml Co-authored-by:
fynngodau <fynngodau@mailbox.org> * Tint card background color. Just replacing the background didn't ahve the desired effect. * Fix possible NPE on last encounter calculation. * LINTs and typos. Co-authored-by:
fynngodau <fynngodau@mailbox.org>
-
- Dec 21, 2020
-
-
Chilja Gossow authored
* trim name if containing other characters than white spaces remove length restriction in validity check only save when valid * klint * test * review comment * klint Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 17, 2020
-
-
Chilja Gossow authored
* Merge branch 'feature/4152-contact-diary' of https://github.com/corona-warn-app/cwa-app-android into feature/4152-contact-diary # Conflicts: # Corona-Warn-App/schemas/de.rki.coronawarnapp.contactdiary.storage.ContactDiaryDatabase/1.json # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/DataReset.kt * clean up DI * add recycler view * clean up * new texts * clean up * clean up * background, dialog * klint * klint * klint * review comments * review comments * review comments * Merge branch 'feature/4152-contact-diary' into feature/4161-4162-edit-person-location # Conflicts: # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/contactdiary/ui/onboarding/ContactDiaryOnboardingFragment.kt
-
AlexanderAlferov authored
* Data retention with test fragment and tests * Formatting * Minor fix * Removed unnecessary injection * Resolve merge conflicts * Adjusted Tasks with tests * Formatting * Refactoring
-