Package-level declarations
Types
Functions
Link copied to clipboard
fun Changelog(releases: List<ChangelogReleaseItem>, setup: Changelog.Setup, modifier: Modifier, lazyListState: LazyListState = rememberLazyListState(), releaseContainer: @Composable (content: @Composable () -> Unit) -> Unit = { it() })
Displays the list of releases and their items. It uses the release renderer to display the release information and the item renderers to display the items.
fun Changelog(state: ChangelogState, setup: Changelog.Setup, modifier: Modifier, lazyListState: LazyListState = rememberLazyListState(), releaseContainer: @Composable (content: @Composable () -> Unit) -> Unit = {
OutlinedCard {
Column(
modifier = Modifier.padding(8.dp),
verticalArrangement = Arrangement.spacedBy(8.dp)
) {
it()
}
}
}, loading: @Composable () -> Unit = { LinearProgressIndicator() })
Main entry point for the changelog. It will read the changelog data and display it. You can customize the release container and the loading state.
Link copied to clipboard
returns the app version code
Link copied to clipboard
returns the app version name
returns the app version name (the packageVersion from the exe file metadata)
Link copied to clipboard
fun rememberChangelogData(state: ChangelogState, setup: Changelog.Setup, filter: (ChangelogReleaseItem) -> Boolean = { true }): MutableState<ChangelogData>
Reads the changelog data from the file and filters it based on the minimum visible release version. It returns a mutable state that contains the changelog data, which can be either loading or the actual data.
Link copied to clipboard
fun ChangelogDefaults.setup(context: Context, changelogResourceId: Int = R.raw.changelog, textFormatter: ChangelogTextFormatter = DefaultTextFormatter, versionFormatter: ChangelogVersionFormatter = DefaultVersionFormatter(), skipUnknownTags: Boolean = false, textMore: String = "More"): Changelog.Setup
fun ChangelogDefaults.setup(file: File = File("changelog.xml"), textFormatter: ChangelogTextFormatter = DefaultTextFormatter, versionFormatter: ChangelogVersionFormatter = DefaultVersionFormatter(), skipUnknownTags: Boolean = false, textMore: String = "More"): Changelog.Setup