instruction stringlengths 113 251 | input stringlengths 98 353 | output stringlengths 135 454k | text stringlengths 443 454k |
|---|---|---|---|
Provide the native Android implementation for `OneDimensionalFocusSearch.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/focus/OneDimensionalFocusSearch.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
Provide the native Android implementation for `OneDimensionalFocusSearch.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/focus/OneDimensionalFocusSearch.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compo... |
Implement the native Android class `SearchViewNavigator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/de/droidcon/berlin2018/ui/search/SearchViewNavigator.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package de.droidcon.berlin2018.ui.search
import android.content.Intent
import android.net.Uri
import com.bluelinelabs.conductor.Controller
import com.bluelinelabs.conductor.RouterTransaction
import com.bluelinelabs.conductor.changehandler.HorizontalChangeHandler
import de.droidcon.berlin2018.R
import de.droi... | <|turn>user
Implement the native Android class `SearchViewNavigator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/de/droidcon/berlin2018/ui/search/SearchViewNavigator.kt
Language: Kotlin
Framework: AndroidX / Jetpack... |
Implement the native Android class `ChatFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: example/src/main/java/io/sellmair/example/fragment/ChatFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package io.sellmair.example.fragment
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.app.AppCompatActivity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import io.sellmair.example.R
import io.sellmair.example.destination.Ch... | <|turn>user
Implement the native Android class `ChatFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: example/src/main/java/io/sellmair/example/fragment/ChatFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kot... |
Implement the native Android class `HomePresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: common/src/commonMain/kotlin/com/greenmiststudios/common/presenters/HomePresenter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.greenmiststudios.common.presenters
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import com.greenmiststudios.common.viewmodels.HomeViewEvent
import com.greenmiststudios.common.viewmodels.HomeViewModel
import kotlinx.coroutines.flow.Flow
public class Ho... | <|turn>user
Implement the native Android class `HomePresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: common/src/commonMain/kotlin/com/greenmiststudios/common/presenters/HomePresenter.kt
Language: Kotlin
Framework: AndroidX / Je... |
Implement the native Android class `SingleLiveEvent` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/kgurgul/cpuinfo/utils/SingleLiveEvent.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.kgurgul.cpuinfo.utils
import androidx.annotation.MainThread
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import timber.log.Timber
import java.util.concurrent.atomic.AtomicBoolean
/**
* A ... | <|turn>user
Implement the native Android class `SingleLiveEvent` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/kgurgul/cpuinfo/utils/SingleLiveEvent.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotl... |
Provide the native Android implementation for `ComposeRoutingExt.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: compose/common/src/dev/programadorthi/routing/compose/ComposeRoutingExt.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package dev.programadorthi.routing.compose
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.ProvidableCompositionLocal
import androidx.compose.runtime.staticCompositionLocalOf
import dev.programadorthi.routing.core.Routing
public val LocalPopResult: ProvidableComposit... | <|turn>user
Provide the native Android implementation for `ComposeRoutingExt.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: compose/common/src/dev/programadorthi/routing/compose/ComposeRoutingExt.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<t... |
Implement the native Android class `PublicChildPresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/me/hegj/wandroid/mvp/presenter/main/tree/treeinfo/TreeinfoPresenter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package me.hegj.wandroid.mvp.presenter.main.publicNumber
import android.app.Application
import com.jess.arms.di.scope.FragmentScope
import com.jess.arms.http.imageloader.ImageLoader
import com.jess.arms.integration.AppManager
import com.jess.arms.mvp.BasePresenter
import com.jess.arms.utils.RxLifecycleUtils
... | <|turn>user
Implement the native Android class `PublicChildPresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/me/hegj/wandroid/mvp/presenter/main/tree/treeinfo/TreeinfoPresenter.kt
Language: Kotlin
Framework: An... |
Implement the native Android class `FragmentApplicationSupplier` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: library/src/main/java/com/github/skgmn/startactivityx/FragmentApplicationSupplier.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.github.skgmn.startactivityx
import android.app.Application
import androidx.fragment.app.Fragment
internal class FragmentApplicationSupplier(private val fragment: Fragment): ApplicationSupplier {
private var app: Application? = null
override fun getApplication(): Application? {
r... | <|turn>user
Implement the native Android class `FragmentApplicationSupplier` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: library/src/main/java/com/github/skgmn/startactivityx/FragmentApplicationSupplier.kt
Language: Kotlin
Framework:... |
Implement the native Android class `GoogleRewardedAd` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: ads/src/main/java/com/hms/lib/commonmobileservices/ads/rewarded/implementation/GoogleRewardedAd.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
// Copyright 2020. Explore in HMS. All rights reserved.
//
// 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 app... | <|turn>user
Implement the native Android class `GoogleRewardedAd` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: ads/src/main/java/com/hms/lib/commonmobileservices/ads/rewarded/implementation/GoogleRewardedAd.kt
Language: Kotlin
Framewo... |
Implement the native Android class `LogLevel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: androidutilskt/src/main/java/com/lindroid/androidutilskt/extension/logcat/LogLevel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.lindroid.androidutilskt.extension.logcat
import android.support.annotation.IntDef
import android.util.Log
/**
* @author Lin
* @date 2019/3/19
* @function 日志等级
* @Description
*/
const val VERBOSE = Log.VERBOSE
const val DEBUG = Log.DEBUG
const val INFO = Log.INFO
const val WARN = Log.WARN
c... | <|turn>user
Implement the native Android class `LogLevel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: androidutilskt/src/main/java/com/lindroid/androidutilskt/extension/logcat/LogLevel.kt
Language: Kotlin
Framework: AndroidX / Jetpac... |
Implement the Android ViewModel `ShopViewModelFactory` 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/com/udacity/shoestore/screens/shoe_list/ShopViewModelFactory.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.udacity.shoestore.screens.shoe_list
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.udacity.shoestore.models.Shoe
// factory to create a ShopViewModel with an argument as it is initialized
class ShopViewModelFactory(private val s... | <|turn>user
Implement the Android ViewModel `ShopViewModelFactory` 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/com/udacity/shoestore/screens/shoe_list/ShopViewMo... |
Implement the native Android class `MasterViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/peruapps/christopher_elias/ui/holder/MasterViewHolder.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.peruapps.christopher_elias.ui.holder
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView
/**
* Created by <NAME> on 29-may-2019
* <EMAIL>
* Lima, Perú
* Copyright (c) 2019 All rights reserved.
*/
class MasterViewHolder<out V : ViewDataBinding>(val ... | <|turn>user
Implement the native Android class `MasterViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/peruapps/christopher_elias/ui/holder/MasterViewHolder.kt
Language: Kotlin
Framework: AndroidX / Jetpa... |
Implement the native Android class `AndroidComposeView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: ui/ui-core/src/androidMain/kotlin/androidx/compose/ui/platform/AndroidComposeView.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
Implement the native Android class `AndroidComposeView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: ui/ui-core/src/androidMain/kotlin/androidx/compose/ui/platform/AndroidComposeView.kt
Language: Kotlin
Framework: AndroidX... |
Implement the Android ViewModel `ChannelAttachmentsViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. | Repository path: SceytChatUiKit/src/main/java/com/sceyt/chatuikit/presentation/uicomponents/conversationinfo/media/viewmodel/ChannelAttachmentsViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.sceyt.chatuikit.presentation.components.channel_info.media.viewmodel
import android.app.Application
import androidx.fragment.app.Fragment
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.asFlow
import androidx.lifecycle.repeatOnLifecycle
impo... | <|turn>user
Implement the Android ViewModel `ChannelAttachmentsViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Context:
Repository path: SceytChatUiKit/src/main/java/com/sceyt/chatuikit/presentation... |
Implement the native Android class `HttpModel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/github2136/base/model/HttpModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.github2136.base.model
import android.content.Context
import com.github2136.basemvvm.BaseWebModel
/**
* Created by yb on 2019/10/7
*/
class HttpModel private constructor(context: Context) : BaseWebModel(context) {
var api: HttpService
init {
baseUrl = "http://www.weather.com.cn... | <|turn>user
Implement the native Android class `HttpModel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/github2136/base/model/HttpModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutine... |
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/edu/mum/mumwhere/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package edu.mum.mumwhere
import android.Manifest
import android.app.Activity
import android.app.ProgressDialog.show
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.content.pm.PackageManager
import android.content.res.Configuration
import ... | <|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/edu/mum/mumwhere/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<t... |
Implement the native Android class `CounterFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/github/muellerma/tabletoptools/ui/fragments/CounterFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.github.muellerma.tabletoptools.ui.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.widget.doOnTextChanged
import com.github.muellerma.tabletoptools.databinding.CounterBinding
import com.github.mueller... | <|turn>user
Implement the native Android class `CounterFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/github/muellerma/tabletoptools/ui/fragments/CounterFragment.kt
Language: Kotlin
Framework: AndroidX / ... |
Implement the native Android class `RulerFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: pluto/lib/src/main/java/com/pluto/tool/modules/ruler/internal/RulerFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.pluto.tool.modules.ruler.internal
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
internal class RulerFragment : Fragment() {
override fun onCreateView(inflater: LayoutInflater, containe... | <|turn>user
Implement the native Android class `RulerFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: pluto/lib/src/main/java/com/pluto/tool/modules/ruler/internal/RulerFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack ... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `NewPollPrimaryDescription`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPollPrimaryDescription.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.vitorpamplona.amethyst.ui.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Exp... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `NewPollPrimaryDescription`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPollPrimaryDescript... |
Provide the native Android implementation for `IModel.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: app/src/main/java/com/pixaby/arpan/arch/mvi/IModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.pixaby.arpan.arch.mvi
import androidx.lifecycle.LiveData
import kotlinx.coroutines.channels.Channel
interface IModel<S: IState, I: IAction> {
val actions: Channel<I>
val state: LiveData<S>
}
``` | <|turn>user
Provide the native Android implementation for `IModel.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: app/src/main/java/com/pixaby/arpan/arch/mvi/IModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>model
```kotlin
pa... |
Provide the native Android implementation for `PerfomOnViewExt.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: ultron/src/main/java/com/atiurin/ultron/extensions/PerfomOnViewExt.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.atiurin.ultron.extensions
import android.view.View
import androidx.test.espresso.DataInteraction
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.ViewInteraction
import com.atiurin.ultron.core.espresso.UltronEspressoInteraction
import com.atiurin.ultron.custom.espresso.... | <|turn>user
Provide the native Android implementation for `PerfomOnViewExt.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: ultron/src/main/java/com/atiurin/ultron/extensions/PerfomOnViewExt.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `BasicListItem`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/java/com/weesnerdevelopment/serialcabinet/components/BasicListItem.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.weesnerdevelopment.serialcabinet.components
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import a... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `BasicListItem`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/java/com/weesnerdevelopment/serialcabinet/components/BasicListItem.kt
Languag... |
Implement the native Android class `PauseButtonTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: androidDesignSystem/src/test/java/by/game/binumbers/design/system/components/button/PauseButtonTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package by.game.binumbers.design.system.components.button
import androidx.compose.runtime.Composable
import by.game.binumbers.screenshot.test.tool.BaseComponentTest
class PauseButtonTest : BaseComponentTest() {
override val content: @Composable () -> Unit = { PauseButton() }
}
``` | <|turn>user
Implement the native Android class `PauseButtonTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: androidDesignSystem/src/test/java/by/game/binumbers/design/system/components/button/PauseButtonTest.kt
Language: Kotlin
Fram... |
Provide the native Android implementation for `AddProviderScreen.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: shared/src/commonMain/kotlin/ml/dev/kotlin/openotp/ui/screen/AddProviderScreen.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package ml.dev.kotlin.openotp.ui.screen
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.com... | <|turn>user
Provide the native Android implementation for `AddProviderScreen.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: shared/src/commonMain/kotlin/ml/dev/kotlin/openotp/ui/screen/AddProviderScreen.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Corou... |
Implement the native Android class `FireproofWebsiteRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/duckduckgo/app/fire/fireproofwebsite/data/FireproofWebsiteRepositoryImpl.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) 2020 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 native Android class `FireproofWebsiteRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/duckduckgo/app/fire/fireproofwebsite/data/FireproofWebsiteRepositoryImpl.kt
Language: Kotli... |
Implement the native Android class `Socials_Gallery_Activity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/scriptsquad/unitalk/Socials_Page/activities/Socials_Gallery_Activity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.scriptsquad.unitalk.Socials_Page.activities
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.scriptsquad.unitalk.databinding.ActivityGalleryBinding
import com.scriptsquad.unitalk.Socials_Page.fragments.PictureFragment
import com.scriptsquad.unitalk.Socials_Page.... | <|turn>user
Implement the native Android class `Socials_Gallery_Activity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/scriptsquad/unitalk/Socials_Page/activities/Socials_Gallery_Activity.kt
Language: Kotlin
Fram... |
Provide the native Android implementation for `DbModule.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: app/src/main/java/com/example/wordsmemory/di/DbModule.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.wordsmemory.di
import android.content.Context
import com.example.wordsmemory.framework.room.WMDatabase
import com.google.firebase.firestore.ktx.firestore
import com.google.firebase.ktx.Firebase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.and... | <|turn>user
Provide the native Android implementation for `DbModule.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: app/src/main/java/com/example/wordsmemory/di/DbModule.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>model
```kotli... |
Provide the native Android implementation for `IcPeople.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: core/designsystem/src/main/java/com/eshc/goonersapp/core/designsystem/iconpack/IcPeople.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.eshc.goonersapp.core.designsystem.iconpack
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.Butt
import androidx.compose.ui.graphics.S... | <|turn>user
Provide the native Android implementation for `IcPeople.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: core/designsystem/src/main/java/com/eshc/goonersapp/core/designsystem/iconpack/IcPeople.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Corou... |
Implement the Android ViewModel `ProjectDetailViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. | Repository path: CallofProjectAndroid/app/src/main/java/callofproject/dev/androidapp/presentation/project/project_details/ProjectDetailViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package callofproject.dev.androidapp.presentation.project.project_details
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import callofproject.dev.andr... | <|turn>user
Implement the Android ViewModel `ProjectDetailViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Context:
Repository path: CallofProjectAndroid/app/src/main/java/callofproject/dev/androidap... |
Implement the native Android class `PlayerGameStatsListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/bcassar/nbafantasy/playerstatslist/PlayerGameStatsListFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.bcassar.nbafantasy.playerstatslist
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.r... | <|turn>user
Implement the native Android class `PlayerGameStatsListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/bcassar/nbafantasy/playerstatslist/PlayerGameStatsListFragment.kt
Language: Kotlin
Framewo... |
Implement the native Android class `CardStackAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/example/matchmentor/view/CardStackAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.matchmentor.view
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.matchmentor.R
import com.example.matchmentor.model.... | <|turn>user
Implement the native Android class `CardStackAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/example/matchmentor/view/CardStackAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose /... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ArtistsScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: compose/src/main/java/com/neeplayer/compose/ArtistsScreen.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.neeplayer.compose
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.MaterialTheme
impor... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ArtistsScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: compose/src/main/java/com/neeplayer/compose/ArtistsScreen.kt
Language: Kotlin
Framework: A... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ProduceStateSample`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: compose_material3/src/main/java/dev/vengateshm/compose_material3/side_effects/ProduceStateSample.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package dev.vengateshm.compose_material3.side_effects
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import andr... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ProduceStateSample`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: compose_material3/src/main/java/dev/vengateshm/compose_material3/side_effects/Produce... |
Implement the native Android class `CtbFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/ng/ui/show/view/CtbFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.ng.ui.show.frag
import android.view.View
import com.ng.ui.R
import kotlinx.android.synthetic.main.fragment_ctb.*
/**
* 描述:
* @author Jzn
* @date 2020-06-12
*/
class CtbFragment : BaseFragment() {
override fun initViewsAndEvents(v: View) {
btn1_mcv.setOnClickListener {
... | <|turn>user
Implement the native Android class `CtbFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/ng/ui/show/view/CtbFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<... |
Provide the native Android implementation for `TextField.android.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: components/src/androidMain/kotlin/com/alexrdclement/uiplayground/components/TextField.android.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.alexrdclement.uiplayground.components
import androidx.compose.foundation.text.input.rememberTextFieldState
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import com.alexrdclement.uiplayground.theme.PlaygroundTheme
@Preview
@Composable
private fun Pr... | <|turn>user
Provide the native Android implementation for `TextField.android.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: components/src/androidMain/kotlin/com/alexrdclement/uiplayground/components/TextField.android.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose... |
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: sample/src/main/java/com/chicco/sample/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.chicco.sample
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import com.chicco.sample.databinding.ActivityMainBinding
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
private val mo... | <|turn>user
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: sample/src/main/java/com/chicco/sample/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutin... |
Provide the native Android implementation for `Keyboard.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: longan/src/main/java/com/dylanc/longan/Keyboard.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) 2021. <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 a... | <|turn>user
Provide the native Android implementation for `Keyboard.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: longan/src/main/java/com/dylanc/longan/Keyboard.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>model
```kotlin
/*
... |
Implement the native Android class `WeatherApp` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/iamageo/weather/app/WeatherApp.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.plcoding.weatherapp
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class WeatherApp: Application()
``` | <|turn>user
Implement the native Android class `WeatherApp` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/iamageo/weather/app/WeatherApp.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutine... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DatePickerScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/java/com/example/fragment/project/ui/my_demo/DatePickerScreen.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.fragment.project.ui.my_demo
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import a... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DatePickerScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/java/com/example/fragment/project/ui/my_demo/DatePickerScreen.kt
Language:... |
Implement the native Android class `TvDatabase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/an/trailers_compose/data/local/TvDatabase.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.an.trailers_compose.data.local
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.an.trailers_compose.data.local.converter.CreditResponseTypeConverter
import com.an.trailers_compose.data.local.converter.GenreListTypeConverter
import com.... | <|turn>user
Implement the native Android class `TvDatabase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/an/trailers_compose/data/local/TvDatabase.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotli... |
Implement the native Android class `AboutFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/movicom/informativeapplicationcovid19/views/AboutFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.movicom.informativeapplicationcovid19.views
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.fragment.app.Fragment
import com.movi... | <|turn>user
Implement the native Android class `AboutFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/movicom/informativeapplicationcovid19/views/AboutFragment.kt
Language: Kotlin
Framework: AndroidX / Jetp... |
Implement the native Android class `PageFlutterFragmentActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: hybridAndroid/app/src/main/java/com/liuhc/myapplication/PageFlutterFragmentActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.liuhc.myapplication
import android.os.Bundle
import android.util.Log
import io.flutter.app.FlutterFragmentActivity
import io.flutter.plugin.common.MethodChannel
import io.flutter.view.FlutterMain
import org.json.JSONObject
/**
* 描述:
* 作者:liuhc
* 创建日期:2019-09-04 on 21:07
*/
class PageFlutterF... | <|turn>user
Implement the native Android class `PageFlutterFragmentActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: hybridAndroid/app/src/main/java/com/liuhc/myapplication/PageFlutterFragmentActivity.kt
Language: Kotlin
Framewor... |
Implement the native Android class `CollectionIdTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: litho-widget-kotlin/src/test/kotlin/com/facebook/litho/sections/widget/CollectionIdTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 `CollectionIdTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: litho-widget-kotlin/src/test/kotlin/com/facebook/litho/sections/widget/CollectionIdTest.kt
Language: Kotlin
Framework: Andr... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ChangeLanguagePreference`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/java/ru/tech/imageresizershrinker/presentation/main_screen/components/settings/ChangeLanguageSettingItem.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package ru.tech.imageresizershrinker.presentation.main_screen.components
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.provider.Settings
import androidx.appcompat.app.AppCompatDelegate
import androidx.compose.animation.animateConten... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ChangeLanguagePreference`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/java/ru/tech/imageresizershrinker/presentation/main_screen/compone... |
Provide the native Android implementation for `example-effect-guide-12.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-effect-guide-12.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
// This file was automatically generated from Effect.kt by Knit tool. Do not edit.
package arrow.core.examples.exampleEffectGuide12
import arrow.core.continuations.effect
import io.kotest.assertions.fail
import io.kotest.matchers.shouldBe
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.lau... | <|turn>user
Provide the native Android implementation for `example-effect-guide-12.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-effect-guide-12.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin... |
Implement the native Android class `BaseEventsCalendarDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/allat/mboychenko/silverthread/presentation/views/dialogs/BaseEventsCalendarDialog.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.allat.mboychenko.silverthread.presentation.views.dialogs
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.Window
import android.widget.TextView
import android.widget.Toast
import androidx.annotation.LayoutRes
im... | <|turn>user
Implement the native Android class `BaseEventsCalendarDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/allat/mboychenko/silverthread/presentation/views/dialogs/BaseEventsCalendarDialog.kt
Language... |
Implement the native Android class `DefaultAppConfigSanityCheck` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: Corona-Warn-App/src/test/java/de/rki/coronawarnapp/appconfig/sources/fallback/DefaultAppConfigTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package de.rki.coronawarnapp.appconfig.sources.fallback
import android.content.Context
import android.os.Build
import androidx.test.core.app.ApplicationProvider
import com.google.protobuf.UnknownFieldSetLite
import de.rki.coronawarnapp.server.protocols.internal.v2.AppConfigAndroid
import de.rki.coronawarnapp... | <|turn>user
Implement the native Android class `DefaultAppConfigSanityCheck` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: Corona-Warn-App/src/test/java/de/rki/coronawarnapp/appconfig/sources/fallback/DefaultAppConfigTest.kt
Language: ... |
Implement the native Android class `MatchRemoteDataSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: data/src/main/java/com/apiguave/tinderclonedata/match/MatchRemoteDataSource.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.apiguave.tinderclonedata.match
import com.apiguave.tinderclonedata.api.match.FirestoreMatch
import com.apiguave.tinderclonedata.api.match.MatchApi
import com.apiguave.tinderclonedata.api.picture.PictureApi
import com.apiguave.tinderclonedata.api.user.UserApi
import com.apiguave.tinderclonedata.ap... | <|turn>user
Implement the native Android class `MatchRemoteDataSource` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: data/src/main/java/com/apiguave/tinderclonedata/match/MatchRemoteDataSource.kt
Language: Kotlin
Framework: AndroidX / ... |
Implement the native Android class `ActivityTransitionReceiver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: player/app/src/main/java/uk/co/bbc/perceptivepodcasts/useractivity/UserActivityManager.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package uk.co.bbc.perceptivepodcasts.useractivity
import android.annotation.SuppressLint
import android.app.PendingIntent
import android.app.PendingIntent.FLAG_MUTABLE
import android.app.PendingIntent.FLAG_UPDATE_CURRENT
import android.content.BroadcastReceiver
import android.content.Context
import android.c... | <|turn>user
Implement the native Android class `ActivityTransitionReceiver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: player/app/src/main/java/uk/co/bbc/perceptivepodcasts/useractivity/UserActivityManager.kt
Language: Kotlin
Framew... |
Implement the Android ViewModel `AssistantViewModel` 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/com/example/huaweiproject/assistant/AssistantViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.huaweiproject.assistant
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import com.example.huaweiproject.data.Assistant
import com.example.huaweiproject.data.AssistantDao
import kotlinx.coroutines.*
class AssistantViewMo... | <|turn>user
Implement the Android ViewModel `AssistantViewModel` 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/com/example/huaweiproject/assistant/AssistantViewMod... |
Implement the native Android class `BaseRadioButtonMapperTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: features/dd-sdk-android-session-replay/src/test/kotlin/com/datadog/android/sessionreplay/internal/recorder/mapper/BaseRadioButtonMapperTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.sessionreplay.internal.recorder... | <|turn>user
Implement the native Android class `BaseRadioButtonMapperTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: features/dd-sdk-android-session-replay/src/test/kotlin/com/datadog/android/sessionreplay/internal/recorder/mapper/... |
Implement the native Android class `CheckableCustomCardView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/kotlin/com/quittle/a11yally/view/CheckableCustomCardView.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.quittle.a11yally.view
import android.content.Context
import android.util.AttributeSet
import android.widget.Checkable
import androidx.annotation.ColorInt
import androidx.annotation.DrawableRes
import androidx.preference.PreferenceManager
import com.quittle.a11yally.R
import com.quittle.a11yally.b... | <|turn>user
Implement the native Android class `CheckableCustomCardView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/kotlin/com/quittle/a11yally/view/CheckableCustomCardView.kt
Language: Kotlin
Framework: AndroidX / Jetp... |
Implement the Android ViewModel `CountryViewModel` 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/com/movicom/informativeapplicationcovid19/viewmodel/CountryViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.movicom.informativeapplicationcovid19.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.movicom.informativeapplicationcovid19.models.Country
import com.movicom.informativeapplicationcovid19.network.repositories.CountryRepository
class CountryViewM... | <|turn>user
Implement the Android ViewModel `CountryViewModel` 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/com/movicom/informativeapplicationcovid19/viewmodel/Co... |
Implement the native Android class `BaseRecyclerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: core/src/main/kotlin/com/ferelin/core/adapter/base/BaseRecyclerAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2021 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | <|turn>user
Implement the native Android class `BaseRecyclerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: core/src/main/kotlin/com/ferelin/core/adapter/base/BaseRecyclerAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack... |
Implement the native Android class `CatsActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/cats_app/cats/CatsActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.cats_app.cats
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.ui.... | <|turn>user
Implement the native Android class `CatsActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/cats_app/cats/CatsActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<... |
Provide the native Android implementation for `GHPRDetailsViewModel.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: plugins/github/src/org/jetbrains/plugins/github/pullrequest/ui/details/model/GHPRDetailsViewModel.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.plugins.github.pullrequest.ui.details.model
import kotlinx.coroutines.flow.StateFlow
import org.jetbrains.plugins.github.api.data.pullrequest.GHPullRequestState
impor... | <|turn>user
Provide the native Android implementation for `GHPRDetailsViewModel.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: plugins/github/src/org/jetbrains/plugins/github/pullrequest/ui/details/model/GHPRDetailsViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack ... |
Provide the native Android implementation for `NotificationService.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: app/src/main/java/com/zaneschepke/wireguardautotunnel/service/notification/NotificationService.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.zaneschepke.wireguardautotunnel.service.notification
import android.app.Notification
import android.app.NotificationManager
import android.app.PendingIntent
interface NotificationService {
fun createNotification(
channelId: String,
channelName: String,
title: String =... | <|turn>user
Provide the native Android implementation for `NotificationService.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: app/src/main/java/com/zaneschepke/wireguardautotunnel/service/notification/NotificationService.kt
Language: Kotlin
Framework: AndroidX / Jetpack Comp... |
Implement the native Android class `BaseViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/mb/hunters/ui/base/BaseViewHolder.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2017-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 agr... | <|turn>user
Implement the native Android class `BaseViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/mb/hunters/ui/base/BaseViewHolder.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Co... |
Provide the native Android implementation for `ScrollOld.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: straight/src/commonMain/kotlin/me/localx/icons/straight/outline/ScrollOld.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package me.localx.icons.straight.outline
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.Butt
import androidx.compose.ui.graphics.StrokeJoin.Comp... | <|turn>user
Provide the native Android implementation for `ScrollOld.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: straight/src/commonMain/kotlin/me/localx/icons/straight/outline/ScrollOld.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FineTuneDialog`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/kotlin/com/goodwy/keyboard/app/settings/theme/FineTuneDialog.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (C) 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 agree... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FineTuneDialog`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/kotlin/com/goodwy/keyboard/app/settings/theme/FineTuneDialog.kt
Language: Ko... |
Implement the Android ViewModel `KeysignFlowViewModel` 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/com/vultisig/wallet/ui/models/keysign/KeysignFlowViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
@file:OptIn(ExperimentalSerializationApi::class)
package com.vultisig.wallet.ui.models.keysign
import android.annotation.SuppressLint
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Build
import andro... | <|turn>user
Implement the Android ViewModel `KeysignFlowViewModel` 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/com/vultisig/wallet/ui/models/keysign/KeysignFlowV... |
Provide the native Android implementation for `BoxWithSwipeRefresh.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: app/src/main/java/com/vultisig/wallet/ui/components/BoxWithSwipeRefresh.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.vultisig.wallet.ui.components
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.pulltorefresh.PullToRefreshBox
import androidx.compose.material3.pulltorefresh.rememberPullToRefreshState
import androidx.c... | <|turn>user
Provide the native Android implementation for `BoxWithSwipeRefresh.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: app/src/main/java/com/vultisig/wallet/ui/components/BoxWithSwipeRefresh.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines... |
Implement the native Android class `SettingsActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/cucerdariancatalin/sms_messenger/activities/SettingsActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package cucerdariancatalin.sms_messenger.activities
import android.annotation.TargetApi
import android.content.Intent
import android.os.Build
import android.os.Bundle
import com.simplemobiletools.commons.activities.ManageBlockedNumbersActivity
import com.simplemobiletools.commons.dialogs.ChangeDateTimeFormat... | <|turn>user
Implement the native Android class `SettingsActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/cucerdariancatalin/sms_messenger/activities/SettingsActivity.kt
Language: Kotlin
Framework: AndroidX / Je... |
Implement the native Android class `ClaymoreDemoApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: demo/app/src/main/java/com/alessandro/claymore/demo/ClaymoreDemoApplication.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.alessandro.claymore.demo
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class ClaymoreDemoApplication: Application()
``` | <|turn>user
Implement the native Android class `ClaymoreDemoApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: demo/app/src/main/java/com/alessandro/claymore/demo/ClaymoreDemoApplication.kt
Language: Kotlin
Framework: AndroidX ... |
Implement the native Android class `GoogleBillingUtil` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: ui/src/main/java/com/youhajun/ui/utils/GoogleBillingUtil.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.youhajun.ui.utils
import android.app.Activity
import android.content.Context
import android.util.Log
import com.android.billingclient.api.AcknowledgePurchaseParams
import com.android.billingclient.api.BillingClient
import com.android.billingclient.api.BillingClient.ProductType
import com.android.... | <|turn>user
Implement the native Android class `GoogleBillingUtil` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: ui/src/main/java/com/youhajun/ui/utils/GoogleBillingUtil.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotli... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `App`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: shared/src/commonMain/kotlin/com/example/voyager_screens_delegation_sample/App.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.voyager_screens_delegation_sample
import androidx.compose.foundation.shape.AbsoluteCutCornerShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.dp
import cafe.ad... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `App`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: shared/src/commonMain/kotlin/com/example/voyager_screens_delegation_sample/App.kt
Language: Kotlin
F... |
Implement the native Android class `FragmentLazyLifecycleOwner` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: lib.core/src/main/java/com/coding/zxm/lib_core/base/FragmentLazyLifecycleOwner.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.coding.zxm.lib_core.base
import androidx.lifecycle.*
/**
* Created by ZhangXinmin on 2021/06/10.
* Copyright (c) 2021/6/10 . All rights reserved.
*/
class FragmentLazyLifecycleOwner(private val mCallback: Callback) : LifecycleObserver,
LifecycleOwner {
private var mLifecycleRegistry:... | <|turn>user
Implement the native Android class `FragmentLazyLifecycleOwner` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: lib.core/src/main/java/com/coding/zxm/lib_core/base/FragmentLazyLifecycleOwner.kt
Language: Kotlin
Framework: And... |
Implement the native Android class `CardView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: card/src/main/java/com/adyen/checkout/card/internal/ui/view/CardView.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) 2022 Adyen N.V.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by josephj on 16/9/2022.
*/
package com.adyen.checkout.card.internal.ui.view
import android.app.Activity
import android.content.Context
import android.con... | <|turn>user
Implement the native Android class `CardView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: card/src/main/java/com/adyen/checkout/card/internal/ui/view/CardView.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Ko... |
Provide the native Android implementation for `PermissionController.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: health/connect/connect-client/src/main/java/androidx/health/connect/client/PermissionController.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (C) 2022 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
Provide the native Android implementation for `PermissionController.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: health/connect/connect-client/src/main/java/androidx/health/connect/client/PermissionController.kt
Language: Kotlin
Framework: AndroidX / Jetpack Co... |
Provide the native Android implementation for `Extensions.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: app/src/main/java/com/example/pavan/galleryview/Utils/Extensions.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.pavan.galleryview.Utils
/* *********************************************************************
* Copyright [<NAME>](https://github.com/pavan555) 2020
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with t... | <|turn>user
Provide the native Android implementation for `Extensions.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: app/src/main/java/com/example/pavan/galleryview/Utils/Extensions.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>m... |
Implement the native Android class `ActivityInjectionModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/stfalcon/new_uaroads_android/common/injection/modules/ActivityInjectionModule.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) 2017 stfalcon.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
*
* Unless required b... | <|turn>user
Implement the native Android class `ActivityInjectionModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/stfalcon/new_uaroads_android/common/injection/modules/ActivityInjectionModule.kt
Language: Kot... |
Provide the native Android implementation for `Cloudnotif.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/linear/Cloudnotif.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package moe.tlaster.icons.vuesax.vuesaxicons.linear
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import... | <|turn>user
Provide the native Android implementation for `Cloudnotif.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/linear/Cloudnotif.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Co... |
Implement the Android ViewModel `AddIntegrationViewModel` 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/com/hypertrack/android/ui/screens/add_integration/AddIntegrationViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.hypertrack.android.ui.screens.add_integration
import android.view.View
import androidx.lifecycle.*
import com.hypertrack.android.interactors.app.AppEffectAction
import com.hypertrack.android.interactors.app.ReportAppErrorEffect
import com.hypertrack.android.interactors.app.ShowAndReportAppErrorEf... | <|turn>user
Implement the Android ViewModel `AddIntegrationViewModel` 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/com/hypertrack/android/ui/screens/add_integrati... |
Implement the native Android class `SearchAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/yamanf/shoppingapp/ui/adapter/SearchAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.yamanf.shoppingapp.ui.adapter
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.*
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.navigation.findNavController
import andro... | <|turn>user
Implement the native Android class `SearchAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/yamanf/shoppingapp/ui/adapter/SearchAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / ... |
Implement the native Android class `SearchAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/yamanf/shoppingapp/ui/adapter/SearchAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.yamanf.shoppingapp.ui.adapter
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.*
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.navigation.findNavController
import andro... | <|turn>user
Implement the native Android class `SearchAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/yamanf/shoppingapp/ui/adapter/SearchAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / ... |
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/work/yeshu/demo/andserverdemo/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
*
* * Copyright (c) 2018 yeshu. All Rights Reserved.
*
*/
package work.yeshu.demo.andserverdemo
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.yanzhenjie.andserver.AndServer
import com.yanzhenjie.andserver.Server
import com.yanzhenjie.and... | <|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/work/yeshu/demo/andserverdemo/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin... |
Implement the native Android class `VectorSettingsSecurityPrivacyFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: vector/src/main/java/im/vector/riotx/features/settings/VectorSettingsSecurityPrivacyFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2019 New Vector Ltd
* Copyright 2020 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
*
* U... | <|turn>user
Implement the native Android class `VectorSettingsSecurityPrivacyFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: vector/src/main/java/im/vector/riotx/features/settings/VectorSettingsSecurityPrivacyFragment.kt
Langua... |
Implement the native Android class `ChooseCountryFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/vcheck/sdk/core/presentation/country_stage/ChooseCountryFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.vcheck.sdk.core.presentation.country_stage
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.activity.addCallba... | <|turn>user
Implement the native Android class `ChooseCountryFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/vcheck/sdk/core/presentation/country_stage/ChooseCountryFragment.kt
Language: Kotlin
Framework: ... |
Implement the native Android class `FetchTrackInfo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/music/player/bhandari/m/trackInfo/FetchTrackInfo.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.music.player.wakili.cool.trackInfo.models
import android.os.Handler
import android.os.Looper
import android.util.Log
import java.lang.Exception
/*
Thread to fetch track info
*/
class FetchTrackInfo(var artist: String, var track: String, val callback: TrackInfo.Callback) : Thread() {
var h... | <|turn>user
Implement the native Android class `FetchTrackInfo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/music/player/bhandari/m/trackInfo/FetchTrackInfo.kt
Language: Kotlin
Framework: AndroidX / Jetpack Comp... |
Provide the native Android implementation for `SystemTheme.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: cupertino-adaptive/src/nonAndroidMain/kotlin/io/github/alexzhirkevich/cupertino/adaptive/SystemTheme.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) 2023 Compose Cupertino project and open source contributors.
*
* 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... | <|turn>user
Provide the native Android implementation for `SystemTheme.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: cupertino-adaptive/src/nonAndroidMain/kotlin/io/github/alexzhirkevich/cupertino/adaptive/SystemTheme.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compos... |
Implement the Android ViewModel `OrderViewModel` 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/com/food/ordering/zinger/ui/order/OrderViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.food.ordering.zinger.ui.order
import androidx.lifecycle.*
import com.food.ordering.zinger.data.local.Resource
import com.food.ordering.zinger.data.model.*
import com.food.ordering.zinger.data.retrofit.OrderRepository
import kotlinx.coroutines.launch
import java.net.UnknownHostException
class Or... | <|turn>user
Implement the Android ViewModel `OrderViewModel` 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/com/food/ordering/zinger/ui/order/OrderViewModel.kt
Lang... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `UiText`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: screen/core/src/main/java/kasem/sm/ui_core/UiText.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (C) 2022, Kasem S.M
* All rights reserved.
*/
package kasem.sm.ui_core
import android.content.Context
import androidx.annotation.StringRes
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
sealed class UiText {
data class StringText(val value: ... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `UiText`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: screen/core/src/main/java/kasem/sm/ui_core/UiText.kt
Language: Kotlin
Framework: AndroidX / Jetpa... |
Implement the native Android class `MainVM` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/mrkaz/tokoin/presentation/ui/main/MainVM.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.mrkaz.tokoin.presentation.ui.main
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.mrkaz.tokoin.data.database.entity.ReferenceEntity
import com.mrkaz.tokoin.usecase.reference.ReferenceUseCase
import kotlinx.coroutines.*
import org.koin.core.KoinComponent
c... | <|turn>user
Implement the native Android class `MainVM` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/mrkaz/tokoin/presentation/ui/main/MainVM.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Cor... |
Implement the native Android class `AppDatabase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: CadastroPet/app/src/main/java/com/example/cadastropet/repository/AppDatabase.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.cadastropet.repository
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import com.example.cadastropet.model.PetModel
import com... | <|turn>user
Implement the native Android class `AppDatabase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: CadastroPet/app/src/main/java/com/example/cadastropet/repository/AppDatabase.kt
Language: Kotlin
Framework: AndroidX / Jetpack C... |
Implement the native Android class `DetailsActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/androidproject/githubuserapp/activity/DetailsActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.androidproject.githubuserapp.activity
import android.annotation.SuppressLint
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.wi... | <|turn>user
Implement the native Android class `DetailsActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/androidproject/githubuserapp/activity/DetailsActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpac... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `TransitioningPlaybackControlScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: feature/player/src/main/kotlin/dev/dexsr/klio/player/android/presentation/root/main/PlaybackControlScreen.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package dev.dexsr.klio.player.android.presentation.root.main
import androidx.compose.animation.core.*
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.foundation.layout.offset
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `TransitioningPlaybackControlScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: feature/player/src/main/kotlin/dev/dexsr/klio/player/android/presenta... |
Provide the native Android implementation for `AES.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: mewwalletbl/src/main/java/com/myetherwallet/mewwalletbl/key/util/AES.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.myetherwallet.mewwalletbl.key.util
import android.security.keystore.KeyProperties
import javax.crypto.Cipher
import javax.crypto.spec.SecretKeySpec
/**
* Created by BArtWell on 15.07.2019.
*/
private const val ALGORITHM = KeyProperties.KEY_ALGORITHM_AES
private const val TRANSFORMATION = "${... | <|turn>user
Provide the native Android implementation for `AES.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: mewwalletbl/src/main/java/com/myetherwallet/mewwalletbl/key/util/AES.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>mode... |
Implement the native Android class `ShowcaseView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: library/src/main/java/com/trendyol/showcase/ui/showcase/ShowcaseView.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.trendyol.showcase.ui.showcase
import android.content.Context
import android.graphics.Canvas
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.annotation.LayoutRes
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.databinding.DataBindingUtil... | <|turn>user
Implement the native Android class `ShowcaseView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: library/src/main/java/com/trendyol/showcase/ui/showcase/ShowcaseView.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose ... |
Implement the native Android class `KoFunctionDeclarationForKoModifierProviderTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: lib/src/integrationTest/kotlin/com/lemonappdev/konsist/core/declaration/kofunction/forkomodifier/KoFunctionDeclarationForKoModifierProviderTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.lemonappdev.konsist.core.declaration.kofunction.forkomodifier
import com.lemonappdev.konsist.TestSnippetProvider.getSnippetKoScope
import com.lemonappdev.konsist.api.KoModifier
import com.lemonappdev.konsist.api.KoModifier.DATA
import com.lemonappdev.konsist.api.KoModifier.OPEN
import com.lemonap... | <|turn>user
Implement the native Android class `KoFunctionDeclarationForKoModifierProviderTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: lib/src/integrationTest/kotlin/com/lemonappdev/konsist/core/declaration/kofunction/forkomodif... |
Implement the native Android class `ProductSearchQuery` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: VivaCoronia/app/src/main/java/de/tudarmstadt/iptk/foxtrot/vivacoronia/trading/models/ProductSearchQuery.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package de.tudarmstadt.iptk.foxtrot.vivacoronia.trading.models
import android.net.Uri
import android.os.Parcel
import android.os.Parcelable
import com.google.android.gms.maps.model.LatLng
class ProductSearchQuery (
var productName: String,
var category: St... | <|turn>user
Implement the native Android class `ProductSearchQuery` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: VivaCoronia/app/src/main/java/de/tudarmstadt/iptk/foxtrot/vivacoronia/trading/models/ProductSearchQuery.kt
Language: Kotl... |
Implement the native Android class `TransactionDetailsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/dev/spikeysanju/expensetracker/view/details/TransactionDetailsFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package dev.spikeysanju.expensetracker.view.details
import android.Manifest
import android.annotation.SuppressLint
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
impor... | <|turn>user
Implement the native Android class `TransactionDetailsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/dev/spikeysanju/expensetracker/view/details/TransactionDetailsFragment.kt
Language: Kotlin
Fram... |
Implement the native Android class `HomeFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: PeakTest/app/src/main/java/com/che/peaktask/ui/fragments/HomeFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.che.peaktask.ui.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import com.che.peaktask.R
import com.che.peaktask.databinding.Fragment... | <|turn>user
Implement the native Android class `HomeFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: PeakTest/app/src/main/java/com/che/peaktask/ui/fragments/HomeFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose... |
Implement the native Android class `ComposeActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: sample/src/main/java/indi/yume/tools/sample/ComposeActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package indi.yume.tools.sample
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import indi.yume.tools.dsladapter.*
import i... | <|turn>user
Implement the native Android class `ComposeActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: sample/src/main/java/indi/yume/tools/sample/ComposeActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotl... |
Implement the native Android class `RefreshDataWorker` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/example/android/asteroidsradar/backgroundwork/RefreshDataWorker.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/* Copyright 2021, <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, software
... | <|turn>user
Implement the native Android class `RefreshDataWorker` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/example/android/asteroidsradar/backgroundwork/RefreshDataWorker.kt
Language: Kotlin
Framework: Andro... |
Implement the native Android class `AliasWidget1RemoteViewsService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/host/stjin/anonaddy/widget/AliasWidget1RemoteViewsService.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package host.stjin.anonaddy.widget
import android.content.Intent
import android.widget.RemoteViewsService
class AliasWidget1RemoteViewsService : RemoteViewsService() {
override fun onGetViewFactory(intent: Intent): RemoteViewsFactory {
return AliasWidget1RemoteViewsFactory(this)
}
}
``` | <|turn>user
Implement the native Android class `AliasWidget1RemoteViewsService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/host/stjin/anonaddy/widget/AliasWidget1RemoteViewsService.kt
Language: Kotlin
Framework: An... |
Implement the native Android class `ChatApp` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/example/slabber/ChatApp.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.slabber
import android.app.Application
import io.socket.client.IO
import io.socket.client.Socket
import java.net.URISyntaxException
class ChatApp : Application() {
val socket: Socket
init {
try {
socket = IO.socket("ws://192.168.2.216:3000/")
} catch ... | <|turn>user
Implement the native Android class `ChatApp` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/example/slabber/ChatApp.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `light`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyling.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package org.jetbrains.jewel.intui.standalone.styling
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.shape.CornerSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compo... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `light`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiDropdow... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `HeaderFooterLayout`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: compose/ui/ui/integration-tests/ui-demos/src/main/java/androidx/compose/ui/demos/MultipleCollect.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 `HeaderFooterLayout`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: compose/ui/ui/integration-tests/ui-demos/src/main/java/androidx/compose/ui/demos/Mult... |
Implement the native Android class `MainFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: android/src/main/java/com/samelody/samples/android/features/main/MainFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.samelody.samples.android.features.main
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import com.samelody.samples.android.R
class MainFragment : Fragm... | <|turn>user
Implement the native Android class `MainFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: android/src/main/java/com/samelody/samples/android/features/main/MainFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack... |
Implement the native Android class `OnboardingActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/taro/aimentor/onboarding/OnboardingActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.taro.aimentor.onboarding
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.taro.aimentor.R
import com.taro.aimentor.databinding.OnboardingPageBinding
import com.taro.aimentor.home.MainActivity
import com.taro.aimentor.persistence.Pre... | <|turn>user
Implement the native Android class `OnboardingActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/taro/aimentor/onboarding/OnboardingActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.