Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Veni, Vide, Built: Android Gradle Plugin

4 527 vues

Publié le

Veni, Vide, Built: Android Gradle Plugin

Publié dans : Technologie
  • Identifiez-vous pour voir les commentaires

Veni, Vide, Built: Android Gradle Plugin

  1. 1. Veni, Vidi, Built: Android Gradle Plugin LYK dalinaum@gmail.com
  2. 2. Julius Caesar Veni, Vidi, Vici
 왔노라, 보았노라, 이겼노라 BC 100 ~ BC 44
  3. 3. Julius Caesar Veni, Vidi, Built
 왔노라, 보았노라, 빌드했노라 BC 100 ~ BC 44
  4. 4. • Gradle • Tasks • Android custom tasks • New Android Plugin • NDK • Jack & Jill • Atom Android
  5. 5. Gradle • Configuration (Static) + Build (Dynamic)
  6. 6. Ant • Focus on Build • hard to configure
  7. 7. Maven • Focus on Configuration • hard to customise
  8. 8. Alt. • Gradle • Groovy language (Dynamic) • DSL (Static) • Apache Ivy
  9. 9. Groovy • Runs on Java VM • The principle of least surprise (JAVA) • Built-in List, Range, Map, Closure • Improved Loops, Switches • Built-in Regex, Improved Strings • Supports Dynamic typing and Static typing.
  10. 10. Task: Hello World task hello { doLast { println 'Hello world!' } }
  11. 11. gradle -q hello
  12. 12. Task: Hello World
 (short version) task hello << { println 'Hello world!' }
  13. 13. gradle -q hello
  14. 14. upper, count task upper << { String someString = 'mY_nAmE' println "Original: " + someString println "Upper case: " + someString.toUpperCase() } task count << { 4.times { print "$it " } }
  15. 15. gradle -q upper count
  16. 16. Dependency task upper << { String someString = 'mY_nAmE' println "Original: " + someString println "Upper case: " + someString.toUpperCase() } task count << { 4.times { print "$it " } }
  17. 17. gradle -q intro
  18. 18. Android Gradle build.grade (all) app/build.gradle (app module) settings.gradle (import app module)
  19. 19. jCenter
  20. 20. Android custom task
  21. 21. gradle -q assemble
  22. 22. New Android Plugin (Experimental)
  23. 23. gradle/wrapper/gradle- wrapper.properties
  24. 24. build.gradle
  25. 25. app/build.gradle
  26. 26. component model mechanism
 (Gradle 2.5)
  27. 27. NDK support (New Android Plugin)
  28. 28. local.properties
  29. 29. build.gradle
  30. 30. build.gradle
  31. 31. app/src/main/jni/ hello-jni.c
  32. 32. app/src/main/java/ gdg/kr/hellogdg/
  33. 33. NDK example: https://github.com/ googlesamples/android-ndk
  34. 34. JACK & JILL
  35. 35. • JACK - Java Android Compiler Kit • JILL - Jack Intermediate Library Linker
  36. 36. build.gradle
  37. 37. Atom Android • Atom plugin for Android • https://github.com/atom/apm
  38. 38. Fin.

×