Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Veni, Vide, Built: Android Gradle Plugin

Veni, Vide, Built: Android Gradle Plugin

  • Be the first to comment

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.

    Be the first to comment

    Login to see the comments

  • lastkuku

    Jul. 12, 2015
  • JaehwanLee

    Jul. 12, 2015
  • ryonjeong1

    Jul. 12, 2015
  • ssuserd2afba

    Jul. 12, 2015
  • ssuser4a4074

    Jul. 12, 2015
  • JinHoKim1

    Aug. 11, 2015
  • yongku1004

    Aug. 15, 2015

Veni, Vide, Built: Android Gradle Plugin

Views

Total views

4,586

On Slideshare

0

From embeds

0

Number of embeds

24

Actions

Downloads

10

Shares

0

Comments

0

Likes

7

×