Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Feature/39 feature deliver rider to destination (#53)
* move test file to coreLocalTestModule function * Add production/testing notes * Add appModule doc * Replace manual koin setup with application setup function * Create KoinExt to simplify test setup * replace manual koin setup with extension function * Fix shared package identifiers * replace manual koin configuration with setup function * Move test bindings out to feature test koin modules * Replace explicit construction of TestRideRepository with consistent koin configuration * rename repository for role ownership clarity * Clean up unused imports * Fix test docs * remove empty test * move drive/ride tests to package directory * remove empty test * move koin retrieval below complete setup * Move common dependencies to setUp block * Rename screen/state/viewmodel with Provider over Driver * Update roles in README to reflect preferred terminology * Add provider dashboard view model * rename file to match composable * Fix doc * Rename uis and models to reflect preferred terminology * Provider * Passenger * Trip * rename tests/files with preferred term * rename test/file with preferred term * replace "ride request" with "trip request" * Fix test repo not found by koin * cast DriverRideRepository as TestDriverRideRepository * Add test actions/expectations comments * Add new location service * Add coroutines platform dependencies * Move ~Provider~LocationService * Rename DriverRideRepository.kt * Add deprecation note * remove missing interface symbol * Provide location service bindings in platform modules * Add location service to provider trip repository * Create simple test location service * Fix location type * Add android location comment * provide test location service in koin * get test location service in test * Use real coordinates * replace todos with simulated location * conceal scope * Add plan ride function * Provide more specific ride types at different points in repository functions * Provide fake driver profile for testing * Remove superfluous PickUp state * add screen state docs * Move provider dashboard screen state to dedicated file * generalize provider dashboard screen state to ui state * Add pickUpRider repository function * Pass pick up event to repository * Create new watch distance use case * Add boolean for pick up ability * Start watching pick up distance when provider picks up passenger * Add interactor factory * Pass enablement * remove unused latlong * Fix location service not started before test * Use map over success/failure extension * Use map over success/failure extension * Simplify type check * Add closure parameter name * Initialize view model after driver rates have been set * Fix location service instance not shared * Fix LatLong.distanceTo returning negative lengths * Move toRadians function to dedicated extension file * Fix wrong arc-trig function used to calculate great angle * Remove flaky wait * tighten calculation expectations slightly * Watch distance to drop off point after picking up rider * Add drop off event * Display delivery information * Add blank completion info view * Fix wrong text string * reorganize expectations * move distance watcher after mutable state update * fix active ride not being set * remove redundant text * provide trip completion view model event * dispose any jobs when view model is disposed * Add base view model doc * modify doc * add trip completion view * Finish test expectations * print stack traces on unexpected conditions * Add complete function to skip CompletingRide state * expand accepted types to Active/CompletionRide * Fix provider/passenger references in error strings * Add documentation about skipped state * Add test todo * restore test repository in koin graph for request ride ui test
- Loading branch information