https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
android
  • r

    rwachol

    07/24/2017, 10:00 AM
    found this but I'm not sure if it's alive https://github.com/pardom/redux-kotlin
    d
    b
    • 3
    • 2
  • j

    josefrichter

    07/24/2017, 2:27 PM
    guys, what is the state of the union of Kotlin on Android, please? Is it mature enough to make full blown top-notch android apps already?
    r
    • 2
    • 2
  • s

    scruffyfox

    07/24/2017, 2:31 PM
    fun searchParent(id: String): Module?
    	{
    		modules.forEach { module ->
    			val ret = searchParent(module, id)
    
    			if (ret != null)
    			{
    				return@searchParent ret
    			}
    		}
    
    		return null
    	}
    k
    m
    • 3
    • 12
  • k

    kevinmost

    07/24/2017, 3:39 PM
    Bundles only support
    ArrayList
    . I made a set of extensions for this:
    fun Bundle.putParcelableList(key: String, value: List<Parcelable>) = putParcelableArrayList(key, value.asArrayList())
    
    fun Bundle.putStringList(key: String, value: List<String>) = putStringArrayList(key, value.asArrayList())
    
    internal fun <T> List<T>.asArrayList() = (this as? ArrayList) ?: ArrayList(this)
    o
    • 2
    • 1
  • u

    uhe

    07/24/2017, 3:43 PM
    @scruffyfox It's also worth checking out lazy `Sequence`s and the various transformation operations like
    map
    ,
    flatMap
    etc I often find these easier to process than "oldschool" java loops. Just to give you an idea (completely untested and may not meet your needs):
    fun searchParent(id: String): Module? =
            modules
                    .asSequence()
                    .mapNotNull { searchParent(it, id) }
                    .firstOrNull()
    
    fun searchParent(root: Module, id: String): Module? =
            root.steps
                    ?.asSequence()
                    ?.flatMap { it.steps?.asSequence() ?: emptySequence() }
                    ?.firstOrNull { it.id == id }
    s
    • 2
    • 5
  • m

    mikejauregui

    07/24/2017, 9:41 PM
    Hi everyone I hope you guys are have a great day. My name is Mike, I'm from Mexico and I am new here, I would love to learn kotlin and I found this group, I was wondering if any of you could recommend a good course that I could take in order to start with kotlin, thanks in advance!
    g
    b
    • 3
    • 3
  • k

    kingsley

    07/25/2017, 12:52 PM
    @juliocbcotta https://medium.com/@workingkills/pushing-the-limits-of-kotlin-annotation-processing-8611027b6711
    d
    j
    e
    • 4
    • 8
  • k

    khoatd191

    07/25/2017, 2:23 PM
    Could any help me take a look on this issue, pls?
    Error:Execution failed for task ':app:kaptDebugKotlin'.
    > Internal compiler error. See log for more details
    I’m using AS 3.0, dagger 2.11
    r
    l
    u
    • 4
    • 6
  • j

    joachim.reiss.

    07/25/2017, 3:24 PM
    does anyone know what to add to the proguard rules in order to use the google places API when proguard is active ? https://stackoverflow.com/a/19706824/883083 doesn’t work for me . So I figured it might be because of kotlin ?
    f
    • 2
    • 1
  • a

    artem_zin

    07/26/2017, 6:07 AM
    Yep, build time is definitely a problem for big mixed java/kotlin projects. If you have ssh access to some powerful machine you can use https://github.com/gojuno/mainframer to build it remotely but work in IDE locally, this will allow you to use laptop during the build and build should be noticeably faster
    👍 2
    b
    • 2
    • 3
  • r

    rockerhieu

    07/26/2017, 7:42 AM
    After running the command with
    --debug
    I found that gradle will try to find the dependencies in all repositories. In my project dependencies are scattered in 9 repositories. Gradle spends most of the time looking for most of the dependencies in the irrelevant repositories. Is there a best practice for this?
    k
    k
    • 3
    • 7
  • o

    oday

    07/26/2017, 12:02 PM
    here it is https://github.com/Odaym/Kleverbot
    s
    k
    • 3
    • 4
  • i

    ishanarya

    07/26/2017, 7:14 PM
    How should I get into Android?
    k
    f
    • 3
    • 2
  • b

    bryan

    07/26/2017, 9:29 PM
    Have all of the issues with the Android gradle wrapper been fixed with Kotlin since Google’s adopting Kotlin?
    a
    b
    • 3
    • 2
  • v

    vmalikov

    07/27/2017, 4:11 AM
    Why do you have create twice new instance of LinearLayoutManager? (http://prntscr.com/g0t5td) Maybe you should use just 1?
    k
    • 2
    • 2
  • o

    oday

    07/27/2017, 8:44 AM
    I’m not sure about the syntax of line 5, it is of type MvpView? then what is the
    T
    ?
    m
    • 2
    • 2
  • m

    martynas

    07/27/2017, 8:46 AM
    Maybe someone else had same problem as me. I’m using Kotlin 1.1.3, AS 2.2.3, with latest stable KT plugin. When trying to use
    takeIf
    or
    takeUnless
    or any other function marked
    @SinceKotlin("1.1")
    I get message
    Unresolved reference: takeIf
    . Although building project works without any problems. Tried: - Reinstall plugin - Invalidate Caches / Restart - Use AS 3.0 Alpha 8 (same issue) - Use 1.1.4 eap KT plugin Not really sure what to do next?
    d
    • 2
    • 2
  • r

    rednifre

    07/27/2017, 9:46 PM
    When doing dependency injection on Android, is Dagger still the best choice or should I look for something Kotlin-specific?
    d
    • 2
    • 1
  • k

    kagomez

    07/27/2017, 10:03 PM
    does any of you get this error with
    1.1.3-2
    kotlin version
    Error:(24, 0) Declaring custom 'clean' task when using the standard Gradle lifecycle plugins is not allowed.
    g
    • 2
    • 1
  • k

    kagomez

    07/27/2017, 10:06 PM
    I know it can be solved by deleting the
    task clean
    from my gradle but any idea of why this happens?
    a
    • 2
    • 2
  • s

    seriabov

    07/28/2017, 10:40 AM
    > to eliminate findViewById calls
    Aren’t Kotlin Android Extensions good for this job?
    k
    • 2
    • 1
  • p

    Paul Woitaschek

    07/28/2017, 10:46 AM
    I found that complicated with multiple layouts and stuff like dialog fragments
    👍 2
    d
    • 2
    • 1
  • j

    jw

    07/29/2017, 8:18 PM
    And even then, just use ProGuard which optimizes them into ints
  • a

    ahmed.yousef

    07/30/2017, 1:24 PM
    How can I start in Kotlin ?
    t
    b
    • 3
    • 2
  • p

    Paul Woitaschek

    07/30/2017, 3:27 PM
    Am I the only one who has to rebuild the whole project each time a build fails?
    👍 1
    u
    • 2
    • 3
  • b

    blakelee

    07/30/2017, 9:59 PM
    Is there a way to get dpi independent widths?
    d
    • 2
    • 2
  • r

    rkeazor

    08/01/2017, 11:17 AM
    Hey guys, if there are any Android devs who are looking for work at a awesome company , with good pay and compensation. Slack Me
    b
    • 2
    • 2
  • n

    nankai

    08/02/2017, 2:36 AM
    hey guys kotlin calls java with any technique?
    r
    • 2
    • 1
  • s

    subhash_pandey

    08/02/2017, 7:23 AM
    am getting redirect issue on volley can any one help me?
    g
    • 2
    • 10
  • u

    uhe

    08/02/2017, 9:09 AM
    you have to set your language level to 1.1 in the IDE settings for the kotlin compiler
    d
    • 2
    • 1
Powered by Linen
Title
u

uhe

08/02/2017, 9:09 AM
you have to set your language level to 1.1 in the IDE settings for the kotlin compiler
d

dekans

08/02/2017, 8:00 PM
Kotlin Settings in Andrid Studio are overriden by my 'app' module. But I don't find were to set kotlin to 1.1 for this module.
View count: 3