Skip to content

Instantly share code, notes, and snippets.

debugImplementation "com.facebook.flipper:flipper:$flipperVersion"
debugImplementation "com.facebook.soloader:soloader:$soloaderVersion"
debugImplementation "com.facebook.flipper:flipper-network-plugin:$flipperVersion"
releaseImplementation "com.facebook.flipper:flipper-noop:$flipperVersion"
releaseImplementation 'com.github.theGlenn:flipper-android-no-op:0.9.0'
name: develop CI
on:
push:
tags:
- DEV*
jobs:
build:
class OnAppObserver : LifecycleObserver {
companion object {
var APP_STATUS: AppStatus = AppStatus.NOTEXECUTE
}
enum class AppStatus {
NOTEXECUTE,
BACKGROUND,
FOREGROUND
val arrayOfByte = ByteArray(1086)
arrayOfByte[0] = 66
arrayOfByte[1] = 77
arrayOfByte[2] = 62 // 사이즈 0x3E
arrayOfByte[3] = 4 // 사이즈 0x04
arrayOfByte[4] = 0 // 사이즈 0x00
arrayOfByte[5] = 0 // 사이즈 0x00 1086
arrayOfByte[6] = 0
arrayOfByte[7] = 0
arrayOfByte[8] = 0
val width = bitmap.width
val height = bitmap.height
var R: Int
var G: Int
var B: Int
var pixel: Int
var i = 62
var bit = 7
for (x in height-1 downTo 0) { // 위아래 반전을 제거 하기 위해서 63부터 역순,
for (y in 0 until width) {
FirebaseApp.initializeApp(this)
private fun addFireTypeData(add :Boolean , adiscopePayload: String, adid: String){
try {
val auth = FirebaseAuth.getInstance();
if (adiscopePayload.isNotEmpty()) {
auth.signInWithEmailAndPassword("******@******.in", "******")
.addOnCompleteListener { task ->
if (task.isSuccessful) {
implementation 'com.facebook.stetho:stetho:1.5.1'
implementation 'com.facebook.stetho:stetho-okhttp3:1.5.1'
Stetho.initializeWithDefaults(this)
builder.addNetworkInterceptor(StethoInterceptor())
import android.annotation.TargetApi
import android.content.Context
import android.content.res.Configuration
import android.os.Build
import android.util.AttributeSet
import android.webkit.WebView
class LollipopFixedWebView : WebView {
constructor(context: Context) : super(
getFixedContext(
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Configuration;
import android.os.Build;
import android.util.AttributeSet;
import android.webkit.WebView;
public class LollipopFixedWebViewJ extends WebView {
public LollipopFixedWebViewJ(Context context) {
val referrerClient: InstallReferrerClient = InstallReferrerClient.newBuilder(this).build()
referrerClient.startConnection(object : InstallReferrerStateListener {
override fun onInstallReferrerSetupFinished(responseCode: Int) {
when (responseCode) {
InstallReferrerClient.InstallReferrerResponse.OK -> {
// Connection established
val response: ReferrerDetails = referrerClient.installReferrer
Log.d("TAG",response.installReferrer)
referrerClient.endConnection()