Skip to content

Instantly share code, notes, and snippets.

View JakeSteam's full-sized avatar
🤖

Jake Lee JakeSteam

🤖
View GitHub Profile
@JakeSteam
JakeSteam / MyFragment.kt
Last active January 9, 2025 11:28
Remotely configurable in-app Play Store review prompt in Kotlin
class MyFragment {
val navToBookings: () -> Unit = {
findNavController().navigate(MyFragmentDirections.toBookings())
}
fun eventHandler(event: TicketConfirmationEvents) {
when (event) {
is TicketConfirmationEvents.OnLookAtMyTicket -> {
viewModel.onLookAtMyTicket(navToBookings)
@JakeSteam
JakeSteam / Icons.kt
Last active December 23, 2024 21:32
compose-material-dialogs forwardport for Compose 1.7.1+
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software