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... |
Implement the native Android class `is` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/android/core/arch/utils/app/CommonUtils.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.android.core.arch.utils.app
import android.annotation.SuppressLint
import android.app.ProgressDialog
import android.content.Context
import android.content.res.AssetManager
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.provider.Settings
import android.... | <|turn>user
Implement the native Android class `is` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/android/core/arch/utils/app/CommonUtils.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutin... |
Provide the native Android implementation for `ExportController.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: features/times/src/main/java/com/metinkale/prayer/times/utils/ExportController.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) 2013-2023 Metin Kale
*
* 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
Provide the native Android implementation for `ExportController.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: features/times/src/main/java/com/metinkale/prayer/times/utils/ExportController.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Corout... |
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/dev/braian/goalbit/view/activities/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package dev.braian.goalbit.view.activities
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.fragment.app.Fragment
impo... | <|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/dev/braian/goalbit/view/activities/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / K... |
Design a reactive Android Room DAO interface `CaseDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. | Repository path: app/src/main/java/com/nora/covdecem/data/database/dao/CaseDao.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.nora.covdecem.data.database.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.nora.covdecem.data.database.entity.CaseEntity
@Dao
interface CaseDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
susp... | <|turn>user
Design a reactive Android Room DAO interface `CaseDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Context:
Repository path: app/src/main/java/com/nora/covdecem/data/database/dao/CaseDao.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin ... |
Implement the Android ViewModel `CoinSearchViewModel` 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/shorthouse/coinwatch/ui/screen/search/SearchViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package dev.shorthouse.coinwatch.ui.screen.search
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.runtime.snapshotFlow
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import d... | <|turn>user
Implement the Android ViewModel `CoinSearchViewModel` 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/shorthouse/coinwatch/ui/screen/search/SearchVie... |
Implement the native Android class `DrawPencil` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/my/app/canvas/DrawPencil.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.ferodev.simplepaint.canvas
import android.graphics.Color
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.util.AttributeSet
import android.view.MotionEvent
impo... | <|turn>user
Implement the native Android class `DrawPencil` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/my/app/canvas/DrawPencil.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<... |
Implement the native Android class `DrawPencil` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/my/app/canvas/DrawPencil.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.ferodev.simplepaint.canvas
import android.graphics.Color
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.util.AttributeSet
import android.view.MotionEvent
impo... | <|turn>user
Implement the native Android class `DrawPencil` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/my/app/canvas/DrawPencil.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<... |
Implement the native Android class `AlarmReceiver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: android-kotlin-notifications-start/app/src/main/java/com/example/android/eggtimernotifications/receiver/AlarmReceiver.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (C) 2019 Google 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 law... | <|turn>user
Implement the native Android class `AlarmReceiver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: android-kotlin-notifications-start/app/src/main/java/com/example/android/eggtimernotifications/receiver/AlarmReceiver.kt
Langu... |
Implement the native Android class `FlowState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: android-app/src/main/java/com/github/aivanovski/testswithme/android/presentation/screens/flow/model/FlowState.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.github.aivanovski.testswithme.android.presentation.screens.flow.model
import androidx.compose.runtime.Immutable
import com.github.aivanovski.testswithme.android.entity.ErrorMessage
import com.github.aivanovski.testswithme.android.presentation.core.cells.BaseCellViewModel
import com.github.aivanov... | <|turn>user
Implement the native Android class `FlowState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: android-app/src/main/java/com/github/aivanovski/testswithme/android/presentation/screens/flow/model/FlowState.kt
Language: Kotlin
... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FocusableDemo`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: ui/ui-core/integration-tests/ui-core-demos/src/main/java/androidx/ui/core/demos/focus/FocusableDemo.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2019 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
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FocusableDemo`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: ui/ui-core/integration-tests/ui-core-demos/src/main/java/androidx/ui/core/demos/focus/Focu... |
Implement the native Android class `Instant` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/pr0gramm/app/Instant.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.pr0gramm.app
import android.os.Parcel
import android.os.Parcelable
import com.pr0gramm.app.parcel.Freezable
import com.pr0gramm.app.parcel.Unfreezable
import com.pr0gramm.app.parcel.creator
import com.pr0gramm.app.util.logger
import org.slf4j.Logger
import java.text.SimpleDateFormat
import java.u... | <|turn>user
Implement the native Android class `Instant` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/pr0gramm/app/Instant.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|tu... |
Provide the native Android implementation for `mainApp.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: tasks-app-desktop/src/main/kotlin/mainApp.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) 2024 Olivier Patry
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, me... | <|turn>user
Provide the native Android implementation for `mainApp.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: tasks-app-desktop/src/main/kotlin/mainApp.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>model
```kotlin
/*
* Copyr... |
Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/demo/simple/checker/App.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package demo.simple.checker
import android.app.Application
import me.simple.checker.HeGuiChecker
class App : Application() {
override fun onCreate() {
super.onCreate()
// HeGuiChecker.SHOW_LOG = false
// HeGuiChecker.SHOW_TOAST = false
}
}
``` | <|turn>user
Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/demo/simple/checker/App.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>mo... |
Implement the native Android class `DisplayText` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: wear/wear-watchface-style/src/main/java/androidx/wear/watchface/style/UserStyleSetting.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 `DisplayText` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: wear/wear-watchface-style/src/main/java/androidx/wear/watchface/style/UserStyleSetting.kt
Language: Kotlin
Framework: AndroidX /... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FindListItem`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/java/com/matthew/carvalhodagenais/coinhuntingbuddy/ui/components/FindListItem.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.matthew.carvalhodagenais.coinhuntingbuddy.ui.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Text
import androi... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FindListItem`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/java/com/matthew/carvalhodagenais/coinhuntingbuddy/ui/components/FindListItem.... |
Implement the native Android class `DrawView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: library/src/main/java/com/herry/libs/draw/DrawView.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.herry.libs.draw
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View... | <|turn>user
Implement the native Android class `DrawView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: library/src/main/java/com/herry/libs/draw/DrawView.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tu... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `PermissionDialog`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/kotlin/com/softteco/template/ui/components/PermissionDialog.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.softteco.template.ui.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Text
import androidx.compose.runtime.Com... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `PermissionDialog`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/kotlin/com/softteco/template/ui/components/PermissionDialog.kt
Language: K... |
Implement the native Android class `ResultActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/example/meuprimeiroprojeto/ResultActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.meuprimeiroprojeto
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.MenuItem
import android.widget.TextView
class ResultActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstan... | <|turn>user
Implement the native Android class `ResultActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/example/meuprimeiroprojeto/ResultActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / K... |
Implement the native Android class `ConnectionTrackerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/celzero/bravedns/adapter/ConnectionTrackerAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
Copyright 2020 RethinkDNS and its authors
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 agreed to in... | <|turn>user
Implement the native Android class `ConnectionTrackerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/celzero/bravedns/adapter/ConnectionTrackerAdapter.kt
Language: Kotlin
Framework: AndroidX / J... |
Implement the native Android class `TrueFalseApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/capan/truefalse/TrueFalseApplication.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.capan.truefalse
import android.app.Application
import com.capan.truefalse.di.appModule
import com.capan.truefalse.di.firebaseModule
import com.capan.truefalse.di.questionModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.cont... | <|turn>user
Implement the native Android class `TrueFalseApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/capan/truefalse/TrueFalseApplication.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / ... |
Implement the native Android class `RecordRepositoryImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: core/data/src/main/java/org/expenny/core/data/repository/RecordRepositoryImpl.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package org.expenny.core.data.repository
import androidx.room.withTransaction
import kotlinx.coroutines.flow.*
import org.expenny.core.common.extensions.mapFlatten
import org.expenny.core.common.types.RecordType
import org.expenny.core.common.types.TransactionType
import org.expenny.core.data.mapper.DataMapp... | <|turn>user
Implement the native Android class `RecordRepositoryImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: core/data/src/main/java/org/expenny/core/data/repository/RecordRepositoryImpl.kt
Language: Kotlin
Framework: AndroidX /... |
Provide the native Android implementation for `Player.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/extension/Player.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) SRG SSR. All rights reserved.
* License information is available from the LICENSE file.
*/
package ch.srgssr.pillarbox.player.extension
import androidx.media3.common.MediaItem
import androidx.media3.common.Player
import androidx.media3.common.Timeline.Window
import androidx.media3.exopl... | <|turn>user
Provide the native Android implementation for `Player.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/extension/Player.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|... |
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/ozlem/superheroproject/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.ozlem.superheroproject
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
// MainActivity ve XML arasındaki senkronizasyonu sağlamak için:
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
// Bir d... | <|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/ozlem/superheroproject/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Co... |
Implement the native Android class `ToolbarComponent` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: features/bible/src/main/kotlin/app/ss/bible/ToolbarComponent.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) 2022. Adventech <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... | <|turn>user
Implement the native Android class `ToolbarComponent` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: features/bible/src/main/kotlin/app/ss/bible/ToolbarComponent.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Ko... |
Implement the native Android class `CardPresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: serenity-app/src/main/java/us/nineworlds/serenity/ui/leanback/search/CardPresenter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/**
* The MIT License (MIT)
* Copyright (c) 2012 <NAME>
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, ... | <|turn>user
Implement the native Android class `CardPresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: serenity-app/src/main/java/us/nineworlds/serenity/ui/leanback/search/CardPresenter.kt
Language: Kotlin
Framework: AndroidX / J... |
Implement the native Android class `BackupRestoreJob` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/BackupRestoreJob.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package eu.kanade.tachiyomi.data.backup.restore
import android.content.Context
import android.content.pm.ServiceInfo
import android.net.Uri
import android.os.Build
import androidx.core.net.toUri
import androidx.work.CoroutineWorker
import androidx.work.ExistingWorkPolicy
import androidx.work.ForegroundInfo
i... | <|turn>user
Implement the native Android class `BackupRestoreJob` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/BackupRestoreJob.kt
Language: Kotlin
Framework: AndroidX / Jetpac... |
Implement the native Android class `BackupRestoreJob` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/BackupRestoreJob.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package eu.kanade.tachiyomi.data.backup.restore
import android.content.Context
import android.content.pm.ServiceInfo
import android.net.Uri
import android.os.Build
import androidx.core.net.toUri
import androidx.work.CoroutineWorker
import androidx.work.ExistingWorkPolicy
import androidx.work.ForegroundInfo
i... | <|turn>user
Implement the native Android class `BackupRestoreJob` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/BackupRestoreJob.kt
Language: Kotlin
Framework: AndroidX / Jetpac... |
Implement the native Android class `ReviewFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/wuruoye/know/ui/home/ReviewFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.wuruoye.know.ui.home
import android.os.Bundle
import android.view.View
import com.wuruoye.know.R
import com.wuruoye.know.ui.home.contract.ReviewContract
import com.wuruoye.library.ui.WBaseFragment
/**
* Created : wuruoye
* Date : 2019/3/6 23:24.
* Description :
*/
class ReviewFragment : WBa... | <|turn>user
Implement the native Android class `ReviewFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/wuruoye/know/ui/home/ReviewFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin ... |
Provide the native Android implementation for `InputMethodUtils.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: wearapp/src/main/java/com/thewizrd/simpleweather/utils/InputMethodUtils.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.thewizrd.simpleweather.utils
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
fun View.showInputMethod() {
val imm =
this.context.getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager ?: return
imm.showSoft... | <|turn>user
Provide the native Android implementation for `InputMethodUtils.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: wearapp/src/main/java/com/thewizrd/simpleweather/utils/InputMethodUtils.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tu... |
Provide the native Android implementation for `InputMethodUtils.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: wearapp/src/main/java/com/thewizrd/simpleweather/utils/InputMethodUtils.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.thewizrd.simpleweather.utils
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
fun View.showInputMethod() {
val imm =
this.context.getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager ?: return
imm.showSoft... | <|turn>user
Provide the native Android implementation for `InputMethodUtils.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: wearapp/src/main/java/com/thewizrd/simpleweather/utils/InputMethodUtils.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tu... |
Implement the native Android class `UUIDUtilTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: room/room-runtime/src/test/java/androidx/room/util/UUIDUtilTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 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 required ... | <|turn>user
Implement the native Android class `UUIDUtilTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: room/room-runtime/src/test/java/androidx/room/util/UUIDUtilTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kot... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CameraScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/java/dev/alibagherifam/mentha/camera/CameraScreen.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package dev.alibagherifam.mentha.camera
import androidx.camera.view.PreviewView
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillM... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CameraScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/java/dev/alibagherifam/mentha/camera/CameraScreen.kt
Language: Kotlin
Framewor... |
Provide the native Android implementation for `Main.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: notion-console/src/jvmMain/kotlin/io/ashdavies/notion/Main.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package io.ashdavies.notion
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import com.jakewharton.mosaic.Text
import com.jakewharton.mosaic... | <|turn>user
Provide the native Android implementation for `Main.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: notion-console/src/jvmMain/kotlin/io/ashdavies/notion/Main.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>model
```kotl... |
Implement the native Android class `SentTransaction` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/models/SentTransaction.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package io.horizontalsystems.bitcoincore.models
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
@Entity
class SentTransaction() {
@PrimaryKey
var hash = byteArrayOf()
var firstSendTime: Long = System.currentTimeMillis()
var lastSendTime: Long = Sy... | <|turn>user
Implement the native Android class `SentTransaction` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/models/SentTransaction.kt
Language: Kotlin
Framework: AndroidX ... |
Implement the native Android class `TextActionModeCallback` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/actionmodecallback/TextActionModeCallback.android.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 `TextActionModeCallback` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/actionmodecallback/TextActionModeCallback.android.k... |
Implement the native Android class `PostRemoteDataSourceTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: data/src/test/java/com/jbkalit/data/source/PostRemoteDataSourceTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.jbkalit.data.source
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.jbkalit.data.scheduler.BaseSchedulerProvider
import com.jbkalit.data.scheduler.SchedulerProvider
import com.jbkalit.data.service.PostService
import com.jbkalit.data.source.post.remote.PostRemoteDataS... | <|turn>user
Implement the native Android class `PostRemoteDataSourceTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: data/src/test/java/com/jbkalit/data/source/PostRemoteDataSourceTest.kt
Language: Kotlin
Framework: AndroidX / Jetpa... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ProductScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: ProductsList/app/src/main/java/br/com/productslist/presentation/products/ProductScreen.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package br.com.productslist.presentation.products
import androidx.compose.foundation.layout.Column
import androidx.compose.material.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ProductScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: ProductsList/app/src/main/java/br/com/productslist/presentation/products/ProductScreen.kt
... |
Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/oceanknight/wanandroid/base/App.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.oceanknight.wanandroid.base
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class App: Application() {
}
``` | <|turn>user
Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/oceanknight/wanandroid/base/App.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn... |
Implement the native Android class `AuthActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: sample/src/main/java/com/longquan/ui/AuthActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.longquan.ui
import android.content.Context
import android.net.ProxyInfo
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.SystemClock
import android.provider.Settings
import android.util.Log
import android.view.View
import android.webkit.WebSettings
import ... | <|turn>user
Implement the native Android class `AuthActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: sample/src/main/java/com/longquan/ui/AuthActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MovieCard`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/java/ru/resodostudios/flick/feature/movies/presentation/components/MovieCard.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package ru.resodostudios.flick.feature.movies.presentation.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.defaultMinSize
import androidx.compose.foundatio... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MovieCard`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/java/ru/resodostudios/flick/feature/movies/presentation/components/MovieCard.kt
L... |
Implement the native Android class `FillTranslateAnchorValue` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/layers/generated/LayerProperties.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
// This file is generated.
package com.mapbox.maps.extension.compose.style.layers.generated
import androidx.compose.runtime.Immutable
import com.mapbox.bindgen.Value
import com.mapbox.maps.MapboxExperimental
import com.mapbox.maps.extension.compose.style.internal.ComposeTypeUtils
import com.mapbox.maps.exte... | <|turn>user
Implement the native Android class `FillTranslateAnchorValue` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/layers/generated/LayerProperties.kt
Languag... |
Implement the native Android class `UserFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/de/jannis_jahr/motioncapturingapp/ui/user/UserFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package de.jannis_jahr.motioncapturingapp.ui.user
import android.net.Uri
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import de.jannis_jahr.motioncapturingapp.R
import de.jannis_jahr.motioncapturingapp.ui.observers.AddVideoObservable
import de.jannis_jahr.motioncapturi... | <|turn>user
Implement the native Android class `UserFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/de/jannis_jahr/motioncapturingapp/ui/user/UserFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Comp... |
Implement the native Android class `Serienstream` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: src/de/serienstream/src/eu/kanade/tachiyomi/animeextension/de/serienstream/Serienstream.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package eu.kanade.tachiyomi.animeextension.de.serienstream
import android.app.Application
import android.content.SharedPreferences
import android.text.InputType
import android.util.Log
import android.widget.Toast
import androidx.preference.EditTextPreference
import androidx.preference.ListPreference
import a... | <|turn>user
Implement the native Android class `Serienstream` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: src/de/serienstream/src/eu/kanade/tachiyomi/animeextension/de/serienstream/Serienstream.kt
Language: Kotlin
Framework: AndroidX... |
Provide the native Android implementation for `IntentExt.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: sbhyi-akts/src/main/java/com/outs/utils/android/IntentExt.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.outs.utils.android
import android.app.Activity
import android.os.Bundle
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
/**
* author: Outs3
* e-mail: 3.3nosekai@gmail.com
* date: 2021/4/27 15:37
* desc:
*/
fun Activity.injectIntent() = inject(intent?.extras)
inline f... | <|turn>user
Provide the native Android implementation for `IntentExt.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: sbhyi-akts/src/main/java/com/outs/utils/android/IntentExt.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>model
```... |
Implement the native Android class `PreferenceFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/petnagy/navigatordemo/modules/dashboard/PreferenceFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.petnagy.navigatordemo.modules.dashboard
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
impor... | <|turn>user
Implement the native Android class `PreferenceFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/petnagy/navigatordemo/modules/dashboard/PreferenceFragment.kt
Language: Kotlin
Framework: AndroidX ... |
Implement the native Android class `SecondAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/syncday/lab/SecondAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.syncday.lab
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.syncday.lab.databinding.ItemMainBinding
c... | <|turn>user
Implement the native Android class `SecondAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/syncday/lab/SecondAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<... |
Implement the native Android class `MakeFieldPublicFix` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/quickfix/MakeFieldPublicFix.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.quickfix
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.util.elementType
import org.jetbrai... | <|turn>user
Implement the native Android class `MakeFieldPublicFix` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/quickfix/MakeFieldPublicFix.kt
Language: Kotlin
Framework: AndroidX / J... |
Provide the native Android implementation for `ModifierExt.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: core/src/main/java/org/linus/core/utils/extension/ModifierExt.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package org.linus.core.utils.extension
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
import androidx.compose.ui.platform.LocalConfiguration
import androidx.com... | <|turn>user
Provide the native Android implementation for `ModifierExt.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: core/src/main/java/org/linus/core/utils/extension/ModifierExt.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>mod... |
Implement the native Android class `DynamicPageLayoutState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/app/eluvio/wallet/screens/property/DynamicPageLayoutState.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package app.eluvio.wallet.screens.property
import androidx.compose.runtime.Immutable
import androidx.compose.ui.text.AnnotatedString
import androidx.media3.exoplayer.source.MediaSource
import app.eluvio.wallet.data.FabricUrl
import app.eluvio.wallet.data.entities.MediaEntity
import app.eluvio.wallet.data.ent... | <|turn>user
Implement the native Android class `DynamicPageLayoutState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/app/eluvio/wallet/screens/property/DynamicPageLayoutState.kt
Language: Kotlin
Framework: AndroidX /... |
Provide the native Android implementation for `toggleDrawer.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: bitapp/src/main/java/com/atech/bit/ui/activity/main/toggleDrawer.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.atech.bit.ui.activity.main
import androidx.compose.material3.DrawerValue
fun toggleDrawer(communicatorViewModel: MainViewModel) =
if (communicatorViewModel.toggleDrawerState.value == DrawerValue.Closed)
DrawerValue.Open else DrawerValue.Closed
``` | <|turn>user
Provide the native Android implementation for `toggleDrawer.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: bitapp/src/main/java/com/atech/bit/ui/activity/main/toggleDrawer.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn... |
Provide the native Android implementation for `job_util.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: core/common/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/common/job_util.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package de.tum.informatics.www1.artemis.native_app.core.common
import androidx.work.BackoffPolicy
import androidx.work.Constraints
import androidx.work.Data
import androidx.work.ListenableWorker
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequest
import androidx.work.OneTimeWorkRequestBu... | <|turn>user
Provide the native Android implementation for `job_util.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: core/common/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/common/job_util.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin C... |
Provide the native Android implementation for `job_util.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: core/common/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/common/job_util.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package de.tum.informatics.www1.artemis.native_app.core.common
import androidx.work.BackoffPolicy
import androidx.work.Constraints
import androidx.work.Data
import androidx.work.ListenableWorker
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequest
import androidx.work.OneTimeWorkRequestBu... | <|turn>user
Provide the native Android implementation for `job_util.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: core/common/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/common/job_util.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin C... |
Implement the native Android class `ArcLayoutTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: wear/wear/src/androidTest/java/androidx/wear/widget/ArcLayoutTest.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 `ArcLayoutTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: wear/wear/src/androidTest/java/androidx/wear/widget/ArcLayoutTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / ... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CoreView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: core/src/commonMain/kotlin/com/maxkeppeker/sheets/core/CoreView.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (C) 2022-2023. <NAME> (https://www.maxkeppeler.com)
*
* 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
*
... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CoreView`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: core/src/commonMain/kotlin/com/maxkeppeker/sheets/core/CoreView.kt
Language: Kotlin
Framework: ... |
Implement the native Android class `has` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: demo/src/desktopMain/kotlin/org/pushingpixels/aurora/demo/svg/flags/gb.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package org.pushingpixels.aurora.demo.svg.flags
import androidx.compose.ui.geometry.*
import androidx.compose.ui.graphics.*
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.graphics.drawscope.Fill
import androidx.compose.ui.graphics.drawscope.Stroke
import androidx.compose.u... | <|turn>user
Implement the native Android class `has` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: demo/src/desktopMain/kotlin/org/pushingpixels/aurora/demo/svg/flags/gb.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotli... |
Implement the Android ViewModel `TemplateBlankViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. | Repository path: presentation/src/main/java/com/anytypeio/anytype/presentation/templates/TemplateBlankViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.anytypeio.anytype.presentation.templates
import androidx.lifecycle.viewModelScope
import com.anytypeio.anytype.core_models.Block
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.ObjectType
import com.anytypeio.anytype.core_models.ObjectTypeIds
import com.anytyp... | <|turn>user
Implement the Android ViewModel `TemplateBlankViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Context:
Repository path: presentation/src/main/java/com/anytypeio/anytype/presentation/temp... |
Implement the native Android class `MyLogger` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/example/ktdemo/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.ktdemo
import android.annotation.SuppressLint
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.Settings.Global
import android.view.View
import android.view.ViewTreeObserver
import android.widget.Button
import an... | <|turn>user
Implement the native Android class `MyLogger` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/example/ktdemo/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tur... |
Implement the Android ViewModel `StoryEventListViewModel` 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/cn/wthee/pcrtool/ui/tool/storyevent/StoryEventListViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package cn.wthee.pcrtool.ui.tool.storyevent
import androidx.compose.runtime.Immutable
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import cn.wthee.pcrtool.data.db.repository.EventRepository
import cn.wthee.pcrtool.data.db.view.StoryEventData
import cn.wthee.pcrtool.ui.LoadingS... | <|turn>user
Implement the Android ViewModel `StoryEventListViewModel` 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/cn/wthee/pcrtool/ui/tool/storyevent/StoryEventL... |
Implement the native Android class `ReferenceRunningFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/paradise/ptpt/one/ui/running/reference/ReferenceRunningFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.paradise.ptpt.one.ui.running.reference
import android.util.Log
import android.view.View
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.ktx.auth
import com.google.firebase.datab... | <|turn>user
Implement the native Android class `ReferenceRunningFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/paradise/ptpt/one/ui/running/reference/ReferenceRunningFragment.kt
Language: Kotlin
Framework... |
Implement the native Android class `RoomDirectoryItem` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: vector/src/main/java/im/vector/app/features/roomdirectory/picker/RoomDirectoryItem.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2019 New Vector Ltd
*
* 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 `RoomDirectoryItem` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: vector/src/main/java/im/vector/app/features/roomdirectory/picker/RoomDirectoryItem.kt
Language: Kotlin
Framework: AndroidX... |
Implement the native Android class `RegisterFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/dev/kxxcn/maru/view/register/RegisterFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package dev.kxxcn.maru.view.register
import android.app.DatePickerDialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import android... | <|turn>user
Implement the native Android class `RegisterFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/dev/kxxcn/maru/view/register/RegisterFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose /... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `GithubOrgRow`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: presentation/src/main/kotlin/com/kazakago/blueprint/presentation/hierarchy/githuborgs/GithubOrgRow.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.kazakago.blueprint.presentation.view.hierarchy.github
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import and... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `GithubOrgRow`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: presentation/src/main/kotlin/com/kazakago/blueprint/presentation/hierarchy/githuborgs/Githu... |
Implement the native Android class `Config` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: OpenNSFW/src/main/java/com/zwy/opennsfw/core/Config.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.zwy.opennsfw.core
import android.content.Context
data class Config(
/**
* 是否开启GPU加速
*/
var isOpenGPU: Boolean = true,
var numThreads: Int = 1,
var context: Context?
)
``` | <|turn>user
Implement the native Android class `Config` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: OpenNSFW/src/main/java/com/zwy/opennsfw/core/Config.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tur... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SearchField`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: feature/discover/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/discover/view/implementation/ui/SearchField.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
Copyright 2022 <NAME>
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, softwar... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SearchField`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: feature/discover/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature... |
Implement the native Android class `ChooseSpendingWalletFragmentDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/org/ergoplatform/android/transactions/ChooseSpendingWalletFragmentDialog.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package org.ergoplatform.android.transactions
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.NavOptions
import androidx.navigation.fragment.NavHostFragment
import org.ergoplatform.android.*
import org.ergoplatform.... | <|turn>user
Implement the native Android class `ChooseSpendingWalletFragmentDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/org/ergoplatform/android/transactions/ChooseSpendingWalletFragmentDialog.kt
Language: K... |
Implement the native Android class `Target` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: lib-test/src/main/java/io/sellmair/kompass/app/Identified.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package io.sellmair.kompass.app
import android.graphics.Color
enum class Target {
FragmentOne,
FragmentTwo,
FragmentThree,
FragmentFour,
FragmentFive,
FragmentSix,
FragmentSeven,
FragmentEight,
FragmentNine,
FragmentTen,
ViewOne,
ViewTwo,
ViewThree,
V... | <|turn>user
Implement the native Android class `Target` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: lib-test/src/main/java/io/sellmair/kompass/app/Identified.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutin... |
Implement the Android ViewModel `QRCodeViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. | Repository path: feature/qrcode/src/main/kotlin/com/masselis/tpmsadvanced/qrcode/interfaces/QRCodeViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.masselis.tpmsadvanced.qrcode.interfaces
import androidx.camera.view.CameraController
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.masselis.tpmsadvanced.core.feature.usecase.CurrentVehicleUseCase
import com.masselis.tpmsadvanced.data.vehicle.model.Vehicle... | <|turn>user
Implement the Android ViewModel `QRCodeViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Context:
Repository path: feature/qrcode/src/main/kotlin/com/masselis/tpmsadvanced/qrcode/interface... |
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `NavigationCommand` using Kotlinx Serialization. | Repository path: commons/ui/src/main/java/es/littledavity/commons/ui/navigation/NavigationCommand.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2021 dalodev
*/
package es.littledavity.commons.ui.navigation
import androidx.navigation.NavDirections
import androidx.navigation.fragment.FragmentNavigator
sealed class NavigationCommand {
data class To(val directions: NavDirections, val extras: FragmentNavigator.Extras? = null) : Navi... | <|turn>user
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `NavigationCommand` using Kotlinx Serialization.
Context:
Repository path: commons/ui/src/main/java/es/littledavity/commons/ui/navigation/NavigationCommand.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose /... |
Implement the native Android class `StakeTargetDetailsParcelModel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/presentation/validators/parcel/StakeTargetDetailsParcelModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package io.novafoundation.nova.feature_staking_impl.presentation.validators.parcel
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
class StakeTargetDetailsParcelModel(
val accountIdHex: String,
val isSlashed: Boolean,
val stake: StakeTargetStakeParcelModel,
va... | <|turn>user
Implement the native Android class `StakeTargetDetailsParcelModel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/presentation/validators/parcel/... |
Provide the native Android implementation for `GlobalExtensions.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: app/src/main/java/com/laotoua/dawnislandk/util/GlobalExtensions.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2020 Fishballzzz
* *
* * 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
Provide the native Android implementation for `GlobalExtensions.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: app/src/main/java/com/laotoua/dawnislandk/util/GlobalExtensions.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|t... |
Implement the native Android class `ChannelBatchUpdateManagerTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: urbanairship-core/src/test/java/com/urbanairship/channel/ChannelBatchUpdateManagerTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.urbanairship.channel
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.urbanairship.PreferenceDataStore
import com.urbanairship.audience.AudienceOverrides
import com.urbanairship.audience.AudienceOverri... | <|turn>user
Implement the native Android class `ChannelBatchUpdateManagerTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: urbanairship-core/src/test/java/com/urbanairship/channel/ChannelBatchUpdateManagerTest.kt
Language: Kotlin
Fra... |
Provide the native Android implementation for `UIBehaviour.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: mvvm-dagger/src/main/java/com/nphau/android/shared/screens/UIBehaviour.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.imstudio.android.shared.screens
import android.os.Bundle
interface UIBehaviour {
fun showError(message: String?)
fun onSyncViews(savedInstanceState: Bundle?)
fun onSyncEvents()
fun onSyncData()
fun makeVibrator()
fun doNotCare()
fun showLoading(isShow: Boolean,... | <|turn>user
Provide the native Android implementation for `UIBehaviour.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: mvvm-dagger/src/main/java/com/nphau/android/shared/screens/UIBehaviour.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<... |
Implement the Android ViewModel `CredentialsSyncPausedViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. | Repository path: saved-sites/saved-sites-impl/src/main/java/com/duckduckgo/savedsites/impl/sync/SavedSiteSyncPausedViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) 2023 DuckDuckGo
*
* 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 ... | <|turn>user
Implement the Android ViewModel `CredentialsSyncPausedViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Context:
Repository path: saved-sites/saved-sites-impl/src/main/java/com/duckduckgo/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.