instruction
stringlengths
113
251
input
stringlengths
98
353
output
stringlengths
135
454k
text
stringlengths
443
454k
Implement the native Android class `MainApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/src/main/java/co/nimblehq/ic/kmm/suv/android/MainApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package co.nimblehq.ic.kmm.suv.android import android.app.Application import co.nimblehq.ic.kmm.suv.android.di.loginModule import co.nimblehq.ic.kmm.suv.android.di.mainModule import co.nimblehq.ic.kmm.suv.di.initKoin import org.koin.android.ext.koin.androidContext import timber.log.Timber class MainApplicat...
<|turn>user Implement the native Android class `MainApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/src/main/java/co/nimblehq/ic/kmm/suv/android/MainApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Implement the native Android class `VesselMigration` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: vessel-runtime/src/main/java/com/textnow/android/vessel/VesselMigration.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /** * MIT License * * Copyright (c) 2020 TextNow, Inc. * * 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 us...
<|turn>user Implement the native Android class `VesselMigration` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: vessel-runtime/src/main/java/com/textnow/android/vessel/VesselMigration.kt Language: Kotlin Framework: AndroidX / Jetpack Co...
Implement the native Android class `SecondActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/skyinu/jvmti/wrapper/SecondActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.skyinu.jvmti.wrapper import android.os.Bundle import androidx.appcompat.app.AppCompatActivity class SecondActivity: AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_second) } } `...
<|turn>user Implement the native Android class `SecondActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/skyinu/jvmti/wrapper/SecondActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin ...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SettingsImportScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: feature/settings/import/src/main/kotlin/app/k9mail/feature/settings/import/ui/SettingsImportScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package app.k9mail.feature.settings.import.ui import android.os.Bundle import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SettingsImportScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: feature/settings/import/src/main/kotlin/app/k9mail/feature/settings/import/ui/Setti...
Implement the native Android class `AudioShrink` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: library/src/main/java/com/lisb/android/mediashrink/AudioShrink.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.lisb.android.mediashrink import android.annotation.SuppressLint import android.media.* import timber.log.Timber import java.io.IOException import java.nio.ByteBuffer import java.util.concurrent.atomic.AtomicReference class AudioShrink(private val extractor: MediaExtractor, priv...
<|turn>user Implement the native Android class `AudioShrink` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: library/src/main/java/com/lisb/android/mediashrink/AudioShrink.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotli...
Implement the native Android class `MessageSwipeController` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: message_holder/MessageSwipeController.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.database_part_3.message_holder import android.annotation.SuppressLint import android.content.Context import android.graphics.Canvas import android.graphics.PorterDuff import android.graphics.PorterDuffColorFilter import android.graphics.drawable.Drawable import android.view.HapticFeedback...
<|turn>user Implement the native Android class `MessageSwipeController` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: message_holder/MessageSwipeController.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<t...
Implement the native Android class `LocaleUtilsTests` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: library/src/androidTest/java/com/github/pelmenstar1/rangecalendar/LocaleUtilsTests.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.github.pelmenstar1.rangecalendar import androidx.test.ext.junit.runners.AndroidJUnit4 import com.github.pelmenstar1.rangecalendar.utils.getFirstDayOfWeek import org.junit.Test import org.junit.runner.RunWith import java.util.Locale import kotlin.test.assertEquals @RunWith(AndroidJUnit4::class) c...
<|turn>user Implement the native Android class `LocaleUtilsTests` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: library/src/androidTest/java/com/github/pelmenstar1/rangecalendar/LocaleUtilsTests.kt Language: Kotlin Framework: AndroidX ...
Implement the native Android class `UndoRedo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: core/src/commonMain/kotlin/pro/respawn/flowmvi/plugins/UndoRedoPlugin.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package pro.respawn.flowmvi.plugins import kotlinx.atomicfu.atomic import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.flow.map import kotlinx.coroutines.flow.update i...
<|turn>user Implement the native Android class `UndoRedo` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: core/src/commonMain/kotlin/pro/respawn/flowmvi/plugins/UndoRedoPlugin.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / K...
Implement the native Android class `TestAmap` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/sunnyseather/android/TestAmap.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.sunnyseather.android import android.content.Context import android.os.Bundle import android.util.Log import androidx.appcompat.app.AppCompatActivity import com.amap.api.services.core.AMapException import com.amap.api.services.core.PoiItemV2 import com.amap.api.services.core.ServiceSettings impor...
<|turn>user Implement the native Android class `TestAmap` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/sunnyseather/android/TestAmap.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<t...
Design a reactive Android Room DAO interface `PendingTransactionDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Repository path: sdk-lib/src/main/java/cash/z/ecc/android/sdk/internal/db/PendingTransactionDb.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package cash.z.ecc.android.sdk.db import androidx.room.* import cash.z.ecc.android.sdk.db.entity.PendingTransactionEntity import kotlinx.coroutines.flow.Flow // // Database // /** * Database for pending transaction information. Unlike with the "Data DB," the wallet is free to * write to this database. I...
<|turn>user Design a reactive Android Room DAO interface `PendingTransactionDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. Context: Repository path: sdk-lib/src/main/java/cash/z/ecc/android/sdk/internal/db/PendingTransactionDb.kt Language: Kotlin Framework: Androi...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `NavigationBarItemDTO` using Kotlinx Serialization.
Repository path: liveview-android/src/main/java/org/phoenixframework/liveview/data/dto/NavigationBarItemDTO.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.phoenixframework.liveview.data.dto import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.RowScope import androidx.compose.material3.MaterialTheme import androidx.compose.material3.NavigationBarItem import androidx.compose.material3.NavigationBarItemColo...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `NavigationBarItemDTO` using Kotlinx Serialization. Context: Repository path: liveview-android/src/main/java/org/phoenixframework/liveview/data/dto/NavigationBarItemDTO.kt Language: Kotlin Framework: AndroidX / Jetp...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SportButton`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/cornellappdev/uplift/ui/components/home/SportButton.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.cornellappdev.uplift.ui.components.home import androidx.compose.foundation.clickable import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fil...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SportButton`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/cornellappdev/uplift/ui/components/home/SportButton.kt Language: Kotli...
Implement the Android ViewModel `AcknowledgementViewModel` 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/kotlin/app/lawnchair/lawnicons/viewmodel/AcknowledgementViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package app.lawnchair.lawnicons.viewmodel import android.text.SpannableString import android.text.style.URLSpan import android.text.util.Linkify import androidx.compose.ui.text.AnnotatedString import androidx.compose.ui.text.SpanStyle import androidx.compose.ui.text.buildAnnotatedString import androidx.lifec...
<|turn>user Implement the Android ViewModel `AcknowledgementViewModel` 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/kotlin/app/lawnchair/lawnicons/viewmodel/Acknowledg...
Implement the native Android class `CallBackKt` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: sdk/src/main/java/com/qonversion/android/sdk/internal/extensions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.qonversion.android.sdk.internal import android.app.Application import android.content.Context import android.content.pm.ApplicationInfo import com.qonversion.android.sdk.dto.QEntitlement import com.qonversion.android.sdk.internal.dto.QPermission import org.json.JSONArray import org.json.JSONObjec...
<|turn>user Implement the native Android class `CallBackKt` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: sdk/src/main/java/com/qonversion/android/sdk/internal/extensions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `NoHorizontalScrollerViewPager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: BaseExtend/src/main/java/com/chen/baseextend/view/NoHorizontalScrollerViewPager.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.chen.baseextend.view import android.content.Context import android.util.AttributeSet import android.view.MotionEvent import androidx.viewpager.widget.ViewPager /** * Created by zejian * Time 16/1/7 上午11:12 * Email <EMAIL> * Description:不可横向滑动的ViewPager */ class NoHorizontalScrollerViewPag...
<|turn>user Implement the native Android class `NoHorizontalScrollerViewPager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: BaseExtend/src/main/java/com/chen/baseextend/view/NoHorizontalScrollerViewPager.kt Language: Kotlin Framework:...
Implement the native Android class `for` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/codepath/bestsellerlistapp/BestSellerBooksFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.codepath.bestsellerlistapp import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.core.widget.ContentLoadingProgressBar import androidx.fragment.app.Fragment import and...
<|turn>user Implement the native Android class `for` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/codepath/bestsellerlistapp/BestSellerBooksFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SearchField`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/jetpackcompose/playground/ui/common/components/SearchField.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.jetpackcompose.playground.common.presentation.components import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.wrapContentHeight import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons import androidx.comp...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SearchField`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/jetpackcompose/playground/ui/common/components/SearchField.kt Language...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SnackbarSetting`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/kotlin/jp/co/yumemi/android/code_check/presentation/util/SnackbarSetting.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package jp.co.yumemi.android.code_check.presentation.util import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.* import androidx.compose....
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SnackbarSetting`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/kotlin/jp/co/yumemi/android/code_check/presentation/util/SnackbarSetting.kt...
Implement the Android ViewModel `FireBaseViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: SafeDriveApp/app/src/main/java/com/example/safedrive/viewModels/FireBaseViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.safedrive.viewModels import android.util.Log import androidx.lifecycle.ViewModel import com.google.firebase.Firebase import com.google.firebase.firestore.firestore data class User(val email: String, val password: String, val fName: String, val lName: String) class FireBaseViewModel : ...
<|turn>user Implement the Android ViewModel `FireBaseViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: SafeDriveApp/app/src/main/java/com/example/safedrive/viewModels/FireBas...
Provide the native Android implementation for `UsersSlash.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/UsersSlash.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package me.localx.icons.rounded.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.graphics.StrokeJoin.Compan...
<|turn>user Provide the native Android implementation for `UsersSlash.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/UsersSlash.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <...
Implement the native Android class `PublishLayoutInfoTracker` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: utils/test-utils/src/main/java/com/microsoft/device/dualscreen/testing/rules/PublishWindowInfoTrackerDecorator.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Implement the native Android class `PublishLayoutInfoTracker` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: utils/test-utils/src/main/java/com/microsoft/device/dualscreen/testing/rules/PublishWindowInfoTrackerDecorator.kt L...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SignOutConfirmationDialog`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: ground/src/main/java/com/google/android/ground/ui/home/SignOutConfirmationDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2024 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 Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SignOutConfirmationDialog`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: ground/src/main/java/com/google/android/ground/ui/home/SignOutConfirmationDial...
Implement the Android ViewModel `BaseViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: wan/src/main/java/com/hzy/wan/viewmodel/BaseViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.hzy.wan.viewmodel import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.LifecycleObserver import androidx.lifecycle.viewModelScope import com.aleyn.mvvm.base.IBaseResponse import com.aleyn.mvvm.event.Message import com.aleyn.mvvm.event.SingleLiveEvent import com.aleyn.mvvm.network...
<|turn>user Implement the Android ViewModel `BaseViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: wan/src/main/java/com/hzy/wan/viewmodel/BaseViewModel.kt Language: Kotlin F...
Implement the native Android class `ActivityProvider` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: source/sdk/src/main/java/com/stytch/sdk/common/dfp/ActivityProvider.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.stytch.sdk.common.dfp import android.app.Activity import android.app.Application import android.os.Bundle import java.lang.ref.WeakReference internal class ActivityProvider(application: Application) : Application.ActivityLifecycleCallbacks { private var _currentActivity = WeakReference<Acti...
<|turn>user Implement the native Android class `ActivityProvider` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: source/sdk/src/main/java/com/stytch/sdk/common/dfp/ActivityProvider.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `PayLoanScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: shared/src/commonMain/kotlin/com/presta/customer/ui/components/payLoan/ui/PayLoanScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.presta.customer.ui.components.payLoan.ui import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue impor...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `PayLoanScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: shared/src/commonMain/kotlin/com/presta/customer/ui/components/payLoan/ui/PayLoanScreen.kt...
Implement the native Android class `ImportAccountFragmentPageAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/wavesplatform/wallet/v2/ui/auth/import_account/ImportAccountFragmentPageAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Created by <NAME> on 1/4/2019 * Copyright © 2019 Waves Platform. All rights reserved. */ package com.wavesplatform.wallet.v2.ui.auth.import_account import android.support.v4.app.Fragment import android.support.v4.app.FragmentManager import android.support.v4.app.FragmentStatePagerAdapter import com....
<|turn>user Implement the native Android class `ImportAccountFragmentPageAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/wavesplatform/wallet/v2/ui/auth/import_account/ImportAccountFragmentPageAdapter.kt La...
Implement the native Android class `DbContext` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: leakcanary-android-core/src/main/java/leakcanary/internal/activity/db/Db.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package leakcanary.internal.activity.db import android.database.sqlite.SQLiteDatabase import android.view.View import leakcanary.internal.InternalLeakCanary import leakcanary.internal.activity.db.Db.OnDb import leakcanary.internal.activity.db.Io.OnIo internal object Db { private val dbHelper = LeaksDbHel...
<|turn>user Implement the native Android class `DbContext` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: leakcanary-android-core/src/main/java/leakcanary/internal/activity/db/Db.kt Language: Kotlin Framework: AndroidX / Jetpack Compose...
Implement the native Android class `SnoozeService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/com/cogzidel/calendar/services/SnoozeService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.cogzidel.calendar.services import android.app.IntentService import android.content.Intent import com.cogzidel.calendar.extensions.config import com.cogzidel.calendar.extensions.dbHelper import com.cogzidel.calendar.extensions.rescheduleReminder import com.cogzidel.calendar.helpers.EVENT_ID class...
<|turn>user Implement the native Android class `SnoozeService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/com/cogzidel/calendar/services/SnoozeService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / K...
Implement the Android ViewModel `ViewModelModule` 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/dania/productfinder/di/ViewModelModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.dania.productfinder.di import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import dagger.Binds import dagger.Module import dagger.multibindings.IntoMap import com.dania.productfinder.ui.search.SearchViewModel import com.dania.productfinder.viewmodel.GithubViewModelFact...
<|turn>user Implement the Android ViewModel `ViewModelModule` 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/dania/productfinder/di/ViewModelModule.kt Language:...
Implement the native Android class `PayPalLauncher` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: PayPal/src/main/java/com/braintreepayments/api/paypal/PayPalLauncher.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.braintreepayments.api.paypal import android.content.Intent import androidx.activity.ComponentActivity import com.braintreepayments.api.BrowserSwitchClient import com.braintreepayments.api.BrowserSwitchException import com.braintreepayments.api.BrowserSwitchFinalResult import com.braintreepayments...
<|turn>user Implement the native Android class `PayPalLauncher` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: PayPal/src/main/java/com/braintreepayments/api/paypal/PayPalLauncher.kt Language: Kotlin Framework: AndroidX / Jetpack Compos...
Provide the native Android implementation for `MediaMuxerTool.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: akari-core/src/main/java/io/github/takusan23/akaricore/v2/common/MediaMuxerTool.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.takusan23.akaricore.v1.tool import android.annotation.SuppressLint import android.media.MediaCodec import android.media.MediaExtractor import android.media.MediaMuxer import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.isActive import kotlinx.coroutines.withContext import java.i...
<|turn>user Provide the native Android implementation for `MediaMuxerTool.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: akari-core/src/main/java/io/github/takusan23/akaricore/v2/common/MediaMuxerTool.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corouti...
Implement the native Android class `SettingsViewStateController` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: feature/settings/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/settings/view/implementation/ui/controller/SettingsViewStateController.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* Copyright 2022 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
<|turn>user Implement the native Android class `SettingsViewStateController` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: feature/settings/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/settings/view/imple...
Implement the native Android class `OnboardingWelcomeActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/felixfavour/mobotithe/gui/view/onboarding/OnboardingWelcomeActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.felixfavour.mobotithe.gui.view.onboarding import android.annotation.SuppressLint import android.content.Context import android.content.Intent import android.content.SharedPreferences import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import androidx.d...
<|turn>user Implement the native Android class `OnboardingWelcomeActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/felixfavour/mobotithe/gui/view/onboarding/OnboardingWelcomeActivity.kt Language: Kotlin Fram...
Implement the native Android class `PlayerSettingsView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/tanasi/streamflix/ui/PlayerSettingsView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.tanasi.streamflix.ui import android.content.Context import android.content.res.ColorStateList import android.content.res.Resources import android.graphics.Color import android.util.AttributeSet import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androi...
<|turn>user Implement the native Android class `PlayerSettingsView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/tanasi/streamflix/ui/PlayerSettingsView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose /...
Implement the native Android class `State` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: shared/src/commonMain/kotlin/com/aglushkov/wordteacher/shared/features/definitions/vm/DefinitionsVM.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.aglushkov.wordteacher.shared.features.definitions.vm import dev.icerock.moko.resources.desc.Resource import dev.icerock.moko.resources.desc.StringDesc import com.aglushkov.wordteacher.shared.events.Event import com.aglushkov.wordteacher.shared.features.cardsets.vm.CardSetViewItem import com.aglus...
<|turn>user Implement the native Android class `State` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: shared/src/commonMain/kotlin/com/aglushkov/wordteacher/shared/features/definitions/vm/DefinitionsVM.kt Language: Kotlin Framework: And...
Implement the native Android class `State` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: shared/src/commonMain/kotlin/com/aglushkov/wordteacher/shared/features/definitions/vm/DefinitionsVM.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.aglushkov.wordteacher.shared.features.definitions.vm import dev.icerock.moko.resources.desc.Resource import dev.icerock.moko.resources.desc.StringDesc import com.aglushkov.wordteacher.shared.events.Event import com.aglushkov.wordteacher.shared.features.cardsets.vm.CardSetViewItem import com.aglus...
<|turn>user Implement the native Android class `State` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: shared/src/commonMain/kotlin/com/aglushkov/wordteacher/shared/features/definitions/vm/DefinitionsVM.kt Language: Kotlin Framework: And...
Implement the native Android class `ExampleInstrumentedTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/androidTest/java/com/miguelrr/capsshop/ExampleInstrumentedTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.miguelrr.capsshop import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 import org.junit.Test import org.junit.runner.RunWith import org.junit.Assert.* /** * Instrumented test, which will execute on an Android device. * * See [testing...
<|turn>user Implement the native Android class `ExampleInstrumentedTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/androidTest/java/com/miguelrr/capsshop/ExampleInstrumentedTest.kt Language: Kotlin Framework: AndroidX / Jet...
Provide the native Android implementation for `CheckCircle24.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: octicons/src/commonMain/kotlin/compose/icons/octicons/CheckCircle24.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package compose.icons.octicons 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.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap import an...
<|turn>user Provide the native Android implementation for `CheckCircle24.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: octicons/src/commonMain/kotlin/compose/icons/octicons/CheckCircle24.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|...
Implement the native Android class `that` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: packages/expo-updates/android/src/main/java/expo/modules/updates/loader/LoaderTask.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package expo.modules.updates.loader import android.content.Context import android.os.AsyncTask import android.os.Handler import android.os.HandlerThread import android.util.Log import expo.modules.updates.UpdatesConfiguration import expo.modules.updates.UpdatesUtils import expo.modules.updates.db.DatabaseHol...
<|turn>user Implement the native Android class `that` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: packages/expo-updates/android/src/main/java/expo/modules/updates/loader/LoaderTask.kt Language: Kotlin Framework: AndroidX / Jetpack Co...
Implement the native Android class `CertificateDetailsFrag` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: kotlin/src/src/main/java/com/techlabcamp/neuronet/ui/frag/CertificateDetailsFrag.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.techlabcamp.neuronet.ui.frag import android.Manifest import android.content.pm.PackageManager import android.graphics.drawable.Drawable import android.os.Build import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.activi...
<|turn>user Implement the native Android class `CertificateDetailsFrag` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: kotlin/src/src/main/java/com/techlabcamp/neuronet/ui/frag/CertificateDetailsFrag.kt Language: Kotlin Framework: Andro...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `HourlyWeatherForecast`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/ls/localsky/ui/components/HourlyWeatherForecast.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ls.localsky.ui.components import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxWidth import androidx.co...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `HourlyWeatherForecast`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/ls/localsky/ui/components/HourlyWeatherForecast.kt Language:...
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/tompee/arctictern/main/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.tompee.arctictern.main import androidx.activity.ComponentActivity class MainActivity : ComponentActivity() ```
<|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/tompee/arctictern/main/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Co...
Provide the native Android implementation for `SwipeRefreshLayoutRefreshes.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: corbind-swiperefreshlayout/src/main/kotlin/ru/ldralighieri/corbind/swiperefreshlayout/SwipeRefreshLayoutRefreshes.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2019 Vladimir Raupov * * 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 Provide the native Android implementation for `SwipeRefreshLayoutRefreshes.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: corbind-swiperefreshlayout/src/main/kotlin/ru/ldralighieri/corbind/swiperefreshlayout/SwipeRefreshLayoutRefreshes.kt Language: Kotlin Framewo...
Provide the native Android implementation for `AudioExt.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: client/android/webrtc/src/main/java/com/qifan/webrtc/extensions/rtc/AudioExt.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /** * Copyright (C) 2020 by Qifan YANG (@underwindfall) * * 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 requir...
<|turn>user Provide the native Android implementation for `AudioExt.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: client/android/webrtc/src/main/java/com/qifan/webrtc/extensions/rtc/AudioExt.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|...
Implement the native Android class `PersonAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/borabor/movieapp/presentation/adapter/PersonAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.borabor.movieapp.presentation.adapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.databinding.DataBindingUtil import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import c...
<|turn>user Implement the native Android class `PersonAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/borabor/movieapp/presentation/adapter/PersonAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Co...
Implement the native Android class `ContentListAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: data_content/src/main/java/com/cmj/wanandroid/data/content/ContentListAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.cmj.wanandroid.content.home import android.content.Context import android.text.Html import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.core.view.isVisible import androidx.paging.PagingDataAdapter import androidx...
<|turn>user Implement the native Android class `ContentListAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: data_content/src/main/java/com/cmj/wanandroid/data/content/ContentListAdapter.kt Language: Kotlin Framework: AndroidX / J...
Implement the native Android class `MaxMinIndicator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/ui/src/main/java/foo/bar/clean/ui/common/widget/MaxMinIndicator.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package foo.bar.clean.ui.common.widget import android.animation.AnimatorSet import android.animation.ObjectAnimator import android.animation.ValueAnimator import android.content.Context import android.util.AttributeSet import android.view.View import android.widget.FrameLayout import foo.bar.clean.ui.R impor...
<|turn>user Implement the native Android class `MaxMinIndicator` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/ui/src/main/java/foo/bar/clean/ui/common/widget/MaxMinIndicator.kt Language: Kotlin Framework: AndroidX / Jetpack Compos...
Implement the native Android class `PlatLogoActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/jpb/scratchtappy/usp/PlatLogoActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
<|turn>user Implement the native Android class `PlatLogoActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/jpb/scratchtappy/usp/PlatLogoActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kot...
Provide the native Android implementation for `SpinnerExtension.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/io/github/wulkanowy/utils/SpinnerExtension.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.wulkanowy.utils import android.view.View import android.widget.AdapterView import android.widget.Spinner /** * @see <a href="https://stackoverflow.com/a/29602298">How to keep onItemSelected from firing off on a newly instantiated Spinner?</a> */ @Suppress("UNCHECKED_CAST") inline fun <T ...
<|turn>user Provide the native Android implementation for `SpinnerExtension.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/io/github/wulkanowy/utils/SpinnerExtension.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DatePicker`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: androidApp/src/main/java/com/mutualmobile/harvestKmp/android/ui/screens/newEntryScreen/components/DatePicker.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mutualmobile.harvestKmp.android.ui.screens.newEntryScreen.components import android.text.format.DateFormat import android.view.ContextThemeWrapper import android.widget.CalendarView import androidx.compose.foundation.background import androidx.compose.foundation.layout.Column import androidx.comp...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DatePicker`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: androidApp/src/main/java/com/mutualmobile/harvestKmp/android/ui/screens/newEntryScreen/compon...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/templates/app-kotlin/src/main/java/ui/main/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package <%= appPackage %>.ui.main import android.os.Bundle import <%= appPackage %>.di.ActivityScope import <%= appPackage %>.di.components.MainComponent; import <%= appPackage %>.di.HasComponent import <%= appPackage %>.ui.base.BaseActivity import <%= appPackage %>.R import <%= appPackage %>.application.App...
<|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/templates/app-kotlin/src/main/java/ui/main/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin ...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `JuiceTrackerApp`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/example/juicetracker/ui/JuiceTrackerApp.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.juicetracker.ui import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.padding import androidx.compose.material3.BottomSheetScaffold import androidx.compose.m...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `JuiceTrackerApp`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/example/juicetracker/ui/JuiceTrackerApp.kt Language: Kotlin Framew...
Implement the native Android class `UserRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/mockpropertymanagmentapp/data/repositories/UserRepository.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.mockpropertymanagmentapp.data.repositories import android.content.Context import android.util.Log import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import com.example.mockpropertymanagmentapp.data.models.* import com.example.mockpropertymanagmentapp.data.networ...
<|turn>user Implement the native Android class `UserRepository` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/mockpropertymanagmentapp/data/repositories/UserRepository.kt Language: Kotlin Framework: Androi...
Design a reactive Android Room DAO interface `UserDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Repository path: app/src/main/java/com/vitoraguiardf/bobinabanking/data/repository/UserDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.vitoraguiardf.bobinabanking.data.repository import androidx.room.Dao import androidx.room.Query import com.vitoraguiardf.bobinabanking.data.entity.User @Dao interface UserDao: DaoRepository<User, Int> { @Query("SELECT * FROM User") fun findAll(): List<User> @Query("SELECT * FROM User...
<|turn>user Design a reactive Android Room DAO interface `UserDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. Context: Repository path: app/src/main/java/com/vitoraguiardf/bobinabanking/data/repository/UserDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compo...
Implement the native Android class `TodoListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: projects/android/Sample/app/src/main/java/com/ezored/sample/ui/fragment/TodoListFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ezored.sample.ui.fragment import android.text.TextUtils import android.view.MenuItem import android.view.View import androidx.lifecycle.MutableLiveData import com.ezored.dataservices.TodoDataService import com.ezored.domain.Todo import com.ezored.sample.R import com.ezored.sample.adapter.TodoAdap...
<|turn>user Implement the native Android class `TodoListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: projects/android/Sample/app/src/main/java/com/ezored/sample/ui/fragment/TodoListFragment.kt Language: Kotlin Framework: And...
Provide the native Android implementation for `NeutralFace.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: common/src/commonMain/kotlin/com/demo/ui/utils/chat/NeutralFace.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.demo.ui.utils.chat import androidx.compose.material.icons.Icons import androidx.compose.ui.graphics.* import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.graphics.vector.path import androidx.compose.ui.unit.dp val Icons.Filled.Floating_screen: ImageVector get() ...
<|turn>user Provide the native Android implementation for `NeutralFace.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: common/src/commonMain/kotlin/com/demo/ui/utils/chat/NeutralFace.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>m...
Implement the native Android class `LogEventRetryTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: src/test/java/com/statsig/androidsdk/LogEventRetryTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.statsig.androidsdk import android.app.Application import com.google.gson.Gson import io.mockk.mockk import kotlinx.coroutines.runBlocking import okhttp3.mockwebserver.Dispatcher import okhttp3.mockwebserver.MockResponse import okhttp3.mockwebserver.MockWebServer import okhttp3.mockwebserver.Recor...
<|turn>user Implement the native Android class `LogEventRetryTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: src/test/java/com/statsig/androidsdk/LogEventRetryTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin ...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AccompanimentMenuScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/example/lunchtray/ui/AccompanimentMenuScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.lunchtray.ui import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.tooling.preview.Preview import com.example.lunchtray.datasource.DataSource import com.example.lunchtray.model.MenuItem import com.example.lunchtray.model.MenuItem.Accomp...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `AccompanimentMenuScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/example/lunchtray/ui/AccompanimentMenuScreen.kt Language: ...
Implement the native Android class `else` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: tools/code-generator/src/main/kotlin/io/islandtime/codegen/generators/ConstantsGenerator.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.islandtime.codegen.generators import com.squareup.kotlinpoet.FileSpec import com.squareup.kotlinpoet.KModifier import io.islandtime.codegen.SingleFileGenerator import io.islandtime.codegen.descriptions.TemporalUnitConversion import io.islandtime.codegen.descriptions.TemporalUnitDescription import ...
<|turn>user Implement the native Android class `else` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: tools/code-generator/src/main/kotlin/io/islandtime/codegen/generators/ConstantsGenerator.kt Language: Kotlin Framework: AndroidX / Jetp...
Implement the native Android class `CoreSession` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: core/src/main/java/com/crocodic/core/data/CoreSession.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.crocodic.core.data import android.content.Context import android.content.SharedPreferences import androidx.security.crypto.EncryptedSharedPreferences import androidx.security.crypto.MasterKey /** * Created by @yzzzd on 4/22/18. */ open class CoreSession(context: Context) { companion obje...
<|turn>user Implement the native Android class `CoreSession` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: core/src/main/java/com/crocodic/core/data/CoreSession.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corouti...
Implement the native Android class `LoginActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/quest/src/main/java/org/smartregister/fhircore/quest/ui/login/LoginActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2021-2024 Ona Systems, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
<|turn>user Implement the native Android class `LoginActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/quest/src/main/java/org/smartregister/fhircore/quest/ui/login/LoginActivity.kt Language: Kotlin Framework: AndroidX / ...
Implement the native Android class `ExceptionHandler` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: things/src/main/java/net/bonysoft/doityourselfie/ExceptionHandler.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package net.bonysoft.doityourselfie import android.app.Activity import android.app.AlarmManager import android.app.PendingIntent import android.content.Context import android.content.Intent class ExceptionHandler(private val activity: Activity) : Thread.UncaughtExceptionHandler { override fun uncaughtE...
<|turn>user Implement the native Android class `ExceptionHandler` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: things/src/main/java/net/bonysoft/doityourselfie/ExceptionHandler.kt Language: Kotlin Framework: AndroidX / Jetpack Compose...
Implement the native Android class `ParkDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/jiwoo/choi/nanumcar/ui/dialogs/ParkDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.jiwoo.choi.nanumcar.ui.dialogs import android.app.Activity import android.app.Dialog import android.content.Intent import android.net.Uri import android.os.Bundle import android.view.View import android.view.Window import com.jiwoo.choi.nanumcar.R import com.jiwoo.choi.nanumcar.api.model.park.Res...
<|turn>user Implement the native Android class `ParkDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/jiwoo/choi/nanumcar/ui/dialogs/ParkDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotli...
Provide the native Android implementation for `CursorarrowRays.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/CursorarrowRays.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2023-2024. Compose Cupertino project and open source contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
<|turn>user Provide the native Android implementation for `CursorarrowRays.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/CursorarrowRays.kt Language: Kotlin Framework: AndroidX ...
Implement the native Android class `CategorySettingsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/bruhascended/organiso/settings/CategorySettingsFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.bruhascended.organiso.settings import android.app.AlertDialog import android.content.SharedPreferences import android.os.Bundle import android.view.* import androidx.fragment.app.Fragment import androidx.preference.PreferenceManager import androidx.recyclerview.widget.ItemTouchHelper import andro...
<|turn>user Implement the native Android class `CategorySettingsFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/bruhascended/organiso/settings/CategorySettingsFragment.kt Language: Kotlin Framework: Androi...
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/vsn/dialogs/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.vsn.dialogs import android.os.Build import android.os.Bundle import androidx.annotation.RequiresApi import androidx.appcompat.app.AppCompatActivity import kotlinx.android.synthetic.main.activity_main.* class MainActivity : AppCompatActivity() { @RequiresApi(Build.VERSION_CODES.LOLLIPOP) ...
<|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/vsn/dialogs/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<tu...
Implement the native Android class `RoomPagerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/lttrung/dormitory/ui/adapters/RoomPagerAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.lttrung.dormitory.ui.adapters import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity import androidx.viewpager2.adapter.FragmentStateAdapter import com.lttrung.dormitory.ui.main.dashboard.DashboardFragment import com.lttrung.dormitory.ui.main.home.ViewWaterBillsFragme...
<|turn>user Implement the native Android class `RoomPagerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/lttrung/dormitory/ui/adapters/RoomPagerAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Comp...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Home`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/prime/player/Home.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.prime.player import androidx.activity.compose.BackHandler import androidx.compose.animation.* import androidx.compose.animation.core.tween import androidx.compose.foundation.background import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize im...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Home`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/prime/player/Home.kt Language: Kotlin Framework: AndroidX / Jetpack Compose /...
Provide the native Android implementation for `RecyclerViewExt.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: tabscrollattacherlib/src/main/java/com/iammert/tabscrollattacherlib/RecyclerViewExt.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package chooongg.box.core.ext import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import chooongg.box.core.widget.tabLayoutAttache.ScrollMethod internal fun RecyclerView.scrollToPosition(position: Int, scrollMethod: ScrollMethod) { when (scrollMethod)...
<|turn>user Provide the native Android implementation for `RecyclerViewExt.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: tabscrollattacherlib/src/main/java/com/iammert/tabscrollattacherlib/RecyclerViewExt.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Co...
Implement the Android ViewModel `MainViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: android/app/src/main/java/kr/pnu/ga2019/presentation/main/MainViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Created by <NAME> on 2020/06/20 .. */ package kr.pnu.ga2019.presentation.main import kr.pnu.ga2019.presentation.base.BaseViewModel class MainViewModel : BaseViewModel() { /* explicitly empty */ } ```
<|turn>user Implement the Android ViewModel `MainViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: android/app/src/main/java/kr/pnu/ga2019/presentation/main/MainViewModel.kt ...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CreateParticipationPage`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/istu/schedule/ui/page/projfair/participation/CreateParticipationPage.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.istu.schedule.ui.page.projfair.participation import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Space...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CreateParticipationPage`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/istu/schedule/ui/page/projfair/participation/CreatePartici...
Implement the native Android class `DetailCharaItem` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/amora/myseasonalanime/data/source/remote/response/detailcharacter/DetailCharaItem.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.amora.myseasonalanime.data.source.remote.response.detailcharacter import androidx.room.Entity import androidx.room.PrimaryKey import com.amora.myseasonalanime.data.source.remote.response.images.Images import com.squareup.moshi.Json @Entity(tableName = "detail_chara") data class DetailCharaItem( ...
<|turn>user Implement the native Android class `DetailCharaItem` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/amora/myseasonalanime/data/source/remote/response/detailcharacter/DetailCharaItem.kt Language: Kotlin ...
Implement the Android ViewModel `TypeSafeViewModelFactory` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: modules/arch-lifecycle/src/androidMain/kotlin/splitties/arch/lifecycle/ViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2019-2021 <NAME>. Use of this source code is governed by the Apache 2.0 license. */ package splitties.arch.lifecycle import androidx.activity.viewModels import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity import androidx.fragment.app.activityViewModels import...
<|turn>user Implement the Android ViewModel `TypeSafeViewModelFactory` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: modules/arch-lifecycle/src/androidMain/kotlin/splitties/arch/lif...
Implement the native Android class `GeoJsonData` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android-uitests/testData/iosched/mobile/src/main/java/com/google/samples/apps/iosched/ui/map/LoadGeoJsonFeaturesUseCase.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2018 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 Implement the native Android class `GeoJsonData` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android-uitests/testData/iosched/mobile/src/main/java/com/google/samples/apps/iosched/ui/map/LoadGeoJsonFeaturesUseCase.kt Langu...
Implement the native Android class `State` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Corona-Warn-App/src/main/java/de/rki/coronawarnapp/covidcertificate/common/certificate/CwaCovidCertificate.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package de.rki.coronawarnapp.covidcertificate.common.certificate import androidx.annotation.Keep import com.google.gson.annotations.SerializedName import de.rki.coronawarnapp.covidcertificate.common.certificate.CwaCovidCertificate.State.Blocked import de.rki.coronawarnapp.covidcertificate.common.certificate....
<|turn>user Implement the native Android class `State` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Corona-Warn-App/src/main/java/de/rki/coronawarnapp/covidcertificate/common/certificate/CwaCovidCertificate.kt Language: Kotlin Framewo...
Provide the native Android implementation for `EventSynchronizer.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: gto-support-snowplow/src/main/kotlin/org/ccci/gto/android/common/snowplow/events/EventSynchronizer.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.ccci.gto.android.common.snowplow.events import androidx.annotation.VisibleForTesting import com.snowplowanalytics.snowplow.event.Event import java.util.concurrent.Semaphore import java.util.concurrent.TimeUnit import java.util.concurrent.atomic.AtomicReference internal object EventSynchronizer {...
<|turn>user Provide the native Android implementation for `EventSynchronizer.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: gto-support-snowplow/src/main/kotlin/org/ccci/gto/android/common/snowplow/events/EventSynchronizer.kt Language: Kotlin Framework: AndroidX / Jetpack Co...
Implement the native Android class `DecodeFile` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/ecodemo/silk/DecodeFile.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ecodemo.silk; import java.io.File import android.net.Uri import kotlin.Suppress import android.os.Build import android.Manifest import android.os.Bundle import android.os.Handler import android.os.Looper import android.view.View import java.util.LinkedList import java.lang.Runnable import java.lan...
<|turn>user Implement the native Android class `DecodeFile` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/ecodemo/silk/DecodeFile.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|...
Provide the native Android implementation for `GlyphFont.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: glyphbutton/src/main/kotlin/org/librecode/glyphbutton/util/GlyphFont.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.librecode.glyphbutton.util import android.content.Context import android.graphics.Typeface import androidx.core.content.res.ResourcesCompat import org.librecode.glyphbutton.R object GlyphFont { private var ICONS_FONT: Typeface? = null fun getTypeface(context: Context): Typeface? { ...
<|turn>user Provide the native Android implementation for `GlyphFont.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: glyphbutton/src/main/kotlin/org/librecode/glyphbutton/util/GlyphFont.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|tur...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CheckoutScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/kleinreveche/playground/features/cafeteria/ui/CheckoutScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.kleinreveche.playground.features.cafeteria.ui import androidx.annotation.StringRes import androidx.compose.foundation.layout.* import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll import androidx.compose.material3.Button import androidx.compose....
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CheckoutScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/kleinreveche/playground/features/cafeteria/ui/CheckoutScreen.kt Lan...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `HankkiButton`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: core/designsystem/src/main/java/com/hankki/core/designsystem/component/button/HankkiButton.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.hankki.core.designsystem.component.button import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import an...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `HankkiButton`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: core/designsystem/src/main/java/com/hankki/core/designsystem/component/button/HankkiButton....
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `GenderSelection`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: shared/src/commonMain/kotlin/likco.likfit/ui/GenderSelection.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package likco.likfit.ui import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout....
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `GenderSelection`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: shared/src/commonMain/kotlin/likco.likfit/ui/GenderSelection.kt Language: Kotlin Framewo...
Implement the native Android class `SimpleDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/MyApplication/app/src/main/java/cn/magicalsheep/myapplication/SimpleDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package cn.magicalsheep.myapplication import android.app.AlertDialog import android.app.Dialog import android.os.Bundle import androidx.fragment.app.DialogFragment class SimpleDialog : DialogFragment() { override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { return activity?.let { ...
<|turn>user Implement the native Android class `SimpleDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/MyApplication/app/src/main/java/cn/magicalsheep/myapplication/SimpleDialog.kt Language: Kotlin Framework: AndroidX / Je...
Provide the native Android implementation for `NotificationHelper.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/jp/juggler/subwaytooter/util/NotificationHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package jp.juggler.subwaytooter.util import android.annotation.TargetApi import android.app.NotificationChannel import android.app.NotificationManager import android.content.Context import jp.juggler.subwaytooter.R import jp.juggler.subwaytooter.table.SavedAccount import jp.juggler.util.LogCategory object ...
<|turn>user Provide the native Android implementation for `NotificationHelper.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/jp/juggler/subwaytooter/util/NotificationHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|>...
Implement the native Android class `NotificationPresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/revolgenx/anilib/notification/presenter/NotificationPresenter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.revolgenx.anilib.notification.presenter import android.content.Context import android.view.LayoutInflater import android.view.ViewGroup import com.otaliastudios.elements.Element import com.otaliastudios.elements.Page import com.revolgenx.anilib.R import com.revolgenx.anilib.constant.NotificationU...
<|turn>user Implement the native Android class `NotificationPresenter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/revolgenx/anilib/notification/presenter/NotificationPresenter.kt Language: Kotlin Framework: And...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SelectableGroupScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/steleot/jetpackcompose/playground/compose/foundation/SelectableGroupScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.steleot.jetpackcompose.playground.compose.foundation import androidx.compose.foundation.layout.* import androidx.compose.foundation.selection.selectableGroup import androidx.compose.material.RadioButton import androidx.compose.material.Text import androidx.compose.runtime.Composable import androi...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SelectableGroupScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/steleot/jetpackcompose/playground/compose/foundation/Selecta...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DefaultPreview`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/nima/triviaapp/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.nima.triviaapp import android.os.Bundle import android.text.Html import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxS...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DefaultPreview`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/nima/triviaapp/MainActivity.kt Language: Kotlin Framework: AndroidX...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DefaultPreview`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/nima/triviaapp/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.nima.triviaapp import android.os.Bundle import android.text.Html import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxS...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `DefaultPreview`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/nima/triviaapp/MainActivity.kt Language: Kotlin Framework: AndroidX...
Provide the native Android implementation for `A.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: straight/src/commonMain/kotlin/me/localx/icons/straight/outline/A.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package me.localx.icons.straight.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.graphics.StrokeJoin.Compa...
<|turn>user Provide the native Android implementation for `A.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: straight/src/commonMain/kotlin/me/localx/icons/straight/outline/A.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```...
Provide the native Android implementation for `main.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: multiplatform-ui/src/jvmMain/kotlin/main.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin import androidx.compose.material3.MaterialTheme import androidx.compose.material3.lightColorScheme import androidx.compose.ui.unit.dp import androidx.compose.ui.window.Window import androidx.compose.ui.window.application import androidx.compose.ui.window.rememberWindowState import di.kodein import org.kodein....
<|turn>user Provide the native Android implementation for `main.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: multiplatform-ui/src/jvmMain/kotlin/main.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```kotlin import androidx...
Implement the native Android class `ElementsOverviewScreenTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/test/java/com/gzaber/keepnote/ui/elementsoverview/ElementsOverviewScreenTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.gzaber.keepnote.ui.elementsoverview import androidx.compose.ui.test.ExperimentalTestApi import androidx.compose.ui.test.assertIsDisplayed import androidx.compose.ui.test.hasText import androidx.compose.ui.test.junit4.createComposeRule import androidx.compose.ui.test.longClick import androidx.comp...
<|turn>user Implement the native Android class `ElementsOverviewScreenTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/test/java/com/gzaber/keepnote/ui/elementsoverview/ElementsOverviewScreenTest.kt Language: Kotlin Framewor...
Implement the native Android class `StativesAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/com/jpaya/englishisfun/statives/ui/adapter/StativesAdapter.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 applicable law or agree...
<|turn>user Implement the native Android class `StativesAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/com/jpaya/englishisfun/statives/ui/adapter/StativesAdapter.kt Language: Kotlin Framework: AndroidX / Jet...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SettingsActivity`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/io/zoemeow/dutschedule/ui/view/settings/controls/DeleteAllSubjectFilterDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.zoemeow.dutschedule.ui.component.settings import android.content.Context import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.c...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SettingsActivity`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/io/zoemeow/dutschedule/ui/view/settings/controls/DeleteAllSubjectFilt...
Implement the Android ViewModel `MainViewModel` 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/io/github/onreg/todo/main/MainViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.onreg.todo.main import androidx.lifecycle.ViewModel import io.github.onreg.flowcache.statusCache import io.github.onreg.todo.db.Database import io.github.onreg.todo.db.TodoEntity class MainViewModel : ViewModel() { val todos by statusCache<List<TodoEntity>> { Database.todoDao ...
<|turn>user Implement the Android ViewModel `MainViewModel` 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/io/github/onreg/todo/main/MainViewModel.kt Language: K...
Implement the Android ViewModel `ProfileViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: frontend/app/src/main/java/com/kasiry/app/viewmodel/ProfileViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.kasiry.app.viewmodel import android.app.Application import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.kasiry.app.models.data.Profile import com.kasiry.app.repositories.AuthRepository import com.kasiry.app.repositorie...
<|turn>user Implement the Android ViewModel `ProfileViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: frontend/app/src/main/java/com/kasiry/app/viewmodel/ProfileViewModel.kt ...
Implement the native Android class `RebootActionReceiver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/src/main/java/com/reactnativepedometerdetails/step/background/RebootActionReceiver.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.reactnativepedometerdetails.step.background import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import androidx.core.content.ContextCompat class RebootActionReceiver : BroadcastReceiver() { override fun onReceive(context: Context?, intent: ...
<|turn>user Implement the native Android class `RebootActionReceiver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/src/main/java/com/reactnativepedometerdetails/step/background/RebootActionReceiver.kt Language: Kotlin Framewor...
Implement the native Android class `AppModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/eu/kanade/tachiyomi/di/AppModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package eu.kanade.tachiyomi.di import android.app.Application import android.os.Build import androidx.core.content.ContextCompat import androidx.sqlite.db.SupportSQLiteDatabase import androidx.sqlite.db.framework.FrameworkSQLiteOpenHelperFactory import app.cash.sqldelight.db.SqlDriver import app.cash.sqldeli...
<|turn>user Implement the native Android class `AppModule` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/eu/kanade/tachiyomi/di/AppModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<t...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `NavigationUiDestinationListenerFragmentTwo` using Kotlinx Serialization.
Repository path: src/main/java/com/example/navigation/ui/destination/NavigationUiDestinationListenerFragmentTwo.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.navigation.ui.destination import android.os.Bundle import android.text.method.ScrollingMovementMethod import android.view.View import androidx.fragment.app.Fragment import com.example.navigation.R import com.example.navigation.applyWindowInsets import com.example.navigation.databinding.Fr...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `NavigationUiDestinationListenerFragmentTwo` using Kotlinx Serialization. Context: Repository path: src/main/java/com/example/navigation/ui/destination/NavigationUiDestinationListenerFragmentTwo.kt Language: Kotlin ...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `MapboxTripNotificationTest` using Kotlinx Serialization.
Repository path: libtrip-notification/src/test/java/com/mapbox/navigation/trip/notification/internal/MapboxTripNotificationTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mapbox.navigation.trip.notification import android.app.Notification import android.app.NotificationManager import android.app.PendingIntent import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.content.res.Configuration import android...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `MapboxTripNotificationTest` using Kotlinx Serialization. Context: Repository path: libtrip-notification/src/test/java/com/mapbox/navigation/trip/notification/internal/MapboxTripNotificationTest.kt Language: Kotlin ...
Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: project/skyway_android_sdk/app/src/main/java/com/ntt/skyway/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ntt.skyway import android.app.Application import android.content.Context import android.util.Log import com.ntt.skyway.authtoken.AuthTokenBuilder import com.ntt.skyway.core.SkyWayContext import com.ntt.skyway.core.util.Logger import com.ntt.skyway.manager.ChannelManager import com.ntt.skyway.mana...
<|turn>user Implement the native Android class `App` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: project/skyway_android_sdk/app/src/main/java/com/ntt/skyway/App.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corou...
Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: DiceGame/app/src/main/java/com/example/dicegame/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.dicegame import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Button import android.widget.ImageView import android.widget.TextView import android.widget.Toast class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceSta...
<|turn>user Implement the native Android class `MainActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: DiceGame/app/src/main/java/com/example/dicegame/MainActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...