Coverage Summary for Class: AppRegion (com.georgeci.moneysurfer.domain.preferences)
| Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| AppRegion |
100%
(1/1)
|
|
100%
(10/10)
|
100%
(67/67)
|
| AppRegion$Companion |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(1/1)
|
| Total |
100%
(2/2)
|
|
100%
(11/11)
|
100%
(68/68)
|
package com.georgeci.moneysurfer.domain.preferences
/**
* Region the user's money defaults come from — currency and date conventions.
*
* A closed shortlist rather than every ISO-3166 country: it mirrors the currency catalogue
* (`CurrencyRepository`) one-for-one, so every region the picker offers has a currency the app can
* actually show. It grows with that catalogue.
*/
enum class AppRegion {
/** Follow the device region. */
System,
Germany,
UnitedStates,
UnitedKingdom,
Poland,
Ukraine,
Georgia,
Kazakhstan,
Russia,
;
companion object {
val DEFAULT: AppRegion = System
}
}