Skip to content

Instantly share code, notes, and snippets.

View nostra13's full-sized avatar

Sergey Tarasevich nostra13

  • Minsk, Belarus
View GitHub Profile
@nostra13
nostra13 / SmsUserConsentManager.kt
Last active May 6, 2020 13:45
SmsUserConsentManager
package com.nostra13.manager
import android.content.*
import com.google.android.gms.auth.api.phone.SmsRetriever.*
import com.google.android.gms.common.api.CommonStatusCodes.SUCCESS
import com.google.android.gms.common.api.CommonStatusCodes.TIMEOUT
import com.google.android.gms.common.api.Status
import com.nostra13.log.L
import com.nostra13.log.nonFatal
import io.reactivex.Observable
@nostra13
nostra13 / CrashlyticsLogger.kt
Last active March 22, 2022 09:57
Android Logger (concise wrapper of Timber) + CrashlyticsLogger
package com.nostra13.log
import android.util.Log
import com.google.firebase.crashlytics.FirebaseCrashlytics
class CrashlyticsLogger(private val isDebug: Boolean) : Logger() {
private val priorityStr = mapOf(
Log.VERBOSE to "V",
Log.DEBUG to "D",
@nostra13
nostra13 / VideoPreviewDecoder.java
Last active August 29, 2015 14:02
VideoPreviewDecoder
/*******************************************************************************
* Copyright 2011-2013 Sergey Tarasevich
*
* 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, software