This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: develop CI | |
on: | |
push: | |
tags: | |
- DEV* | |
jobs: | |
build: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OnAppObserver : LifecycleObserver { | |
companion object { | |
var APP_STATUS: AppStatus = AppStatus.NOTEXECUTE | |
} | |
enum class AppStatus { | |
NOTEXECUTE, | |
BACKGROUND, | |
FOREGROUND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implementation 'com.facebook.stetho:stetho:1.5.1' | |
implementation 'com.facebook.stetho:stetho-okhttp3:1.5.1' | |
Stetho.initializeWithDefaults(this) | |
builder.addNetworkInterceptor(StethoInterceptor()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
NewerOlder