jw
10/25/2018, 9:04 PMaidanvii
10/26/2018, 10:24 AMursus
10/28/2018, 4:34 AMSanthosh
10/28/2018, 3:46 PMhyunghui
10/28/2018, 4:29 PMSoundlicious
10/29/2018, 3:38 AMjoeamrhein
10/29/2018, 4:07 PMThis annotation is not applicable to target 'undefined target' and use site target '@param'
errors now
private fun foo(map: Map<String, @param:RawRes Int>) {}
adam-mcneilly
10/29/2018, 5:46 PMkapt "..."
and annotationProcessor "..."
. What is the reason for needing both?jw
10/29/2018, 8:00 PMallprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += [
'-progressive'
]
}
}
}
in root build.gradle
skennedy
10/29/2018, 8:25 PMblyn
10/29/2018, 8:49 PMprivate fun foo(value: String?) {
var myString: String = ""
if (!value.isNullOrEmpty()) {
myString = value
}
}
IDE complains that there’s a type mismatch between myString
and value
, but the compile builds no problem (and warns if i explicitly !!
). Is there anyway around this?tonyng93
10/30/2018, 4:36 AMkotlin-gradle-plugin:1.2.71
not compatible with android-studio-3.4-canary-2
normal? Anyone facing the same issue?tigran.babajanyan
10/30/2018, 8:41 AMZaidi
10/30/2018, 9:33 AMyperess
10/30/2018, 1:45 PMif (Build.VERSION.SDK_INT >= 23) {
// Long code block
} else {
throw IllegalAccessException()
}
Into:
if (Build.VERSION.SDK_INT < 23) throw IllegalAccessException()
// Long code block
ivano
10/30/2018, 4:43 PMtestImplementation "io.mockk:mockk:1.8.9"
the sync works smooth, with no error messages,but if I try to write `val class =mockk<ClassWhatever> `I get an unresolved reference, the library is present, I have also tried to install apart Mockito, but does not workrobinchew
10/30/2018, 4:49 PMnick
10/30/2018, 8:33 PM* What went wrong:
Could not resolve all files for configuration ':myProject:debugAnnotationProcessorClasspath'.
> Could not find org.jetbrains.kotlin:kotlin-stdlib-jre8:1.3.0.
Searched in the following locations:
- <https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.3.0/kotlin-stdlib-jre8-1.3.0.pom>
- <https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.3.0/kotlin-stdlib-jre8-1.3.0.jar>
- <https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.3.0/kotlin-stdlib-jre8-1.3.0.pom>
- <https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.3.0/kotlin-stdlib-jre8-1.3.0.jar>
- <https://maven.fabric.io/public/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.3.0/kotlin-stdlib-jre8-1.3.0.pom>
- <https://maven.fabric.io/public/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.3.0/kotlin-stdlib-jre8-1.3.0.jar>
- <https://appboy.github.io/appboy-android-sdk/sdk/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.3.0/kotlin-stdlib-jre8-1.3.0.pom>
- <https://appboy.github.io/appboy-android-sdk/sdk/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.3.0/kotlin-stdlib-jre8-1.3.0.jar>
- <https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.3.0/kotlin-stdlib-jre8-1.3.0.pom>
- <https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.3.0/kotlin-stdlib-jre8-1.3.0.jar>
Required by:
project :myProject > com.android.databinding:compiler:3.1.4
project :myProject > com.android.databinding:compiler:3.1.4 > com.android.databinding:compilerCommon:3.1.4
jw
10/30/2018, 8:54 PMdarkmoon_uk
10/30/2018, 9:06 PMJakub
10/31/2018, 9:15 PMKotlin
that shows the best practices and implements authentication using OkHttp Authenticator
, Retrofit
, keeps RefreshToken
in KeyStore
and in general has well organised structure for the whole network layer?tuan.lam
11/01/2018, 9:10 AMJakub
11/01/2018, 5:55 PMJakub
11/01/2018, 5:55 PMigor.wojda
11/02/2018, 1:58 AMData Binding
in Gradle Kotlin Script?
Below config works perfectly for build.gradle (groovy), but results in cannot access enabled: it is private in DataBingingOptions
error in build.gradle.kts (Kotlin Gradle Script)
android {
...
dataBinding {
enabled = true
}
}
Mark
11/02/2018, 5:38 AMproduce{}
(coroutines)BMG
11/02/2018, 8:49 AMrem()
. But gradle builds are working fine. What could be wrong here?Shashank Gupta
11/02/2018, 9:10 AMTolriq
11/02/2018, 10:03 AMJob() + Dispatchers.Main
create a new context and parent job? (The Android lifecycle part I master after all those years:p) and calling coroutineContext.Cancel() does cancel the parentJob and all the child + prevent new calls, and that coroutineContext.CancelChildren() only cancel running jobs for that context/job and allows queuing new ones?Sergio Crespo Toubes
11/02/2018, 1:52 PMSergio Crespo Toubes
11/02/2018, 1:52 PMlouiscad
11/02/2018, 2:09 PMSergio Crespo Toubes
11/02/2018, 3:38 PMMatt Rea
11/02/2018, 6:09 PMfindViewById
. Synthetic imports from xml just give you view caching. Not a huge benefit for most appsfindViewById
pretty easilyval view: View by viewFinder(R.id.view)
louiscad
11/02/2018, 6:11 PMMatt Rea
11/02/2018, 6:12 PMlouiscad
11/02/2018, 10:57 PM