- Jun 09, 2021
-
-
Mohamed Metwalli authored
* Add missing Dcc server key
🔑 + brushing🖌️ * Update DebugOptionsFragmentViewModelTest.kt
-
- May 28, 2021
-
-
Mohamed Metwalli authored
* Phase 1 * Phase 2 * Fix test * Phase 3 * Update ContactDiaryDayFragmentTest.kt * Tests refactoring * Lint * Fix tests * lint * Revert * Run screenshots * Revert screenshots Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- May 19, 2021
-
-
BMItter authored
* Better logging * Removed left over * Changed cache dir * Reworked value set repo, some renaming * detekt & sourcecheck clean * Added tests, Renamed prefs * missing imports * clean * clean test source * naming * Added Tests * Removed obsolet vaccination related code, removed obsolet classes * CI magic Co-authored-by:
chris-cwa <69595386+chris-cwa@users.noreply.github.com> Co-authored-by:
Mohamed Metwalli <mohamed.metwalli@sap.com>
-
- May 14, 2021
-
-
Matthias Urhahn authored
* NOOP vaccination data background update logic for now. * Adjust tests. * Remove proof certificate :( * remove unused mock data * remove env key * remove proof server * more removals * fix test Co-authored-by:
Chilja Gossow <49635654+chiljamgossow@users.noreply.github.com>
-
- May 10, 2021
-
-
BMItter authored
Vaccination Server - Retrofit interfaces & Module (EXPOSUREAPP-6854, EXPOSUREAPP-6856, EXPOSUREAPP-7129) (#3099) * Create some classes * Get vaccination urls from env json * Implemented api for obtaining value sets * improved package structure, merge adjustments * Adjusted path * Share cache so one can clean it * Added certificate retrofit * Correction * satisfy CI * clean import * fix test * Fix test #2 * Dont use retrofit cache for more control * Revert "Dont use retrofit cache for more control" This reverts commit 44fed1f6d5258c00f1a5db72a329cfb91b6c60fa. * Renamed vaccination url, Adjusted test * Update prod json * Changed name * Updated debug menu * Added new optional api * Update DebugOptionsFragmentViewModelTest.kt Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- May 03, 2021
-
-
Matthias Urhahn authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Juraj Kusnier <jurajkusnier@users.noreply.github.com>
-
- Apr 28, 2021
-
-
Chilja Gossow authored
* provide data * fix test * klint * make sure only last 14 days are counted * fix test Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Apr 13, 2021
-
-
Matthias Urhahn authored
* Improve logging. * Refactoring. Move related functions and default values into new RiskCombinator.kt class. * Initial risk results have RiskState.LOW_RISK. * Fix manual refresh not running the PresenceTracingRiskTask. * Adjust failing test. * Update logtag. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
BMItter <46747780+BMItter@users.noreply.github.com>
-
- Apr 07, 2021
-
-
Chilja Gossow authored
* download and repo * download warning packages * download warning packages * TraceTimeWarning Download, Draft2 * TraceTimeWarning Download, Draft3 * Offer only new warning packages via API. * Remove duplicate test menu entry. * TraceTimeWarning Download, Draft5 * Adapt CheckInWarningMatcher to mark processed packages. * Fix failing unit tests. * Unit Test Skeletons * Back BackgroundScheduler non-static and injected. * Refactored and combined diagnosis and tracing periodic workers. * Fix unit test. * LINTs * Adapt marking packages as processed to upstream CheckInWarningMatcher changes. * Copy .await() from worker library to project due to being scope restricted. * unit tests * klint * klint * add TODO for matching comparison * refactor combination of results * rename * add test for combine * revert unnecessary changes * change initial result to failed * using low risk as default for lastCalculated to maintain the old behavior when no results are available * klint * Resolve merge regressions. * Fix fake check-in generation. * Handle worker refactoring gracefully, catch ClassNotFoundException. * Refactoring packages. * Refactor CheckInWarningMatcher.kt and PresenceTracingWarningTask.kt Move repository/database update calls to task, let the matcher only be responsible for matching. * Adjust test fragment to allow retriggering the download + matching task. * Fix refactoring regression. * Fix flaky time label test. * Fix package import. * Fix another timezone based flaky test. * Reduce nesting level to make the linter happy. * Update ROOM schema files. * Update ROOM schema files. * Refactoring. * Small naming fixes * Shorten worker IDs. * Collect BerndStylePoints™ * Set tableName explicitly. * * Adjust id comparison within CheckInWarningMatcher.kt * Add tests for traceLocationIdHash calculation. * Calculate traceLocationIdHash on-demand, don't store it. * Improve trace warning task test menu output. * Remove spammy log output. * Remove unused function * Add additional TraceLocation test cases that match mock server. * Improve check-in matching log messages. * Fix duplicate overlaps and check for overlap distinctness. * Add test for config timeout value. * Remove unused test. * Use time measuring function. * Simplify error case handling for revoked metadata packages. * Turn createMatchingLaunchers into runMatchingLaunchers * Use TimeUnit.MINUTES * Remove extra deletion call. If there are no CheckIns, the SyncTool will have deleted all matches already. * Use flatMap instead of flatten. * Use more specific names (toCheckInWarningOverlap/toTraceTimeIntervalMatchEntity) * Revert "Remove extra deletion call. If there are no CheckIns, the SyncTool will have deleted all matches already." This reverts commit 3b0acf3d * Fix merge conflict regressions. Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Alexander Alferov <a.alferov@sap.com>
-
- Apr 06, 2021
-
-
Matthias Urhahn authored
* Add new test environment TESTER-MOCK + clean up. * kLint, fun for the whole family. * Make naming consistent Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Lukas Lechner <lukas.lechner@sap.com> Co-authored-by:
Lukas Lechner <office@lukaslechner.com>
-
- Apr 01, 2021
-
-
Chilja Gossow authored
* risk calculation * risk calculation * risk calculation * refactoring * mapping tests * move risk calculation to different change list * detekt * klint * correct name * rename to presence tracing * add test * refactoring * repo * db * compare byte array * refactor guidHash * merge 2.0.x * clean up * improve performance * klint * provide risk result * add tests * detekt and klint * detekt and klint * failing checks * merge 2.0.x * adapt tests * adapt tests * adapt tests * revert unintended change * remove db * clean up * more tests * klint * db json * change package * klint * change package * change package * add tests * fix import * clean up naming * clean up naming, moe package, more tests * klint * parallel matching * parallel matching * matching * comments * comments * klint * logging * limit parallel processing to max of 4 * merge * move into one file * comments * klint * change visibility * change visibility * update test menu output * klint * fix test * renaming, refactoring * add column info change warningPackageId type to string * fix test * fix test * db * db * db move * fix refactoring * refactor date * fix tests * fix tests * klint * detekt * fix test * clean up * clean up
-
- Mar 31, 2021
-
-
Lukas Lechner authored
* Move CreateTraceLocationApiV1.kt and TraceLocationServer.kt into new sub-package * Move CreateTraceLocation DI logic into sub-package * Create infrastructure code for new Qr-Code Poster Template Endpoint * Add new url to environment * Show new URL in the Test Menu * Implement unzipping, signature verification and parsing * Add possibility to download poster template from TestMenu * Show Android Vector Drawable in TestMenu * Create QrCodePosterTemplateApiV1Test.kt * Remove non-used ProtoConverter from retrofit * Change button position in Test Fragment * Show error if something goes wrong * Improve QrCodePosterTemplateApiV1Test.kt * Create QrCodePosterTemplateServerTest.kt * Changed error message Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Mohamed <mohamed.metwalli@sap.com>
-
Lukas Lechner authored
* Remove Server Communication during for event creation * Fix EventRegistrationTestFragmentViewModel.kt * Make compiler happy after TraceLocation model changes * Adapt tests for TraceLocation model changes * Fix instrumentation tests * Add test for TracelocationUserInput -> TraceLocation mapper * Remove Create TraceLocation Url from Environment and Debug Options * Remove TRACE_LOCATION_VERSION constant * Do the encoding samba dance * Update room schema for event registration * Fix layout issue in debug options Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Chilja Gossow authored
* risk calculation * risk calculation * risk calculation * refactoring * mapping tests * move risk calculation to different change list * detekt * klint * correct name * rename to presence tracing * add test * refactoring * repo * db * compare byte array * refactor guidHash * merge 2.0.x * clean up * improve performance * klint * provide risk result * add tests * detekt and klint * detekt and klint * failing checks * merge 2.0.x * adapt tests * adapt tests * adapt tests * revert unintended change * remove db * clean up * more tests * klint * db json * change package * klint * change package * change package * add tests * fix import * clean up naming * clean up naming, moe package, more tests * klint * parallel matching * parallel matching * matching * comments * comments * klint * logging * limit parallel processing to max of 4 * merge * move into one file * comments * klint * change visibility * change visibility * update test menu output * klint * fix test * add column info change warningPackageId type to string * fix test * fix test Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Mar 23, 2021
-
-
Lukas Lechner authored
* Create button to send event to server in Test Menu * Build TraceLocation protobuf in CreateEventTestViewModel.kt * Perform backend request to create trace locations * Store TraceLocation in database after creation * Add signature check * Add TraceLocationCreatorTest.kt * Rename function in TraceLocationServer.kt * Refactor TraceLocationServer.kt * Add Tests for TraceLocationServer.kt * Adapt code to latest protobuf changes * Fix small issue in CreateEventTestViewModel.kt * Rename Test * Add SignedTraceLocation to TraceLocation Mapper and add tests * Fix EnvironmentSetupTest.kt * Extend test in EnvironmentSetupTest.kt * Move DI related logic around clients and url to environment package * Change return type to Response<SignedTraceLocation> of retrofit interface * Address PR feedback regarding string templates * Add default values to make the creation of trace locations from the TestMenu faster and easier * Show create-trace-location url in Test Menu * Fix DebugOptionsFragmentViewModelTest.kt * Map byte representation in SignedTraceLocation to TraceLocation mapper * Delete TraceLocationVerifyResult.kt * Fix SignedTraceLocationToTraceLocationMapperTest.kt Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Mar 08, 2021
-
-
chris-cwa authored
* - database, active tracing time * fixed unit test * fixed unit test * fixed instrumented tests * fixed unit test * - unused test case * removed more unused code * fixed unit test * ktlint * removed optional parameter Co-authored-by:
Alex Paulescu <alex.paulescu@gmail.com>
-
- Feb 23, 2021
-
-
Matthias Urhahn authored
* Cleanup clearAllMocks() and unmockAll() usage. * If we call `MockKAnnotations.init(this)`, in "Before" then we don't need to clear the mocks in each "After" call, as the mocks will be replaced by new ones. * Fix textreplace error. * Split up BaseTest class for unit and instrumentation tests. * Move BaseTest and BaseTestInstrumentation to the right packages * Update BaseTestInstrumentation.kt * Move it back Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
Mohamed Metwalli <Mohamed.Metwalli@sap.com>
-
- Feb 19, 2021
-
-
Matthias Urhahn authored
* Show data donation server URL in test fragment for server environments. * Fix test not working. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Jan 25, 2021
-
-
Matthias Urhahn authored
* Adjust DispatcherProvider interface to return type `CoroutineContext`. This is a preamble to fix a few coroutine tests that require time advancement. We need to be able to pass the TestCoroutineScope's context to classes under test. This can now be done using CoroutineContext.asDispatcherProvider(). * Fix compile error in test Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
ralfgehrer <mail@ralfgehrer.com>
-
- Jan 11, 2021
-
-
Matthias Urhahn authored
-
- Dec 23, 2020
-
-
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 08, 2020
-
-
Matthias Urhahn authored
* Add email share feature to submission test menu. * LINTs * Fix duplicate TEK history calls. * LINTs * Fix TEKStorage live update and adjust export format. * Fix LINT
-
- Dec 07, 2020
-
-
chris-cwa authored
* fixed: fields without values are visible; + logs * detect version update, force recalc on 1.7 -> 1.8 * detect version update in diagnosis keys task only * no connection type ignoring * Add test to ensure that parsing old configs from 1.7.x fails and the default fallback for 1.8.x is used. * Fix logging typo. * no wasLastDetectionPerformedRecently abort on app update * Fix lint issues * fixed condition * used shared settings * get last encounter at from enf v1 to display second line after app update while risk level calc is not finished * fixed di * fixed tests * fixed tests * fixed tests * Add unit tests for DownloadDiagnosisKeysTask.kt * fixed tests * Add tests for DownloadDiagnosisKeysSettingsTest Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Dec 03, 2020
-
-
Matthias Urhahn authored
* Submission upload, first draft. Storing Symptoms and TEKs. TODO: * Change upload task to use stored data. * Blocking upload task * Tests * Update symptoms on each screen. Integrate permission request and automatic TEK history update. TODO: * Cancel dialog * Blocking upload task * Tests * Add submission on cancel behavior. * LINTs and unit tests. * Hooking up navigation and first break through on TAN based submission. * Hook up navigation for QR Code to test result without consent. * Fix positive result consent given submission: Abort to Main Screen * Restore default environment. * Adjust notification target fragment. * Address LINTs * Clean up symptoms introduction nav actions. * Fix tests
-
- Nov 25, 2020
-
-
Alex Paulescu authored
* Removed traces of grey risk card. * Removed UNKNOWN_RISK_INITIAL constant. * Removed unused method. * Removed old comments. * Introduce risklevel calculation failure state to get consistent card states. * Cleaned up the risk card states. Refactored "RiskLevel" to be calculated based on either result or failure reasons. Added the new "no internet" error card. * Updated color states. * Fixed card color issues. * Fixed detekt issues. * Remove test for deleted file. * Fix test regressions. * Fixed tests and LINTs. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Matthias Urhahn authored
Persist ExposureWindow based risk level calculation results and update the UI (EXPOSUREAPP-3910,EXPOSUREAPP-3855) (#1705) * First draft to refactor `RiskRepository` away and persist risk level results produced by ExposureWindow calculations. TODO: Tests, Legacy data migration, Persist ExposureWindow's in tester builds. * Unit tests for refactored classes. * LINTs * First draft for legacy risk data migration. TODO: Tests. * Store exposure windows on device for tester builds and perform clean on them too after risk result deletions. Split RiskResultStorage such that the exposure window storage code is only available in deviceForTesters flavor builds. * simplification * no preference should return no value * Remove TODOs, singletons are refactored away ;) * Simplify RiskLevelTask interface * Split risk level storage implementations to let production (device flavor) have a NOOP for storing/deleting exposure windows. * Remove unused storage function. Add test skeletons. * unit test * unit test * Update risk card to show new window mode based information. * Fix test regressions. * Address PR comments. * LINTs * Everybody get's LINT for XMAS. * Finish unit tests and remove unused classes. Co-authored-by:
chris-cwa <chris.cwa.sap@gmail.com>
-
- Nov 24, 2020
-
-
Matthias Urhahn authored
-
- Nov 19, 2020
-
-
BMItter authored
removed useless test
-
BMItter authored
-
Kolya Opahle authored
-
- Nov 16, 2020
-
-
Matthias Urhahn authored
* Enable logfile for tester builds by default. * Fix test regression.
-
Kolya Opahle authored
* Initial switch to new app config version (no tests/lint) * Fixed some unit tests, not all are working yet * Fixed ConfigParserTest * ktlint fixes * ktlint * ExposureWindows to map is now beautiful Signed-off-by:
Kolya Opahle <k.opahle@sap.com> Co-authored-by:
BMItter <Berndus@gmx.de>
-
- Nov 06, 2020
-
-
chris-cwa authored
* converted RetrieveDiagnosisKeysTransaction to Task * cherry picked and solved access to the new task * fixed background workers * fixed background workers * detekt ktlint unit test * ktlint * check cancel * fixed flow * fixed flow * fixed flow * fixed typo * Make klint happy. * Little refactoring to address PR comments (DI instead of static access). Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Nov 05, 2020
-
-
Matthias Urhahn authored
* Split and hide the protobuf config behind interfaces with individual mappers responsible for creating the desired formats. * Merge branch 'release/1.7.x' into feature/3455-more-frequent-riskscore-updates-configs # Conflicts: # Corona-Warn-App/src/deviceForTesters/java/de/rki/coronawarnapp/test/risklevel/ui/TestRiskLevelCalculationFragmentCWAViewModel.kt # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/transaction/RiskLevelTransaction.kt # Corona-Warn-App/src/test/java/de/rki/coronawarnapp/transaction/RiskLevelTransactionTest.kt * Make the AppConfig observable. Provide the server time offset. Offer a lastUpdatedAt timestamp. Add an app config specific test screen. Clean up test screens a bit and move debug options out of API test options. * Fix test regression due to refactoring (moved code around). * Store the server timestamp and offset at retrieval. Switch to config storage via json to be able to store additional meta data fields (i.e. time). * KLint and Me have a hate relationship based on both mutual admiration. * Fix time offset parsing being locale dependent. * Fix broken unit tests. * Improve offset accuracy, move before unzipping. * Fix overly long livedata subscription to results (viewmodel scope vs observer scope) * Add mapping for the new protobuf configs + tests. * For cached (retrofit) response, we need to check the cacheResponse and its timestamps to determine an accurate time offset. * Exposure a boolean property to tell us when a fallback config is being used. * Hide the observable flow<ConfigData> behind a method that can automatically triggers refreshes. * Use a common mapper interface. * Address PR comments and KLints. * Fix refactoring regression. * Improve config unzipping code. * Add flag to forward exception thrown during HotDataFlow.kt initialization. * Don't specify a default context via singleton. * Move download and fallback logic into it's own class just responsible for sourcing the config: "AppConfigSource". "AppConfigProvider" is now only responsible for making it available. * Simplify current concepts for making the app config observable until we have a default configuration. * Improve app config test screen, delete options, better feedback. Show toast instead of crash on errors. * Fixed GSON serialization not encoding/decoding the byte array correctly. Added specific type adapters for instant and duration to get cleaner json. * Remove type adapters from base gson due to conflict with CalculationTrackerStorage. * We want to default to forced serialization of instant by our converters, instead of using the default serialization which will differ between Java8.Instant and JodaTime.Instant, to prevent future headaches there, register explicit converters by default, and overwrite them if necessary (currently only needed for CalculationTrackerStorage.kt). * Improve AppConfigServer code readability by moving code into extensions. * Fix merge conflicts * Throw a more specific exception if gson type decoding fails due to malformed base64 encoding. * Add unit test for Gson ByteArrayAdapter. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Nov 02, 2020
-
-
chris-cwa authored
* converted risk level transaction to task * simplified * fixed config: timeout is now duration * less is more * arrangement + empty lines * Added additional checks to notification of exposure/test-result to check for finished submission Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * submit risk level task requests * - unreachable catch blocks * housekeeping * satisfied ktlint + detekt * fixed flow: isRefreshing * fixed flavour for testers * refactored benchmark * fixed package declaration * unit tests * fixed injection * fixed tests * comments from PR * fixed injection * fixed lint issues * fixed another merge conflict * - unused class * map task factory * fulfilled comment style wishes * fixed tests suspended by changes from develop branch * Update Corona-Warn-App/src/main/java/de/rki/coronawarnapp/risk/DefaultRiskLevels.kt https://github.com/corona-warn-app/cwa-app-android/pull/1412#discussion_r514325776 Co-authored-by:
Kolya Opahle <k.opahle@sap.com> * changes from PR * fixed a test * show logs, ktlint issues * made log tag non-nullable * improvements from reviewers * reduced static access * Saint Pipeline, please give me the green light * toString() * ktlint + di * fixed test Co-authored-by:
Kolya Opahle <k.opahle@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Oct 21, 2020
-
-
chris-cwa authored
Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Oct 19, 2020
-
-
Matthias Urhahn authored
* Introduced `TracingCardState` and `TracingDetailsState`. Removed all direct viewmodel/livedata access from all nested layouts for `TracingViewModel`. Removed `FormatterRiskHelper`. Introduced logic to reactively update the UI state if bluetooth, location or tracing state changes. TODO: * Finish tests in TracingCardStateTest.kt and TracingDetailsStateTest.kt * Finish TracingDetailsViewModel.kt and TracingCardViewModel.kt * Remove obsolete dependencies on TracingViewModel.kt and singletons RiskLevelRepository.kt, TracingRepository.kt * Breakthrough, cards update again. * Further cleanup of TracingViewModel.kt, TracingRepository.kt Still not quite there yet, too many calls going into every direction, back and forth, instead of just top->down, but we are getting there. We want data flow from business logic code to the UI, keep the UI KISS. * Update TracingCardState tests to account for changes * More refactoring, TracingViewModel.kt is now finally gone. * Fix risk details card, we reuse the cardviewmodel but need to overwrite the `showDetails` flag depending from where it's used. * Refactored several properties (notification related) out of SettingsViewModel/Repository * Fix injection * Refactoring submission related databinding code on the home fragment * Make TracingRepository.kt injectable and change viewmodel scoping for refresh calls to app scope. * Remove additional formatter calls from submission cards on home screen. * Refactored additional SubmissionViewModel logic into SubmissionRepository on the Homescreen. First UI Test is now passing. Simplified ViewModel instantiation related code. Prepared HomeFragment for smoother UI state changes, less reloading. * Improved home,tracing-details and tracing-settings loading behavior, less flickering. Fixed LiveData value assignment on background-thread. * New reactive provider for Bluetooth and Location status. Cleaned up ConnectivityHelper.kt partially. * Implement remaining tests, batch 1. * Implement remaining tests, batch 2. * Fix lint issues. * Removed a few codesmells and code duplication. Introduced Flow.shareLatest(...) * Removed unused parameters. * LINT fixes. * Fix unit test failing due to missing mocks. * Address PR comments. * Improve UI loading states, remove flickering. * Remove log spam due to polling values, add extra abort condition that checks for cancellation. Co-authored-by:
ralfgehrer <mail@ralfgehrer.com>
-
- Oct 15, 2020
-
-
Matthias Urhahn authored
* Switch 3 to 24 hour mode * Fix incorrect toast message. * Create `TestSettings` class. * Adjust test to handle 24 hour mode. * Adjust test to check for day rollover in hourly keypkg mode. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Oct 02, 2020
-
-
Matthias Urhahn authored
* Define environment for each flavor and build type. * Add smart LiveData class that does async initialization (not on the main thread). * View extensions setGone/setInvisible * Refactor test for api fragment. * Replace ALT environment with a list to select from. * klint * Fix tests * Fix tests * Further flaky test fixes. * Move the debug check for isLast3HourModeEnabled to the settings. The KeyFileDownloader.kt shouldn't be aware of that detail. The settings are what is affected by the build flavors/modes. * Code cleanup and UI improvement of fragment_test_for_a_p_i.xml * Code that retries flaky tests until we found a better solution. Not great, Not terrible... Co-authored-by:
Mert Safter <mert.safter@sap.com>
-
- Sep 29, 2020
-
-
Matthias Urhahn authored
* Move AppConfig related code into it's own package. * Use "files" instead of "cache" for storing our AppConfigApiTest. * Add "files" to "cache" migration. * Refactor CDN related code into an independent "environment module". TODO: UnitTests, Fallback behavior even if cached AppConfig is stale. * Further structure refactoring and unit test for app config cache migration. * Added config fallback behavior for all cases + additional tests. * Improve code readability. * First POC for multi-environment support. * logic for ACME test Countries toggle button in Dev menu * ACME Test Countries dev menu * Additional clean up and refactoring on build constants. * Cleaned up the test fragment a bit. * Fixed detekt issue * Fix flaky test that depends on build variant. * Let the test fragment show us the actual environment we toggled to. * Changes upon review * Address PR comments. Co-authored-by:
Rituraj Sambherao <git.rituraj.sambherao@gmail.com>
-