This file contains hidden or 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
#!/bin/bash | |
echo "" | |
echo "[Waiting for launcher to start]" | |
LAUNCHER_READY= | |
while [[ -z ${LAUNCHER_READY} ]]; do | |
UI_FOCUS=`adb shell dumpsys window windows 2>/dev/null | grep -i mCurrentFocus` | |
echo "(DEBUG) Current focus: ${UI_FOCUS}" | |
case $UI_FOCUS in |
This file contains hidden or 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
### proguard-rules.pro ### | |
-keep class this.and.That { *; } | |
-dontwarn com.on.** |
This file contains hidden or 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
android { | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
// Custom build type, just for running instrumentation tests!!! | |
instrum { | |
// "Inherit" from 'release' buildType |
This file contains hidden or 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
### proguard-rules.pro ### | |
# Standard rules for my App: | |
-keep class this.and.That { *; } | |
-dontwarn com.on.** | |
# Some more rules so that my instrumentation tests could run: | |
-keep class com.thirdparty.Z { *; } |
This file contains hidden or 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
android { | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
// Also consider the library's custom ProGuard rules | |
proguardFiles "${project(':thelibrary').projectDir}/proguard-rules-app.pro" | |
} | |
} |
This file contains hidden or 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
### proguard-rules.pro ### | |
# Standard rules for my App: | |
-keep class this.and.That { *; } | |
-dontwarn com.on.** |
This file contains hidden or 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
android { | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
// ... | |
} |
This file contains hidden or 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
package com.und0.vocabularymate.x.utils | |
import androidx.annotation.MainThread | |
import androidx.lifecycle.LifecycleOwner | |
import androidx.lifecycle.MutableLiveData | |
import androidx.lifecycle.Observer | |
import java.util.concurrent.atomic.AtomicInteger | |
/** | |
* A [MutableLiveData] variant that introduces a _volatile_ behavior. Namely, it has no "memory" of values set |
This file contains hidden or 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
package com.parashuram; | |
import android.os.Process; | |
import android.text.TextUtils; | |
import android.util.Log; | |
import android.view.View; | |
import android.view.ViewTreeObserver; | |
import com.facebook.react.ReactInstanceManager; | |
import com.facebook.react.ReactNativeHost; | |
import com.facebook.react.bridge.ReactContext; |
This file contains hidden or 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
RVPagerSnapHelperListenable().attachToRecyclerView( | |
recyclerView, | |
object : RVPagerStateListener { | |
override fun onPageScroll(pagesState: List<VisiblePageState>) {/*...*/} | |
override fun onPageSelected(index: Int) {/*...*/} | |
override fun onScrollStateChanged(state: RVPageScrollState) {/*...*/} | |
}) |