init #48
@@ -94,14 +94,17 @@ private class DatabasePrepopulator(
|
||||
) {
|
||||
@RequiresApi(Build.VERSION_CODES.O)
|
||||
suspend fun prepopulate() {
|
||||
tripDao.insert(Trip(name = "Włochy", startDate = "2025-01-01", currency = "PLN"))
|
||||
tripDao.insert(Trip(name = "Włochy", startDate = "2026-03-01", currency = "PLN"))
|
||||
tripDao.insert(Trip(name = "Szwajcaria", startDate = "2025-03-01", currency = "EUR"))
|
||||
tripDao.insert(Trip(name = "Portugalia", startDate = "2026-03-01", currency = "USD"))
|
||||
categoryDao.insert(Category(name = "Hotel", icon = Icons.HOTEL, color = colors.random()))
|
||||
categoryDao.insert(Category(name = "Jedzenie", icon = Icons.RESTAURANT, color = colors.random()))
|
||||
categoryDao.insert(Category(name = "Transport", icon = Icons.FLIGHT, color = colors.random()))
|
||||
categoryDao.insert(Category(name = "Rozrywka", icon = Icons.ATTRACTION, color = colors.random()))
|
||||
categoryDao.insert(Category(name = "Zakupy", icon = Icons.GROCERIES,color = colors.random()))
|
||||
tripDao.insert(Trip(name = "Portugalia", startDate = "2025-03-01", currency = "USD"))
|
||||
categoryDao.insert(Category(name = "Accomodation", icon = Icons.HOTEL, color = colors.random()))
|
||||
categoryDao.insert(Category(name = "Transport", icon = Icons.TRANSPORT, color = colors.random()))
|
||||
categoryDao.insert(Category(name = "Flight", icon = Icons.FLIGHT, color = colors.random()))
|
||||
categoryDao.insert(Category(name = "Restaurants", icon = Icons.RESTAURANT, color = colors.random()))
|
||||
categoryDao.insert(Category(name = "Groceries", icon = Icons.GROCERIES, color = colors.random()))
|
||||
categoryDao.insert(Category(name = "Coffee", icon = Icons.COFFEE,color = colors.random()))
|
||||
categoryDao.insert(Category(name = "Entertainment", icon = Icons.ENTERTAINMENT,color = colors.random()))
|
||||
categoryDao.insert(Category(name = "Laundry", icon = Icons.LAUNDRY,color = colors.random()))
|
||||
|
||||
|
||||
val now = LocalDateTime.now()
|
||||
|
||||
@@ -13,19 +13,3 @@ val colors: List<String> = listOf(
|
||||
"#2A7F62",
|
||||
"#0B7189"
|
||||
)
|
||||
// GREEN("#228B22"),
|
||||
// MINT("#98FB98"),
|
||||
// TEAL("#008080"),
|
||||
// CYAN("#00CED1"),
|
||||
// SKY_BLUE("#1E90FF"),
|
||||
// BLUE("#0000FF"),
|
||||
// LAVENDER("#8A2BE2"),
|
||||
// LILAC("#C8A2C8"),
|
||||
// PURPLE("#800080"),
|
||||
// MAUVE("#D8BFD8"),
|
||||
// MAGENTA("#FF00FF"),
|
||||
// VIOLET("#9400D3"),
|
||||
// INDIGO("#4B0082"),
|
||||
// PERIWINKLE("#8A2BE2");
|
||||
//}
|
||||
|
||||
|
||||
@@ -7,16 +7,12 @@ import com.composables.icons.materialsymbols.outlined.R
|
||||
enum class Icons(@DrawableRes val resource: Int) {
|
||||
HOTEL(R.drawable.materialsymbols_ic_hotel_outlined),
|
||||
RESTAURANT(R.drawable.materialsymbols_ic_restaurant_outlined),
|
||||
TRANSPORT(R.drawable.materialsymbols_ic_local_taxi_outlined),
|
||||
FLIGHT(R.drawable.materialsymbols_ic_flight_outlined),
|
||||
ATTRACTION(R.drawable.materialsymbols_ic_museum_outlined),
|
||||
ATTRACTION(R.drawable.materialsymbols_ic_theater_comedy_outlined),
|
||||
GROCERIES(R.drawable.materialsymbols_ic_grocery_outlined),
|
||||
GROCERIES1(R.drawable.materialsymbols_ic_airline_seat_recline_normal_outlined),
|
||||
GROCERIES2(R.drawable.materialsymbols_ic_grocery_outlined),
|
||||
GROCERIES3(R.drawable.materialsymbols_ic_grocery_outlined),
|
||||
GROCERIES4(R.drawable.materialsymbols_ic_grocery_outlined),
|
||||
GROCERIES5(R.drawable.materialsymbols_ic_grocery_outlined),
|
||||
GROCERIES6(R.drawable.materialsymbols_ic_grocery_outlined),
|
||||
GROCERIES7(R.drawable.materialsymbols_ic_grocery_outlined)
|
||||
|
||||
|
||||
COFFEE(R.drawable.materialsymbols_ic_local_cafe_outlined),
|
||||
GENERAL(R.drawable.materialsymbols_ic_shoppingmode_outlined),
|
||||
ENTERTAINMENT(R.drawable.materialsymbols_ic_theaters_outlined),
|
||||
LAUNDRY(R.drawable.materialsymbols_ic_local_laundry_service_outlined)
|
||||
}
|
||||
Reference in New Issue
Block a user