ca va?
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
## Generated by $ ./gradlew refreshVersionsCatalog | |
[plugins] | |
org-jetbrains-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } | |
org-jetbrains-kotlinx-benchmark = { id = "org.jetbrains.kotlinx.benchmark", version = "0.4.2" } | |
patrick = { id = "org.jetbrains.patrick", version = "0.4.2" } |
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
#!/usr/bin/env bash -x | |
# > CLI tool that sparks joy | |
# | |
# stedolan/jq: Command-line JSON processor](https://github.com/stedolan/jq) | |
# direnv/direnv: unclutter your .profile](https://github.com/direnv/direnv) | |
# jonas/tig: Text-mode interface for git](https://github.com/jonas/tig) | |
# tmux/tmux: tmux source code](https://github.com/tmux/tmux) | |
# santinic/how2: stackoverflow from the terminal](https://github.com/santinic/how2) | |
# BurntSushi/ripgrep: ripgrep recursively searches directories for a regex pattern while respecting your gitignore](https://github.com/BurntSushi/ripgrep) | |
# sharkdp/bat: A cat(1) clone with wings.](https://github.com/sharkdp/bat) |
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
# .github/workflows/runOnGitHub.yml | |
# GitHub Actions documentation | |
# => https://docs.github.com/en/actions | |
name: runOnGitHub | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master, main ] |
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
{"lastUpload":"2019-11-29T09:44:56.606Z","extensionVersion":"v3.4.3"} |
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
public inline fun needsRefactoring(): Nothing = throw NotImplementedError(""" | |
This does too much and needs to be refactored. | |
Don't put any kind of logic in the Activities and Fragments. | |
""".trimIndent()) | |
class Camera2BasicFragment : Fragment(), View.OnClickListener, | |
ActivityCompat.OnRequestPermissionsResultCallback { | |
private val surfaceTextureListener = object : TextureView.SurfaceTextureListener { | |
override fun onSurfaceTextureAvailable(texture: SurfaceTexture, width: Int, height: Int) = needsRefactoring() |
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
$ cd sample-kotlin | |
$ gw --stacktrace dependencyUpdates | |
executing gradlew instead of gradle | |
> Task :dependencyUpdates FAILED | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Execution failed for task ':dependencyUpdates'. | |
> Cannot change dependencies of configuration ':classpath' after it has been resolved. |
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
object MoshiAdapters { | |
val moshi : Moshi = Moshi.Builder().build() | |
inline fun <reified T: Any> moshiAdapter(clazz: Class<T> = T::class.java): Lazy<JsonAdapter<T>> | |
= lazy { moshi.adapter(clazz) } | |
val movie: JsonAdapter<Movie> by moshiAdapter() | |
val user: JsonAdapter<User> by moshiAdapter() |
i was thinking how to integrate it with the newest feature
we could have
rejectVersionContaining ("alpha","beta",...)
which would be a shorter version of
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
/** buildSrc/src/main/kotlin/Libs.kt **/ | |
object Libs { | |
const val okhttp = "com.squareup.okhttp3:okhttp:" + Versions.okhttp | |
const val okio = "com.squareup.okio:okio:" + Versions.okio | |
//... all others | |
} | |
/** buildSrc/src/main/kotlin/Versions.kt **/ | |
object Versions { | |
const val okhttp = "3.12.1" |