Run:
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
import com.android.build.api.artifact.SingleArtifact | |
androidComponents { | |
onVariants { variant -> | |
val cap = variant.name.replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() } | |
val manifestProvider = variant.artifacts.get(SingleArtifact.MERGED_MANIFEST) | |
val taskName = "enforceNoUnexpectedPermissions$cap" | |
tasks.register(taskName) { | |
inputs.file(manifestProvider) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
# ==== User Configuration ==== | |
GITHUB_USERNAME="your_github_username" | |
GITHUB_TOKEN="your_github_token" | |
PER_PAGE=100 | |
GITHUB_API_URL="https://api.github.com" | |
DEST_DIR="./github_repos" |
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.sal7one.testingrobo | |
import android.app.Application | |
import android.content.pm.ActivityInfo | |
import androidx.activity.ComponentActivity | |
import androidx.compose.ui.test.junit4.createComposeRule | |
import androidx.compose.ui.test.onNodeWithTag | |
import androidx.compose.ui.test.onNodeWithText | |
import androidx.compose.ui.test.performClick | |
import androidx.test.core.app.ApplicationProvider |
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.example.salscomposecomponents | |
inline fun <R : Any> R.applyWhen( | |
condition: Boolean, | |
block: R.() -> R, | |
): R = applyChoice(condition = condition, trueBlock = block, falseBlock = { this }) | |
inline fun <R : Any> R.applyChoice( | |
condition: Boolean, | |
trueBlock: R.() -> R, |
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.sal7one.handler | |
import android.os.Bundle | |
import android.os.Handler | |
import android.os.Looper | |
import android.os.Message | |
import android.util.Log | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent | |
import androidx.activity.enableEdgeToEdge |
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
val otherColors = listOf( | |
// Color(0xffffffff), | |
Color(0xff125B34), | |
) | |
@Composable | |
fun CubicWaves() { | |
var angle by remember { mutableFloatStateOf(0f) } | |
val cols = 50 |
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
// infinite with gap of 1 | |
@Composable | |
fun AnimatedHeartShapeRaw( | |
brush: Brush = Brush.verticalGradient(colors = listOf(Color.Magenta, Color.Magenta)), // Default gradient from Magenta to Blue | |
) { | |
val animationPercentage = remember { Animatable(0f) } // Animation state from 0 to 1 | |
LaunchedEffect(Unit) { | |
animationPercentage.animateTo( |
NewerOlder