Skip to content

Instantly share code, notes, and snippets.

@bentrengrove
Created June 26, 2022 23:56
Show Gist options
  • Save bentrengrove/9b823045a160d8a5d986bb4b31106245 to your computer and use it in GitHub Desktop.
Save bentrengrove/9b823045a160d8a5d986bb4b31106245 to your computer and use it in GitHub Desktop.
stable class Filter {
stable val name: String
stable val icon: ImageVector?
stable val enabled: MutableState<Boolean>
}
stable class SearchRepo {
<runtime stability> = Stable
}
stable class SearchCategoryCollection {
stable val id: Long
stable val name: String
unstable val categories: List<SearchCategory>
}
stable class SearchCategory {
stable val name: String
stable val imageUrl: String
}
stable class SearchSuggestionGroup {
stable val id: Long
stable val name: String
unstable val suggestions: List<String>
}
stable class Snack {
stable val id: Long
stable val name: String
stable val imageUrl: String
stable val price: Long
stable val tagline: String
stable val tags: ImmutableSet<String>
<runtime stability> =
}
stable class SnackCollection {
stable val id: Long
stable val name: String
unstable val snacks: List<Snack>
stable val type: CollectionType
}
stable class SnackRepo {
<runtime stability> = Stable
}
stable class OrderLine {
stable val snack: Snack
stable val count: Int
}
stable class Message {
stable val id: Long
stable val messageId: Int
<runtime stability> = Stable
}
unstable class SnackbarManager {
unstable val _messages: MutableStateFlow<List<Message>>
<runtime stability> = Unstable
}
stable class MainDestinations {
stable val HOME_ROUTE: String
stable val SNACK_DETAIL_ROUTE: String
stable val SNACK_ID_KEY: String
<runtime stability> = Stable
}
stable class JetsnackAppState {
stable val scaffoldState: ScaffoldState
unstable val navController: NavHostController
unstable val snackbarManager: SnackbarManager
unstable val resources: Resources
unstable val bottomBarTabs: Array<HomeSections>
unstable val bottomBarRoutes: List<String>
}
stable class MainActivity {
<runtime stability> = Stable
}
unstable class CartViewModel {
unstable val snackbarManager: SnackbarManager
unstable val _orderLines: MutableStateFlow<List<OrderLine>>
stable var requestCount: Int
<runtime stability> = Unstable
}
stable class SearchState {
stable var query$delegate: MutableState<TextFieldValue>
stable var focused$delegate: MutableState<Boolean>
stable var searching$delegate: MutableState<Boolean>
stable var categories$delegate: MutableState<List<SearchCategoryCollection>>
stable var suggestions$delegate: MutableState<List<SearchSuggestionGroup>>
stable var filters$delegate: MutableState<List<Filter>>
stable var searchResults$delegate: MutableState<List<Snack>>
}
stable class JetsnackTheme {
<runtime stability> = Stable
}
stable class JetsnackColors {
stable var gradient6_1$delegate: MutableState<List<Color>>
stable var gradient6_2$delegate: MutableState<List<Color>>
stable var gradient3_1$delegate: MutableState<List<Color>>
stable var gradient3_2$delegate: MutableState<List<Color>>
stable var gradient2_1$delegate: MutableState<List<Color>>
stable var gradient2_2$delegate: MutableState<List<Color>>
stable var gradient2_3$delegate: MutableState<List<Color>>
stable var brand$delegate: MutableState<Color>
stable var brandSecondary$delegate: MutableState<Color>
stable var uiBackground$delegate: MutableState<Color>
stable var uiBorder$delegate: MutableState<Color>
stable var uiFloated$delegate: MutableState<Color>
stable var interactivePrimary$delegate: MutableState<List<Color>>
stable var interactiveSecondary$delegate: MutableState<List<Color>>
stable var interactiveMask$delegate: MutableState<List<Color>>
stable var textPrimary$delegate: MutableState<Color>
stable var textSecondary$delegate: MutableState<Color>
stable var textHelp$delegate: MutableState<Color>
stable var textInteractive$delegate: MutableState<Color>
stable var tornado1$delegate: MutableState<List<Color>>
stable var textLink$delegate: MutableState<Color>
stable var iconPrimary$delegate: MutableState<Color>
stable var iconSecondary$delegate: MutableState<Color>
stable var iconInteractive$delegate: MutableState<Color>
stable var iconInteractiveInactive$delegate: MutableState<Color>
stable var error$delegate: MutableState<Color>
stable var notificationBadge$delegate: MutableState<Color>
stable var isDark$delegate: MutableState<Boolean>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment