This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
import android.graphics.drawable.AnimationDrawable | |
import coil.ImageLoader | |
import coil.decode.DecodeResult | |
import coil.decode.Decoder | |
import coil.decode.VideoFrameDecoder | |
import coil.fetch.SourceResult | |
import coil.request.Options | |
import coil.request.Parameters | |
import kotlin.time.Duration | |
import kotlin.time.Duration.Companion.seconds |
import java.io.IOException; | |
import okhttp3.HttpUrl; | |
import okhttp3.Interceptor; | |
import okhttp3.OkHttpClient; | |
import okhttp3.Request; | |
/** An interceptor that allows runtime changes to the URL hostname. */ | |
public final class HostSelectionInterceptor implements Interceptor { | |
private volatile String host; |
public class AccountAuthenticator extends AbstractAccountAuthenticator { | |
private final Context context; | |
@Inject @ClientId String clientId; | |
@Inject @ClientSecret String clientSecret; | |
@Inject ApiService apiService; | |
public AccountAuthenticator(Context context) { | |
super(context); |
import android.text.SpannableStringBuilder; | |
import java.util.ArrayDeque; | |
import java.util.Deque; | |
import static android.text.Spanned.SPAN_INCLUSIVE_EXCLUSIVE; | |
/** A {@link SpannableStringBuilder} wrapper whose API doesn't make me want to stab my eyes out. */ | |
public class Truss { | |
private final SpannableStringBuilder builder; | |
private final Deque<Span> stack; |
class GraphDetails { | |
LinkedHashSet<Project> projects | |
LinkedHashMap<Tuple2<Project, Project>, List<String>> dependencies | |
ArrayList<Project> multiplatformProjects | |
ArrayList<Project> androidProjects | |
ArrayList<Project> javaProjects | |
ArrayList<Project> rootProjects | |
// Used for excluding module from graph | |
public static final SystemTestName = "system-test" |
This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
#!/usr/bin/env bash | |
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ | |
### | |
# Label definitions | |
### | |
declare -A LABELS | |
# Platform |
/* | |
* Copyright (C) 2018 Square, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
/* | |
* Copyright 2014 Chris Banes | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
import java.time.LocalDate | |
import java.time.LocalDateTime | |
import java.time.Month | |
import java.time.ZonedDateTime | |
import java.util.TimeZone | |
fun January(day: Int, year: Int) = LocalDate.of(year, Month.JANUARY, day) | |
fun February(day: Int, year: Int) = LocalDate.of(year, Month.FEBRUARY, day) | |
fun March(day: Int, year: Int) = LocalDate.of(year, Month.MARCH, day) | |
fun April(day: Int, year: Int) = LocalDate.of(year, Month.APRIL, day) |