This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import androidx.compose.animation.core.animateFloatAsState | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.clickable | |
| import androidx.compose.foundation.layout.Box | |
| import androidx.compose.foundation.layout.IntrinsicSize | |
| import androidx.compose.foundation.layout.fillMaxHeight | |
| import androidx.compose.foundation.layout.height | |
| import androidx.compose.foundation.layout.padding | |
| import androidx.compose.foundation.shape.CircleShape | |
| import androidx.compose.material3.MaterialTheme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Composable | |
| actual fun MapView( | |
| modifier: Modifier, | |
| contentPadding: PaddingValues, | |
| userLocation: LatLong?, | |
| resultLocations: List<Stay.Minimal>, | |
| useTotalPrice: Boolean, | |
| onMarkerSelectionChange: (String?) -> Unit, | |
| onMapMoved: () -> Unit, | |
| ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Suppress("EnumEntryName") | |
| @Serializable | |
| enum class Currency( | |
| val code: String, | |
| val symbol: String, | |
| ) { | |
| Australian_dollar("AUD", "$"), | |
| Brazilian_real("BRL", "R$"), | |
| Bulgarian_lev("BGN", "лв."), | |
| Canadian_dollar("CAD", "$"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Singleton | |
| class AnchorTip @Inject constructor( | |
| eventEngine: EventEngine, | |
| tipEngine: TipsEngine | |
| ) : Tip(eventEngine, tipEngine) { | |
| init { | |
| flowPosition = 0 | |
| flowId = "onboarding-flow" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ext { | |
| compose_version = '1.0.5' | |
| accompanist_version = "0.20.2" | |
| } | |
| android { | |
| buildFeatures { | |
| compose true | |
| } | |
| composeOptions { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface WorkListener { | |
| fun onConditionNotMet() | |
| fun onStart() | |
| fun onSuccess(data: Data) | |
| fun onError(data: Data) | |
| } | |
| class WorkEnqueuer(val context: Context) { | |
| private var listener: WorkListener? = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val View.windowInsetsCompat: WindowInsetsCompat? | |
| get() { | |
| val rootInsets = rootWindowInsets ?: return null | |
| return WindowInsetsCompat.toWindowInsetsCompat(rootInsets) | |
| } | |
| val View.isKeyboardVisible: Boolean | |
| get() = windowInsetsCompat?.isVisible(WindowInsetsCompat.Type.ime()) ?: false | |
| fun View.hideKeyboard() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import androidx.compose.material.LocalTextStyle | |
| import androidx.compose.material.Text | |
| import androidx.compose.runtime.* | |
| import androidx.compose.ui.Modifier | |
| import androidx.compose.ui.draw.drawWithContent | |
| import androidx.compose.ui.graphics.Color | |
| import androidx.compose.ui.text.AnnotatedString | |
| import androidx.compose.ui.text.TextStyle | |
| import androidx.compose.ui.text.font.FontFamily | |
| import androidx.compose.ui.text.font.FontStyle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @OptIn(ExperimentalFoundationApi::class) | |
| @Composable | |
| internal fun AndroidIgGrid( | |
| viewState: InstagramGridViewState, | |
| isRefreshing: Boolean, | |
| items: PagingData<GridMediaItem>, | |
| selectedItems: List<GridMediaItem>, | |
| onRefresh: () -> Unit, | |
| onItemSelected: (GridMediaItem) -> Unit, | |
| onItemUnSelected: (GridMediaItem) -> Unit, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def execDownloadSigningInfo(ProductFlavor flavor) { | |
| task z { | |
| download { | |
| src "$url" | |
| dest { | |
| return rootProject.file("../file") | |
| } | |
| onlyIfNewer true | |
| } |