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
@Singleton | |
class AnchorTip @Inject constructor( | |
eventEngine: EventEngine, | |
tipEngine: TipsEngine | |
) : Tip(eventEngine, tipEngine) { | |
init { | |
flowPosition = 0 | |
flowId = "onboarding-flow" | |
} |
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
ext { | |
compose_version = '1.0.5' | |
accompanist_version = "0.20.2" | |
} | |
android { | |
buildFeatures { | |
compose true | |
} | |
composeOptions { |
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
interface WorkListener { | |
fun onConditionNotMet() | |
fun onStart() | |
fun onSuccess(data: Data) | |
fun onError(data: Data) | |
} | |
class WorkEnqueuer(val context: Context) { | |
private var listener: WorkListener? = null |
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 View.windowInsetsCompat: WindowInsetsCompat? | |
get() { | |
val rootInsets = rootWindowInsets ?: return null | |
return WindowInsetsCompat.toWindowInsetsCompat(rootInsets) | |
} | |
val View.isKeyboardVisible: Boolean | |
get() = windowInsetsCompat?.isVisible(WindowInsetsCompat.Type.ime()) ?: false | |
fun View.hideKeyboard() { |
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 androidx.compose.material.LocalTextStyle | |
import androidx.compose.material.Text | |
import androidx.compose.runtime.* | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.draw.drawWithContent | |
import androidx.compose.ui.graphics.Color | |
import androidx.compose.ui.text.AnnotatedString | |
import androidx.compose.ui.text.TextStyle | |
import androidx.compose.ui.text.font.FontFamily | |
import androidx.compose.ui.text.font.FontStyle |
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
@OptIn(ExperimentalFoundationApi::class) | |
@Composable | |
internal fun AndroidIgGrid( | |
viewState: InstagramGridViewState, | |
isRefreshing: Boolean, | |
items: PagingData<GridMediaItem>, | |
selectedItems: List<GridMediaItem>, | |
onRefresh: () -> Unit, | |
onItemSelected: (GridMediaItem) -> Unit, | |
onItemUnSelected: (GridMediaItem) -> Unit, |
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
def execDownloadSigningInfo(ProductFlavor flavor) { | |
task z { | |
download { | |
src "$url" | |
dest { | |
return rootProject.file("../file") | |
} | |
onlyIfNewer true | |
} |
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 org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget | |
plugins { | |
kotlin("multiplatform") | |
id("com.android.library") | |
kotlin("plugin.parcelize") | |
id("com.apollographql.apollo3") version "3.0.0-dev13" | |
id("com.chromaticnoise.multiplatform-swiftpackage") version "2.0.3" | |
} |
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 androidx.compose.material.LocalTextStyle | |
import androidx.compose.material.Text | |
import androidx.compose.runtime.Composable | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.graphics.Color | |
import androidx.compose.ui.res.stringResource | |
import androidx.compose.ui.text.TextLayoutResult | |
import androidx.compose.ui.text.TextStyle | |
import androidx.compose.ui.text.font.FontFamily | |
import androidx.compose.ui.text.font.FontStyle |
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
android.applicationVariants.all { variant -> | |
task "open${variant.name.capitalize()}" { | |
dependsOn "install${variant.name.capitalize()}" | |
doLast { | |
exec { | |
commandLine "adb shell monkey -p ${variant.applicationId} -c android.intent.category.LAUNCHER 1".split(" ") | |
} | |
} | |
} |