Dataset Viewer
Auto-converted to Parquet Duplicate
instruction
stringlengths
113
251
input
stringlengths
98
353
output
stringlengths
135
454k
text
stringlengths
443
454k
Implement the Android ViewModel `CardsDeleteViewModelTest` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: ui/src/test/java/ru/tinkoff/acquiring/sdk/redesign/cards/list/CardsDeleteViewModelTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package ru.tinkoff.acquiring.sdk.redesign.cards.list import androidx.lifecycle.SavedStateHandle import app.cash.turbine.test import common.MutableCollector import common.assertByClassName import kotlinx.coroutines.* import kotlinx.coroutines.flow.MutableStateFlow import org.junit.Test import org.mockito.kotl...
<|turn>user Implement the Android ViewModel `CardsDeleteViewModelTest` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: ui/src/test/java/ru/tinkoff/acquiring/sdk/redesign/cards/list/Ca...
Implement the native Android class `UrlPopupMenu` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: androidApp/src/main/java/press/editor/UrlPopupMenu.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package press.editor import android.content.Context import android.graphics.Point import android.text.style.URLSpan import android.view.View import androidx.appcompat.view.menu.MenuPopupHelper import androidx.appcompat.widget.PopupMenu import me.saket.press.shared.localization.strings import press.extensions...
<|turn>user Implement the native Android class `UrlPopupMenu` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: androidApp/src/main/java/press/editor/UrlPopupMenu.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutine...
Implement the native Android class `GraphicsLayerScopeTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose/ui/ui/src/test/kotlin/androidx/compose/ui/graphics/GraphicsLayerScopeTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * 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 ...
<|turn>user Implement the native Android class `GraphicsLayerScopeTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: compose/ui/ui/src/test/kotlin/androidx/compose/ui/graphics/GraphicsLayerScopeTest.kt Language: Kotlin Framework: Andr...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ToDoItemCardClicked`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/umang/reminderapp/ui/components/ToDoItemCards/ToDoItemCardClicked.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.umang.reminderapp.ui.components.ToDoItemCards import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spac...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ToDoItemCardClicked`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/umang/reminderapp/ui/components/ToDoItemCards/ToDoItemCardClic...
Implement the native Android class `RecipeApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/jetpackcomposesample/presentation/RecipeApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.jetpackcomposesample.presentation import android.app.Application import dagger.hilt.android.HiltAndroidApp @HiltAndroidApp class RecipeApplication : Application() { } ```
<|turn>user Implement the native Android class `RecipeApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/jetpackcomposesample/presentation/RecipeApplication.kt Language: Kotlin Framework: AndroidX ...
Implement the native Android class `Code128Type` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: qrose-oned/src/commonMain/kotlin/io/github/alexzhirkevich/qrose/oned/Code128Painter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.alexzhirkevich.qrose.oned import androidx.compose.runtime.Composable import androidx.compose.runtime.Stable import androidx.compose.runtime.getValue import androidx.compose.runtime.remember import androidx.compose.runtime.rememberUpdatedState import androidx.compose.ui.graphics.Brush import...
<|turn>user Implement the native Android class `Code128Type` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: qrose-oned/src/commonMain/kotlin/io/github/alexzhirkevich/qrose/oned/Code128Painter.kt Language: Kotlin Framework: AndroidX / Je...
Implement the native Android class `ItemRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/data/repository/ItemRepository.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package data.repository import android.app.Application import data.local_db.ItemDao import data.local_db.ItemDataBase import data.model.Item import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext class ItemRepository(application: Application) { private val itemDao: ItemDao? = ItemD...
<|turn>user Implement the native Android class `ItemRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/data/repository/ItemRepository.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutine...
Implement the Android ViewModel `UserProfileViewModelTest` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: android/engine/src/test/java/org/smartregister/fhircore/engine/ui/userprofile/UserProfileViewModelTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2021 Ona Systems, Inc * * 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 ...
<|turn>user Implement the Android ViewModel `UserProfileViewModelTest` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: android/engine/src/test/java/org/smartregister/fhircore/engine/u...
Implement the native Android class `DiffCallback` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/teaphy/diffutildemo/callback/DiffCallback.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.teaphy.diffutildemo.callback import android.os.Bundle import android.support.v7.util.DiffUtil import com.teaphy.diffutildemo.bean.DiffBean import com.teaphy.diffutildemo.global.KEY_DESC /** * @desc * @author Tiany * @date 2018/4/2 0002 */ class DiffCallback(private val oldList: List<DiffBe...
<|turn>user Implement the native Android class `DiffCallback` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/teaphy/diffutildemo/callback/DiffCallback.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/lemonade/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2021 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 requi...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/lemonade/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutin...
Implement the native Android class `SimpleMapActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: maplibre/app/src/main/java/danbroid/util/demo/SimpleMapActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package danbroid.util.demo import android.os.Bundle import android.view.MenuItem import androidx.appcompat.app.AppCompatActivity import com.mapbox.mapboxsdk.camera.CameraPosition import com.mapbox.mapboxsdk.geometry.LatLng import com.mapbox.mapboxsdk.maps.MapView import com.mapbox.mapboxsdk.maps.MapboxMap im...
<|turn>user Implement the native Android class `SimpleMapActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: maplibre/app/src/main/java/danbroid/util/demo/SimpleMapActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose ...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MainScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/dev/tcode/thinmp/view/screen/MainScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dev.tcode.thinmp.view.screen import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.gestures.detectTapGestures import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.com...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MainScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/dev/tcode/thinmp/view/screen/MainScreen.kt Language: Kotlin Framework: Andr...
Provide the native Android implementation for `ChatsSelect.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: core-ui/src/main/kotlin/com/laomuji666/compose/core/ui/we/icons/ChatsSelect.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.laomuji666.compose.core.ui.we.icons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.graphics.vector.path import androidx.comp...
<|turn>user Provide the native Android implementation for `ChatsSelect.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: core-ui/src/main/kotlin/com/laomuji666/compose/core/ui/we/icons/ChatsSelect.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tur...
Implement the native Android class `OrderSizeQtyDetailsDelAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/kcteam/features/viewAllOrder/presentation/OrderSizeQtyDetailsDelAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.breezefieldsalesgypmart.features.viewAllOrder.presentation import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.breezefieldsalesgypmart.R import com.breezefieldsalesgypm...
<|turn>user Implement the native Android class `OrderSizeQtyDetailsDelAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/kcteam/features/viewAllOrder/presentation/OrderSizeQtyDetailsDelAdapter.kt Language: Kot...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `SettingsRoute` using Kotlinx Serialization.
Repository path: common/all/src/commonMain/kotlin/com/tunjid/me/common/ui/settings/SettingsRoute.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2021 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `SettingsRoute` using Kotlinx Serialization. Context: Repository path: common/all/src/commonMain/kotlin/com/tunjid/me/common/ui/settings/SettingsRoute.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `ApplicationComponent` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/app/tivi/inject/ApplicationComponent.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2023 Google LLC * * 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 a...
<|turn>user Implement the native Android class `ApplicationComponent` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/app/tivi/inject/ApplicationComponent.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `AchievementAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/kcteam/features/report/presentation/AchievementAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.prakashspicesfsm.features.report.presentation import android.content.Context import androidx.core.content.ContextCompat import androidx.recyclerview.widget.RecyclerView import android.text.TextUtils import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import c...
<|turn>user Implement the native Android class `AchievementAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/kcteam/features/report/presentation/AchievementAdapter.kt Language: Kotlin Framework: AndroidX / Je...
Implement the native Android class `AddDrawingDialogFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/dialog/AddDrawingDialogFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dialog import ViewModel.DrawingViewModel import android.app.Activity.RESULT_OK import android.app.AlertDialog import android.app.Dialog import android.content.Intent import android.net.Uri import android.os.Bundle import android.widget.Button import android.widget.ImageView import android.widget.Toas...
<|turn>user Implement the native Android class `AddDrawingDialogFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/dialog/AddDrawingDialogFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotli...
Provide the native Android implementation for `TabKeyboardDownModifier.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/zero/friends/gostopcalculator/util/TabKeyboardDownModifier.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package zero.friends.gostopcalculator.util import androidx.compose.foundation.gestures.detectTapGestures import androidx.compose.runtime.Composable import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.ui.Modifier import androidx.compose.ui.input.pointer.pointerInput import androidx.com...
<|turn>user Provide the native Android implementation for `TabKeyboardDownModifier.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/zero/friends/gostopcalculator/util/TabKeyboardDownModifier.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin C...
Implement the Android ViewModel `ExpensesViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: app/src/main/java/dev/farouk/depensy/ui/expenses/ExpensesViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package dev.farouk.depensy.ui.expenses import androidx.lifecycle.LiveData import androidx.lifecycle.ViewModel import dev.farouk.depensy.data.models.Expense import dev.farouk.depensy.data.repository.ExpensesRepository /** * The viewModel for [ExpensesFragment] */ class ExpensesViewModel internal constructo...
<|turn>user Implement the Android ViewModel `ExpensesViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: app/src/main/java/dev/farouk/depensy/ui/expenses/ExpensesViewModel.kt L...
Implement the native Android class `LatteTemplateRecyclerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: lattekit-core/src/main/java/io/lattekit/view/LatteTemplateRecyclerAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.lattekit.view import android.support.v7.widget.RecyclerView import android.view.View import android.view.ViewGroup import android.widget.FrameLayout import java.lang.reflect.ParameterizedType /** * Created by maan on 3/25/16. */ class LatteTemplateRecyclerAdapter(parentView : LatteView) : Recyc...
<|turn>user Implement the native Android class `LatteTemplateRecyclerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: lattekit-core/src/main/java/io/lattekit/view/LatteTemplateRecyclerAdapter.kt Language: Kotlin Framework: Androi...
Provide the native Android implementation for `MenuItems.jvm.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: compose/desktop/desktop/samples/src/jvmMain/kotlin/androidx/compose/desktop/examples/popupexample/MenuItems.jvm.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * 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 ...
<|turn>user Provide the native Android implementation for `MenuItems.jvm.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: compose/desktop/desktop/samples/src/jvmMain/kotlin/androidx/compose/desktop/examples/popupexample/MenuItems.jvm.kt Language: Kotlin Framework: AndroidX / J...
Design a reactive Android Room DAO interface `CollectionDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Repository path: app/src/main/java/com/amitranofinzi/vimata/data/dao/CollectionDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.amitranofinzi.vimata.data.dao import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import androidx.room.Update import com.amitranofinzi.vimata.data.model.Collection @Dao interface CollectionDao { /** * Retrieves a list ...
<|turn>user Design a reactive Android Room DAO interface `CollectionDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. Context: Repository path: app/src/main/java/com/amitranofinzi/vimata/data/dao/CollectionDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose...
Implement the native Android class `LocationManager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: library/src/main/java/com/androidbolts/library/LocationManager.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.androidbolts.library import android.app.Activity import android.content.Context import android.util.Log import androidx.fragment.app.Fragment import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleObserver import androidx.lifecycle.OnLifecycleEvent import com.androidbolts.library....
<|turn>user Implement the native Android class `LocationManager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: library/src/main/java/com/androidbolts/library/LocationManager.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / K...
Provide the native Android implementation for `ViewHelper.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: expandablehinttext/src/main/java/com/tomlonghurst/expandablehinttext/ViewHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ahmedessamedeen.prettyedittext import android.content.Context internal object ViewHelper { internal fun getDp(context: Context, int: Int): Int { val scale = context.resources.displayMetrics.density return (int * scale + 0.5f).toInt() } } ```
<|turn>user Provide the native Android implementation for `ViewHelper.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: expandablehinttext/src/main/java/com/tomlonghurst/expandablehinttext/ViewHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<...
Design a reactive Android Room DAO interface `WalletDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Repository path: app/src/main/java/io/wookey/wallet/data/dao/WalletDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.wookey.wallet.data.dao import android.arch.lifecycle.LiveData import android.arch.persistence.room.* import io.wookey.wallet.data.entity.Wallet @Dao interface WalletDao { /** * Insert a wallet in the database. If the wallet already exists, ignore it. * * @param wallet the wall...
<|turn>user Design a reactive Android Room DAO interface `WalletDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. Context: Repository path: app/src/main/java/io/wookey/wallet/data/dao/WalletDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corout...
Provide the native Android implementation for `DiagramUp.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: solar/src/main/java/com/chiksmedina/solar/lineduotone/businessstatistic/DiagramUp.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.chiksmedina.solar.lineduotone.businessstatistic import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Round import androidx.compose.ui.grap...
<|turn>user Provide the native Android implementation for `DiagramUp.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: solar/src/main/java/com/chiksmedina/solar/lineduotone/businessstatistic/DiagramUp.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
27