From 8aaf71e78b746bb3916e1e040abc1c0c2a1f6edd Mon Sep 17 00:00:00 2001 From: Alessandro Carnevale Date: Wed, 13 Nov 2024 19:03:18 +0100 Subject: [PATCH 1/3] add a new Soda.brand field --- .../com/alecarnevale/diplomatico/demo/core/entities/Soda.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/demo/core-entities/src/main/kotlin/com/alecarnevale/diplomatico/demo/core/entities/Soda.kt b/demo/core-entities/src/main/kotlin/com/alecarnevale/diplomatico/demo/core/entities/Soda.kt index f2b68cb..c391f52 100644 --- a/demo/core-entities/src/main/kotlin/com/alecarnevale/diplomatico/demo/core/entities/Soda.kt +++ b/demo/core-entities/src/main/kotlin/com/alecarnevale/diplomatico/demo/core/entities/Soda.kt @@ -2,4 +2,5 @@ package com.alecarnevale.diplomatico.demo.core.entities data class Soda( val name: String, + val brand: String, ) From f488048bed877382ad17a1623bdaf0f6e84019c1 Mon Sep 17 00:00:00 2001 From: Alessandro Carnevale Date: Wed, 4 Sep 2024 22:12:49 +0200 Subject: [PATCH 2/3] bump BeverageDatabase's version --- .../diplomatico/demo/contributes/beverage/BeverageDatabase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/contributes/src/main/java/com/alecarnevale/diplomatico/demo/contributes/beverage/BeverageDatabase.kt b/demo/contributes/src/main/java/com/alecarnevale/diplomatico/demo/contributes/beverage/BeverageDatabase.kt index 4ad18d4..7d0c40f 100644 --- a/demo/contributes/src/main/java/com/alecarnevale/diplomatico/demo/contributes/beverage/BeverageDatabase.kt +++ b/demo/contributes/src/main/java/com/alecarnevale/diplomatico/demo/contributes/beverage/BeverageDatabase.kt @@ -14,7 +14,7 @@ import com.alecarnevale.diplomatico.demo.core.entities.Soda entities = [ BeverageEntity::class, // this is a showcase to make a plain class as part of the hashing function through ContributesRoomDBVersion annotation ], - version = 1, + version = 2, ) internal abstract class BeverageDatabase : RoomDatabase() { abstract fun beverageEntityDao(): BeverageEntityDao From f108fb5fcddd8030b30892f28c84005c105d6b21 Mon Sep 17 00:00:00 2001 From: Alessandro Carnevale Date: Wed, 13 Nov 2024 19:06:04 +0100 Subject: [PATCH 3/3] ./gradlew :demo:contributes:updateRoomVersionsDebug --- demo/contributes/src/main/assets/diplomatico/report.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/contributes/src/main/assets/diplomatico/report.csv b/demo/contributes/src/main/assets/diplomatico/report.csv index f544bb0..3be793f 100644 --- a/demo/contributes/src/main/assets/diplomatico/report.csv +++ b/demo/contributes/src/main/assets/diplomatico/report.csv @@ -1 +1 @@ -com.alecarnevale.diplomatico.demo.contributes.beverage.BeverageDatabase,wo84fdd//9o+agW/NcBPxt2cIUwn6RIzM0r7pQDD+Po= +com.alecarnevale.diplomatico.demo.contributes.beverage.BeverageDatabase,PnTDl4eOh3Sf8tQbM4ZPLGcLU6Zjtc1chSP8DIA8Ep0=