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 android.view.View | |
| import androidx.test.espresso.Espresso | |
| import androidx.test.espresso.NoMatchingViewException | |
| import androidx.test.espresso.ViewAssertion | |
| import androidx.test.espresso.ViewInteraction | |
| import androidx.test.espresso.assertion.ViewAssertions.matches | |
| import androidx.test.espresso.matcher.ViewMatchers.Visibility | |
| import androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility | |
| import org.hamcrest.Matcher |
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 androidx.compose.runtime.Stable | |
| import androidx.compose.ui.Modifier | |
| import androidx.compose.ui.drawBehind | |
| import androidx.compose.ui.graphics.Color | |
| import androidx.compose.ui.graphics.Path | |
| import androidx.compose.ui.graphics.drawscope.DrawScope | |
| import androidx.compose.ui.unit.Dp | |
| /** | |
| * Border definition can be extended to provide border style or [androidx.compose.ui.graphics.Brush] |
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 ru.gildor.compose.sandbox | |
| import android.app.Activity | |
| import android.util.Log | |
| import android.view.inputmethod.InputMethodManager | |
| import androidx.compose.animation.AnimatedVisibility | |
| import androidx.compose.animation.ExperimentalAnimationApi | |
| import androidx.compose.animation.slideInVertically | |
| import androidx.compose.animation.slideOutVertically | |
| import androidx.compose.foundation.Text |
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.google.maps.GeoApiContext | |
| import com.google.maps.GeocodingApi | |
| import com.google.maps.PendingResult | |
| import kotlinx.coroutines.suspendCancellableCoroutine | |
| import kotlin.coroutines.resume | |
| import kotlin.coroutines.resumeWithException | |
| /** | |
| * Coroutine adapter for Google Maps API future type [PendingResult] | |
| * |
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
| def afterEvaluation = false | |
| gradle.projectsEvaluated { | |
| afterEvaluation = true | |
| } | |
| allprojects { project -> | |
| configurations.all { configuration -> | |
| configuration.incoming.beforeResolve { | |
| if (!afterEvaluation) { | |
| throw new Exception("Configuration $configuration.name of project $project.name is being resolved at configuration time.") |
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.google.protobuf.gradle.protobuf | |
| import com.google.protobuf.gradle.protoc | |
| plugins { | |
| java | |
| idea | |
| id("com.google.protobuf") version "0.8.7" | |
| } | |
| repositories { |
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
| //File src/main/kotlin/HelloWorld.kt | |
| import tornadofx.* | |
| class HelloWorld : View() { | |
| override val root = hbox { | |
| label("Hello world") | |
| } | |
| } | |
| class MyApp : App(HelloWorld::class) |
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 kotlinx.coroutines.experimental.* | |
| import okhttp3.* | |
| import okio.Buffer | |
| import okio.Okio | |
| import java.io.File | |
| import java.io.IOException | |
| /** | |
| * Custom coroutine dispatcher for blocking calls | |
| */ |
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 kotlin.coroutines.experimental.* | |
| import kotlin.js.Date | |
| fun main(args: Array<String>) { | |
| println("before launch") | |
| launch { | |
| println("hello: ${Date()}") | |
| delay(3000) | |
| println("bye: ${Date()}") | |
| } |
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 kotlinx.coroutines.experimental.runBlocking | |
| import retrofit2.Call | |
| import retrofit2.Retrofit | |
| import retrofit2.converter.gson.GsonConverterFactory | |
| import retrofit2.http.GET | |
| import retrofit2.http.Path | |
| import ru.gildor.coroutines.retrofit.awaitResponse | |
| /** | |
| dependencies { |
NewerOlder