Kotlin is here!
Google officialise le support du langage Kotlin pour le dévelloppement d'application Android, à la conférence Google I/O (17-19 mai 2017).
Cette présentation donne des éléments de réponses à la question Pourquoi Kotlin ?. Aussi, ce langage est décrit en bref. Puis, le support de Kotlin dans Android Studio est précisé en quelques points. Enfin, quand va sortir AS3 en stable ?
Retrouvez la présentation en vidéo : https://www.youtube.com/watch?v=mrJmVjsJlYU&t
8. ! Android : Introduction à Kotlin
Pourquoi Kotlin ?
+ Google copierait Apple ?
♥
♥♥
!
9. iOS : Objective-C vers Swift
! Android : Introduction à Kotlin
Pourquoi Kotlin ?
# WWDC 2014
10. ! Android : Introduction à Kotlin
% Kotlin en bref
11. ! Android : Introduction à Kotlin
% Kotlin en bref
0 Langage clair et concis
; 1 2
getter/setter
Log.i(TAG, "my width is $mWidth")
titi.sayYoTo(toto) 1 infix fun User.sayYo(u:User){…}
titi sayYoTo toto
0 Affranchissement du NullPointerException
0 Conversion de type
val width = 0
0 Déclaration simplifié
int x; 1 var x
static final String blabla 1 val blabla
12. ! Android : Introduction à Kotlin
♥ Android et Kotlin
13. ! Android : Introduction à Kotlin
♥ Android et Kotlin
0 Cohabitation Java & Kotlin
0 Conversion automatique
.java : Ctrl C 1 .kt : Ctrl V
‘Code’ > ‘Convert Java File to Kotlin File’
(Command + Option + Shift + K)
14. ! Android : Introduction à Kotlin
# Et après ?
# Historique des versions Android
Version API Répartition
Avril 2009 : Cupcake 1.5 3 0,0 %
Septembre 2009 : Donut 1.6 4 0,0 %
Octobre 2009 : Eclair 2.1 7 0,0 %
Mai 2010 : Froyo 2.2 8 0,0 %
Décembre 2010 : Gingerbread 2.3 10 0,8 %
Février 2011 : Honeycomb 3.X 13 0,0 %
Octobre 2011 : Ice Cream Sandwich 4.0 15 0,8 %
Juin 2012 : Jelly Bean 4.1 18 6,8 %
Octobre 2013 : KitKat 4.4 20 18,1 %
Octobre 2014 : Lollipop 5.1 21 30,8 %
Octobre 2015 : Marshmallow 6.0 23 31,2 %
Octobre 2016 : Nougat 7.0 24 8,9 %
15. ! Android : Introduction à Kotlin
# Et après ?
Android Studio 3
Octobre 2017 ?
Orange Cake ?
16. TO IMPROVE
IS TO CHANGE
TO BE PERFECT
IS TO CHANGE
OFTEN
- Winston Churchill
17. Merci pour votre attention !
Recevez des news Chill
via la Newsletter
de CHILLCODING !
Retrouvez cette présentation en vidéo 3
4 macha@chillcoding.com
+ ChillCoding
6 @MachaDaCosta
7 ChillCoding
8 ChillCoding
Des questions ?
18. Sources
# Pourquoi Kotlin ?
• Apple : la fin d’Objective-C au profit de SWIFT ?
• Swift is like Kotlin
• Langage Java
• API Java : Google a enfreint les brevets d’Oracle, selon la Cour Suprême
# Kotlin en bref
• Kotlin: pourquoi ce nouveau langage est une bonne nouvelle
• Introduction to Kotlin Google I/O '17
• Kotlin it's the little things
• Android Development with Kotlin
# Android et Kotlin
• Android Studio 3.0 Canary
• Kotlin - Official Site
• developer.android: Get Started with Kotlin on Android