Skip to content

Commit 9607e4e

Browse files
committed
Mark stable classes for Compose
```diff diff --color=auto -r before/shared/shared_release-classes.txt after/shared/shared_release-classes.txt 47c47 < unstable val client: HttpClient --- > stable val client: HttpClient 55c55 < unstable val scope: CoroutineScope --- > stable val scope: CoroutineScope 82c82 < unstable val scope: CoroutineScope --- > stable val scope: CoroutineScope 86,90c86,90 < unstable class TagValues { < unstable val categories: List<String> < unstable val levels: List<String> < unstable val formats: List<String> < <runtime stability> = Unstable --- > stable class TagValues { > stable val categories: List<String> > stable val levels: List<String> > stable val formats: List<String> > <runtime stability> = 123,126c123,126 < unstable class Conference { < unstable val sessions: List<Session> < unstable val speakers: List<Speaker> < <runtime stability> = Unstable --- > stable class Conference { > stable val sessions: List<Session> > stable val speakers: List<Speaker> > <runtime stability> = 132,134c132,134 < unstable class Votes { < unstable val votes: List<VoteInfo> < <runtime stability> = Unstable --- > stable class Votes { > stable val votes: List<VoteInfo> > <runtime stability> = 152c152 < unstable class Session { --- > stable class Session { 156c156 < unstable val speakerIds: List<SpeakerId> --- > stable val speakerIds: List<SpeakerId> 158,160c158,160 < unstable val startsAt: LocalDateTime < unstable val endsAt: LocalDateTime < unstable val tags: List<String>? --- > stable val startsAt: LocalDateTime > stable val endsAt: LocalDateTime > stable val tags: List<String>? 162c162 < <runtime stability> = Unstable --- > <runtime stability> = 198c198 < unstable class NewsItem { --- > stable class NewsItem { 202c202 < unstable val publicationDate: LocalDateTime --- > stable val publicationDate: LocalDateTime 204c204 < <runtime stability> = Unstable --- > <runtime stability> = Stable 210c210 < unstable class NewsRequest { --- > stable class NewsRequest { 212c212 < unstable val publicationDate: LocalDateTime --- > stable val publicationDate: LocalDateTime 215c215 < <runtime stability> = Unstable --- > <runtime stability> = Stable 221,223c221,223 < unstable class NewsListResponse { < unstable val items: List<NewsItem> < <runtime stability> = Unstable --- > stable class NewsListResponse { > stable val items: List<NewsItem> > <runtime stability> = 244c244 < unstable class SessionCardView { --- > stable class SessionCardView { 249,250c249,250 < unstable val startsAt: LocalDateTime < unstable val endsAt: LocalDateTime --- > stable val startsAt: LocalDateTime > stable val endsAt: LocalDateTime 252c252 < unstable val speakerIds: List<SpeakerId> --- > stable val speakerIds: List<SpeakerId> 256c256 < unstable val tags: Set<String> --- > stable val tags: Set<String> 262c262 < <runtime stability> = Unstable --- > <runtime stability> = 293,296c293,296 < unstable class Day { < unstable val date: LocalDate < unstable val timeSlots: List<TimeSlot> < <runtime stability> = Unstable --- > stable class Day { > stable val date: LocalDate > stable val timeSlots: List<TimeSlot> > <runtime stability> = 298,300c298,300 < unstable class TimeSlot { < unstable val startsAt: LocalDateTime < unstable val endsAt: LocalDateTime --- > stable class TimeSlot { > stable val startsAt: LocalDateTime > stable val endsAt: LocalDateTime 302c302 < unstable val sessions: List<SessionCardView> --- > stable val sessions: List<SessionCardView> 304c304 < <runtime stability> = Unstable --- > <runtime stability> = 427,429c427,429 < unstable class AboutConferenceEvent { < unstable val sessionCard: SessionCardView? < unstable val speakers: List<Speaker>? --- > stable class AboutConferenceEvent { > stable val sessionCard: SessionCardView? > stable val speakers: List<Speaker>? 435c435 < <runtime stability> = Unstable --- > <runtime stability> = 485,487c485,487 < unstable class DayHeaderItem { < unstable val value: Day < <runtime stability> = Unstable --- > stable class DayHeaderItem { > stable val value: Day > <runtime stability> = 489,491c489,491 < unstable class TimeSlotTitleItem { < unstable val value: TimeSlot < <runtime stability> = Unstable --- > stable class TimeSlotTitleItem { > stable val value: TimeSlot > <runtime stability> = 498,499c498,499 < unstable val value: SessionCardView < unstable val tagMatches: List<String> --- > stable val value: SessionCardView > stable val tagMatches: List<String> 504,506c504,506 < unstable class ServiceEventItem { < unstable val value: SessionCardView < <runtime stability> = Unstable --- > stable class ServiceEventItem { > stable val value: SessionCardView > <runtime stability> = 508,510c508,510 < unstable class ServiceEventGroupItem { < unstable val value: List<SessionCardView> < <runtime stability> = Unstable --- > stable class ServiceEventGroupItem { > stable val value: List<SessionCardView> > <runtime stability> = 512,514c512,514 < unstable class WorkshopItem { < unstable val workshops: List<SessionCardView> < <runtime stability> = Unstable --- > stable class WorkshopItem { > stable val workshops: List<SessionCardView> > <runtime stability> = 528,530c528,530 < unstable class Content { < unstable val days: List<Day> < unstable val items: List<ScheduleListItem> --- > stable class Content { > stable val days: List<Day> > runtime val items: List<ScheduleListItem> 534c534 < <runtime stability> = Unstable --- > <runtime stability> = 617c617 < unstable class DebugLogger { --- > stable class DebugLogger { 619,620c619,620 < unstable val logs: MutableList<String> < <runtime stability> = Unstable --- > stable val logs: MutableList<String> > <runtime stability> = diff --color=auto -r before/shared/shared_release-composables.txt after/shared/shared_release-composables.txt 87c87 < unstable speakers: List<Speaker> --- > stable speakers: List<Speaker> 247c247 < unstable scheduleItems: List<ScheduleListItem> --- > scheduleItems: List<ScheduleListItem> 256c256 < unstable filterItems: List<FilterItem>? = @static emptyList() --- > filterItems: List<FilterItem>? = @static emptyList() 267c267 < unstable session: SessionCardView --- > stable session: SessionCardView 277c277 < unstable tagHighlights: List<String>? = @static emptyList() --- > stable tagHighlights: List<String>? = @static emptyList() diff --color=auto -r before/ui-components/ui-components_release-composables.txt after/ui-components/ui-components_release-composables.txt 83c83 < unstable tags: List<FilterItem> --- > stable tags: List<FilterItem> 89c89 < unstable items: List<FilterItem> --- > stable items: List<FilterItem> 218c218 < unstable tags: Set<String> --- > stable tags: Set<String> 256c256 < unstable events: List<ServiceEventData> --- > stable events: List<ServiceEventData> 297c297 < unstable inlineContent: Map<String, InlineTextContent>? = @static mapOf() --- > stable inlineContent: Map<String, InlineTextContent>? = @static mapOf() 307c307 < unstable items: List<String> --- > stable items: List<String> 322,323c322,323 < unstable tags: Set<String> < unstable tagHighlights: List<String> --- > stable tags: Set<String> > stable tagHighlights: List<String> 346,347c346,347 < unstable tags: Set<String> < unstable selectedTags: List<String> --- > stable tags: Set<String> > stable selectedTags: List<String> 354c354 < unstable tags: Set<String> --- > stable tags: Set<String> ```
1 parent 21dc6d5 commit 9607e4e

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

