Browse Source

Switch repo to compose-jb

pull/942/head
Nikolay Igotti 3 years ago
parent
commit
f2fec0ea63
  1. 3
      examples/issues/android/src/main/java/androidx/ui/examples/jetissues/MainActivity.kt
  2. 1
      examples/issues/common/src/jvmAndAndroidMain/kotlin/androidx/ui/examples/jetissues/data/IssuesRepository.kt
  3. 3
      examples/issues/desktop/src/jvmMain/kotlin/androidx/ui/examples/jetissues/Main.kt

3
examples/issues/android/src/main/java/androidx/ui/examples/jetissues/MainActivity.kt

@ -8,8 +8,9 @@ import androidx.ui.examples.jetissues.view.JetIssuesView
import androidx.ui.examples.jetissues.view.Repository import androidx.ui.examples.jetissues.view.Repository
import androidx.ui.examples.jetissues.data.IssuesRepositoryImpl import androidx.ui.examples.jetissues.data.IssuesRepositoryImpl
import androidx.ui.examples.jetissues.data.defaultAuth import androidx.ui.examples.jetissues.data.defaultAuth
import androidx.ui.examples.jetissues.data.defaultRepo
val repo = IssuesRepositoryImpl("ktorio", "ktor", System.getenv("GITHUB_TOKEN") ?: defaultAuth) val repo = IssuesRepositoryImpl(defaultAuth.first, defaultRepo.second, System.getenv("GITHUB_TOKEN") ?: defaultAuth)
class MainActivity : AppCompatActivity() { class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {

1
examples/issues/common/src/jvmAndAndroidMain/kotlin/androidx/ui/examples/jetissues/data/IssuesRepository.kt

@ -36,6 +36,7 @@ import java.util.*
private fun decode(input: String) = input.toCharArray().map { it + 1 }.joinToString("") private fun decode(input: String) = input.toCharArray().map { it + 1 }.joinToString("")
val defaultAuth = decode("/`4/81b6db605e8d6``bdc7ecba8d2/a7/370`20") val defaultAuth = decode("/`4/81b6db605e8d6``bdc7ecba8d2/a7/370`20")
val defaultRepo = Pair("JetBrains", "compose-jb")
sealed class Result<out R> { sealed class Result<out R> {
data class Success<out T>(val data: T) : Result<T>() data class Success<out T>(val data: T) : Result<T>()

3
examples/issues/desktop/src/jvmMain/kotlin/androidx/ui/examples/jetissues/Main.kt

@ -7,8 +7,9 @@ import androidx.ui.examples.jetissues.view.JetIssuesView
import androidx.ui.examples.jetissues.view.Repository import androidx.ui.examples.jetissues.view.Repository
import androidx.ui.examples.jetissues.data.IssuesRepositoryImpl import androidx.ui.examples.jetissues.data.IssuesRepositoryImpl
import androidx.ui.examples.jetissues.data.defaultAuth import androidx.ui.examples.jetissues.data.defaultAuth
import androidx.ui.examples.jetissues.data.defaultRepo
val repo = IssuesRepositoryImpl("ktorio", "ktor", System.getenv("GITHUB_TOKEN") ?: defaultAuth) val repo = IssuesRepositoryImpl(defaultRepo.first, defaultRepo.second, System.getenv("GITHUB_TOKEN") ?: defaultAuth)
fun main() = Window( fun main() = Window(
title = "JetIssues", title = "JetIssues",

Loading…
Cancel
Save