instruction
stringlengths
113
251
input
stringlengths
98
353
output
stringlengths
135
454k
text
stringlengths
443
454k
Provide the native Android implementation for `LayoutBottombarCollapse.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/LayoutBottombarCollapse.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.woowla.compose.icon.collections.tabler.tabler.outline import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.graph...
<|turn>user Provide the native Android implementation for `LayoutBottombarCollapse.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/LayoutBottombarCollapse.kt Language: Kotlin Framework: And...
Implement the Android ViewModel `GoalsViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: presentation/src/main/kotlin/com/reactions/deathlines/presentation/ui/features/goals/GoalsViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.reactions.deathlines.presentation.ui.features.goals import com.reactions.deathlines.domain.usecase.album.GetAlbumsUseCase import com.reactions.deathlines.presentation.ui.base.BaseViewModel import javax.inject.Inject class GoalsViewModel @Inject constructor(private val getAlbumsUseCase: GetAlbums...
<|turn>user Implement the Android ViewModel `GoalsViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: presentation/src/main/kotlin/com/reactions/deathlines/presentation/ui/feat...
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: app/src/main/java/com/hashim/instagram/ui/main/MainViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.hashim.instagram.ui.main import androidx.lifecycle.MutableLiveData import com.hashim.instagram.data.repository.UserRepository import com.hashim.instagram.ui.base.BaseViewModel import com.hashim.instagram.utils.common.Event import com.hashim.instagram.utils.network.NetworkHelper import com.hashim....
<|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: app/src/main/java/com/hashim/instagram/ui/main/MainViewModel.kt Language: K...
Implement the native Android class `IdentityUpdater` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/concordium/wallet/ui/common/identity/IdentityUpdater.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.concordium.wallet.ui.common.identity import android.app.Application import androidx.room.withTransaction import com.concordium.wallet.App import com.concordium.wallet.BuildConfig import com.concordium.wallet.data.AccountRepository import com.concordium.wallet.data.IdentityRepository import com.co...
<|turn>user Implement the native Android class `IdentityUpdater` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/concordium/wallet/ui/common/identity/IdentityUpdater.kt Language: Kotlin Framework: AndroidX / Jetpack...
Implement the native Android class `DesktopPlaceholderTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: placeholder/src/jvmTest/kotlin/com/eygraber/compose/placeholder/DesktopPlaceholderTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2021 The Android Open Source Project * Copyright 2023 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-...
<|turn>user Implement the native Android class `DesktopPlaceholderTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: placeholder/src/jvmTest/kotlin/com/eygraber/compose/placeholder/DesktopPlaceholderTest.kt Language: Kotlin Framework:...
Implement the native Android class `FirstFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: Chapter13/HelloKotlin/app/src/main/java/com/goobar/hellokotlin/SampleFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.navigationdemo1 import android.content.Context import android.net.Uri import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup // TODO: Rename parameter arguments, choose names that match // ...
<|turn>user Implement the native Android class `FirstFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: Chapter13/HelloKotlin/app/src/main/java/com/goobar/hellokotlin/SampleFragment.kt Language: Kotlin Framework: AndroidX / Jetpac...
Implement the native Android class `AlarmService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/isscroberto/powernap/util/AlarmService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.isscroberto.powernap.util import android.app.Service import android.content.Context import android.content.Intent import android.media.Ringtone import android.media.RingtoneManager import android.os.IBinder class AlarmService : Service() { private lateinit var ringtone: Ringtone overri...
<|turn>user Implement the native Android class `AlarmService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/isscroberto/powernap/util/AlarmService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Implement the native Android class `NIDIdentityAllViewsTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: NeuroID/src/test/java/com/neuroid/tracker/events/NIDIdentityAllViewsTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.neuroid.tracker.events import android.text.Editable import android.widget.EditText import android.widget.ImageButton import android.widget.RadioButton import android.widget.RadioGroup import android.widget.RatingBar import android.widget.SeekBar import android.widget.ToggleButton import androidx....
<|turn>user Implement the native Android class `NIDIdentityAllViewsTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: NeuroID/src/test/java/com/neuroid/tracker/events/NIDIdentityAllViewsTest.kt Language: Kotlin Framework: AndroidX / J...
Implement the native Android class `SingleLayoutAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/io/github/msh91/arch/ui/base/adapter/SingleLayoutAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.github.msh91.arch.ui.base.adapter import androidx.databinding.ViewDataBinding /** * Simple implementation of [BaseAdapter] to use as a single layout adapter. */ open class SingleLayoutAdapter<T : Any, B : ViewDataBinding>( private val layoutId: Int, var items: List<T> = emptyList(), ...
<|turn>user Implement the native Android class `SingleLayoutAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/io/github/msh91/arch/ui/base/adapter/SingleLayoutAdapter.kt Language: Kotlin Framework: AndroidX / Jet...
Provide the native Android implementation for `DimenUtils.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/blocksdecoded/dex/utils/ui/DimenUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.blocksdecoded.dex.utils.ui import android.content.Context import com.blocksdecoded.dex.App import kotlin.math.ceil object DimenUtils { fun dp(dp: Float, context: Context? = App.instance) = context?.let { val density = context.resources.displayMetrics.density if (dp == 0f) 0 else ceil((densi...
<|turn>user Provide the native Android implementation for `DimenUtils.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/blocksdecoded/dex/utils/ui/DimenUtils.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ...
Implement the native Android class `TabViewPagerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/mycompany/movies/view/adapter/TabViewPagerAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.mycompany.movies.view.adapter import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity import androidx.viewpager2.adapter.FragmentStateAdapter import com.mycompany.movies.view.fragment.CurrentlyInMoviesFragment import com.mycompany.movies.view.fragment.FutureMoviesFragm...
<|turn>user Implement the native Android class `TabViewPagerAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/mycompany/movies/view/adapter/TabViewPagerAdapter.kt Language: Kotlin Framework: AndroidX / Jetpac...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `GuideList`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/example/androidcomposeguideapp/StepListScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.androidcomposeguideapp import androidx.compose.animation.animateColorAsState import androidx.compose.animation.animateContentSize import androidx.compose.animation.core.Spring import androidx.compose.animation.core.spring import androidx.compose.foundation.Image import androidx.compose.fo...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `GuideList`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/example/androidcomposeguideapp/StepListScreen.kt Language: Kotlin Framew...
Implement the native Android class `StringListConverter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/countryapplication/data/converters/StringListConverter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.countryapplication.data.converters import androidx.room.TypeConverter import com.google.gson.Gson import com.google.gson.reflect.TypeToken /** * Type converter for converting a list of strings to and from a JSON string representation. */ class StringListConverter { private val gson...
<|turn>user Implement the native Android class `StringListConverter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/countryapplication/data/converters/StringListConverter.kt Language: Kotlin Framework: Andr...
Implement the native Android class `CriminalIntentApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: 16_CameraIntent/CriminalIntent/app/src/main/java/com/bignerdranch/android/criminalintent/CriminalIntentApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.bignerdranch.android.criminalintent import android.app.Application class CriminalIntentApplication : Application() { override fun onCreate() { super.onCreate() CrimeRepository.initialize(this) } } ```
<|turn>user Implement the native Android class `CriminalIntentApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: 16_CameraIntent/CriminalIntent/app/src/main/java/com/bignerdranch/android/criminalintent/CriminalIntentApplication...
Implement the native Android class `HowToVideoListAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/howto/coredux/HowToVideoListAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.howto.coredux import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import com.howto.coredux.HowToReduxAction.* class HowToVideoListAdapter(val mainActivity: MainActivity, private ...
<|turn>user Implement the native Android class `HowToVideoListAdapter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/howto/coredux/HowToVideoListAdapter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / ...
Implement the native Android class `ModifierLocalSameLayoutNodeTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: compose/ui/ui/src/androidAndroidTest/kotlin/androidx/compose/ui/modifier/ModifierLocalSameLayoutNodeTest.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 `ModifierLocalSameLayoutNodeTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: compose/ui/ui/src/androidAndroidTest/kotlin/androidx/compose/ui/modifier/ModifierLocalSameLayoutNodeTest.kt ...
Implement the native Android class `LetterMeaningsListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/translate/LetterMeaningsListFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.translate import android.annotation.SuppressLint import android.graphics.drawable.PictureDrawable import android.os.Bundle import android.util.Log import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android...
<|turn>user Implement the native Android class `LetterMeaningsListFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/translate/LetterMeaningsListFragment.kt Language: Kotlin Framework: AndroidX / Jetp...
Implement the native Android class `Home` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/h/lillie/reborntube/fragments/Home.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package h.lillie.reborntube.fragments import android.os.Bundle import android.util.Log import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment import android.widget.LinearLayout import android.view.View import android.view.ViewGroup import android.view.LayoutInflater import com....
<|turn>user Implement the native Android class `Home` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/h/lillie/reborntube/fragments/Home.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn...
Implement the native Android class `LabelTextSwitchBtnView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: YRWidget/src/main/java/com/apemans/quickui/label/LabelTextSwitchBtnView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2021 独角鲸 Inc. All rights reserved. */ package com.apemans.quickui.label import android.content.Context import android.util.AttributeSet import android.view.LayoutInflater import androidx.core.content.ContextCompat import com.apemans.quickui.databinding.LayoutLabelTextSwitchBtnBinding /...
<|turn>user Implement the native Android class `LabelTextSwitchBtnView` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: YRWidget/src/main/java/com/apemans/quickui/label/LabelTextSwitchBtnView.kt Language: Kotlin Framework: AndroidX / Jet...
Implement the native Android class `FakeMetadataService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: embrace-test-fakes/src/main/kotlin/io/embrace/android/embracesdk/fakes/FakeMetadataService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package io.embrace.android.embracesdk.fakes import android.content.Context import io.embrace.android.embracesdk.internal.capture.metadata.MetadataService import io.embrace.android.embracesdk.internal.payload.AppInfo import io.embrace.android.embracesdk.internal.payload.DeviceInfo import io.embrace.android.em...
<|turn>user Implement the native Android class `FakeMetadataService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: embrace-test-fakes/src/main/kotlin/io/embrace/android/embracesdk/fakes/FakeMetadataService.kt Language: Kotlin Framework...
Implement the native Android class `IsTimetableUpdatingQualifier` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/github/alexzhirkevich/studentbsuby/di/TimetableModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package github.alexzhirkevich.studentbsuby.di import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.components.ViewModelComponent import github.alexzhirkevich.studentbsuby.repo.TimetableRepository import github.alexzhirkevich.studentbsuby.ui.screens.drawer.timeta...
<|turn>user Implement the native Android class `IsTimetableUpdatingQualifier` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/github/alexzhirkevich/studentbsuby/di/TimetableModule.kt Language: Kotlin Framework: AndroidX...
Implement the native Android class `RoomImagesInteractor` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/pl/droidsonroids/droidsmap/feature/room/api/RoomImagesInteractor.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package pl.droidsonroids.droidsmap.feature.room.api import android.net.Uri import com.google.android.gms.tasks.OnCompleteListener import io.reactivex.Single import io.reactivex.Single.create import pl.droidsonroids.droidsmap.base.BaseFirebaseStorageInteractor class RoomImagesInteractor : BaseFirebaseStorage...
<|turn>user Implement the native Android class `RoomImagesInteractor` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/pl/droidsonroids/droidsmap/feature/room/api/RoomImagesInteractor.kt Language: Kotlin Framework: Andro...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `WidgetTheme`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: tea-time-travel-plugin/src/main/java/com/oliynick/max/tea/core/debug/app/feature/presentation/ui/components/theme/WidgetTheme.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2021. <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `WidgetTheme`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: tea-time-travel-plugin/src/main/java/com/oliynick/max/tea/core/debug/app/feature/presentatio...
Implement the native Android class `BindingAdapters` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/exceptionhell/todoapp/fragments/databindingadapters/BindingAdapters.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.exceptionhell.todoapp.fragments.databindingadapters import android.view.View import androidx.databinding.BindingAdapter import androidx.lifecycle.MutableLiveData import androidx.navigation.findNavController import com.exceptionhell.todoapp.R import com.google.android.material.floatingactionbutton...
<|turn>user Implement the native Android class `BindingAdapters` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/exceptionhell/todoapp/fragments/databindingadapters/BindingAdapters.kt Language: Kotlin Framework: And...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `BatteryPowerFlow`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/alpriest/energystats/ui/flow/battery/BatteryPowerFlowView.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.alpriest.energystats.ui.flow.battery import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.material.Text import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `BatteryPowerFlow`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/alpriest/energystats/ui/flow/battery/BatteryPowerFlowView.kt Lang...
Implement the native Android class `AbsMessageLocationItem` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageLocationItem.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2021 New Vector Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
<|turn>user Implement the native Android class `AbsMessageLocationItem` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageLocationItem.kt Language: Kotlin...
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/ramzmania/aicammvd/utils/MediaPlayerUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ramzmania.aicammvd.utils import android.content.Context import android.media.MediaPlayer /** * Utility class for managing MediaPlayer instances. * * @param context The context used to create MediaPlayer instances. */ class MediaPlayerUtil(private val context: Context) { private var mediaP...
<|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/ramzmania/aicammvd/utils/MediaPlayerUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corout...
Implement the native Android class `ShortcutResponse` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/http/ShortcutResponse.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package ch.rmy.android.http_shortcuts.http import android.content.Context import android.net.Uri import ch.rmy.android.http_shortcuts.exceptions.ResponseTooLargeException import ch.rmy.android.http_shortcuts.utils.SizeLimitedReader import java.io.BufferedReader import java.io.InputStreamReader class Shortc...
<|turn>user Implement the native Android class `ShortcutResponse` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/http/ShortcutResponse.kt Language: Kotlin Framework: Androi...
Implement the native Android class `HomeFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/ozturksahinyetisir/travelguideapp/view/home/HomeFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.ozturksahinyetisir.travelguideapp.view.home import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.fragment.app.Fragment import com.ozturksahinyetisir.travelguideapp.adapters.ViewPagerAdapter i...
<|turn>user Implement the native Android class `HomeFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/ozturksahinyetisir/travelguideapp/view/home/HomeFragment.kt Language: Kotlin Framework: AndroidX / Jetpac...
Provide the native Android implementation for `C.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/C.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package compose.icons.simpleicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Butt import androidx.compose.ui.graphics.StrokeJoin.Miter import androidx.compose.u...
<|turn>user Provide the native Android implementation for `C.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/C.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```kot...
Provide the native Android implementation for `GameCompanyEntityTypeConverter.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: foundation/database/src/main/kotlin/converter/GameCompanyEntityTypeConverter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2023, the Pixnews project authors and contributors. Please see the AUTHORS file for details. * Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package ru.pixnews.foundation.database.converter import androidx.room.TypeConverter imp...
<|turn>user Provide the native Android implementation for `GameCompanyEntityTypeConverter.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: foundation/database/src/main/kotlin/converter/GameCompanyEntityTypeConverter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / K...
Implement the native Android class `OnEmailChanged` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/samuelokello/kazihub/presentation/business/state/BusinessEvent.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.samuelokello.kazihub.presentation.business.state import com.google.android.libraries.places.api.model.Place sealed interface BusinessEvent { data class OnEmailChanged(val email: String): BusinessEvent data class OnPhoneNumberChanged(val phone: String): BusinessEvent data class OnLoca...
<|turn>user Implement the native Android class `OnEmailChanged` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/samuelokello/kazihub/presentation/business/state/BusinessEvent.kt Language: Kotlin Framework: AndroidX ...
Implement the native Android class `BleCallback` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/org/hidetake/blebutton/BleCallback.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.hidetake.blebutton import android.bluetooth.* import android.util.Log import org.hidetake.blebutton.BleEvent.* class BleCallback(bleStateManager: BleStateManager) : BluetoothGattCallback() { val bleStateManager = bleStateManager override fun onConnectionStateChange(gatt: BluetoothGatt?...
<|turn>user Implement the native Android class `BleCallback` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/org/hidetake/blebutton/BleCallback.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corout...
Implement the native Android class `MainFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/solar/ktx/MainFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.solar.ktx import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import com.solar.ktx.library.component.getValue class MainFragment : Fragment() { val firstName by getValue<String>("firstName") ...
<|turn>user Implement the native Android class `MainFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/solar/ktx/MainFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn...
Implement the native Android class `EmergencyNumberActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/sunflower/pantaucovid19/ui/activity/EmergencyNumberActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.sunflower.pantaucovid19.ui.activity import android.annotation.SuppressLint import android.content.Intent import android.content.pm.PackageManager import android.net.Uri import android.os.Bundle import androidx.core.app.ActivityCompat import com.sunflower.pantaucovid19.R import com.sunflower.panta...
<|turn>user Implement the native Android class `EmergencyNumberActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/sunflower/pantaucovid19/ui/activity/EmergencyNumberActivity.kt Language: Kotlin Framework: And...
Provide the native Android implementation for `CompactCategoriesChoosers.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: features/home/impl/src/main/java/ru/aleshin/features/home/impl/presentation/ui/common/CompactCategoriesChoosers.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2023 <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...
<|turn>user Provide the native Android implementation for `CompactCategoriesChoosers.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: features/home/impl/src/main/java/ru/aleshin/features/home/impl/presentation/ui/common/CompactCategoriesChoosers.kt Language: Kotlin Framework: ...
Implement the native Android class `PerformHTTPSRequestUsingProxy` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: test/kotlin/integration/proxying/ProxyPollPerformHTTPRequestWithoutUsingPACProxyTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package test.kotlin.integration.proxying import android.content.Context import android.net.ConnectivityManager import android.net.ProxyInfo import androidx.test.core.app.ApplicationProvider import io.envoyproxy.envoymobile.LogLevel import io.envoyproxy.envoymobile.Custom import io.envoyproxy.envoymobile.En...
<|turn>user Implement the native Android class `PerformHTTPSRequestUsingProxy` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: test/kotlin/integration/proxying/ProxyPollPerformHTTPRequestWithoutUsingPACProxyTest.kt Language: Kotlin Frame...
Implement the native Android class `JobViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: mmkunyi/src/main/java/com/zawhtetnaing/mmkunyi_app_assignment_zhn/view/holders/JobViewHolder.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.zawhtetnaing.mmkunyi_app_assignment_zhn.view.holders import android.support.v7.widget.RecyclerView import android.view.View import com.zawhtetnaing.mmkunyi_app_assignment_zhn.data.vos.JobVO import com.zawhtetnaing.mmkunyi_app_assignment_zhn.delegates.JobDelegate import com.zawhtetnaing.mmkunyi_ap...
<|turn>user Implement the native Android class `JobViewHolder` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: mmkunyi/src/main/java/com/zawhtetnaing/mmkunyi_app_assignment_zhn/view/holders/JobViewHolder.kt Language: Kotlin Framework: An...
Implement the native Android class `WeeklyCalendarImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/com/simplemobiletools/calendar/helpers/WeeklyCalendarImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.simplemobiletools.calendar.helpers import android.content.Context import com.simplemobiletools.calendar.interfaces.WeeklyCalendar import com.simplemobiletools.calendar.models.Event import java.util.* class WeeklyCalendarImpl(val mCallback: WeeklyCalendar, val mContext: Context) : DBHelper.GetEve...
<|turn>user Implement the native Android class `WeeklyCalendarImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/com/simplemobiletools/calendar/helpers/WeeklyCalendarImpl.kt Language: Kotlin Framework: AndroidX / J...
Implement the native Android class `PreferenceHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/uk/co/jakelee/preferencesexample/PreferencesHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package uk.co.jakelee.preferencesexample import android.content.Context import android.preference.PreferenceManager class PreferenceHelper(val context: Context) { val prefs = PreferenceManager.getDefaultSharedPreferences(context) enum class BooleanPref(val prefId: Int, val defaultId: Int) { ...
<|turn>user Implement the native Android class `PreferenceHelper` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/uk/co/jakelee/preferencesexample/PreferencesHelper.kt Language: Kotlin Framework: AndroidX / Jetpack Comp...
Implement the native Android class `ChangeManagingEntityViewTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: android/quest/src/androidTest/java/org/smartregister/fhircore/quest/integration/ui/profile/components/ChangeManagingEntityViewTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2021-2023 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 `ChangeManagingEntityViewTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: android/quest/src/androidTest/java/org/smartregister/fhircore/quest/integration/ui/profile/components/ChangeMan...
Implement the Android ViewModel `MovieListViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: shared/src/commonMain/kotlin/domain/MovieListViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package domain import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateListOf import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.setValue import data.PopularMoviesDataRepository import kotlinx.coroutines.* import kotlinx.coroutines.flow.MutableStateFlo...
<|turn>user Implement the Android ViewModel `MovieListViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: shared/src/commonMain/kotlin/domain/MovieListViewModel.kt Language: Ko...
Implement the native Android class `XueGaoService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/org/studentmain/xuegaoremote/XueGaoService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.studentmain.xuegaoremote import android.Manifest import android.bluetooth.* import android.bluetooth.le.ScanCallback import android.bluetooth.le.ScanResult import android.content.Context import android.content.Intent import android.os.Handler import android.os.Looper import android.util.Log impor...
<|turn>user Implement the native Android class `XueGaoService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/org/studentmain/xuegaoremote/XueGaoService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotli...
Implement the native Android class `LinksTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: model/src/test/java/com/razeware/emitron/model/LinksTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.razeware.emitron.model import android.net.Uri import com.google.common.truth.Truth.assertThat import com.nhaarman.mockitokotlin2.doReturn import com.nhaarman.mockitokotlin2.mock import com.nhaarman.mockitokotlin2.whenever import org.junit.Before import org.junit.Test import org.junit.runner.RunWi...
<|turn>user Implement the native Android class `LinksTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: model/src/test/java/com/razeware/emitron/model/LinksTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corout...
Provide the native Android implementation for `ConfirmPasswordTextField.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/example/spygamers/screens/register/ConfirmPasswordTextField.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.spygamers.screens.register import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.Text import androidx.compose.material.TextField import androidx.compose...
<|turn>user Provide the native Android implementation for `ConfirmPasswordTextField.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/example/spygamers/screens/register/ConfirmPasswordTextField.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Ko...
Implement the native Android class `PlayerManagerImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: data/src/main/java/com/m3u/data/service/impl/PlayerManagerImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.m3u.data.service.impl import android.content.Context import android.graphics.Rect import androidx.annotation.OptIn import androidx.compose.runtime.getValue import androidx.media3.common.AudioAttributes import androidx.media3.common.C import androidx.media3.common.MediaItem import androidx.media3....
<|turn>user Implement the native Android class `PlayerManagerImpl` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: data/src/main/java/com/m3u/data/service/impl/PlayerManagerImpl.kt Language: Kotlin Framework: AndroidX / Jetpack Compose /...
Provide the native Android implementation for `Registry.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/im/status/keycard/connect/Registry.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package im.status.keycard.connect import android.annotation.SuppressLint import android.app.Activity import android.nfc.NfcAdapter import com.squareup.moshi.Moshi import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory import im.status.keycard.android.NFCCardManager import im.status.keycard.connect...
<|turn>user Provide the native Android implementation for `Registry.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/im/status/keycard/connect/Registry.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```kotlin...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `GameOverFragment` using Kotlinx Serialization.
Repository path: app/src/main/java/com/example/android/navigation/GameOverFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.android.navigation import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.databinding.DataBindingUtil import androidx.fragment.app.Fragment import androidx.navigation.findNavController import com.example.android.n...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `GameOverFragment` using Kotlinx Serialization. Context: Repository path: app/src/main/java/com/example/android/navigation/GameOverFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutin...
Implement the native Android class `RegisterService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/example/androidfirebaselogin/views/services/RegisterService.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.androidfirebaselogin.views.services import android.app.DatePickerDialog import android.os.Bundle import android.widget.ArrayAdapter import android.widget.DatePicker import android.widget.EditText import androidx.appcompat.app.AppCompatActivity import com.example.androidfirebaselogin.R imp...
<|turn>user Implement the native Android class `RegisterService` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/example/androidfirebaselogin/views/services/RegisterService.kt Language: Kotlin Framework: AndroidX / ...
Implement the native Android class `NumbersTriviaActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: features/numbers-trivia/src/main/java/br/com/andretortolano/numbers_trivia/ui/NumbersTriviaActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package br.com.andretortolano.numbers_trivia.ui import android.content.Context import android.content.Intent import android.os.Bundle import android.view.View import androidx.appcompat.app.AppCompatActivity import br.com.andretortolano.numbers_trivia.R import br.com.andretortolano.numbers_trivia.databinding....
<|turn>user Implement the native Android class `NumbersTriviaActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: features/numbers-trivia/src/main/java/br/com/andretortolano/numbers_trivia/ui/NumbersTriviaActivity.kt Language: Kotli...
Implement the native Android class `MyApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/vlad1m1r/kotlintest/MyApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2017 <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 agre...
<|turn>user Implement the native Android class `MyApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/vlad1m1r/kotlintest/MyApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Cor...
Provide the native Android implementation for `FragmentExtensions.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/spacer/example/presentation/extensions/FragmentExtensions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.spacer.example.presentation.extensions import android.app.AlertDialog import androidx.fragment.app.Fragment import com.spacer.example.R import com.spacer.example.presentation.common.dialog.DialogMessage import com.spacer.example.presentation.common.progress.LoadingOption import com.spacer.example...
<|turn>user Provide the native Android implementation for `FragmentExtensions.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/spacer/example/presentation/extensions/FragmentExtensions.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Cor...
Implement the Android ViewModel `ComicsViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: composeApp/src/commonMain/kotlin/eu/heha/cyclone/ui/ComicsViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package eu.heha.cyclone.ui import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import eu.heha.cyclone.model.ComicRepository import kotlinx.coroutines.launch class ComicsViewModel( private val comicRepository: ComicRepository ) : ViewModel() { val comics = comicRepository.com...
<|turn>user Implement the Android ViewModel `ComicsViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: composeApp/src/commonMain/kotlin/eu/heha/cyclone/ui/ComicsViewModel.kt La...
Implement the Android ViewModel `JourneyViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: samples/journeyapp/src/main/java/com/pingidentity/samples/journeyapp/journey/JourneyViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2024. PingIdentity. All rights reserved. * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ package com.pingidentity.samples.journeyapp.journey import androidx.lifecycle.ViewModel import androidx.lifecycle.View...
<|turn>user Implement the Android ViewModel `JourneyViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: samples/journeyapp/src/main/java/com/pingidentity/samples/journeyapp/jou...
Provide the native Android implementation for `Color.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/eyther/lumbridge/ui/theme/Color.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.eyther.lumbridge.ui.theme import androidx.compose.ui.graphics.Color val primaryLight = Color(0xFF6D5E0F) val onPrimaryLight = Color(0xFFFFFFFF) val primaryContainerLight = Color(0xFFF8E287) val onPrimaryContainerLight = Color(0xFF221B00) val secondaryLight = Color(0xFF665E40) val onSecondaryLigh...
<|turn>user Provide the native Android implementation for `Color.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/eyther/lumbridge/ui/theme/Color.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ```kotlin p...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SingleRunningScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: feature/running/src/main/java/online/partyrun/partyrunapplication/feature/running/running/SingleRunningScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package online.partyrun.partyrunapplication.feature.running.running import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.BoxWithConstraints import androidx.compose.foundation.layout.Column import androidx.compose.foundat...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SingleRunningScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: feature/running/src/main/java/online/partyrun/partyrunapplication/feature/running/ru...
Provide the native Android implementation for `AudioRecordAttachmentQuotedContent.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/attachments/content/AudioRecordAttachmentQuotedContent.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2014-2024 Stream.io Inc. All rights reserved. * * Licensed under the Stream License; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://github.com/GetStream/stream-chat-android/blob/main/LICENSE * * Unless req...
<|turn>user Provide the native Android implementation for `AudioRecordAttachmentQuotedContent.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/attachments/content/AudioRecordAttachmentQuotedContent....
Provide the native Android implementation for `BalanceSummery.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/zm/org/wallet/ui/usertransactions/BalanceSummery.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.zm.org.wallet.ui.usertransactions import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.* import androidx.compose.runtim...
<|turn>user Provide the native Android implementation for `BalanceSummery.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/zm/org/wallet/ui/usertransactions/BalanceSummery.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `TestSavedStateHolder` using Kotlinx Serialization.
Repository path: waypoint-core/src/test/java/com/squaredcandy/waypoint/core/route/lifecycle/TestSavedStateHolder.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.squaredcandy.waypoint.core.route.lifecycle import androidx.compose.runtime.Composable import androidx.compose.runtime.saveable.SaveableStateHolder class TestSavedStateHolder( private val onRemoveState: (key: Any) -> Unit, ): SaveableStateHolder { @Composable override fun SaveableStat...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `TestSavedStateHolder` using Kotlinx Serialization. Context: Repository path: waypoint-core/src/test/java/com/squaredcandy/waypoint/core/route/lifecycle/TestSavedStateHolder.kt Language: Kotlin Framework: AndroidX /...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `HuntScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/matthew/carvalhodagenais/coinhuntingbuddy/ui/screens/HuntScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.matthew.carvalhodagenais.coinhuntingbuddy.ui.screens import android.content.Context import android.content.Intent import android.util.Log import androidx.activity.compose.BackHandler import androidx.compose.foundation.layout.* import androidx.compose.material.* import androidx.compose.material.ic...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `HuntScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/matthew/carvalhodagenais/coinhuntingbuddy/ui/screens/HuntScreen.kt Lang...
Provide the native Android implementation for `RoomFridgeDb.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: db-room/src/main/java/com/pyamsoft/fridge/db/room/RoomFridgeDb.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright 2021 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
<|turn>user Provide the native Android implementation for `RoomFridgeDb.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: db-room/src/main/java/com/pyamsoft/fridge/db/room/RoomFridgeDb.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>m...
Implement the native Android class `BluetoothLeReader` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/gawquon/mapletherm/core/network/bluetooth/BluetoothLeReader.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package gawquon.mapletherm.core.network.bluetooth import android.annotation.SuppressLint import android.bluetooth.BluetoothGatt import android.bluetooth.BluetoothGattCallback import android.bluetooth.BluetoothGattCharacteristic import android.bluetooth.BluetoothGattDescriptor import android.bluetooth.Bluetoo...
<|turn>user Implement the native Android class `BluetoothLeReader` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/gawquon/mapletherm/core/network/bluetooth/BluetoothLeReader.kt Language: Kotlin Framework: AndroidX / Je...
Provide the native Android implementation for `ThreadParticipants.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/components/messages/ThreadParticipants.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2014-2022 Stream.io Inc. All rights reserved. * * Licensed under the Stream License; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://github.com/GetStream/stream-chat-android/blob/main/LICENSE * * Unless req...
<|turn>user Provide the native Android implementation for `ThreadParticipants.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/components/messages/ThreadParticipants.kt Language: Kotlin Framework: A...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MediaItemArtwork`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: components/src/main/kotlin/com/alexrdclement/uiplayground/components/MediaItemArtwork.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.alexrdclement.uiplayground.components import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.aspectRatio import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifi...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MediaItemArtwork`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: components/src/main/kotlin/com/alexrdclement/uiplayground/components/MediaItemArtwork.k...
Implement the native Android class `LocalDateTimeConverter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/anbui/recipely/data/local/entities/converter/LocalDateTimeConverter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.anbui.yum.data.converters import androidx.room.TypeConverter import java.time.LocalDateTime class LocalDateTimeConverter { @TypeConverter fun toLocalDateTime(dateString: String): LocalDateTime { return LocalDateTime.parse(dateString) } @TypeConverter fun toDateString...
<|turn>user Implement the native Android class `LocalDateTimeConverter` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/anbui/recipely/data/local/entities/converter/LocalDateTimeConverter.kt Language: Kotlin Framewo...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SignUp`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/example/androiddevchallenge/screen/register/SignUp.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.androiddevchallenge.screen.register import androidx.compose.foundation.layout.* import androidx.compose.material.* import androidx.compose.runtime.* import androidx.compose.ui.Modifier import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.tooling.preview.Preview impor...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `SignUp`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/example/androiddevchallenge/screen/register/SignUp.kt Language: Kotlin Fram...
Implement the native Android class `WebViewRenderingManager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: module/webview/src/main/java/jp/hazuki/yuzubrowser/webview/WebViewRenderingManager.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (C) 2017-2019 Hazuki * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
<|turn>user Implement the native Android class `WebViewRenderingManager` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: module/webview/src/main/java/jp/hazuki/yuzubrowser/webview/WebViewRenderingManager.kt Language: Kotlin Framework: An...
Implement the native Android class `WaitForBazelSyncCommand` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: plugin-bsp/src/main/kotlin/org/jetbrains/plugins/bsp/performanceImpl/WaitForBazelSyncCommand.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.jetbrains.plugins.bsp.performanceImpl import com.intellij.collaboration.async.nestedDisposable import com.intellij.openapi.ui.playback.PlaybackContext import com.intellij.openapi.ui.playback.commands.PlaybackCommandCoroutineAdapter import kotlinx.coroutines.channels.Channel import kotlinx.corouti...
<|turn>user Implement the native Android class `WaitForBazelSyncCommand` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: plugin-bsp/src/main/kotlin/org/jetbrains/plugins/bsp/performanceImpl/WaitForBazelSyncCommand.kt Language: Kotlin Fra...
Design a reactive Android Room DAO interface `LibraryShowsDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety.
Repository path: data/db/src/commonMain/kotlin/app/tivi/data/daos/LibraryShowsDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin // Copyright 2017, Google LLC, <NAME> and the Tivi project contributors // SPDX-License-Identifier: Apache-2.0 package app.tivi.data.daos import androidx.paging.PagingSource import app.tivi.data.compoundmodels.LibraryShow import app.tivi.data.models.SortOption interface LibraryShowsDao { fun pagedListLas...
<|turn>user Design a reactive Android Room DAO interface `LibraryShowsDao` in Kotlin. Provide reactive Coroutine Flow queries, upsert capabilities, and transaction safety. Context: Repository path: data/db/src/commonMain/kotlin/app/tivi/data/daos/LibraryShowsDao.kt Language: Kotlin Framework: AndroidX / Jetpack Compos...
Provide the native Android implementation for `TradeItSDK.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: tradeit-android-sdk/src/main/kotlin/it/trade/android/sdk/TradeItSDK.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package it.trade.android.sdk import android.util.Log import it.trade.android.sdk.exceptions.TradeItSDKConfigurationException import it.trade.android.sdk.manager.TradeItLinkedBrokerManager import it.trade.android.sdk.model.TradeItLinkedBrokerCache import it.trade.model.request.TradeItEnvironment object Tr...
<|turn>user Provide the native Android implementation for `TradeItSDK.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: tradeit-android-sdk/src/main/kotlin/it/trade/android/sdk/TradeItSDK.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|tur...
Implement the native Android class `SaveSeedObserver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: OpenLibraryApp/app/src/main/java/com/woowrale/openlibrary/ui/observers/Observers.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.woowrale.openlibrary.ui.observers import android.util.Log import androidx.lifecycle.MutableLiveData import com.woowrale.openlibrary.domain.model.Book import com.woowrale.openlibrary.domain.model.Seed import com.woowrale.openlibrary.usecase.observers.Observer class SaveSeedObserver constructor(pr...
<|turn>user Implement the native Android class `SaveSeedObserver` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: OpenLibraryApp/app/src/main/java/com/woowrale/openlibrary/ui/observers/Observers.kt Language: Kotlin Framework: AndroidX / ...
Provide the native Android implementation for `DatabaseModule.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app/src/main/java/com/andrii_a/walleria/di/DatabaseModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.andrii_a.walleria.di import android.app.Application import androidx.room.Room import com.andrii_a.walleria.data.local.db.WalleriaDatabase import com.andrii_a.walleria.data.local.db.dao.RecentSearchesDao import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.co...
<|turn>user Provide the native Android implementation for `DatabaseModule.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app/src/main/java/com/andrii_a/walleria/di/DatabaseModule.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>mode...
Implement the Android ViewModel `WriteFeedBackViewModel` 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/dnd/sixth/lmsservice/presentation/feedback/WriteFeedBackViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.dnd.sixth.lmsservice.presentation.feedback import androidx.lifecycle.MutableLiveData import androidx.lifecycle.viewModelScope import com.dnd.sixth.lmsservice.data.model.feedbackComment.FeedBackModel import com.dnd.sixth.lmsservice.data.preference.PreferenceManager import com.dnd.sixth.lmsservice....
<|turn>user Implement the Android ViewModel `WriteFeedBackViewModel` 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/dnd/sixth/lmsservice/presentation/feedback/W...
Provide the native Android implementation for `main.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: app-ios/src/iosMain/kotlin/dev/sergiobelda/todometer/app/ios/main.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 agree...
<|turn>user Provide the native Android implementation for `main.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: app-ios/src/iosMain/kotlin/dev/sergiobelda/todometer/app/ios/main.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn>model ...
Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `Router` using Kotlinx Serialization.
Repository path: shared/src/commonMain/kotlin/com.jettaskboard.multiplatform/util/krouter/KRouter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.adikmt.notesapp.ui.krouter import androidx.compose.runtime.Composable import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.runtime.DisallowComposableCalls import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.ProvidableCompositionLocal import a...
<|turn>user Configure modern type-safe Navigation Compose routes and destination mappings in Kotlin for `Router` using Kotlinx Serialization. Context: Repository path: shared/src/commonMain/kotlin/com.jettaskboard.multiplatform/util/krouter/KRouter.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Cor...
Implement the native Android class `RemindersActivityTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/androidTest/java/com/udacity/project4/RemindersActivityTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.udacity.project4 import android.app.Activity import android.app.Application import android.os.Build import android.util.Log import androidx.test.core.app.ActivityScenario import androidx.test.core.app.ApplicationProvider.getApplicationContext import androidx.test.espresso.Espresso.onView import a...
<|turn>user Implement the native Android class `RemindersActivityTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/androidTest/java/com/udacity/project4/RemindersActivityTest.kt Language: Kotlin Framework: AndroidX / Jetpack ...
Implement the native Android class `WalletApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/app/eluvio/wallet/app/WalletApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package app.eluvio.wallet.app import android.app.Application import androidx.lifecycle.DefaultLifecycleObserver import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.ProcessLifecycleOwner import app.eluvio.wallet.BuildConfig import app.eluvio.wallet.data.stores.FabricConfigStore import app.eluvi...
<|turn>user Implement the native Android class `WalletApplication` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/app/eluvio/wallet/app/WalletApplication.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotl...
Implement the native Android class `OnlyRefreshChartDataActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: sample/src/main/java/com/github/aachartmodel/aainfographics/demo/additionalcontent/HideOrShowChartSeriesActivity.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /** * ◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉ ...... SOURCE CODE ......◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉ * ◉◉◉................................................... ◉◉◉ * ◉◉◉ https://github.com/AAChartModel/AAChartCore ◉◉◉ * ◉◉◉ https://github.com/AAChartModel/AAChartCore-Kotlin ◉◉◉ * ◉◉◉...............................
<|turn>user Implement the native Android class `OnlyRefreshChartDataActivity` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: sample/src/main/java/com/github/aachartmodel/aainfographics/demo/additionalcontent/HideOrShowChartSeriesActivit...
Implement the Android ViewModel `StoryViewModel` 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/se7en/jetmessenger/viewmodels/StoryViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.se7en.jetmessenger.viewmodels import androidx.compose.runtime.mutableStateMapOf import androidx.lifecycle.ViewModel import com.se7en.jetmessenger.data.models.Story import com.se7en.jetmessenger.data.models.StoryStatus import com.se7en.jetmessenger.data.models.User import kotlin.random.Random cla...
<|turn>user Implement the Android ViewModel `StoryViewModel` 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/se7en/jetmessenger/viewmodels/StoryViewModel.kt Lang...
Implement the native Android class `AndroidContainer` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: library/src/main/java/just4fun/modularity/android/AndroidContainer.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package just4fun.modularity.android import android.app.Activity import android.app.Application import android.app.Notification import android.app.Service import android.content.Intent import android.util.Log import just4fun.kotlinkit.* import just4fun.modularity.android.ActivityState.DESTROYED import just4fu...
<|turn>user Implement the native Android class `AndroidContainer` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: library/src/main/java/just4fun/modularity/android/AndroidContainer.kt Language: Kotlin Framework: AndroidX / Jetpack Compos...
Implement the Android ViewModel `MainActivityViewModel` 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/things/dev/MainActivityViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package things.dev import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import things.dev.wifi.WifiScanResult enum class FabAlignmentMode { CENTER, END, } class MainActivityViewModel : ViewModel() { val pageIndex: MutableLiveData<Int> by lazy { MutableLiveData<Int>(0) ...
<|turn>user Implement the Android ViewModel `MainActivityViewModel` 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/things/dev/MainActivityViewModel.kt Language: Kot...
Implement the native Android class `CommonDiffCallback` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: core/src/main/java/com/jonnyhsia/appcore/ui/CommonDiffCallback.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.jonnyhsia.appcore.ui import androidx.recyclerview.widget.DiffUtil open class CommonDiffCallback( protected var old: List<*>? = null, protected var new: List<*>? = null ) : DiffUtil.Callback() { override fun getOldListSize() = old?.size ?: 0 override fun getNewListSize()...
<|turn>user Implement the native Android class `CommonDiffCallback` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: core/src/main/java/com/jonnyhsia/appcore/ui/CommonDiffCallback.kt Language: Kotlin Framework: AndroidX / Jetpack Compose ...
Implement the native Android class `ArticleVM` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/kotlin/com/fashare/mvvm_juejin/viewmodel/ArticleVM.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.fashare.mvvm_juejin.viewmodel import android.databinding.ObservableField import android.support.v7.widget.RecyclerView import android.view.View import com.fashare.databinding.TwoWayListVM import com.fashare.databinding.adapters.annotation.HeaderResHolder import com.fashare.databinding.adapters.an...
<|turn>user Implement the native Android class `ArticleVM` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/kotlin/com/fashare/mvvm_juejin/viewmodel/ArticleVM.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin...
Implement the Android ViewModel `ShortsViewModel` 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/devcommop/myapplication/ui/components/shorts/ShortsViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.devcommop.myapplication.ui.components.shorts import android.net.Uri import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.devcommop.myapplication.data.local.RuntimeQueries import com.devcommop.myapplication.data.model.ShortItem import com.devcommop.myapplication....
<|turn>user Implement the Android ViewModel `ShortsViewModel` 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/devcommop/myapplication/ui/components/shorts/Shorts...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MyApp`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/example/androiddevchallenge/MainActivity.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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MyApp`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/example/androiddevchallenge/MainActivity.kt Language: Kotlin Framework: Andr...
Provide the native Android implementation for `RegexUtil.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: androidutilskt/src/main/java/com/lindroid/androidutilskt/extension/RegexUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin @file:JvmName("RegexUtil") package com.lindroid.androidutilskt.extension import android.util.Patterns /** * @author Lin * @date 2019/3/14 * @function 正则表达式工具类 * @Description */ private fun String.checkWithRegex(pattern: String): Boolean { return Regex(pattern).matches(this) } /**校验内地手机号码**/ val S...
<|turn>user Provide the native Android implementation for `RegexUtil.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: androidutilskt/src/main/java/com/lindroid/androidutilskt/extension/RegexUtil.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn...
Implement the native Android class `AchievementScreenIntegrationTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/androidTest/java/com/hydrofish/app/AchievementScreenIntegrationTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.hydrofish.app import androidx.compose.ui.test.assertIsDisplayed import androidx.compose.ui.test.junit4.createComposeRule import androidx.compose.ui.test.onNodeWithText import androidx.lifecycle.MutableLiveData import androidx.navigation.NavHostController import com.hydrofish.app.ui.composables.ta...
<|turn>user Implement the native Android class `AchievementScreenIntegrationTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/androidTest/java/com/hydrofish/app/AchievementScreenIntegrationTest.kt Language: Kotlin Framework: ...
Implement the native Android class `ClassifierUploadFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/org/rfcx/incidents/view/guardian/checklist/classifierupload/ClassifierUploadFragment.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package org.rfcx.incidents.view.guardian.checklist.classifierupload import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.appcompat.app.AlertDialog import androidx.databinding.DataBindingUtil import androidx.fragment.app.Fragment im...
<|turn>user Implement the native Android class `ClassifierUploadFragment` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/org/rfcx/incidents/view/guardian/checklist/classifierupload/ClassifierUploadFragment.kt Language:...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `TextSpansScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/skyyo/samples/features/textSpans/TextSpansScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.skyyo.samples.features.textSpans import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.material.Button import androidx.compose.material.Text import androidx.compose.runtime.* import androidx.compose.ui.Modifier import androidx.compose.ui...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `TextSpansScreen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/skyyo/samples/features/textSpans/TextSpansScreen.kt Language: Kotl...
Implement the native Android class `CountryPickerButtonInstrumentedTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/androidTest/java/com/waffiq/countryPicker/CountryPickerButtonInstrumentedTest.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.waffiq.countryPicker import android.content.Context import android.content.Intent import androidx.test.core.app.ActivityScenario import androidx.test.core.app.ApplicationProvider import androidx.test.core.app.launchActivity import androidx.test.espresso.Espresso.onView import androidx.test.espres...
<|turn>user Implement the native Android class `CountryPickerButtonInstrumentedTest` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/androidTest/java/com/waffiq/countryPicker/CountryPickerButtonInstrumentedTest.kt Language: Kotli...
Implement the native Android class `InputDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: library/dialog/src/main/java/com/github/lany192/dialog/InputDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.github.lany192.dialog import android.text.TextUtils import android.text.method.MovementMethod import android.view.View import android.view.WindowManager import androidx.annotation.ColorRes import com.github.lany192.dialog.databinding.DialogInputBinding import com.github.lany192.extension.toast im...
<|turn>user Implement the native Android class `InputDialog` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: library/dialog/src/main/java/com/github/lany192/dialog/InputDialog.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / K...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Screen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/ch/abwesend/privatecontacts/view/screens/contactdetail/ContactDetailScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Private Contacts * Copyright (c) 2022. * <NAME> */ package ch.abwesend.privatecontacts.view.screens.contactdetail import androidx.annotation.StringRes import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.layout.padding import androidx.compose.material.Divi...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `Screen`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/ch/abwesend/privatecontacts/view/screens/contactdetail/ContactDetailScreen.kt L...
Implement the native Android class `StreamBase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: library/src/main/java/com/pedro/library/base/StreamBase.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.pedro.library.base import android.content.Context import android.graphics.SurfaceTexture import android.media.MediaCodec import android.media.MediaFormat import android.media.projection.MediaProjection import android.os.Build import android.util.Range import android.util.Size import android.view....
<|turn>user Implement the native Android class `StreamBase` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: library/src/main/java/com/pedro/library/base/StreamBase.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Corout...
Implement the native Android class `StoreOutsideScreen` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: app/src/main/java/com/hakmar/employeelivetracking/features/store_detail_tasks/ui/screen/StoreOutsideScreen.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.hakmar.employeelivetracking.features.store_detail_tasks.ui.screen import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.mater...
<|turn>user Implement the native Android class `StoreOutsideScreen` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: app/src/main/java/com/hakmar/employeelivetracking/features/store_detail_tasks/ui/screen/StoreOutsideScreen.kt Language: K...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MessengerCloneMessagesComposer`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: app/src/main/java/com/mathroda/messengerclone/ui/messages/components/MessengerCloneMessagesComposer.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.erdi.messengerclone.ui.messages.components import android.widget.Toast import androidx.compose.animation.AnimatedVisibility import androidx.compose.foundation.layout.* import androidx.compose.material.* import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `MessengerCloneMessagesComposer`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: app/src/main/java/com/mathroda/messengerclone/ui/messages/components/Mess...
Implement the native Android class `MaterialColor` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines.
Repository path: library/src/main/java/software/rsquared/materialcolors/MaterialColor.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package software.rsquared.materialcolors import android.graphics.Color import android.support.annotation.FloatRange import kotlin.math.roundToInt class MaterialColor { companion object { @JvmField val red: Map<Int, Int> = mapOf( 50 to Color.parseColor("#FFEBEE"), ...
<|turn>user Implement the native Android class `MaterialColor` in Kotlin following idiomatic Kotlin 2.0+ conventions, structured concurrency, and AndroidX guidelines. Context: Repository path: library/src/main/java/software/rsquared/materialcolors/MaterialColor.kt Language: Kotlin Framework: AndroidX / Jetpack Compose...
Provide the native Android implementation for `FloatDps.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: library/src/androidMain/kotlin/com/meowool/sweekt/dimension/FloatDps.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.meowool.sweekt.dimension import android.content.Context import android.content.res.Resources import android.util.DisplayMetrics import kotlin.math.roundToInt import kotlin.math.roundToLong /** * Converts this density-independent pixels to the int value stands device pixels. * * @see Resources...
<|turn>user Provide the native Android implementation for `FloatDps.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: library/src/androidMain/kotlin/com/meowool/sweekt/dimension/FloatDps.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines<turn|> <|turn...
Provide the native Android implementation for `Skull.kt` in Kotlin with idiomatic patterns and proper error handling.
Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Skull.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.woowla.compose.icon.collections.tabler.tabler.outline import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.graph...
<|turn>user Provide the native Android implementation for `Skull.kt` in Kotlin with idiomatic patterns and proper error handling. Context: Repository path: tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Skull.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Cor...
Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CloseButton`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration.
Repository path: Aretech App/app/src/main/java/com/example/aretech/ui/compose/buttons/CloseButton.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin package com.example.aretech.ui.compose.buttons import androidx.compose.runtime.Composable import com.example.aretech.R import com.example.aretech.ui.activities.menu.task.views.common.ImageInRoundShapeCard @Composable fun CloseButton(onClick: () -> Unit) { ImageInRoundShapeCard( image = R.drawabl...
<|turn>user Develop a high-performance native Android UI component in Kotlin using Jetpack Compose for `CloseButton`. Ensure state hoisting, recomposition efficiency, and clean Material 3 integration. Context: Repository path: Aretech App/app/src/main/java/com/example/aretech/ui/compose/buttons/CloseButton.kt Language...
Implement the Android ViewModel `LocalePickerViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state.
Repository path: vector/src/main/java/varta/cdac/app/features/settings/locale/LocalePickerViewModel.kt Language: Kotlin Framework: AndroidX / Jetpack Compose / Kotlin Coroutines
```kotlin /* * Copyright (c) 2020 New Vector Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
<|turn>user Implement the Android ViewModel `LocalePickerViewModel` in Kotlin following modern Clean Architecture principles. Utilize StateFlow, viewModelScope, and Unidirectional Data Flow (UDF) to expose immutable UI state. Context: Repository path: vector/src/main/java/varta/cdac/app/features/settings/locale/Locale...