compose-stability.conf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Consider kotlin collections stable
2+
kotlin.collections.*
3+
4+
// Consider kotlinx.datetime models stable
5+
kotlinx.datetime.DayOfWeek
6+
kotlinx.datetime.Instant
7+
kotlinx.datetime.LocalDate
8+
kotlinx.datetime.LocalDateTime
9+
kotlinx.datetime.LocalTime
10+
kotlinx.datetime.TimeZone
11+
kotlin.time.Duration
12+
13+
kotlinx.coroutines.CoroutineScope
14+
15+
coil3.compose.AsyncImagePainter.State

shared/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,13 @@ val buildWebApp by tasks.creating(Copy::class) {
203203
duplicatesStrategy = DuplicatesStrategy.INCLUDE
204204
}
205205

206-
// Hot reload support
207206
composeCompiler {
207+
// Hot reload support
208208
featureFlags.add(ComposeFeatureFlag.OptimizeNonSkippingGroups)
209+
reportsDestination = layout.buildDirectory.dir("compose_build_reports")
210+
stabilityConfigurationFiles.addAll(
211+
rootProject.layout.projectDirectory.file("compose-stability.conf"),
212+
)
209213
}
210214

211215
aboutLibraries {

ui-components-gallery/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ dependencies {
8282
debugImplementation(compose.uiTooling)
8383
}
8484

85-
// Hot reload support
8685
composeCompiler {
86+
// Hot reload support
8787
featureFlags.add(ComposeFeatureFlag.OptimizeNonSkippingGroups)
88+
reportsDestination = layout.buildDirectory.dir("compose_build_reports")
89+
stabilityConfigurationFiles.addAll(
90+
rootProject.layout.projectDirectory.file("compose-stability.conf"),
91+
)
8892
}

ui-components/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ android {
9090
// Hot reload support
9191
composeCompiler {
9292
featureFlags.add(ComposeFeatureFlag.OptimizeNonSkippingGroups)
93+
reportsDestination = layout.buildDirectory.dir("compose_build_reports")
94+
stabilityConfigurationFiles.addAll(
95+
rootProject.layout.projectDirectory.file("compose-stability.conf"),
96+
)
9397
}
9498

9599
compose.resources {

0 commit comments

Comments
 (0)