file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/theone/demo/data/model/bean/SystemResponse.kt | unknown_repo | kotlin | package com.zbt.cosmetology.data.model.bean
import android.annotation.SuppressLint
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
/**
* 体系数据
* @Author: zbt
* @CreateDate: 2019/8/21 15:46
*/
@SuppressLint("ParcelCreator")
@Parcelize
data class SystemResponse(var children: Array... |
ui/ui-core/src/desktopMain/kotlin/androidx/compose/ui/platform/SkijaLayer.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... |
mvvm/app/src/main/java/com/example/mvvmproject/ui/MainActivity.kt | unknown_repo | kotlin | package com.example.mvvmproject.ui
import android.content.Intent
import android.view.View
import androidx.appcompat.app.ActionBarDrawerToggle
import androidx.fragment.app.Fragment
import com.example.mvvmproject.*
import com.example.mvvmproject.base.activity.BaseActivity
import com.example.mvvmproject.ui.activity.Login... |
ui/src/main/java/io/snabble/sdk/ui/scanner/SelectReducedPriceDialogFragment.kt | unknown_repo | kotlin | package io.snabble.sdk.ui.scanner
import android.app.Dialog
import android.os.Bundle
import android.widget.ArrayAdapter
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.DialogFragment
import io.snabble.sdk.coupons.CouponType
import io.snabble.sdk.Snabble
import io.snabble.sdk.ui.R
class SelectR... |
app/src/main/java/com/catness/blinkblinkbeach/data/repositories/profile/ProfileRepositoryImpl.kt | unknown_repo | kotlin | package com.catness.blinkblinkbeach.data.repositories.profile
import android.net.Uri
import android.util.Log
import com.catness.blinkblinkbeach.data.model.User
import com.catness.blinkblinkbeach.utilities.Constants
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
impo... |
sphinx/application/common/menus/menu-bottom-phone-signer-method/src/main/java/chat/sphinx/menu_bottom_phone_signer_method/PhoneSignerMethodMenu.kt | unknown_repo | kotlin | package chat.sphinx.menu_bottom_phone_signer_method
import androidx.annotation.StringRes
import androidx.lifecycle.LifecycleOwner
import chat.sphinx.menu_bottom.databinding.LayoutMenuBottomBinding
import chat.sphinx.menu_bottom.model.MenuBottomOption
import chat.sphinx.menu_bottom.ui.BottomMenu
import chat.sphinx.menu... |
app/src/main/java/com/hb/videoplayermanager/FileUtils.kt | unknown_repo | kotlin | /*
* Copyright (C) 2007-2008 OpenIntents.org
*
* 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... |
app/src/main/kotlin/com/simplemobiletools/gallery/receivers/RefreshMediaReceiver.kt | unknown_repo | kotlin | package com.simplemobiletools.gallery.receivers
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.simplemobiletools.commons.extensions.getFilenameFromPath
import com.simplemobiletools.commons.extensions.getParentPath
import com.simplemobiletools.commons.ex... |
app/src/main/java/com/maximmakarov/comparator/data/model/Item.kt | unknown_repo | kotlin | package com.maximmakarov.comparator.data.model
import android.os.Parcel
import android.os.Parcelable
import androidx.room.*
@Entity(tableName = "items",
indices = [Index("template_id")],
foreignKeys = [ForeignKey(entity = Template::class, parentColumns = ["id"], childColumns = ["template_id"], onDele... |
httpclient-android/src/main/kotlin/om/ok2c/hc/android/HttpClientActivity.kt | unknown_repo | kotlin | package om.ok2c.hc.android
import android.app.Activity
import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager
import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManagerBuilder
import org.apache.hc.core5.io.CloseMode
import org.apache.hc.core5.util.TimeValue
abstract class HttpC... |
java/com/example/birellerapp/authentication/AuthenticationAdapter.kt | unknown_repo | kotlin | package com.example.birellerapp.authentication
import LoginFragment
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.viewpager2.adapter.FragmentStateAdapter
class AuthenticationAdapter (fragmentManager: FragmentManager, lifecycle: L... |
feature/auth/src/main/kotlin/com/kevlina/budgetplus/feature/auth/AuthViewModel.kt | unknown_repo | kotlin | @file:Suppress("DEPRECATION")
package com.kevlina.budgetplus.feature.auth
import android.app.Activity.RESULT_OK
import android.content.Context
import android.content.Intent
import android.content.IntentSender
import androidx.activity.ComponentActivity
import androidx.core.net.toUri
import androidx.lifecycle.lifecycle... |
demo/src/main/java/ovh/plrapps/mapcompose/demo/viewmodels/PathsVM.kt | unknown_repo | kotlin | package ovh.plrapps.mapcompose.demo.viewmodels
import android.app.Application
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import androidx.lifecycle.A... |
qatoolkit-bridge-core/src/main/java/com/github/iojjj/bootstrap/qatoolkit/pub/bridge/core/service/ServiceRequest.kt | unknown_repo | kotlin | package com.github.iojjj.bootstrap.qatoolkit.pub.bridge.core.service
import android.os.Message
import android.os.Parcelable
import com.github.iojjj.bootstrap.pub.core.os.makeBundle
import com.github.iojjj.bootstrap.pub.core.os.withCurrentThreadContextClassLoader
interface ServiceRequest<out R : Parcelable> : Parcelab... |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/fragment/SubmissionResultPositiveOtherWarningFragment.kt | unknown_repo | kotlin | package de.rki.coronawarnapp.ui.submission.fragment
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.view.accessibility.AccessibilityEvent
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavContr... |
app/src/main/java/com/example/codev/chat_feature/ui/ChatScreen.kt | unknown_repo | kotlin | package com.example.codev.chat_feature.ui
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Text
import androidx.navigation.NavHostController
import com.example.codev.data.DataOrException
import com.example.codev.firestore_feature.P... |
shared/src/main/java/com/elbehiry/shared/domain/recipes/search/SearchRecipesUseCase.kt | unknown_repo | 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 by applica... |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/MatchFire.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... |
app/src/main/kotlin/io/github/wykopmobilny/base/BaseLinksFragment.kt | unknown_repo | kotlin | package io.github.wykopmobilny.base
import android.os.Bundle
import android.view.View
import androidx.core.view.isVisible
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import io.github.wykopmobilny.R
import io.github.wykopmobilny.api.links.LinksApi... |
app/src/main/java/com/webitel/mobile_demo_app/data/remote/PortalCustomerService.kt | unknown_repo | kotlin | package com.webitel.mobile_demo_app.data.remote
import android.app.Application
import android.util.Log
import com.webitel.mobile_sdk.domain.Call
import com.webitel.mobile_sdk.domain.CallStateListener
import com.webitel.mobile_sdk.domain.CallbackListener
import com.webitel.mobile_sdk.domain.ChatClient
import com.webite... |
app/src/main/java/org/plavelo/puppy/presentation/ui/home/Home.kt | unknown_repo | 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 by applica... |
app/src/main/java/io/github/lee0701/gukhanwiki/android/MainViewModel.kt | unknown_repo | kotlin | package io.github.lee0701.gukhanwiki.android
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import io.github.lee0701.gukhanwiki.android.api.GukhanWikiApi
import io.github.lee0701.gukhanwiki.android.auth.AccountHe... |
app/src/main/java/com/skydoves/disneycompose/ui/main/Main.kt | unknown_repo | kotlin | /*
* Designed and developed by 2020 skydoves (Jaewoong Eum)
*
* 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 appl... |
app/src/main/java/com/funs/eye/ui/community/follow/FollowAdapter.kt | unknown_repo | kotlin | package com.funs.eye.ui.community.follow
import android.app.Activity
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerVi... |
app/src/main/java/za/co/topcode/locationtracker/activity/MainActivity.kt | unknown_repo | kotlin | package za.co.topcode.locationtracker.activity
import android.Manifest
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.PersistableBundle
i... |
app/src/main/java/com/michaelpohl/loopyplayer2/ui/player/adapter/PlayerItemDiffCallback.kt | unknown_repo | kotlin | package com.michaelpohl.loopyplayer2.ui.player.adapter
import androidx.recyclerview.widget.DiffUtil
import com.michaelpohl.loopyplayer2.common.AudioModel
class PlayerItemDiffCallback : DiffUtil.ItemCallback<AudioModel>() {
override fun areItemsTheSame(oldItem: AudioModel, newItem: AudioModel): Boolean {
... |
app/src/main/java/com/tawk/framework/mvvm/paging/BaseListRepository.kt | unknown_repo | kotlin | package com.tawk.framework.mvvm.paging
import androidx.paging.PagingData
import kotlinx.coroutines.flow.Flow
interface BaseListRepository<T: Any> {
fun getList(): Flow<PagingData<T>>
} |
app/src/androidTest/java/com/akshay/roomaccounting/di/TestDatabaseModule.kt | unknown_repo | kotlin | /**
* Created by anandwana001 on
* 02, March, 2022
**/
package com.akshay.roomaccounting.di
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import com.akshay.roomaccounting.data.FakeDatabaseHelperImpl
import com.akshay.roomaccounting.data.dao.InvoiceDao
import com.akshay.roomaccounting.... |
core/src/main/java/nl/adaptivity/android/coroutines/FragmentCoroutineScopeWrapper.kt | unknown_repo | kotlin | package nl.adaptivity.android.coroutines
import android.app.Activity
import android.app.Fragment
import android.app.FragmentManager
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.support.annotation.IdRes
import android.support.annotation.RequiresApi
import android.view.Vi... |
app/src/main/java/com/mikepenz/materialdrawer/app/FullscreenDrawerActivity.kt | unknown_repo | kotlin | package com.mikepenz.materialdrawer.app
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.updatePadding
import com.mikepenz.iconics.typeface.library.f... |
app/src/main/java/com/lipata/forkauthority/businesslist/SettingsFragment.kt | unknown_repo | kotlin | package com.lipata.forkauthority.businesslist
import android.os.Bundle
import android.text.InputType
import androidx.preference.EditTextPreference
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
import com.lipata.forkauthority.R
import timber.log.Timber
class SettingsFragment... |
dpadrecyclerview/src/androidTest/kotlin/com/rubensousa/dpadrecyclerview/test/tests/PivotLayoutManagerTest.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... |
dpadrecyclerview/src/androidTest/kotlin/com/rubensousa/dpadrecyclerview/test/tests/PivotLayoutManagerTest.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/mathewsachin/fategrandautomata/ui/skill_maker/SkillMakerSpaceIshtar.kt | unknown_repo | kotlin | package com.mathewsachin.fategrandautomata.ui.skill_maker
import android.content.res.Configuration
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.colorResource
import androidx... |
presentation/src/main/kotlin/io/petros/reviews/presentation/di/dagger/viewmodel/ViewModelKey.kt | unknown_repo | kotlin | package io.petros.reviews.presentation.di.dagger.viewmodel
import android.arch.lifecycle.ViewModel
import dagger.MapKey
import kotlin.reflect.KClass
@MustBeDocumented
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
@Retention(AnnotationRetention.RUNTIME)
@MapKey
... |
app/src/main/java/io/mangel/issuemanager/activities/IssueManagerApplication.kt | unknown_repo | kotlin | package io.mangel.issuemanager.activities
import android.app.Application
import com.jakewharton.threetenabp.AndroidThreeTen
@Suppress("unused")
class IssueManagerApplication : Application() {
override fun onCreate() {
super.onCreate()
AndroidThreeTen.init(this)
}
} |
fragment/src/main/java/com/angcyo/fragment/IFragment.kt | unknown_repo | kotlin | package com.angcyo.fragment
import android.view.View
/**
* Created by angcyo on 2018/12/04 23:32
*
* @author angcyo
*/
interface IFragment : IBackPressed {
/**
* 是否可以滑动返回
*
* @return true 允许
*/
fun canSwipeBack(): Boolean
/**是否可以Fling返回*/
fun canFlingBack(): Boolean
/**
... |
app/src/main/java/com/battlelancer/seriesguide/jobs/HexagonMovieJob.kt | unknown_repo | kotlin | // Copyright 2023 Uwe Trottmann
// SPDX-License-Identifier: Apache-2.0
package com.battlelancer.seriesguide.jobs
import android.content.Context
import com.battlelancer.seriesguide.backend.HexagonTools
import com.battlelancer.seriesguide.jobs.episodes.JobAction
import com.battlelancer.seriesguide.jobs.episodes.JobActi... |
android/app/src/main/java/com/bwqr/mavinote/ui/note/Notes.kt | unknown_repo | kotlin | package com.bwqr.mavinote.ui.note
import android.util.Log
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.... |
lib/src/androidMain/kotlin/kottieAnimation/kottieAnimation.android.kt | unknown_repo | kotlin | package kottieAnimation
import androidx.compose.foundation.background
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import com.airbnb.lottie.LottieComposition
import com.airbnb.lottie.compose.LottieAnimation
import contentScale.ContentScale
@C... |
libs/pandautils/src/main/java/com/instructure/pandautils/features/about/AboutFragment.kt | unknown_repo | kotlin | /*
* Copyright (C) 2023 - present Instructure, 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 requ... |
app/src/main/kotlin/dev/fobo66/factcheckerassistant/ui/theme/Color.kt | unknown_repo | kotlin | package dev.fobo66.factcheckerassistant.ui.theme
import androidx.compose.ui.graphics.Color
val primaryLight = Color(0xFF8D4E2A)
val onPrimaryLight = Color(0xFFFFFFFF)
val primaryContainerLight = Color(0xFFFFDBCA)
val onPrimaryContainerLight = Color(0xFF331100)
val secondaryLight = Color(0xFF8C4E29)
val onSecondaryLig... |
pluto-plugins/plugins/network/lib/src/main/java/com/pluto/plugins/network/internal/interceptor/ui/components/CommonDetailsComponents.kt | unknown_repo | kotlin | package com.pluto.plugins.network.internal.interceptor.ui.components
import android.content.Context
import com.pluto.plugins.network.R
import com.pluto.plugins.network.internal.interceptor.logic.ProcessedBody
import com.pluto.plugins.network.internal.interceptor.logic.formatSizeAsBytes
import com.pluto.utilities.exten... |
dynamic/src/main/java/com/github/rviannaoliveira/dynamic/presentation/renderes/ViewRenderer.kt | unknown_repo | kotlin | package com.github.rviannaoliveira.dynamic.presentation.renderes
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.github.rviannaoliveira.dynamic.domain.model.DynamicActionProperties
import com.github.rviannaoliveira.dynamic.domain.model.SimpleProperties
abstract class ViewRend... |
solar/src/main/java/com/chiksmedina/solar/outline/folders/AddFolder.kt | unknown_repo | kotlin | package com.chiksmedina.solar.outline.folders
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion... |
app/src/main/java/com/szlachta/medialibrary/ui/home/TabsPagerAdapter.kt | unknown_repo | kotlin | package com.szlachta.medialibrary.ui.home
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.szlachta.medialibrary.model.ItemStatusEnum
import com.szlachta.medialibrary.model.ItemTypeEnum
class TabsPagerAdapter(
container: Fragment,
... |
fragments/src/main/java/com/kylecorry/andromeda/fragments/FragmentExtensions.kt | unknown_repo | kotlin | package com.kylecorry.andromeda.fragments
import androidx.annotation.IdRes
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.commit
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
fun Fragment.switchToFragment(
fragment: Fragm... |
compose-core/src/main/java/com/qmuiteam/compose/core/ui/DefaultConfig.kt | unknown_repo | kotlin | package com.qmuiteam.compose.core.ui
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
val qmuiPrimaryColor = Color(0xFF00A8E1)
val qmuiSeparatorColor = Color(0xFFCCCCCC)
val qmuiIndicationColor = Color(0xFF777777)
val qmuiTextMainColor = Color.Black
val qmuiTextDescColor = Color(0xFF666666... |
navigation-compose/src/main/kotlin/com/freeletics/khonshu/navigation/androidx/internal/Bundle.kt | unknown_repo | kotlin | package com.freeletics.khonshu.navigation.internal
import android.os.Bundle
import com.freeletics.khonshu.navigation.ActivityRoute
import com.freeletics.khonshu.navigation.BaseRoute
import com.freeletics.khonshu.navigation.EXTRA_ROUTE
@InternalNavigationApi
public fun <T : BaseRoute> Bundle?.requireRoute(): T {
r... |
app/src/main/java/com/mathewsachin/fategrandautomata/ui/skill_maker/SkillMakerHistoryAdapter.kt | unknown_repo | kotlin | package com.mathewsachin.fategrandautomata.ui.skill_maker
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.google.android.material.card.MaterialCardView
import com.mathewsachin.fategranda... |
wear/tiles/tiles-tooling/src/androidTest/java/androidx/wear/tiles/tooling/TileServiceViewAdapterTest.kt | unknown_repo | kotlin | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/mksoftware101/notes/legacy/features/noteList/ui/SwipeToDeleteCallback.kt | unknown_repo | kotlin | package com.mksoftware101.notes.features.noteList.ui
import android.content.Context
import android.graphics.Canvas
import android.graphics.drawable.ColorDrawable
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.RecyclerView
import com.mk... |
app/src/main/java/com/mksoftware101/notes/legacy/features/noteList/ui/SwipeToDeleteCallback.kt | unknown_repo | kotlin | package com.mksoftware101.notes.features.noteList.ui
import android.content.Context
import android.graphics.Canvas
import android.graphics.drawable.ColorDrawable
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.RecyclerView
import com.mk... |
safeToRun/src/main/java/io/github/dllewellyn/safetorun/features/oscheck/OSConfigurationChecks.kt | unknown_repo | kotlin | package io.github.dllewellyn.safetorun.features.oscheck
import android.os.Build
/**
* Configure a min os version to fail if we fall below that version
*
* @param minOSVersion minimum os version
*/
inline fun minOsVersionCheck(minOSVersion: Int) =
minOSVersion > Build.VERSION.SDK_INT
/**
* Configure to disal... |
app/src/main/java/com/mcmkhianjuan/chequewriterapp/MainActivity.kt | unknown_repo | kotlin | package com.mcmkhianjuan.chequewriterapp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.view.animation.Animation
import android.... |
app/src/main/java/com/danhdueexoictif/androidgenericadapter/utils/networkdetection/ConnectionDef.kt | unknown_repo | kotlin | package com.danhdueexoictif.androidgenericadapter.utils.networkdetection
import androidx.annotation.IntDef
import com.danhdueexoictif.androidgenericadapter.utils.networkdetection.ConnectionDef.Companion.MOBILE_DATA
import com.danhdueexoictif.androidgenericadapter.utils.networkdetection.ConnectionDef.Companion.NO_CONNE... |
sample/src/main/kotlin/com/github/panpf/sketch/sample/ui/video/LocalVideoItemFactory.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 panpf <panpfpanpf@outlook.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app-kit/src/main/java/media/pixi/appkit/data/storage/CloudStorageRepo.kt | unknown_repo | kotlin | package media.pixi.appkit.data.storage
import android.net.Uri
import com.google.firebase.storage.UploadTask
import io.reactivex.Maybe
import io.reactivex.Single
import java.io.File
interface CloudStorageRepo {
fun setUserProfileImage(file: File): Single<UploadTask.TaskSnapshot>
fun getUserProfileImageRefere... |
app/src/main/java/ru/kuchanov/huaweiandgoogleservices/ui/MapFragment.kt | unknown_repo | kotlin | package ru.kuchanov.huaweiandgoogleservices.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.google.android.material.snackbar.Snackbar
import io.reactivex.disposables.CompositeDisposable
import io.reac... |
app/src/main/java/com/geekster/notewell/NoteApplication.kt | unknown_repo | kotlin | package com.geekster.notewell
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class NoteApplication : Application() {
} |
microapp/profile/src/main/java/bruhcollective/itaysonlab/microapp/profile/ProfileMicroapp.kt | unknown_repo | kotlin | package bruhcollective.itaysonlab.microapp.profile
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Person
import androidx.compose.material.icons.twotone.Person
import bruhcollective.itaysonlab.microapp.core.BottomNavigationCapable
import bruhcollective.itaysonlab.microapp.cor... |
src/main/java/org/kman/clearview/core/BaseViewModel.kt | unknown_repo | kotlin | package org.kman.clearview.core
import android.app.Application
import android.content.Context
import android.util.Base64
import androidx.lifecycle.AndroidViewModel
import com.squareup.moshi.Moshi
import kotlinx.coroutines.*
import okhttp3.ConnectionSpec
import okhttp3.HttpUrl
import okhttp3.OkHttpClient
import okhttp3... |
optional/glide/src/main/java/com/pitaya/mobile/uinspector/optional/glide/GlidePropertiesParserPlugin.kt | unknown_repo | kotlin | package com.pitaya.mobile.uinspector.optional.glide
import android.util.Log
import android.view.View
import android.widget.ImageView
import com.bumptech.glide.R
import com.bumptech.glide.request.Request
import com.bumptech.glide.request.target.CustomViewTarget
import com.bumptech.glide.request.target.ViewTarget
import... |
05-setup-a-room-database/final/app/src/main/java/com/kodeco/android/devscribe/ui/viewmodels/MainViewModel.kt | unknown_repo | kotlin | package com.kodeco.android.devscribe.ui.viewmodels
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.kodeco.android.devscribe.data.datastore.DataStoreManager
import com.kodeco.android.devscribe.data.files.ExternalNotesFileManager
import com.kodeco.android.d... |
lib_common/src/main/java/com/yang/lib_common/widget/LifecycleMediaPlayer.kt | unknown_repo | kotlin | package com.yang.lib_common.widget
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.media.AudioAttributes
import android.media.AudioManager
import android.media.MediaPlayer
import android.util.AttributeSet
import android.util.Log
import android.view.SurfaceHold... |
app/src/main/java/com/irfan/chatbox/views/chat/ChatViewModel.kt | unknown_repo | kotlin | package com.irfan.chatbox.views.chat
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.irfan.chatbox.pref.ApplicationPref
import com.irfan.chatbox.repository.ChatRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coro... |
app/src/main/java/com/mystical/wildlegion/utils/fonts/Typefaces.kt | unknown_repo | kotlin | package com.mystical.wildlegion.utils.fonts
import android.content.Context
import android.graphics.Typeface
import android.support.v4.content.res.ResourcesCompat
import com.mystical.wildlegion.R
/**
* A utility class to load and cache fonts.
*
* This class loads & caches fonts for later reuse.
*/
class Typefaces ... |
app/src/main/java/com/example/wallpaper/data/repository/HomeRepository.kt | unknown_repo | kotlin | package com.example.wallpaper.data.repository
import android.content.Context
import androidx.core.content.ContextCompat
import com.example.wallpaper.R
import com.example.wallpaper.data.model.home.ColorToneModel
import com.example.wallpaper.data.network.ApiServices
import dagger.hilt.android.qualifiers.ApplicationCont... |
android/app/src/main/java/com/opensource/pluginsample/MainActivity.kt | unknown_repo | kotlin | package com.opensource.pluginsample
import android.os.Build
import android.os.Bundle
import android.webkit.WebView
import com.opensource.legosdk.core.LGOWebViewActivity
class MainActivity : LGOWebViewActivity() {
override var urlString: String? = null
get() = "file:///android_asset/sample.html"
over... |
core-ui/src/main/java/ly/com/tahaben/core_ui/components/HowDialog.kt | unknown_repo | kotlin | package ly.com.tahaben.core_ui.components
import androidx.annotation.DrawableRes
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.Button
imp... |
shared/src/commonMain/kotlin/home/ui/HomeScreen.kt | unknown_repo | kotlin | package home.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fill... |
app/src/main/java/com/github/fragivity/example/swipeback/SwipeBackFragment.kt | unknown_repo | kotlin | package com.github.fragivity.example.swipeback
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.github.fragivity.example.AbsBaseFragment
import com.github.fragivity.swipeback.swipeBackLayout
import com.github.fragivity.example.R
import kotlin... |
Foodtruck/app/src/main/java/com/example/foodtruck/ui/authentication/AuthenticationViewModel.kt | unknown_repo | kotlin | package com.example.foodtruck.ui.authentication
import android.app.Application
import androidx.lifecycle.*
import com.example.foodtruck.data.source.firebase.InitFirestore
import com.example.foodtruck.data.source.local.model.AccountType
import com.example.foodtruck.data.source.local.model.AuthenticationState
import com... |
app/src/main/java/io/github/alessandrojean/toshokan/service/lookup/LookupRepository.kt | unknown_repo | kotlin | package io.github.alessandrojean.toshokan.service.lookup
import io.github.alessandrojean.toshokan.data.preference.PreferencesManager
import io.github.alessandrojean.toshokan.service.lookup.cbl.CblLookup
import io.github.alessandrojean.toshokan.service.lookup.googlebooks.GoogleBooksLookup
import io.github.alessandrojea... |
app/src/main/java/com/example/todolist/ui/other/SearchFragment.kt | unknown_repo | kotlin | package com.example.todolist.ui.other
import androidx.core.widget.doAfterTextChanged
import com.example.todolist.R
import com.example.todolist.core.base.BaseTaskListFragment
import com.example.todolist.data.model.TaskType
import com.example.todolist.databinding.FragmentSearchBinding
import dagger.hilt.android.AndroidE... |
app/src/main/java/pt/vilhena/listit/MainActivity.kt | unknown_repo | kotlin | package pt.vilhena.listit
import android.app.Activity
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.view.View
import com.google.gson.Gson
import pt.vilhena.listit.atividades.MenuCriarLista
import pt.vilhena.listit.atividades.VerListas
import pt.vilhena.l... |
sdk/src/main/java/com/appsci/panda/sdk/Panda.kt | unknown_repo | kotlin | package com.appsci.panda.sdk
import android.annotation.SuppressLint
import android.app.Activity
import android.app.Application
import android.content.Intent
import com.android.billingclient.api.BillingClient
import com.android.billingclient.api.ProductDetails
import com.appsci.panda.sdk.domain.subscriptions.*
import c... |
app/src/main/java/com/amirdaryabak/runningapp/models/Feature.kt | unknown_repo | kotlin | package com.amirdaryabak.runningapp.models
import androidx.annotation.Keep
@Keep
data class Feature(
var geometry: Geometry = Geometry(),
val properties: Properties = Properties(),
val type: String = "Feature",
) |
app/src/main/java/com/example/pettyplanet/adapters/HomeRecyclerAdapter.kt | unknown_repo | kotlin | package com.example.pettyplanet.adapters
import android.annotation.SuppressLint
import android.os.Build
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.RequiresApi
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.re... |
app/src/main/java/com/tails/gram/escapeofgram/ui/RankingActivity.kt | unknown_repo | kotlin | package com.tails.gram.escapeofgram.ui
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.tails.gram.escapeofgram.R
import com.tails.gram.escapeofgram.connect.RetrofitUtil
import kotlinx.android.synthetic.main.activity_ranking.*
import kotlinx.android.synthetic.main.ranking_item.*
cla... |
features/app/src/main/java/com/jlndev/facaseupedido/NewMainActivity.kt | unknown_repo | kotlin | package com.jlndev.facaseupedido
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavController
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupActionBarWithNavController
import androidx... |
app/src/androidTest/java/net/skyscanner/backpack/button/BpkButtonLinkTest.kt | unknown_repo | kotlin | /**
* Backpack for Android - Skyscanner's Design System
*
* Copyright 2018-2021 Skyscanner Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... |
app/src/main/java/io/benic/shoppinglist/view/ShoppingCartFragment.kt | unknown_repo | kotlin | package io.benic.shoppinglist.view
import android.os.Bundle
import android.os.Handler
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import a... |
uicorek/src/main/java/com/mozhimen/uicorek/layoutk/commons/ILayoutK.kt | unknown_repo | kotlin | package com.mozhimen.uicorek.layoutk.commons
import android.util.AttributeSet
/**
* @ClassName ILayoutK
* @Description TODO
* @Author mozhimen / <NAME>
* @Date 2022/4/15 16:34
* @Version 1.0
*/
interface ILayoutK {
fun initFlag(){}
fun initAttrs(attrs: AttributeSet?, defStyleAttr: Int){}
fun initVie... |
app/src/main/java/com/fudie/core/screens/ingredient/components/TopBarIngredientsScreen.kt | unknown_repo | kotlin | package com.fudie.core.screens.ingredient.components
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifi... |
app/src/main/java/com/erkindilekci/valorantsphere/util/navigation/NavGraph.kt | unknown_repo | kotlin | package com.erkindilekci.valorantsphere.util.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.erkindilekci.valorantsphere.presentation.screens.agentdetailssc... |
components/bridge/synchronization/ui/src/commonMain/kotlin/com/flipperdevices/bridge/synchronization/ui/composable/ComposableItemSynchronizationState.kt | unknown_repo | kotlin | package com.flipperdevices.bridge.synchronization.ui.composable
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.ani... |
tracker/src/main/java/com/ericafenyo/tracker/datastore/DataStore.kt | unknown_repo | kotlin | /*
* The MIT License (MIT)
*
* Copyright (C) 2021 <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,... |
droid-app/CoffeeDose/app/src/main/java/com/office14/coffeedose/extensions/LiveData.kt | unknown_repo | kotlin | package com.office14.coffeedose.extensions
import androidx.lifecycle.MutableLiveData
fun <T> mutableLiveData(default: T? = null): MutableLiveData<T> {
val data = MutableLiveData<T>()
if (default != null)
data.value = default
return data
}
fun <T> mutableLiveDataNotNull(default: T): MutableLiveD... |
playground/src/main/java/androidx/essentials/playground/textfield/TextFieldActivity.kt | unknown_repo | kotlin | package androidx.essentials.playground.textfield
import androidx.activity.viewModels
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.found... |
app/src/main/java/view/CharacterViewModel.kt | unknown_repo | kotlin | package view
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.switchMap
import androidx.lifecycle.viewModelScope
import androidx.paging.cachedIn
import repo.CharacterRepo
class CharacterViewModel : ViewModel() {
pri... |
shared/src/commonMain/kotlin/domain/model/CountryModel.kt | unknown_repo | kotlin | package domain.model
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
data class CountryModel(
val name: String,
val imageUrl: String,
val capitals: List<String>,
val flag: String,
private val _population: Int,
pri... |
feature-assets/src/main/java/com/edgeverse/wallet/feature_assets/presentation/transaction/filter/di/TransactionHistoryFilterComponent.kt | unknown_repo | kotlin | package com.dfinn.wallet.feature_assets.presentation.transaction.filter.di
import androidx.fragment.app.Fragment
import dagger.BindsInstance
import dagger.Subcomponent
import com.dfinn.wallet.common.di.scope.ScreenScope
import com.dfinn.wallet.feature_assets.presentation.transaction.filter.TransactionHistoryFilterFrag... |
onboarding/src/main/java/com/android/onboarding/vm/PersonalInfoVM.kt | unknown_repo | kotlin | package com.android.onboarding.vm
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
class PersonalInfoVM: ViewModel() {
val firstNameTextFieldState = mutableStateOf("")
val lastNameTextFieldState = mutableStateOf("")
val telephoneNumberTextFieldState = mutableStateOf("")
... |
canvas_lp/src/main/java/com/angcyo/canvas/laser/pecker/dslitem/CanvasLayerItem.kt | unknown_repo | kotlin | package com.angcyo.canvas.laser.pecker.dslitem
import android.graphics.drawable.Drawable
import com.angcyo.canvas.CanvasDelegate
import com.angcyo.canvas.Strategy
import com.angcyo.canvas.core.renderer.SelectGroupRenderer
import com.angcyo.canvas.items.renderer.BaseItemRenderer
import com.angcyo.dsladapter.DslAdapterI... |
HomeApp/app/src/main/java/com/HomeApp/ui/composables/AppFooter.kt | unknown_repo | kotlin | package com.HomeApp.ui.composables
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.BottomAppBar
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.material.MaterialTheme
import andro... |
app/src/main/java/com/avelycure/spotifyclone/exoplayer/FirebaseMusicSource.kt | unknown_repo | kotlin | package com.avelycure.spotifyclone.exoplayer
import android.support.v4.media.MediaBrowserCompat
import android.support.v4.media.MediaBrowserCompat.MediaItem.FLAG_PLAYABLE
import android.support.v4.media.MediaDescriptionCompat
import android.support.v4.media.MediaMetadataCompat
import android.support.v4.media.MediaMeta... |
library/src/main/java/com/angcyo/library/unit/MmValueUnit.kt | unknown_repo | kotlin | package com.angcyo.library.unit
import android.util.DisplayMetrics
import android.util.TypedValue
import com.angcyo.library.app
import com.angcyo.library.isPlaceholderApplication
/**
* 英制单位, 英寸
* Email:angcyo@126.com
* @author angcyo
* @date 2022/04/04
* Copyright (c) 2020 angcyo. All rights reserved.
*/
class ... |
FrontEnd/app/src/main/java/cs309/selectunes/adapter/SongAdapter.kt | unknown_repo | kotlin | package cs309.selectunes.adapter
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.BitmapFactory
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.ImageView
import android.widget... |
app/src/main/java/icu/nullptr/twifucker/hook/DownloadHook.kt | unknown_repo | kotlin | package icu.nullptr.twifucker.hook
import android.os.Bundle
import android.view.View
import android.widget.TextView
import com.github.kyuubiran.ezxhelper.ClassUtils.loadClass
import com.github.kyuubiran.ezxhelper.EzXHelper
import com.github.kyuubiran.ezxhelper.EzXHelper.addModuleAssetPath
import com.github.kyuubiran.e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.