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
package se.sabumbi.vacapp.audio | |
import kotlinx.cinterop.CPointer | |
import kotlinx.cinterop.ExperimentalForeignApi | |
import kotlinx.cinterop.ObjCObjectVar | |
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.IO | |
import kotlinx.coroutines.Job | |
import kotlinx.coroutines.flow.MutableStateFlow |
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
@Composable | |
fun RowScope.WaveForm(progress: List<Float>) { | |
// State to track the horizontal offset for the animation | |
var offsetState by remember { mutableStateOf(0f) } | |
val itemWidth = with(LocalDensity.current) { 4.dp.toPx() } | |
val padding = with(LocalDensity.current) { 1.dp.toPx() } | |
// Animate the offset change | |
val animatedOffset by animateFloatAsState( | |
targetValue = offsetState, | |
animationSpec = tween( |
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
package components | |
import androidx.compose.runtime.Composable | |
import platform.UIKit.UIColor | |
@Composable | |
fun SampleUsageView( | |
content: @Composable () -> Unit | |
): () -> Unit { | |
// Wraps the composable in a UIViewController and sets the background to .clearColor. |
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 { Field } from "formik"; | |
import Label from "./Label"; | |
import PlaceholderOption from "./PlaceholderOption"; | |
type PickerProps<K> = { | |
placeHolder: string; | |
nameInForm: string; | |
label: string; | |
data?: K[]; | |
mapper: (item: K) => PickerOption; |
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
func betterLabel() -> ZSWTappableLabel { | |
let participantsLabel:ZSWTappableLabel = ZSWTappableLabel(frame: CGRect(x: 10, y: 5, width: self.view.bounds.size.width * 0.75, height: 43)) | |
var par2 = participants | |
for i in 1...6 { | |
par2.append(User(id: "Dummy", name: "Test User")) | |
} | |
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 -> | |
def appName | |
//Check if an applicationName property is supplied; if not use the name of the parent project. | |
if (project.hasProperty("applicationName")) { | |
appName = applicationName | |
} else { | |
appName = parent.name | |
} | |
variant.outputs.each {output -> |
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
### Keybase proof | |
I hereby claim: | |
* I am qw4z1 on github. | |
* I am qw4z1 (https://keybase.io/qw4z1) on keybase. | |
* I have a public key whose fingerprint is BFD0 ADDC 8937 5EF6 5784 2A28 65FD C322 4A91 8FD3 | |
To claim this, I am signing this object: |
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
afterEvaluate { project -> | |
android.applicationVariants.each { variant -> | |
variant.javaCompile.dependsOn stripPlayServices | |
} | |
} | |
task stripPlayServices << { | |
def playServiceRootFolder = new File(rootProject.buildDir, "intermediates/exploded-aar/com.google.android.gms/play-services/") | |
playServiceRootFolder.list().each { versionName -> | |
def versionFolder = new File(playServiceRootFolder, versionName) |
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
# built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
# Java class files | |
*.class |
NewerOlder