6. GRADLE SUPPORT
Ø Use Kotlin for writing
Ø Gradle Script Kotlin
(build.gradle.kts)
Ø Plugins
Ø Benefits
Ø auto-completion and
content assist
Ø quick documentation
Ø navigation to source
Ø refactoring
https://blog.gradle.org/kotlin-meets-gradle
https://github.com/gradle/kotlin-dsl
7. INTERESTING FACTS
Started development in 2010 at Jetbrains
Open sourced in 2012
First official stable release v1 - Feb 15, 2016
(current release v1.1.4 – Aug 15, 2017)
Used in all Jetbrains IDEs
100% interoperable with Java
Syntax is similar to Swift
Influenced by Java, Scala, Groovy, C#, Gosu, JavaScript, Swift
10. Android JVM
Browser Native
Kotlin
• App development
• Use Java 8 features with
Java 6 (highest
supported ver.)
• Wrapper for Java
• Alternative to other JVM
languages
Wrapper for Javascript
Native code generation for
different platforms incl. iOS
LANDSCAPE
12. VISIBILITY MODIFIERS
Top level declarations (classes,
functions, properties …)
Modifier Visibility
Public (default) world
Private file
Internal module
Members inside a class
Modifier Visibility
Public (default) world
Private class
Protected class and sub-class
Internal module
26. ØGeneral syntax
<keyword> <name>: <Type>
ØThere is no ‘new’ operator in Kotlin
Ø By default Kotlin classes, properties and
functions are public and final
Ø Everything is an object in Kotlin
Ø Numbers, charcters and boolean can have
primitive values at runtime
Ø main() should not be inside a class