file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
compose/resource/src/commonMain/kotlin/com/bselzer/ktx/compose/ui/layout/icon/IconInteractorExtension.kt | unknown_repo | kotlin | package com.bselzer.ktx.compose.ui.layout.icon
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.state.ToggleableState
import com.bselzer.ktx.resource.KtxResources
import com.bselzer.ktx.resource.images.pai... |
app/src/main/java/io/outblock/lilico/widgets/webview/WebviewToolbarBehavior.kt | unknown_repo | kotlin | package io.outblock.lilico.widgets.webview
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.view.ViewGroup
import android.webkit.WebView
import androidx.coordinatorlayout.widget.CoordinatorLayout
import io.outblock.lilico.utils.logd
class WebviewToolbarBehavior ... |
data/src/main/java/com/krykun/data/dao/MovieDao.kt | unknown_repo | kotlin | package com.krykun.data.dao
import androidx.room.*
import com.krykun.data.model.local.Movie
import com.krykun.data.model.local.PlaylistMovieCrossRef
@Dao
interface MovieDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertMovie(movie: Movie): Long
@Insert(onConflict = OnConflictStrategy.REPL... |
app/src/main/java/com/benliger/nasaapod/ui/detail/DetailAstronomyPictureViewHolder.kt | unknown_repo | kotlin | package com.benliger.nasaapod.ui.detail
import androidx.core.view.isVisible
import com.benliger.nasaapod.R
import com.benliger.nasaapod.databinding.DetailAstronomyPictureFragmentBinding
import com.benliger.nasaapod.service.model.Apod
import com.benliger.nasaapod.ui.common.ScreenUiData
import com.benliger.nasaapod.ui.c... |
vico/core/src/main/java/com/patrykandpatrick/vico/core/common/shader/DynamicShader.kt | unknown_repo | kotlin | /*
* Copyright 2024 by <NAME> and <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 ... |
app/src/main/java/com/rogertalk/roger/audio/AudioSystem.kt | unknown_repo | kotlin | package com.rogertalk.roger.audio
import android.os.Build
import com.rogertalk.kotlinjubatus.utils.DeviceUtils
/**
* Various properties of the Audio System for this device
*/
object AudioSystem {
/**
* @return True if device belongs to the ones we now are guaranteed to fail to record
* properly in st... |
easyadapter/lib-easyadapter/src/main/java/ru/surfstudio/android/easyadapter/diff/base/BaseDiffer.kt | unknown_repo | kotlin | /*
Copyright (c) 2018-present, SurfStudio LLC, <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
activity/activity/src/main/java/androidx/activity/contextaware/ContextAwareHelper.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/muzzley/services/PreferencesRepositoryImpl.kt | unknown_repo | kotlin | package com.muzzley.services
import android.annotation.SuppressLint
import android.content.Context
import android.content.SharedPreferences
import com.muzzley.R
import com.muzzley.app.receivers.CallReceiver
import com.muzzley.model.workers.Fence
import com.muzzley.model.Preferences
import com.muzzley.model.User
import... |
library/src/main/java/com/ruslankishai/unmaterialtab/tabs/RoundTabLayout.kt | unknown_repo | kotlin | package com.ruslankishai.unmaterialtab.tabs
import android.animation.ArgbEvaluator
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.support.v4.view.ViewPager
impor... |
app/src/main/java/com/krm/debitcreditcards/MainActivity.kt | unknown_repo | kotlin | package com.krm.debitcreditcards
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.LinearLayout
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
private val create... |
app/src/main/java/com/chen/app/ui/main/MainActivity.kt | unknown_repo | kotlin | package com.chen.app.ui.main
import android.view.KeyEvent
import com.chen.basemodule.basem.BaseSimActivity
class MainActivity : BaseSimActivity() {
override val fragment = MainFragment()
override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean {
return if (keyCode == KeyEvent.KEYCODE_BACK... |
app/src/main/kotlin/com/goodwy/keyboard/lib/compose/FlorisDropdownMenu.kt | unknown_repo | 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 agreed to in wr... |
app/src/main/java/com/morj12/cloudlist/data/local/dbmodel/ItemDbModel.kt | unknown_repo | kotlin | package com.morj12.cloudlist.data.local.dbmodel
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.ForeignKey.CASCADE
import androidx.room.PrimaryKey
@Entity(tableName = "item",
foreignKeys = [ForeignKey(
entity = CartDbModel::class,
parentColumns = arrayOf("timestamp"),
chil... |
solar/src/main/java/com/chiksmedina/solar/outline/money/Wallet2.kt | unknown_repo | kotlin | package com.chiksmedina.solar.outline.money
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Compan... |
app/src/main/java/io/github/rsookram/notesmkii/Dependencies.kt | unknown_repo | kotlin | package io.github.rsookram.notesmkii
import androidx.activity.ComponentActivity
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import java.util.concurrent.Executors
object Dependencies {
fun viewModel(activity: ComponentActivity): MainViewModel {
val bgExecutor = Executor... |
app/src/main/java/it/reti/percorsi/school/ui/ClassroomList/ClassroomsListFragment.kt | unknown_repo | kotlin | package it.reti.percorsi.school.ui.ClassroomList
import android.content.Context
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import ... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/ConvertRange.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.ConvertRange: ImageVector
get() {
if (_convertRange != null... |
app/src/main/java/at/roteskreuz/stopcorona/screens/dashboard/DashboardActivity.kt | unknown_repo | kotlin | package at.roteskreuz.stopcorona.screens.dashboard
import android.app.Activity
import android.content.Context
import android.content.Intent
import androidx.fragment.app.Fragment
import at.roteskreuz.stopcorona.screens.base.CoronaPortraitBaseActivity
import at.roteskreuz.stopcorona.skeleton.core.screens.base.activity.g... |
shared/src/commonMain/kotlin/com/pablichj/templato/component/demo/treebuilders/DrawerTreeBuilder.kt | unknown_repo | kotlin | package com.pablichj.templato.component.demo.treebuilders
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.*
import com.pablichj.templato.component.demo.CustomTopBarComponent
import com.pablichj.templato.component.core.NavItem
import com.pablichj.templato.component.core.drawer... |
core/src/main/kotlin/com/github/zeldigas/text2confl/core/upload/PageUploadOperationsImpl.kt | unknown_repo | kotlin | package com.github.zeldigas.text2confl.core.upload
import com.github.zeldigas.confclient.*
import com.github.zeldigas.confclient.model.ConfluencePage
import com.github.zeldigas.confclient.model.PageProperty
import com.github.zeldigas.text2confl.convert.EditorVersion
import com.github.zeldigas.text2confl.convert.Page
i... |
app/src/main/java/com/kevalpatel2106/yip/widget/config/WidgetConfigActivity.kt | unknown_repo | kotlin | package com.kevalpatel2106.yip.widget.config
import android.app.Activity
import android.appwidget.AppWidgetManager
import android.content.Intent
import android.os.Bundle
import android.widget.RadioGroup
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.os.bundleOf... |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/HospitalSolid.kt | unknown_repo | kotlin | package compose.icons.lineawesomeicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... |
examples/Ping/ping/src/main/java/com/storyteller_f/ping/WallpaperListFragment.kt | unknown_repo | kotlin | package com.storyteller_f.ping
import android.app.Activity
import android.app.WallpaperManager
import android.content.ComponentName
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.HapticFeedbackConstants
import android.view.View
import androidx.activity.result.contrac... |
examples/Ping/ping/src/main/java/com/storyteller_f/ping/WallpaperListFragment.kt | unknown_repo | kotlin | package com.storyteller_f.ping
import android.app.Activity
import android.app.WallpaperManager
import android.content.ComponentName
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.HapticFeedbackConstants
import android.view.View
import androidx.activity.result.contrac... |
MyApplication/app/src/main/java/com/example/myapplication/utils/NetworkLiveData.kt | unknown_repo | kotlin | package com.example.myapplication.utils
import android.content.Context
import android.net.ConnectivityManager
import android.net.Network
import android.net.NetworkRequest
import androidx.lifecycle.LiveData
class NetworkLiveData(context: Context) : LiveData<Boolean>() {
private val connectivityManager = context.g... |
app/src/main/java/com/wardellbagby/sensordisabler/views/Conversions.kt | unknown_repo | kotlin | package com.wardellbagby.sensordisabler.views
import android.content.res.Resources
val Int.dp: Int
get() = (this * Resources.getSystem().displayMetrics.density).toInt() |
app/src/main/java/com/tktkokym/currencyviewer/room/CurrencyBaseTable.kt | unknown_repo | kotlin | package com.tktkokym.currencyviewer.room
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "currency_table")
data class CurrencyBaseTable(
@PrimaryKey
val base: String,
val timestamp: Long,
val rates: Map<String, Double>
) |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/CameraSecurity.kt | unknown_repo | kotlin | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/feeds/ui/expanded/SourcesAll.kt | unknown_repo | kotlin | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
app/src/main/java/com/github/leonardoz/kanbapp/view/viewmodel/ColumnViewModel.kt | unknown_repo | kotlin | package com.github.leonardoz.kanbapp.view.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.github.leonardoz.kanbapp.data.entity.Board
import com.github.leonardoz.kanbapp.data.entity.Column
imp... |
app/src/main/java/com/nhnextsoft/qrcode/ui/splash/SplashActivity.kt | unknown_repo | kotlin | package com.nhnextsoft.qrcode.ui.splash
import android.os.Bundle
import android.os.CountDownTimer
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.ExperimentalAnimationApi
import com.nhnextsoft.qrcode.R
import com.nhnextsoft.qrcode.ui.feature.entry.QrEntryPointCodeActivity
class Splas... |
StoryApp/app/src/main/java/com/wororn/storyapp/interfaces/setmodes/ModesActivity.kt | unknown_repo | kotlin | package com.wororn.storyapp.interfaces.setmodes
import android.annotation.SuppressLint
import android.os.Bundle
import android.widget.CompoundButton
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.lifecycle.ViewModelProvider
import com.google.android.mate... |
app/src/main/java/com/erick/herrera/shoppinglist/ui/ShoppingViewModel.kt | unknown_repo | kotlin | package com.erick.herrera.shoppinglist.ui
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.erick.herrera.shoppinglist.data.local.ShoppingItem
import com.erick.herrera.shoppinglist.data.remote.responses.I... |
app/src/commonMain/kotlin/AppViewModel.kt | unknown_repo | kotlin | import androidx.compose.runtime.mutableStateOf
import com.ionspin.kotlin.bignum.integer.BigInteger
import datalayer.functions.getLendMarketState
import datalayer.functions.updateUserBalance
import types.LendOverseerMarket
import types.Loan
class AppViewModel(val repo: Repository, private val liquidator: Liquidator) {
... |
app/src/main/java/com/example/noteapp_architecture_sample/feature_note/domain/add_edit_note_redux/NoteSaveMiddleware.kt | unknown_repo | kotlin | package com.example.noteapp_architecture_sample.feature_note.domain.add_edit_note_redux
import android.util.Log
import com.example.noteapp_architecture_sample.feature_note.domain.model.InvalidNoteException
import com.example.noteapp_architecture_sample.feature_note.domain.model.Note
import com.example.noteapp_architec... |
common/common_presentation/src/main/java/com/serj113/pokedex/common/presentation/PokemonStatus.kt | unknown_repo | kotlin | package com.serj113.pokedex.common.presentation
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.capitalize
import androidx.compose.ui.text.font.FontWeight
import com.serj113.pokedex.core.model.Stat
object PokemonStatus {
private const val MAX_HP = 300f
private const val MAX_ATTACK = 300f... |
ktx/src/main/java/luyao/util/ktx/ext/AppExt.kt | unknown_repo | kotlin | package luyao.util.ktx.ext
import android.content.Context
import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import android.os.Build
import luyao.util.ktx.bean.AppInfo
import java.io.File
/**
* Created by luyao
* on 2019/6/12 10:53
*/
val Context.versionName: String
get() = package... |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/media/CameraLensFill.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.remix.remix.media
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.Stro... |
core-data-map/src/main/java/com/rocket/android/core/data/map/CoreMapView.kt | unknown_repo | kotlin | package com.rocket.android.core.data.map
import android.Manifest
import android.content.Context
import android.os.Bundle
import android.util.AttributeSet
import android.view.View
import androidx.annotation.RawRes
import androidx.annotation.RequiresPermission
import androidx.constraintlayout.widget.ConstraintLayout
imp... |
app/src/main/java/droidkaigi/github/io/challenge2019/di/AppModule.kt | unknown_repo | kotlin | package droidkaigi.github.io.challenge2019.di
import androidx.lifecycle.ViewModel
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
import droidkaigi.github.io.challenge2019.core.data.di.ViewModelKey
import droidkaigi.github.io.challenge2019.ui.main.MainViewModel
import droidkaigi.github.io.... |
app/src/main/java/ar/com/infrastructure/repositories/providers/local/db/RoomPostAppDatabase.kt | unknown_repo | kotlin | package ar.com.infrastructure.repositories.providers.local.db
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import ar.com.infrastructure.repositories.providers.local.db.entities.PostEntity
@Database(
entities = [PostEntity::class],
ver... |
app/src/main/java/se/deluxerpanda/short_message_service/smssender/MainActivity.kt | unknown_repo | kotlin | package se.deluxerpanda.short_message_service.smssender
import android.Manifest
import android.app.AlarmManager
import android.app.DatePickerDialog
import android.app.PendingIntent
import android.app.TimePickerDialog
import android.content.Context
import android.content.Intent
import android.content.pm.PackageInfo
imp... |
core/database/src/main/kotlin/com/inasweaterpoorlyknit/core/database/NoopDatabase.kt | unknown_repo | kotlin | package com.inasweaterpoorlyknit.core.database
import androidx.room.AutoMigration
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import com.inasweaterpoorlyknit.core.database.dao.ArticleDao
import com.inasweaterpo... |
app/src/main/java/des/c5inco/pokedexer/ui/pokedex/section/EvolutionsSection.kt | unknown_repo | kotlin | package des.c5inco.pokedexer.ui.pokedex.section
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.co... |
app/src/main/java/de/fhe/ai/flipsen/database/local/shared_prefs/ValueStore.kt | unknown_repo | kotlin | package de.fhe.ai.flipsen.database.local.shared_prefs
import android.content.Context
import dagger.hilt.android.qualifiers.ApplicationContext
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class ValueStore @Inject constructor(@ApplicationContext context : Context){
val prefs = context.getShar... |
session-editor/src/main/kotlin/net/onefivefour/sessiontimer/sessioneditor/SessionEditorScreen.kt | unknown_repo | kotlin | package net.onefivefour.sessiontimer.sessioneditor
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import net.onefivefour.sessiontimer.theme.typography
@Composable
fun SessionEditorScre... |
app/src/main/java/io/github/kevinmhankes/jokeapi/api/JokeService.kt | unknown_repo | kotlin | package io.github.kevinmhankes.jokeapi.api
import androidx.lifecycle.LiveData
import io.github.kevinmhankes.jokeapi.model.Joke
import io.github.kevinmhankes.jokeapi.model.JokeResponse
import retrofit2.http.GET
import retrofit2.http.Query
/**
* @author Kevin.
* Created/Modified on February 14, 2021
*/
interface Jok... |
android_java/app/src/main/java/org/tensorflow/lite/examples/imageclassification/fragments/DynamicBitmapSource.kt | unknown_repo | kotlin | package org.tensorflow.lite.examples.imageclassification.fragments
import android.graphics.Bitmap
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
class DynamicBitmapSource(private val bitmapUpdaterApi: BitmapUpdaterApi... |
app/src/main/java/com/yenaly/han1meviewer/ui/fragment/settings/PlayerSettingsFragment.kt | unknown_repo | kotlin | package com.yenaly.han1meviewer.ui.fragment.settings
import android.os.Bundle
import androidx.annotation.IntRange
import androidx.preference.SeekBarPreference
import androidx.preference.SwitchPreferenceCompat
import com.yenaly.han1meviewer.R
import com.yenaly.han1meviewer.ui.activity.SettingsActivity
import com.yenaly... |
core-ui/src/main/kotlin/com/laomuji666/compose/core/ui/we/widget/WeTableInput.kt | unknown_repo | kotlin | package com.laomuji666.compose.core.ui.we.widget
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.com... |
app/src/main/java/com/docwei/globaldot/MyApplication.kt | unknown_repo | kotlin | package com.docwei.globaldot
import android.app.Application
import android.os.Build
import android.util.Log
import com.docwei.doblib.ZeTaTrack
/**
* Created by liwk on 2021/6/12.
*/
class MyApplication: Application() {
override fun onCreate() {
super.onCreate()
Log.e("ZeTadot","onCreate")
... |
features/root/search/src/commonMain/kotlin/app/immich/kmp/features/root/search/SearchCompositor.kt | unknown_repo | kotlin | package app.immich.kmp.features.root.search
import androidx.compose.runtime.Composable
import com.eygraber.vice.ViceCompositor
import com.eygraber.virtue.di.scopes.SessionPortalSingleton
import me.tatarka.inject.annotations.Inject
@SessionPortalSingleton
@Inject
internal class SearchCompositor : ViceCompositor<Intent... |
cards/src/main/java/com/hatfat/cards/data/loader/LocalStorageWrapper.kt | unknown_repo | kotlin | package com.hatfat.cards.data.loader
import android.content.Context
import android.util.Log
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import java.io.*
class LocalStorageWrapper<T>(
private val context: Context,
private val gson: Gson,
private val resourceName: String,
privat... |
app/src/main/java/fr/jorisfavier/youshallnotpass/utils/CustomLifecycle.kt | unknown_repo | kotlin | package fr.jorisfavier.youshallnotpass.utils
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LifecycleRegistry
class CustomLifecycle(
parentLifecycle: Lifecycle,
) : LifecycleOwner {
private val lifecycl... |
feature/feed/domain/api/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/feed/domain/api/worker/FeedWorkScheduler.kt | unknown_repo | kotlin | /*
Copyright 2023 Savvas Dalkitsis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... |
app/src/main/java/com/dicoding/storyapp/ui/main/SplashscreenActivity.kt | unknown_repo | kotlin | package com.dicoding.storyapp.ui.main
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.View
import android.view.WindowInsets
import android.view.WindowManager
import android.widget.ProgressBar
import androidx.appcompat... |
hybid.demo/src/main/java/net/pubnative/lite/demo/ui/fragments/maxads/MaxAdsMediationBannerFragment.kt | unknown_repo | kotlin | package net.pubnative.lite.demo.ui.fragments.maxads
import android.graphics.Color
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.*
import androidx.fragment.app.Fragment
import com.applovin.mediation.MaxAd
import com.applovin.mediation.MaxAdViewAdListener
import com.appl... |
apprating/src/main/java/com/mindera/skeletoid/apprating/dialogs/AppRatingDialog.kt | unknown_repo | kotlin | package com.mindera.skeletoid.apprating.dialogs
import android.app.AlertDialog
import android.app.Dialog
import android.os.Bundle
import androidx.fragment.app.DialogFragment
import com.mindera.skeletoid.apprating.AppRatingInitializer
import com.mindera.skeletoid.apprating.R
import com.mindera.skeletoid.apprating.callb... |
app/src/main/java/com/example/mypersonalassistant/activity/WeatherActivity.kt | unknown_repo | kotlin | package com.example.mypersonalassistant.activity
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.ContextWrapper
import android.content.DialogInterface
import android.content.Intent
import android.content.pm.PackageManager
... |
app/src/main/java/com/suihan74/utilities/AccountLoader.kt | unknown_repo | kotlin | package com.suihan74.utilities
import android.content.Context
import android.util.Log
import com.google.gson.Gson
import com.suihan74.hatenaLib.Account
import com.suihan74.hatenaLib.HatenaClient
import com.suihan74.satena.models.PreferenceKey
import com.suihan74.utilities.exceptions.TaskFailureException
import com.sys... |
auth/src/main/kotlin/dev/atick/auth/models/AuthScreenData.kt | unknown_repo | 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
app/src/main/java/com/iceberry/mqtttest/viewModel/fragment/ProfileDetailViewModel.kt | unknown_repo | kotlin | package com.iceberry.mqtttest.viewModel.fragment
import androidx.lifecycle.ViewModel
class ProfileDetailViewModel : ViewModel() {
// TODO: Implement the ViewModel
} |
nfcreader/src/test/java/com/oscarg798/amiibowiki/nfcreader/NFCReaderViewModelTest.kt | unknown_repo | kotlin | /*
* Copyright 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subl... |
core/components/src/main/java/de/cleema/android/core/components/AvatarImage.kt | unknown_repo | kotlin | /*
* Created by Kumpels and Friends on 2022-12-21
* Copyright © 2022 Kumpels and Friends. All rights reserved.
*/
package de.cleema.android.core.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androi... |
app/src/main/java/com/personal/weathering/weather/data/mappers/WeatherMappers.kt | unknown_repo | kotlin | package com.personal.weathering.weather.data.mappers
import androidx.compose.ui.util.fastFilter
import androidx.compose.ui.util.fastMap
import androidx.compose.ui.util.fastMapIndexed
import androidx.compose.ui.util.fastMapNotNull
import com.personal.weathering.R
import com.personal.weathering.core.util.convertStringTo... |
amity-sample-app/src/main/java/com/amity/sample/ascsdk/messagelist/CustomMessageSenderActivity.kt | unknown_repo | kotlin | package com.amity.sample.ascsdk.messagelist
import android.app.Activity
import android.os.Bundle
import com.amity.socialcloud.sdk.chat.AmityChatClient
import com.amity.sample.ascsdk.common.activity.KeyValueInputActivity
import com.amity.sample.ascsdk.intent.OpenCustomMessageSenderIntent
import com.google.gson.JsonObj... |
app/src/main/java/com/astroscoding/jokesapp/presentation/screen/on_boarding/OnBoardingScreen.kt | unknown_repo | kotlin | package com.astroscoding.jokesapp.presentation.screen.on_boarding
import androidx.annotation.DrawableRes
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.spring
import androidx.compose.foundation.Image
import androidx.compose.f... |
{{cookiecutter.repo_name}}/app/src/main/java/core/BaseFragment.kt | unknown_repo | kotlin | package {{ cookiecutter.package_name }}.core
import android.arch.lifecycle.ViewModelProviders
import android.databinding.DataBindingUtil
import android.databinding.ViewDataBinding
import android.os.Bundle
import android.support.annotation.LayoutRes
import android.support.v4.app.Fragment
import android.view.LayoutInfla... |
app/src/main/java/uk/gov/onelogin/mainnav/nav/MainNavGraph.kt | unknown_repo | kotlin | package uk.gov.onelogin.mainnav.nav
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import androidx.navigation.navigation
import uk.gov.onelogin.mainnav.MainNavRoutes
import uk.gov.onelogin.mainnav.ui.MainNavScreen
object MainNavGraph {
fun NavGraphBuilder.mainNavRoutesFlo... |
app/src/main/java/com/example/movieapp/test/MovieListActivity.kt | unknown_repo | kotlin | package com.example.movieapp.test
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Parcelable
import android.widget.Toast
import androidx.activity.viewModels
import androidx.recyclerview.widget.GridLayoutManager
import com.example.movieapp.MovieListAdapter
import com.example.m... |
app/src/main/kotlin/de/uni_marburg/mathematik/ds/serval/model/Event.kt | unknown_repo | kotlin | package de.uni_marburg.mathematik.ds.serval.model
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
import android.location.Location
import android.support.annotation.StringRes
import com.google.android.gms.maps.model.LatLng
import com.mikepenz.community_material_typeface_libr... |
composeApp/src/commonMain/kotlin/com/ethossoftworks/land/ui/common/TextField.kt | unknown_repo | kotlin | package com.ethossoftworks.land.ui.common
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.fo... |
app/src/main/java/com/dosti/scamfolio/ui/view/HomepageView.kt | unknown_repo | kotlin | package com.dosti.scamfolio.ui.view
import android.annotation.SuppressLint
import android.content.res.Configuration
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
imp... |
presentation/ui/src/main/java/com/jfmr/ac/test/presentation/ui/component/ButtonComponents.kt | unknown_repo | kotlin | package com.jfmr.ac.test.presentation.ui.component
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import... |
app/src/main/java/com/android/virgilsecurity/virgilback4app/chat/contactsList/ThreadsListFragmentPresenter.kt | unknown_repo | kotlin | package com.android.virgilsecurity.virgilback4app.chat.contactsList
import android.content.Context
import com.android.virgilsecurity.virgilback4app.AppVirgil
import com.android.virgilsecurity.virgilback4app.model.ChatThread
import com.android.virgilsecurity.virgilback4app.util.RxEthree
import com.android.virgilsecurit... |
kakao/src/main/kotlin/io/github/kakaocup/kakao/common/matchers/SwipeRefreshLayoutMatcher.kt | unknown_repo | kotlin | @file:Suppress("unused")
package com.agoda.kakao.common.matchers
import android.view.View
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import org.hamcrest.Description
import org.hamcrest.TypeSafeMatcher
class SwipeRefreshLayoutMatcher(private val refreshing: Boolean) : TypeSafeMatcher<View>() {
o... |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/utils/ShareUtil.kt | unknown_repo | kotlin | package ch.rmy.android.http_shortcuts.utils
import android.content.Context
import android.content.Intent
import ch.rmy.android.framework.extensions.logException
import ch.rmy.android.framework.extensions.showToast
import ch.rmy.android.framework.extensions.startActivity
import ch.rmy.android.http_shortcuts.R
object S... |
app/src/main/java/com/example/finalselfieapp/CameraFragment.kt | unknown_repo | kotlin | package com.example.finalselfieapp
import android.Manifest
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.camera.core.*
import androidx.camera.l... |
app/src/main/java/com/akshar/callautodelete/MyApp.kt | unknown_repo | kotlin | package com.akshar.callautodelete
import android.app.Application
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
createNotificationChannel(this)
scheduleFileCleanup(this)
}
} |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/common/barcode/QRCodeScanRender.kt | unknown_repo | kotlin | package org.dweb_browser.browser.common.barcode
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.animateColor
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import android... |
app/src/main/java/com/example/sports/ui/SportsScreenGeneral.kt | unknown_repo | kotlin | package com.example.sports.ui
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.R... |
geolocation/geofence/app/src/main/java/com/digitalwellbeingexperiments/toolkit/geofence/Trigger.kt | unknown_repo | kotlin | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
app/src/main/java/com/app/missednotificationsreminder/binding/model/BaseViewStateViewEffectModel.kt | unknown_repo | kotlin | package com.app.missednotificationsreminder.binding.model
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.*
@OptIn(ExperimentalCoroutinesApi::class)
open class BaseViewStateViewEffectModel<
VIEW_STATE,
VIEW_EFFECT,
PARTIAL_CHANGES : ViewStatePartialChanges<VI... |
repository/src/main/java/com/shy/study/repository/network/api/ApiService.kt | unknown_repo | kotlin | package com.shy.study.repository.network.api
import androidx.lifecycle.LiveData
import com.shy.study.repository.entity.Banner
import com.shy.study.repository.network.ApiResponse
import retrofit2.http.GET
interface ApiService {
@GET("https://wanandroid.com/wxarticle/chapters/json")
fun getBanner(): LiveData<A... |
app/src/main/java/com/yuriisurzhykov/pointdetector/presentation/points/list/PointsListViewModel.kt | unknown_repo | kotlin | package com.yuriisurzhykov.pointdetector.presentation.points.list
import android.location.Location
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.yuriisurzhykov... |
app/src/main/java/com/skl/putya/audiorecorder/player/PlayerViewModel.kt | unknown_repo | kotlin | package com.skl.putya.audiorecorder.player
import android.arch.lifecycle.ViewModel
class PlayerViewModel(val playerRepository: PlayerRepository) : ViewModel() {
fun getRecordings() = playerRepository.getRecordings()
} |
app/src/androidTest/java/com/duckduckgo/app/widget/ui/AddWidgetInstructionsViewModelTest.kt | unknown_repo | kotlin |
package com.duckduckgo.app.widget.ui
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.Observer
import com.duckduckgo.app.widget.ui.AddWidgetInstructionsViewModel.Command
import com.duckduckgo.app.widget.ui.AddWidgetInstructionsViewModel.Command.Close
import com.duckduckgo.... |
app/src/main/java/vn/loitp/app/activity/customviews/viewpager/detectviewpagerswipeout2/ViewPagerSwipeOut2Activity.kt | unknown_repo | kotlin | package vn.loitp.app.activity.customviews.viewpager.detectviewpagerswipeout2
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import com.annotation.IsFullScreen
import com.annotation.LogTag
import com.core... |
app/src/main/java/com/handheld/exp/receivers/OverlayServiceReceiver.kt | unknown_repo | kotlin | package com.handheld.exp.receivers
import android.app.ActivityManager
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
import com.handheld.exp.OverlayService
import com.handheld.exp.utils.InfoUtils
class OverlayServiceReceiver : BroadcastRec... |
commonUi/src/main/java/io/github/pelmenstar1/digiDict/common/ui/selectionDialogs/SingleSelectionIntDialogFragment.kt | unknown_repo | kotlin | package io.github.pelmenstar1.digiDict.common.ui.selectionDialogs
import android.os.Bundle
import androidx.annotation.StringRes
import kotlin.math.max
import kotlin.math.min
class SingleSelectionIntDialogFragment : SingleSelectionDialogFragment<Int>() {
private class IntProgressionChoicesProvider(
private... |
composeApp/src/androidMain/kotlin/com/app/focus/ClockAndroid.kt | unknown_repo | kotlin | package com.app.focus
import ClockComponents
import PomodoroTimer
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import com.app.focus.notifications.makeTimerNotification
@Composable
fun... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/AgeRestrictionSeven.kt | unknown_repo | kotlin | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... |
app/src/main/java/com/flexcode/devspace/quotes/data/local/QuotesDatabase.kt | unknown_repo | kotlin | package com.flexcode.devspace.quotes.data.local
import androidx.room.Database
import androidx.room.RoomDatabase
import com.flexcode.devspace.quotes.data.local.dao.QuotesDao
import com.flexcode.devspace.quotes.data.local.entity.QuotesEntity
@Database(entities = [QuotesEntity::class], version = 1, exportSchema = false)... |
shared/src/androidMain/kotlin/link/peipei/countmoney/App.kt | unknown_repo | kotlin | package link.peipei.countmoney
import android.app.Application
class App : Application() {
companion object {
private lateinit var instance: App
fun getInstance(): App {
return instance
}
}
override fun onCreate() {
super.onCreate()
instance = this
}... |
app/src/main/java/com/tavant/demo/di/MyApplication.kt | unknown_repo | kotlin | package com.tavant.demo.di
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
//Application class
@HiltAndroidApp
class MyApplication: Application() |
mobile/src/main/java/com/google/samples/apps/iosched/ui/map/MapVariantAdapter.kt | unknown_repo | kotlin | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
app/src/main/java/com/jsongo/app/ui/main/MainActivity.kt | unknown_repo | kotlin | package com.jsongo.app.ui.main
import android.app.Activity
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.view.KeyEvent
import androidx.core.content.ContextCompat
import androidx.fragment.app.FragmentStatePagerAdapter
import androidx.lifecycle.Observer
import androi... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Arrowsquareup.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... |
app/src/main/kotlin/org/misumirize/hackernews/app/StoryListPresenter.kt | unknown_repo | kotlin | package org.misumirize.hackernews.app
import android.os.Bundle
import rx.android.schedulers.AndroidSchedulers
import javax.inject.Inject
class StoryListPresenter(val view: StoryView) {
var hackerNewsService: HackerNewsService? = null
@Inject set
fun onCreate(savedInstanceState: Bundle?) {
if... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.