Gradle ’Œ Android Studio --- Jason Ko

  • View
    160

  • Download
    4

Embed Size (px)

Text of Gradle ’Œ Android Studio --- Jason Ko

Gradle + Androidby Jason Ko

GradleAutomation Tool : compile, test, package, deploy (ship), project dependenciesGradle Groovy ( edit, compile, link, run , , shell ) Groovy ( Less verbose ) ( Very flexible)DSL ( Domain Specific Language) => , ! Gradle !DSL

Java Swing GUI ToolkitGroovy SwingBuilder

http://www.codedata.com.tw/java/groovy-tutorial-1-understanding-groovy/gradle -q tasks => tasks, -q in quiet modegradle -q help => look help guidegradle properties => project propertiesBuild.Gradlebuild. gradle , ~ex.

run by => gradle compileTask

Java Plugin plugin => apply plugin: java plugin => apply plugin: JavaJava 4 Configurationcompile, runtime, testCompile, testRuntime 4 configuration, dependenciesfor Android Project compileExample 1

Marven Central , Gradle , library group, name, versionExample 2

Multiple Projects

settings.gradlebuild.gradlesettings.gradle:build.gradle:

ex. Project build.gradle

Project build.gradle

Android Studio Project,

p.s , HelloCloudEndpoints project,api, app module, app module, api google cloud moduleAndroid Studio gradle

gradlewProject gradle

gradle-wrapper.properties project gradle sync project with gradle

gradle file, syncApp build.gradle apply com.android.application plugin apply plugin android{} configuration element

AndroidManifiest.xmlCompile SDK version APP, release debug App build.gradle

include Libs jar

jar product flavors, APP ex. Demo version, Full version gradle.build Android {} productFlavors{}

product flavors

Android Studio + App Engine + Cloud Endpoints=> 1. web server api !2. (json, xml) 50% "App Engine Java Endpoints Module" Templatehttps://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints

:IROMIN Gradle Tutorialhttp://rominirani.com/2014/07/28/gradle-tutorial-series-an-overview/Wiki https://en.wikipedia.org/wiki/GradleThats All.