Skip to content

Instantly share code, notes, and snippets.

View androidx_latest_snapshot_url.sh
#!/bin/bash
ID=`curl -s "https://ci.android.com/builds/branches/aosp-androidx-master-dev/status.json" | jq ".targets[] | select(.ID==\"aosp-androidx-master-dev.androidx_snapshot\") | .last_known_good_build"` && echo https://ci.android.com/builds/submitted/"${ID:1:-1}"/androidx_snapshot/latest/repository/
View gist:a0e67bb800f61dd2b6965ce3b7995585
pageEvents { builder ->
builder.refresh(50..52),
}
fun pageEvents(
val hasRemote: Boolean = false,
val block: (builder: PageEventBuilder) -> Unit,
): List<PageEvent<Int>> {
val builder = PageEventBuilder(hasRemote)
block(builder)