init #48

Merged
admin merged 18 commits from develop into main 2026-04-30 10:35:58 +02:00
3 changed files with 16 additions and 33 deletions
Showing only changes of commit af7c926060 - Show all commits

View File

@@ -94,14 +94,17 @@ private class DatabasePrepopulator(
) { ) {
@RequiresApi(Build.VERSION_CODES.O) @RequiresApi(Build.VERSION_CODES.O)
suspend fun prepopulate() { 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 = "Szwajcaria", startDate = "2025-03-01", currency = "EUR"))
tripDao.insert(Trip(name = "Portugalia", startDate = "2026-03-01", currency = "USD")) tripDao.insert(Trip(name = "Portugalia", startDate = "2025-03-01", currency = "USD"))
categoryDao.insert(Category(name = "Hotel", icon = Icons.HOTEL, color = colors.random())) categoryDao.insert(Category(name = "Accomodation", icon = Icons.HOTEL, color = colors.random()))
categoryDao.insert(Category(name = "Jedzenie", icon = Icons.RESTAURANT, color = colors.random())) categoryDao.insert(Category(name = "Transport", icon = Icons.TRANSPORT, color = colors.random()))
categoryDao.insert(Category(name = "Transport", icon = Icons.FLIGHT, color = colors.random())) categoryDao.insert(Category(name = "Flight", icon = Icons.FLIGHT, color = colors.random()))
categoryDao.insert(Category(name = "Rozrywka", icon = Icons.ATTRACTION, color = colors.random())) categoryDao.insert(Category(name = "Restaurants", icon = Icons.RESTAURANT, color = colors.random()))
categoryDao.insert(Category(name = "Zakupy", icon = Icons.GROCERIES,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() val now = LocalDateTime.now()

View File

@@ -13,19 +13,3 @@ val colors: List<String> = listOf(
"#2A7F62", "#2A7F62",
"#0B7189" "#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");
//}

View File

@@ -7,16 +7,12 @@ import com.composables.icons.materialsymbols.outlined.R
enum class Icons(@DrawableRes val resource: Int) { enum class Icons(@DrawableRes val resource: Int) {
HOTEL(R.drawable.materialsymbols_ic_hotel_outlined), HOTEL(R.drawable.materialsymbols_ic_hotel_outlined),
RESTAURANT(R.drawable.materialsymbols_ic_restaurant_outlined), RESTAURANT(R.drawable.materialsymbols_ic_restaurant_outlined),
TRANSPORT(R.drawable.materialsymbols_ic_local_taxi_outlined),
FLIGHT(R.drawable.materialsymbols_ic_flight_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), GROCERIES(R.drawable.materialsymbols_ic_grocery_outlined),
GROCERIES1(R.drawable.materialsymbols_ic_airline_seat_recline_normal_outlined), COFFEE(R.drawable.materialsymbols_ic_local_cafe_outlined),
GROCERIES2(R.drawable.materialsymbols_ic_grocery_outlined), GENERAL(R.drawable.materialsymbols_ic_shoppingmode_outlined),
GROCERIES3(R.drawable.materialsymbols_ic_grocery_outlined), ENTERTAINMENT(R.drawable.materialsymbols_ic_theaters_outlined),
GROCERIES4(R.drawable.materialsymbols_ic_grocery_outlined), LAUNDRY(R.drawable.materialsymbols_ic_local_laundry_service_outlined)
GROCERIES5(R.drawable.materialsymbols_ic_grocery_outlined),
GROCERIES6(R.drawable.materialsymbols_ic_grocery_outlined),
GROCERIES7(R.drawable.materialsymbols_ic_grocery_outlined)
} }