instruction stringlengths 113 251 | input stringlengths 98 353 | output stringlengths 135 454k | text stringlengths 443 454k |
|---|---|---|---|
Implement the native Android class `SignupActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/graduation/mawruth/ui/signup/SignupActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.graduation.mawruth.ui.signup
import android.app.Dialog
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import androi... | <|turn>user
Implement the native Android class `SignupActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/graduation/mawruth/ui/signup/SignupActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose /... |
Provide the native Android implementation for `Note.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: modules/tak/compose/icons/src/main/kotlin/dev/jonpoulton/alakazam/tak/compose/icons/raptorx/Note.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package dev.jonpoulton.alakazam.tak.compose.icons.raptorx
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graph... | <|turn>user
Provide the native Android implementation for `Note.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: modules/tak/compose/icons/src/main/kotlin/dev/jonpoulton/alakazam/tak/compose/icons/raptorx/Note.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin ... |
Implement the native Android class `VideoViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: kohii-sample/src/main/java/kohii/v1/sample/ui/fbook/vh/VideoViewHolder.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) 2019 <NAME>, <EMAIL>
*
* 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 applica... | <|turn>user
Implement the native Android class `VideoViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: kohii-sample/src/main/java/kohii/v1/sample/ui/fbook/vh/VideoViewHolder.kt
Language: Kotlin
Framework: AndroidX / Jetpack Com... |
Provide the native Android implementation for `ColorStateList.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: Backpack/src/main/java/net/skyscanner/backpack/util/ColorStateList.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/**
* Backpack for Android - Skyscanner's Design System
*
* Copyright 2018-2021 Skyscanner 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/l... | <|turn>user
Provide the native Android implementation for `ColorStateList.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: Backpack/src/main/java/net/skyscanner/backpack/util/ColorStateList.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|... |
Implement the native Android class `AutofillStoredBackJavascriptInterface` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: autofill/autofill-impl/src/main/java/com/duckduckgo/autofill/impl/AutofillJavascriptInterface.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (c) 2022 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 `AutofillStoredBackJavascriptInterface` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: autofill/autofill-impl/src/main/java/com/duckduckgo/autofill/impl/AutofillJavascriptInterface.kt
Langu... |
Implement the native Android class `ShareItem` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/tomclaw/drawa/share/ShareItem.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.tomclaw.drawa.share
import android.os.Parcel
import android.os.Parcelable
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
class ShareItem(
val id: Int,
@DrawableRes val image: Int,
@StringRes val title: Int,
@StringRes val description: ... | <|turn>user
Implement the native Android class `ShareItem` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/tomclaw/drawa/share/ShareItem.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<... |
Implement the Android ViewModel `FoodDetailViewModel` 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/lxh/cookcommunity/ui/fragment/fooddetail/FoodDetailViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.lxh.cookcommunity.ui.fragment.fooddetail
import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.lxh.cookcommunity.manager.api.ApiService
import com.lxh.cookcommunity.model.api.home.Food
import com.lxh.cookcommunity.ui.base.BaseViewModel
import org.kodein.di.generic.in... | <|turn>user
Implement the Android ViewModel `FoodDetailViewModel` 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/lxh/cookcommunity/ui/fragment/fooddetail/FoodDe... |
Implement the Android ViewModel `AddNoteViewModel` 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/tech/danielwaiguru/notebook/presentation/viewmodels/AddNoteViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2020 <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 applic... | <|turn>user
Implement the Android ViewModel `AddNoteViewModel` 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/tech/danielwaiguru/notebook/presentation/viewmodels/Ad... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `setValue`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/java/com/jeanbarrossilva/realism/data/RealismPreference.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.jeanbarrossilva.realism.data
import android.content.Context
import android.util.Log
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.ContextAmbient
import androidx.compose.ui.res.stringResource
import androidx.core.content.edit
import com.jeanbarrossilva.realism.exte... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `setValue`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/java/com/jeanbarrossilva/realism/data/RealismPreference.kt
Language: Kotlin
Framew... |
Provide the native Android implementation for `SwipeRefreshLayoutActions.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: kakao/src/main/kotlin/io/github/kakaocup/kakao/swiperefresh/SwipeRefreshLayoutActions.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
@file:Suppress("unused")
package com.agoda.kakao.swiperefresh
import android.view.View
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import androidx.test.espresso.UiController
import androidx.test.espresso.ViewAction
import androidx.test.espresso.matcher.ViewMatchers
import com.agoda.kakao.co... | <|turn>user
Provide the native Android implementation for `SwipeRefreshLayoutActions.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: kakao/src/main/kotlin/io/github/kakaocup/kakao/swiperefresh/SwipeRefreshLayoutActions.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose... |
Implement the native Android class `CustomTransitionFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/pl/lightmobile/design01transitions/CustomTransitionFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package pl.lightmobile.design01transitions
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.transition.TransitionInflater
class CustomTransitionFragment : Fr... | <|turn>user
Implement the native Android class `CustomTransitionFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/pl/lightmobile/design01transitions/CustomTransitionFragment.kt
Language: Kotlin
Framework: Androi... |
Implement the native Android class `ContextBucket` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: onactivityresult/src/main/java/org/legobyte/onactivityresult/Proxy.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package org.legobyte.onactivityresult
import android.app.Activity
import android.content.Context
import android.content.ContextWrapper
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.os.ResultReceiver
import androidx.annotation.CheckRes... | <|turn>user
Implement the native Android class `ContextBucket` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: onactivityresult/src/main/java/org/legobyte/onactivityresult/Proxy.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose /... |
Implement the native Android class `PushPermissionChangedReceiver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: RetenoSdkPush/src/main/java/com/reteno/push/receiver/PushPermissionChangedReceiver.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.reteno.push.receiver
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.reteno.core.util.Logger
import com.reteno.core.util.isOsVersionSupported
class PushPermissionChangedReceiver : BroadcastReceiver() {
override fun onReceive(c... | <|turn>user
Implement the native Android class `PushPermissionChangedReceiver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: RetenoSdkPush/src/main/java/com/reteno/push/receiver/PushPermissionChangedReceiver.kt
Language: Kotlin
Framewo... |
Design a reactive Android Room DAO interface `JobDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. | Repository path: ground/src/main/java/com/google/android/ground/persistence/local/room/dao/JobDao.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | <|turn>user
Design a reactive Android Room DAO interface `JobDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Context:
Repository path: ground/src/main/java/com/google/android/ground/persistence/local/room/dao/JobDao.kt
Language: Kotlin
Framework: AndroidX / Jetpack... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `WorkoutDetailsScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/java/com/koleff/kare_android/ui/compose/screen/WorkoutDetailsScreen.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.koleff.kare_android.ui.compose.screen
import android.util.Log
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.comp... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `WorkoutDetailsScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/java/com/koleff/kare_android/ui/compose/screen/WorkoutDetailsScreen.kt... |
Implement the native Android class `ImageStoreLocal` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/jp/osdn/gokigen/thetaview/operation/imagefile/ImageStoreLocal.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package jp.osdn.gokigen.thetaview.operation.imagefile
import android.net.Uri
import android.os.Environment
import android.util.Log
import androidx.camera.core.ImageCapture
import androidx.camera.core.ImageCaptureException
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.content.C... | <|turn>user
Implement the native Android class `ImageStoreLocal` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/jp/osdn/gokigen/thetaview/operation/imagefile/ImageStoreLocal.kt
Language: Kotlin
Framework: AndroidX / Je... |
Implement the native Android class `RoomDataBaseEntityInfo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: src/AndroidODataOfflineSample/app/src/main/java/com/flexberry/androidodataofflinesample/data/local/datasource/room/RoomDataBaseEntityInfo.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.flexberry.androidodataofflinesample.data.local.datasource.room
import androidx.sqlite.db.SimpleSQLiteQuery
import com.flexberry.androidodataofflinesample.data.local.dao.BaseDao
import kotlin.reflect.KClass
/**
* Информация о базе данных сущности.
*
* @param T Тип сущности.
* @param kotlinCla... | <|turn>user
Implement the native Android class `RoomDataBaseEntityInfo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: src/AndroidODataOfflineSample/app/src/main/java/com/flexberry/androidodataofflinesample/data/local/datasource/room/Ro... |
Implement the native Android class `SubActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/example/pulsa/activities/SubActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.pulsa.activities
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.GestureDetector
import android.view.MotionEvent
import android.widget.Toast
import androidx.activity.result.contract.ActivityResultContracts
import androidx.core.view.Ge... | <|turn>user
Implement the native Android class `SubActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/example/pulsa/activities/SubActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Co... |
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/packt/tellastory/activities/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.packt.tellastory.activities
import android.app.Fragment;
import android.content.Intent
import android.os.Bundle;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.v... | <|turn>user
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/packt/tellastory/activities/MainActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotl... |
Implement the native Android class `StableViewPager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: common/src/main/kotlin/com/yod/common/widget/StableViewPager.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.yod.common.widget
import android.content.Context
import android.support.v4.view.ViewPager
import android.util.AttributeSet
import android.view.MotionEvent
import timber.log.Timber
/**
* stable
* Created by tangJ on 2017/9/5
*/
class StableViewPager @JvmOverloads constructor(context: Context,... | <|turn>user
Implement the native Android class `StableViewPager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: common/src/main/kotlin/com/yod/common/widget/StableViewPager.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kot... |
Implement the native Android class `ChapterCountOffline` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/kotlin/com/pnuema/bible/android/database/ChapterCountOffline.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.pnuema.bible.android.database
import androidx.room.Entity
import com.pnuema.bible.android.data.firefly.ChapterCount
@Entity(tableName = "offlineChapterCount", primaryKeys = ["book_id","version"])
data class ChapterCountOffline (
var book_id: Int,
var version: String,
val chapterCount... | <|turn>user
Implement the native Android class `ChapterCountOffline` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/kotlin/com/pnuema/bible/android/database/ChapterCountOffline.kt
Language: Kotlin
Framework: AndroidX / Jetp... |
Implement the native Android class `ScreenService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/pedro/streamer/screen/ScreenService.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (C) 2024 pedroSG94.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | <|turn>user
Implement the native Android class `ScreenService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/pedro/streamer/screen/ScreenService.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin C... |
Implement the Android ViewModel `ImageViewModel` 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/bernaferrari/changedetection/detailsvisual/VisualViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.bernaferrari.changedetection.detailsImage
import android.app.Application
import android.arch.lifecycle.AndroidViewModel
import android.arch.lifecycle.LiveData
import android.arch.paging.LivePagedListBuilder
import android.arch.paging.PagedList
import com.bernaferrari.changedetection.data.Snap
imp... | <|turn>user
Implement the Android ViewModel `ImageViewModel` 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/bernaferrari/changedetection/detailsvisual/VisualVie... |
Implement the native Android class `AndroidGenericFrameworkAppGlideModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/echomu/github/AndroidGenericFrameworkAppGlideModule.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.echomu.github
import android.content.Context
import com.bumptech.glide.GlideBuilder
import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.load.DecodeFormat
import com.bumptech.glide.module.AppGlideModule
import com.bumptech.glide.request.RequestOptions
/**
* Created by echo... | <|turn>user
Implement the native Android class `AndroidGenericFrameworkAppGlideModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/echomu/github/AndroidGenericFrameworkAppGlideModule.kt
Language: Kotlin
Framewor... |
Implement the native Android class `BaseAttr` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: multi-theme-core/src/main/java/com/magic/multi/theme/core/base/BaseAttr.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.magic.multi.theme.core.base
import android.view.View
/**
* Created by mistletoe
* on 7/23/21
**/
abstract class BaseAttr {
/**
* xml里某个属性的名称
*/
var attrName: String? = null
/**
* xml里某个属性的值
*/
var attrValue: Int = 0
/**
* xml里某个属性值的名称
*/
... | <|turn>user
Implement the native Android class `BaseAttr` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: multi-theme-core/src/main/java/com/magic/multi/theme/core/base/BaseAttr.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose /... |
Implement the Android ViewModel `EditJournalEntryViewModel` 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/ramitsuri/notificationjournal/ui/editjournal/EditJournalEntryViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.ramitsuri.notificationjournal.ui.editjournal
import androidx.lifecycle.AbstractSavedStateViewModelFactory
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.navigation.NavBackStackEntry
import com.ramitsuri.notif... | <|turn>user
Implement the Android ViewModel `EditJournalEntryViewModel` 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/ramitsuri/notificationjournal/ui/editjour... |
Implement the native Android class `NIP19EmbedTests` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: quartz/src/androidTest/java/com/vitorpamplona/quartz/NIP19EmbedTests.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/**
* Copyright (c) 2024 Vitor Pamplona
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
* copy, modify, ... | <|turn>user
Implement the native Android class `NIP19EmbedTests` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: quartz/src/androidTest/java/com/vitorpamplona/quartz/NIP19EmbedTests.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compo... |
Implement the native Android class `ContactSyncWorker` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: common/data/src/main/java/app/common/data/work/ContactSyncWorker.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package app.common.data.work
import android.content.Context
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import app.common.data.domain.contacts.ContactsRepo
import app.common.data.domain.contacts.ContactsRepoInterface
import org.koin.java.KoinJavaComponent.inject
class ContactS... | <|turn>user
Implement the native Android class `ContactSyncWorker` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: common/data/src/main/java/app/common/data/work/ContactSyncWorker.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose... |
Implement the native Android class `AppDimensions` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/dev/spikeysanju/einsen/ui/theme/dimensions/AppDimensions.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2020-2021 Photos.network developers
*
* 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 b... | <|turn>user
Implement the native Android class `AppDimensions` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/dev/spikeysanju/einsen/ui/theme/dimensions/AppDimensions.kt
Language: Kotlin
Framework: AndroidX / Jetpack C... |
Provide the native Android implementation for `Color.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: app/src/main/java/siarhei/luskanau/managed/virtual/device/ui/theme/Color.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
@file:Suppress("MagicNumber")
package siarhei.luskanau.managed.virtual.device.ui.theme
import androidx.compose.ui.graphics.Color
val Purple80 = Color(0xFFD0BCFF)
val PurpleGrey80 = Color(0xFFCCC2DC)
val Pink80 = Color(0xFFEFB8C8)
val Purple40 = Color(0xFF6650a4)
val PurpleGrey40 = Color(0xFF625b71)
val Pi... | <|turn>user
Provide the native Android implementation for `Color.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: app/src/main/java/siarhei/luskanau/managed/virtual/device/ui/theme/Color.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|tur... |
Implement the Android ViewModel `UpdateContactViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. | Repository path: ui-lib/src/main/java/co/electriccoin/zcash/ui/screen/contact/viewmodel/UpdateContactViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package co.electriccoin.zcash.ui.screen.contact.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import cash.z.ecc.sdk.ANDROID_STATE_FLOW_TIMEOUT
import co.electriccoin.zcash.ui.R
import co.electriccoin.zcash.ui.common.model.AddressBookContact
import co.electriccoin.zcas... | <|turn>user
Implement the Android ViewModel `UpdateContactViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Context:
Repository path: ui-lib/src/main/java/co/electriccoin/zcash/ui/screen/contact/viewm... |
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `RouteActivityDashboardAdapter` using Kotlinx Serialization. | Repository path: app/src/main/java/com/kcteam/features/dashboard/presentation/RouteActivityDashboardAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.breezepowell.features.dashboard.presentation
import android.content.Context
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.breezepowell.R
import com.br... | <|turn>user
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `RouteActivityDashboardAdapter` using Kotlinx Serialization.
Context:
Repository path: app/src/main/java/com/kcteam/features/dashboard/presentation/RouteActivityDashboardAdapter.kt
Language: Kotlin
Framework: Androi... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AssetsScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/java/com/douglasqueiroz/thewallet/feature/assets/AssetsScreen.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.douglasqueiroz.thewallet.feature.assets
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AssetsScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/java/com/douglasqueiroz/thewallet/feature/assets/AssetsScreen.kt
Language: Kot... |
Implement the native Android class `AuthActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/tomorrowit/budgetgamer/presentation/activities/AuthActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.tomorrowit.budgetgamer.presentation.activities
import android.os.Bundle
import com.tomorrowit.budgetgamer.common.config.extensions.finishAnimation
import com.tomorrowit.budgetgamer.databinding.ActivityAuthBinding
import com.tomorrowit.budgetgamer.domain.repo.LoggerRepo
import com.tomorrowit.budge... | <|turn>user
Implement the native Android class `AuthActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/tomorrowit/budgetgamer/presentation/activities/AuthActivity.kt
Language: Kotlin
Framework: AndroidX / Jet... |
Implement the Android ViewModel `CariViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. | Repository path: ui/src/main/java/org/redaksi/ui/cari/CariViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package org.redaksi.ui.cari
import androidx.compose.ui.text.input.TextFieldValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import androidx.paging.cachedIn
import dagger.hilt.a... | <|turn>user
Implement the Android ViewModel `CariViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Context:
Repository path: ui/src/main/java/org/redaksi/ui/cari/CariViewModel.kt
Language: Kotlin
Fram... |
Implement the native Android class `ActiveDetectorActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/ch/abertschi/adfree/view/mod/ActiveDetectorActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package ch.abertschi.adfree.view.mod
import android.opengl.Visibility
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.text.Html
import android.widget.TextView
import android.view.LayoutInflater
import ch.abertschi.adfree.R
import org.jetbrains.anko.*
import android... | <|turn>user
Implement the native Android class `ActiveDetectorActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/ch/abertschi/adfree/view/mod/ActiveDetectorActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpa... |
Provide the native Android implementation for `DomainGenerator.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: buildSrc/src/main/kotlin/generator/DomainGenerator.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package org.hildan.chrome.devtools.build.generator
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import org.hildan.chrome.devtools.build.model.ChromeDPCommand
import org.hildan.chrome.devtools.build.model.ChromeDPDomain
import org.hildan.chrom... | <|turn>user
Provide the native Android implementation for `DomainGenerator.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: buildSrc/src/main/kotlin/generator/DomainGenerator.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>model
```k... |
Implement the native Android class `ValidatorsAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: feature-staking-impl/src/main/java/jp/co/soramitsu/staking/impl/presentation/validators/ValidatorsAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package jp.co.soramitsu.staking.impl.presentation.validators
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.R... | <|turn>user
Implement the native Android class `ValidatorsAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: feature-staking-impl/src/main/java/jp/co/soramitsu/staking/impl/presentation/validators/ValidatorsAdapter.kt
Language: Kot... |
Implement the native Android class `ShoeDetailsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/android/example/com/udacityfirstproject/ui/shoeDetails/ShoeDetailsFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package android.example.com.udacityfirstproject.ui.shoeDetails
import android.example.com.udacityfirstproject.databinding.ShoeDetailsFragmentBinding
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.f... | <|turn>user
Implement the native Android class `ShoeDetailsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/android/example/com/udacityfirstproject/ui/shoeDetails/ShoeDetailsFragment.kt
Language: Kotlin
Framewo... |
Implement the native Android class `ProfileViewHolderTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/test/java/com/guzzardi/profileslist/view/views/profileslist/ProfileViewHolderTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.guzzardi.profileslist.view.views.profileslist
import android.view.View
import android.widget.FrameLayout
import com.guzzardi.profileslist.RobolectricTest
import com.guzzardi.profileslist.model.UserProfile
import org.junit.Assert
import org.junit.Test
class ProfileViewHolderTest : RobolectricTest... | <|turn>user
Implement the native Android class `ProfileViewHolderTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/test/java/com/guzzardi/profileslist/view/views/profileslist/ProfileViewHolderTest.kt
Language: Kotlin
Framewor... |
Implement the native Android class `ProductListActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/openfoodfacts/github/scrachx/openfood/features/productlist/ProductListActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package openfoodfacts.github.scrachx.openfood.features.productlist
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.os.Environment
import android.view.Menu
import andro... | <|turn>user
Implement the native Android class `ProductListActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/openfoodfacts/github/scrachx/openfood/features/productlist/ProductListActivity.kt
Language: Kotlin
Fra... |
Implement the native Android class `ImageFragmentViewTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/androidTest/java/com/example/sandbox/main/image/ImageFragmentViewTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.sandbox.main.image
import androidx.fragment.app.testing.FragmentScenario
import androidx.fragment.app.testing.launchFragmentInContainer
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMa... | <|turn>user
Implement the native Android class `ImageFragmentViewTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/androidTest/java/com/example/sandbox/main/image/ImageFragmentViewTest.kt
Language: Kotlin
Framework: AndroidX ... |
Provide the native Android implementation for `HistoryListUIManager.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: history/src/main/java/com/chrisjanusa/history/HistoryListUIManager.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.chrisjanusa.blocks
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.LinearLayoutManager
import com.chrisjanusa.base.CommunicationHelper
import com.chrisjanusa.base.interfaces.FeatureUIMana... | <|turn>user
Provide the native Android implementation for `HistoryListUIManager.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: history/src/main/java/com/chrisjanusa/history/HistoryListUIManager.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tur... |
Implement the native Android class `ApplicationData` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/wireguard/android/model/ApplicationData.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright © 2017-2018 WireGuard LLC.
* Copyright © 2018-2019 <NAME> <<EMAIL>>. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.wireguard.android.model
import android.graphics.drawable.Drawable
import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
i... | <|turn>user
Implement the native Android class `ApplicationData` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/wireguard/android/model/ApplicationData.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Ko... |
Provide the native Android implementation for `Map.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: shared/src/commonMain/kotlin/com/example/moveeapp_compose_kmm/map/Map.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.moveeapp_compose_kmm.map
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.example.moveeapp_compose_kmm.domain.location.DeviceLocation
import com.example.moveeapp_compose_kmm.ui.scene.map.Cinema
import com.example.moveeapp_compose_kmm.ui.scene.map.M... | <|turn>user
Provide the native Android implementation for `Map.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: shared/src/commonMain/kotlin/com/example/moveeapp_compose_kmm/map/Map.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>mod... |
Implement the native Android class `DumbServiceImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: platform/platform-impl/src/com/intellij/openapi/project/DumbServiceImpl.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.project
import com.intellij.concurrency.currentThreadContext
import com.intellij.icons.AllIcons
import com.intellij.ide.IdeBundle
import com.intellij.openapi.D... | <|turn>user
Implement the native Android class `DumbServiceImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: platform/platform-impl/src/com/intellij/openapi/project/DumbServiceImpl.kt
Language: Kotlin
Framework: AndroidX / Jetpack Co... |
Provide the native Android implementation for `TestComposeEnvironment.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: components/resources/library/src/commonTest/kotlin/org/jetbrains/compose/resources/TestComposeEnvironment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package org.jetbrains.compose.resources
import androidx.compose.runtime.Composable
@OptIn(InternalResourceApi::class)
internal fun getTestEnvironment() = ResourceEnvironment(
language = LanguageQualifier("en"),
region = RegionQualifier("US"),
theme = ThemeQualifier.LIGHT,
density = DensityQu... | <|turn>user
Provide the native Android implementation for `TestComposeEnvironment.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: components/resources/library/src/commonTest/kotlin/org/jetbrains/compose/resources/TestComposeEnvironment.kt
Language: Kotlin
Framework: AndroidX ... |
Implement the native Android class `FakeFetchDadJokeFeedWorkerFactory` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: android/feature/home/src/androidTest/kotlin/com/bael/dads/feature/home/worker/factory/FakeFetchDadJokeFeedWorkerFactory.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.bael.dads.feature.home.worker.factory
import android.content.Context
import androidx.work.ListenableWorker
import androidx.work.WorkerFactory
import androidx.work.WorkerParameters
import com.bael.dads.domain.home.usecase.LoadDadJokeFeedUseCase
import com.bael.dads.domain.home.usecase.LoadDadJokeU... | <|turn>user
Implement the native Android class `FakeFetchDadJokeFeedWorkerFactory` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: android/feature/home/src/androidTest/kotlin/com/bael/dads/feature/home/worker/factory/FakeFetchDadJokeFeed... |
Implement the native Android class `OAuthHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: oauth/src/main/java/com/lightspark/sdk/auth/oauth/OAuthHelper.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.lightspark.sdk.auth.oauth
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.net.Uri
import com.lightspark.sdk.core.requester.ServerEnvironment
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
import kotlinx.cor... | <|turn>user
Implement the native Android class `OAuthHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: oauth/src/main/java/com/lightspark/sdk/auth/oauth/OAuthHelper.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin... |
Implement the native Android class `DataBindingAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/pl/srw/billcalculator/common/list/DataBindingAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package pl.srw.billcalculator.common.list
import android.databinding.ViewDataBinding
import android.support.v7.util.DiffUtil
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import kotlinx.coroutines.experimental.android.UI
import kotlinx.coroutin... | <|turn>user
Implement the native Android class `DataBindingAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/pl/srw/billcalculator/common/list/DataBindingAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack ... |
Implement the native Android class `DefaultTestDevices` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: core/test/src/main/kotlin/me/jerryokafor/ihenkiri/core/test/util/ScreenshotHelper.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* The MIT License (MIT)
*
* Copyright (c) 2023 IheNkiri Project
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rig... | <|turn>user
Implement the native Android class `DefaultTestDevices` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: core/test/src/main/kotlin/me/jerryokafor/ihenkiri/core/test/util/ScreenshotHelper.kt
Language: Kotlin
Framework: AndroidX... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `FastScrollbar`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollbar/AppScrollbars.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2023 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
*
* https://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 `FastScrollbar`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: core/designsystem/src/main/kotlin/com/merxury/blocker/core/designsystem/component/scrollba... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AppNavigation`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: presentation/src/main/java/com/nisrulz/example/spacexapi/presentation/navigation/AppNavigation.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.nisrulz.example.spacexapi.presentation.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.nisrulz.example.spacexapi.presentation.features... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AppNavigation`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: presentation/src/main/java/com/nisrulz/example/spacexapi/presentation/navigation/AppNaviga... |
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `CameraModeButtonComponent` using Kotlinx Serialization. | Repository path: ui-components/src/main/java/com/mapbox/navigation/ui/components/maps/internal/ui/CameraModeButtonComponent.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.mapbox.navigation.ui.maps.internal.ui
import android.view.View
import com.mapbox.navigation.core.MapboxNavigation
import com.mapbox.navigation.ui.base.lifecycle.UIComponent
import com.mapbox.navigation.ui.maps.camera.NavigationCamera
import com.mapbox.navigation.ui.maps.camera.state.NavigationCam... | <|turn>user
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `CameraModeButtonComponent` using Kotlinx Serialization.
Context:
Repository path: ui-components/src/main/java/com/mapbox/navigation/ui/components/maps/internal/ui/CameraModeButtonComponent.kt
Language: Kotlin
Frame... |
Implement the Android ViewModel `CountryListViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. | Repository path: viewmodels/src/main/java/com/example/viewmodels/CountryListViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.viewmodels
import com.example.domainmodels.Continent
import com.example.domainmodels.Country
import com.example.domainmodels.ServerStatus
import com.example.errors.CountryListError
import com.example.logic.CountryListLogic
import com.example.logic.ServerStatusLogic
import io.reactivex.rxj... | <|turn>user
Implement the Android ViewModel `CountryListViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Context:
Repository path: viewmodels/src/main/java/com/example/viewmodels/CountryListViewModel... |
Implement the native Android class `DidsdkPlugin` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: didsdk/android/src/main/kotlin/com/appgate/didsdk/DidsdkPlugin.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.appgate.didsdk
import android.content.Context
import android.content.Intent
import android.util.Log
import com.appgate.appgate_sdk.data.utils.GsonUtil
import com.appgate.appgate_sdk.encryptor.exceptions.SDKException
import com.appgate.didm_auth.DetectID
import com.appgate.didm_auth.common.handler... | <|turn>user
Implement the native Android class `DidsdkPlugin` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: didsdk/android/src/main/kotlin/com/appgate/didsdk/DidsdkPlugin.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotl... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `currentWindowAdaptiveInfo`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: video-sdk/src/main/java/com/kaleyra/video_sdk/utils/WindowSizeClassUtil.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.kaleyra.video_sdk.utils
import android.content.res.Configuration
import androidx.compose.material3.windowsizeclass.ExperimentalMaterial3WindowSizeClassApi
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
impor... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `currentWindowAdaptiveInfo`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: video-sdk/src/main/java/com/kaleyra/video_sdk/utils/WindowSizeClassUtil.kt
Lan... |
Provide the native Android implementation for `CSVParser.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: app/src/main/java/com/example/compose/rally/data/util/csv/CSVParser.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.compose.rally.data.util.csv
import android.content.Context
import android.net.Uri
import android.os.Build
import android.util.Log
import android.widget.Toast
import androidx.annotation.RequiresApi
import com.example.compose.rally.R
import com.example.compose.rally.data.account.Account
imp... | <|turn>user
Provide the native Android implementation for `CSVParser.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: app/src/main/java/com/example/compose/rally/data/util/csv/CSVParser.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn... |
Provide the native Android implementation for `UtilKInputMethodManagerWrapper.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: basick/src/main/java/com/mozhimen/basick/utilk/android/view/UtilKInputMethodManagerWrapper.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.mozhimen.basick.utilk.android.view
import android.app.Activity
import android.content.Context
import android.util.Log
import android.view.MotionEvent
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import androidx.annotation.RequiresApi
i... | <|turn>user
Provide the native Android implementation for `UtilKInputMethodManagerWrapper.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: basick/src/main/java/com/mozhimen/basick/utilk/android/view/UtilKInputMethodManagerWrapper.kt
Language: Kotlin
Framework: AndroidX / Jetpa... |
Implement the Android ViewModel `SharedUwaziSubmissionViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. | Repository path: mobile/src/main/java/rs/readahead/washington/mobile/views/fragment/uwazi/entry/SharedUwaziSubmissionViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package rs.readahead.washington.mobile.views.fragment.uwazi.entry
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.google.gson.Gson
import com.hzontal.tella_vault.VaultFile
im... | <|turn>user
Implement the Android ViewModel `SharedUwaziSubmissionViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Context:
Repository path: mobile/src/main/java/rs/readahead/washington/mobile/views/... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AssetListItem`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: common/src/main/java/jp/co/soramitsu/common/compose/component/AssetListItem.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package jp.co.soramitsu.common.compose.component
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.co... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AssetListItem`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: common/src/main/java/jp/co/soramitsu/common/compose/component/AssetListItem.kt
Language: K... |
Provide the native Android implementation for `Colors.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: src/main/kotlin/me/bytebeats/charts/desktop/app/theme/Colors.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package me.bytebeats.charts.desktop.app.theme
import androidx.compose.ui.graphics.Color
/**
* @Author bytebeats
* @Email <<EMAIL>>
* @Github https://github.com/bytebeats
* @Created at 2022/3/10 21:08
* @Version 1.0
* @Description TO-DO
*/
val Purple200 = Color(0xFFBB86FC)
val Purple500 = Color(0xFF6... | <|turn>user
Provide the native Android implementation for `Colors.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: src/main/kotlin/me/bytebeats/charts/desktop/app/theme/Colors.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>model
```... |
Implement the native Android class `StaticNavBarPanel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: platform/lang-impl/src/com/intellij/ide/navbar/ui/StaticNavBarPanel.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 com.intellij.ide.navbar.ui
import com.intellij.ide.navbar.ide.*
import com.intellij.ide.navbar.vm.NavBarVm
import com.intellij.openapi.application.EDT
import com.intellij.openapi.p... | <|turn>user
Implement the native Android class `StaticNavBarPanel` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: platform/lang-impl/src/com/intellij/ide/navbar/ui/StaticNavBarPanel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Comp... |
Implement the native Android class `MapboxMarkerAnnotation` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: mapbox/src/main/java/nz/co/trademe/mapme/mapbox/MapboxMarkerAnnotation.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package nz.co.trademe.mapme.mapbox
import android.content.Context
import android.graphics.Bitmap
import android.util.Log
import com.mapbox.mapboxsdk.annotations.IconFactory
import com.mapbox.mapboxsdk.annotations.Marker
import com.mapbox.mapboxsdk.annotations.MarkerOptions
import com.mapbox.mapboxsdk.maps.Ma... | <|turn>user
Implement the native Android class `MapboxMarkerAnnotation` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: mapbox/src/main/java/nz/co/trademe/mapme/mapbox/MapboxMarkerAnnotation.kt
Language: Kotlin
Framework: AndroidX / Jetp... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DemoTheme`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: android/navigation_module_compose/src/main/java/com/example/sdk/sample/ui/common/DemoTheme.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.sdk.sample.ui.common
import androidx.compose.material.MaterialTheme
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
val demoColors = lightColors()
@Composable
fun DemoTheme(children: @Composable () -> Unit) {
MaterialTheme(colors = demoColors) {... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DemoTheme`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: android/navigation_module_compose/src/main/java/com/example/sdk/sample/ui/common/DemoTheme.kt
... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `PlantsScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: plants/plant-list/src/main/kotlin/xyz/qwexter/plant_list/PlantsScreen.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package xyz.qwexter.plant_list
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.*
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
impo... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `PlantsScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: plants/plant-list/src/main/kotlin/xyz/qwexter/plant_list/PlantsScreen.kt
Language: Kotlin
F... |
Implement the native Android class `Native2FlutterActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: example/android/app/src/main/kotlin/com/yuxiaor/flutter/g_faraday_example/basic/Native2FlutterActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.yuxiaor.flutter.g_faraday_example.basic
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.yuxiaor.flutter.g_faraday.FaradayActivity
import com.... | <|turn>user
Implement the native Android class `Native2FlutterActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: example/android/app/src/main/kotlin/com/yuxiaor/flutter/g_faraday_example/basic/Native2FlutterActivity.kt
Language: K... |
Implement the native Android class `BillingListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/kcteam/features/billing/presentation/BillingListFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.breezesalesoriplast.features.billing.presentation
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Bundle
import android.os.Environment
... | <|turn>user
Implement the native Android class `BillingListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/kcteam/features/billing/presentation/BillingListFragment.kt
Language: Kotlin
Framework: AndroidX /... |
Implement the native Android class `ViewAllTAListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/kcteam/features/TA/ViewAllTAListFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.breezebppoddarhospital.features.TA
import android.app.Dialog
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import com.google.android.material.floatingactionbutton.FloatingActionButton
import androidx.recyclerview.widget.LinearLayoutMa... | <|turn>user
Implement the native Android class `ViewAllTAListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/kcteam/features/TA/ViewAllTAListFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compo... |
Implement the native Android class `IntroductionActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/inc/mowa/ui/introduction/IntroductionActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.inc.mowa.ui.introduction
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.inc.mowa.R
import com.inc.mowa.databinding.ActivityIntroductionBinding
import com.inc.mowa.ui.login.LoginActivity
import com.inc.mowa.utils.getIntroductionVie... | <|turn>user
Implement the native Android class `IntroductionActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/inc/mowa/ui/introduction/IntroductionActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack C... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ShoppingListApp`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/java/me/kofesst/android/shoppinglist/presentation/ShoppingListApp.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package me.kofesst.android.shoppinglist.presentation
import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.ArrowBack
import androidx.compose.material.icons.outlined.ExitToApp
import androidx.compose.material3.*
import androidx... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `ShoppingListApp`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/java/me/kofesst/android/shoppinglist/presentation/ShoppingListApp.kt
Langua... |
Provide the native Android implementation for `AppActivityResultContracts.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: app/src/main/java/com/github/jing332/tts_server_android/ui/AppActivityResultContracts.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.github.jing332.tts_server_android.ui
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Parcelable
import androidx.activity.result.contract.ActivityResultContract
import com.github.jing332.tts_server_android.constant.K... | <|turn>user
Provide the native Android implementation for `AppActivityResultContracts.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: app/src/main/java/com/github/jing332/tts_server_android/ui/AppActivityResultContracts.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compos... |
Provide the native Android implementation for `CameraInfo+id.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: package/android/src/main/java/com/mrousavy/camera/core/extensions/CameraInfo+id.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.mrousavy.camera.core.extensions
import android.annotation.SuppressLint
import androidx.camera.core.CameraInfo
import androidx.camera.core.impl.CameraInfoInternal
val CameraInfo.id: String?
@SuppressLint("RestrictedApi")
get() {
val infoInternal = this as? CameraInfoInternal
if (infoI... | <|turn>user
Provide the native Android implementation for `CameraInfo+id.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: package/android/src/main/java/com/mrousavy/camera/core/extensions/CameraInfo+id.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutin... |
Implement the native Android class `AcceptedState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: ui/src/main/java/com/pyamsoft/pydroid/ui/internal/datapolicy/DataPolicyViewState.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2023 pyamsoft
*
* 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 `AcceptedState` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: ui/src/main/java/com/pyamsoft/pydroid/ui/internal/datapolicy/DataPolicyViewState.kt
Language: Kotlin
Framework: AndroidX / Jet... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `LaunchList`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: mobile/android/apollo_graphql_tutorial/apollo-kotlin-tutorial/compose/start/app/src/main/java/com/example/rocketreserver/LaunchList.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
@file:OptIn(ExperimentalMaterial3Api::class)
package com.example.rocketreserver
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `LaunchList`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: mobile/android/apollo_graphql_tutorial/apollo-kotlin-tutorial/compose/start/app/src/main/java... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Frequency`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: app/src/main/kotlin/com/aripuca/finhelper/ui/screens/investment/InvestmentViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.aripuca.finhelper.ui.screens.investment
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.res.stringResource
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.aripuca.finhelper.R
import com.ar... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Frequency`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: app/src/main/kotlin/com/aripuca/finhelper/ui/screens/investment/InvestmentViewModel.kt
Languag... |
Implement the native Android class `BeaconSaved` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/bridou_n/beaconscanner/models/BeaconSaved.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.bridou_n.beaconscanner.models
import android.text.format.DateUtils
import androidx.room.ColumnInfo
import androidx.room.Embedded
import androidx.room.Entity
import com.bridou_n.beaconscanner.Database.BeaconsDao
import com.bridou_n.beaconscanner.utils.BuildTypes
import com.bridou_n.beaconscanner.u... | <|turn>user
Implement the native Android class `BeaconSaved` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/bridou_n/beaconscanner/models/BeaconSaved.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotl... |
Provide the native Android implementation for `Polaroid.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/Polaroid.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package compose.icons.tablericons
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 androidx.compose.... | <|turn>user
Provide the native Android implementation for `Polaroid.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/Polaroid.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|tur... |
Implement the native Android class `CommandActivityTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/androidTest/kotlin/io/github/hidroh/tldroid/CommandActivityTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package io.github.hidroh.tldroid
import android.content.Intent
import android.support.test.InstrumentationRegistry
import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.action.ViewActions.click
import android.support.test.espresso.intent.Intents.intended
import android.sup... | <|turn>user
Implement the native Android class `CommandActivityTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/androidTest/kotlin/io/github/hidroh/tldroid/CommandActivityTest.kt
Language: Kotlin
Framework: AndroidX / Jetpac... |
Provide the native Android implementation for `Calendar2Range.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: bootstrap-icons-compose/src/main/java/com/wiryadev/bootstrapiconscompose/bootstrapicons/filled/Calendar2Range.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.wiryadev.bootstrapiconscompose.bootstrapicons.filled
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.... | <|turn>user
Provide the native Android implementation for `Calendar2Range.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: bootstrap-icons-compose/src/main/java/com/wiryadev/bootstrapiconscompose/bootstrapicons/filled/Calendar2Range.kt
Language: Kotlin
Framework: AndroidX / Je... |
Implement the native Android class `Task` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/ru/net2fox/trackerapp/data/model/Task.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package ru.net2fox.trackerapp.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.Date
@Entity(tableName = "tasks")
data class Task(
@PrimaryKey(autoGenerate = true) val id: Int = 0,
var title: String,
var description: String?,
var isCompleted: Boolean = f... | <|turn>user
Implement the native Android class `Task` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/ru/net2fox/trackerapp/data/model/Task.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<t... |
Implement the native Android class `Task` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/ru/net2fox/trackerapp/data/model/Task.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package ru.net2fox.trackerapp.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.Date
@Entity(tableName = "tasks")
data class Task(
@PrimaryKey(autoGenerate = true) val id: Int = 0,
var title: String,
var description: String?,
var isCompleted: Boolean = f... | <|turn>user
Implement the native Android class `Task` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/ru/net2fox/trackerapp/data/model/Task.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<t... |
Implement the native Android class `that` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: coil-base/src/main/java/coil/ImageLoader.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
@file:Suppress("UNUSED_PARAMETER")
package coil
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.drawable.Drawable
import androidx.annotation.DrawableRes
import androidx.annotation.FloatRange
import androidx.lifecycle.Lifecycle
impor... | <|turn>user
Implement the native Android class `that` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: coil-base/src/main/java/coil/ImageLoader.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>mo... |
Provide the native Android implementation for `Quora.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Quora.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.u... | <|turn>user
Provide the native Android implementation for `Quora.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Quora.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>
<|turn>mode... |
Implement the Android ViewModel `AnimeViewModel` 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/knf/kuma/animeinfo/AnimeViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package knf.kuma.animeinfo
import android.content.Context
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import knf.kuma.commons.doOnUI
import knf.kuma.commons.jsoupCookies
import knf.kuma.commons.noCrashLet
import knf.kuma.database.CacheDB
import knf.kuma.pojos.AnimeObject
imp... | <|turn>user
Implement the Android ViewModel `AnimeViewModel` 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/knf/kuma/animeinfo/AnimeViewModel.kt
Language: Kotlin
Fr... |
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `Navigation` using Kotlinx Serialization. | Repository path: feature/search/src/main/kotlin/com/merxury/blocker/feature/search/navigation/SearchNavigation.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2023 Blocker
*
* 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 agr... | <|turn>user
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `Navigation` using Kotlinx Serialization.
Context:
Repository path: feature/search/src/main/kotlin/com/merxury/blocker/feature/search/navigation/SearchNavigation.kt
Language: Kotlin
Framework: AndroidX / Jetpack Com... |
Provide the native Android implementation for `FaceDisagreeLarge.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/large/FaceDisagreeLarge.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package ch.sbb.compose_mds.sbbicons.large
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Com... | <|turn>user
Provide the native Android implementation for `FaceDisagreeLarge.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/large/FaceDisagreeLarge.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Corout... |
Implement the native Android class `MainActivity3` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: java/com/example/minecrafttamagotchiapp/MainActivity3.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.example.minecrafttamagotchiapp
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import android.widget.ImageView
class MainActivity3 : AppCompatActivity() {
override fun onCreate(... | <|turn>user
Implement the native Android class `MainActivity3` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: java/com/example/minecrafttamagotchiapp/MainActivity3.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Corou... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DefaultPortraitCatalogListScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: apps/mobile/src/main/kotlin/dev/marlonlom/cappajv/features/catalog_list/screens/DefaultPortraitCatalogListScreen.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright 2024 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.cappajv.features.catalog_list.screens
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ExperimentalLayoutApi
... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DefaultPortraitCatalogListScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: apps/mobile/src/main/kotlin/dev/marlonlom/cappajv/features/catalog_list... |
Implement the native Android class `DetailActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/codepath/articlesearch/DetailActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.codepath.articlesearch
import android.os.Bundle
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.bumptech.glide.Glide
private const val TAG = "DetailActivity"
class DetailActivity : AppCompatActivity() {
private latein... | <|turn>user
Implement the native Android class `DetailActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/codepath/articlesearch/DetailActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotli... |
Implement the native Android class `ReimbursementExpenseAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/kcteam/features/reimbursement/presentation/ReimbursementExpenseAdapter.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.santebreezefsm.features.reimbursement.presentation
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.bumptech.glide.Glide
import com.bum... | <|turn>user
Implement the native Android class `ReimbursementExpenseAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/kcteam/features/reimbursement/presentation/ReimbursementExpenseAdapter.kt
Language: Kotlin... |
Provide the native Android implementation for `StubGenerator.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: wire-grpc-server-generator/src/main/java/com/squareup/wire/kotlin/grpcserver/StubGenerator.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
/*
* Copyright (C) 2021 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | <|turn>user
Provide the native Android implementation for `StubGenerator.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: wire-grpc-server-generator/src/main/java/com/squareup/wire/kotlin/grpcserver/StubGenerator.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotl... |
Implement the native Android class `DayNoteFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/sztorm/notecalendar/DayNoteFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.sztorm.notecalendar
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.sztorm.notecalendar.databinding.FragmentDayNoteBinding
import com.sztorm.notecalen... | <|turn>user
Implement the native Android class `DayNoteFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/sztorm/notecalendar/DayNoteFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin... |
Implement the native Android class `MainFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/com/gbsys/card_reader_util/ui/main/MainFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.gbsys.card_reader_util.ui.main
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.gbsys.card_reader_util.R
class MainFragment : Fragment() {
companion object {
fun newIns... | <|turn>user
Implement the native Android class `MainFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/com/gbsys/card_reader_util/ui/main/MainFragment.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / K... |
Implement the native Android class `SmokeTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/androidTest/java/com/ultraviolince/mykitchen/recipes/presentation/recipes/SmokeTest.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.ultraviolince.mykitchen.recipes.presentation.recipes
import android.util.Log
import androidx.compose.ui.test.ExperimentalTestApi
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.hasContentDescription
import androidx.compose.ui.test.junit4.createAndroidComposeRule
... | <|turn>user
Implement the native Android class `SmokeTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/androidTest/java/com/ultraviolince/mykitchen/recipes/presentation/recipes/SmokeTest.kt
Language: Kotlin
Framework: Android... |
Implement the Android ViewModel `SendViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. | Repository path: sample/src/main/java/com/cookpad/android/license_tools_plugin/ui/send/SendViewModel.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package com.minapp.android.test.ui.send
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class SendViewModel : ViewModel() {
private val _text = MutableLiveData<String>().apply {
value = "This is send Fragment"
}
val text: ... | <|turn>user
Implement the Android ViewModel `SendViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Context:
Repository path: sample/src/main/java/com/cookpad/android/license_tools_plugin/ui/send/SendV... |
Implement the native Android class `AddFootstepActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: app/src/main/java/org/footstep/activities/AddFootstepActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package org.footstep.activities
import android.Manifest
import android.app.Activity
import android.app.DatePickerDialog
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.ContextWrapper
import android.content.Intent
import android.graphics.Bitmap
import and... | <|turn>user
Implement the native Android class `AddFootstepActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: app/src/main/java/org/footstep/activities/AddFootstepActivity.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose ... |
Implement the native Android class `WorkManagerInitializer` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. | Repository path: libraries/core/src/main/kotlin/io/plastique/core/work/WorkManagerInitializer.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package io.plastique.core.work
import android.content.Context
import androidx.work.Configuration
import androidx.work.WorkManager
import androidx.work.WorkerFactory
import io.plastique.core.init.Initializer
import javax.inject.Inject
class WorkManagerInitializer @Inject constructor(
private val context:... | <|turn>user
Implement the native Android class `WorkManagerInitializer` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Context:
Repository path: libraries/core/src/main/kotlin/io/plastique/core/work/WorkManagerInitializer.kt
Language: Kotlin
Framework: AndroidX ... |
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `UploadFileSample`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. | Repository path: compose_material3/src/main/java/dev/vengateshm/compose_material3/other_concepts/upload_file/UploadFileSample.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package dev.vengateshm.compose_material3.other_concepts.upload_file
import android.widget.Toast
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.animation.core.animateFloatAsState
import androidx.compos... | <|turn>user
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `UploadFileSample`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Context:
Repository path: compose_material3/src/main/java/dev/vengateshm/compose_material3/other_concepts/upload_... |
Provide the native Android implementation for `getDeviceMetaAsJson.kt` in Kotlin with idiomatic patterns and proper error handling. | Repository path: lib/src/main/java/io/ashkay/crashgrabber/internal/utils/getDeviceMetaAsJson.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Coroutines | ```kotlin
package io.ashkay.crashgrabber.internal.utils
import android.os.Build
import com.google.gson.Gson
internal fun getDeviceMetaAsJson(): String? {
val os = System.getProperty("os.version") // OS version
val apiLevel = Build.VERSION.SDK_INT // API Level
val device = Build.DEVICE // De... | <|turn>user
Provide the native Android implementation for `getDeviceMetaAsJson.kt` in Kotlin with idiomatic patterns and proper error handling.
Context:
Repository path: lib/src/main/java/io/ashkay/crashgrabber/internal/utils/getDeviceMetaAsJson.kt
Language: Kotlin
Framework: AndroidX / Jetpack Compose / Kotlin Corout... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.