Share
Embed
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.
Transcript
60 slides
-
build.gradle app/build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google()
jcenter() }A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }H }I }J dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }K -
build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google() jcenter()
}A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F -
build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google() jcenter()
}A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C -
build.gradle buildscript { repositories { google() jcenter() }A dependencies {
classpath 'com.android.tools.build:gradle:3.0.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C -
build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google() jcenter()
}A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C -
build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google() jcenter()
}A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F -
build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google() jcenter()
}A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F -
build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google() jcenter()
}A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F -
build.gradle app/build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google()
jcenter() }A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }H }I }J dependencies1{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }K -
app/build.gradle apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions'
android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }H }I }J dependencies1{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }K -
app/build.gradle apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions'
android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }H }I }J dependencies1{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }K -
app/build.gradle android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion
21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' }H }I }J -
app/build.gradle android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion
21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' }H }I }J android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' }H }I }J -
app/build.gradle android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion
21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' }H }I }J android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' }H }I }J -
app/build.gradle android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion
21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' }H }I }J android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' }H }I }J -
app/build.gradle android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion
21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' }H }I }J -
app/build.gradle android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion
21 targetSdkVersion 26 versionCode 1 versionName "1.0" }G }J applicationId "com.understandinggradle"t minSdkVersion 21 targetSdkVersion 26v versionCode 1r versionName "1.0"s minSdkVersion 21 minSdkVersion 21 minSdkVersion 21 minSdkVersion 21u -
app/build.gradle android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion
21 targetSdkVersion 26 versionCode 1 versionName "1.0" }G }J minSdkVersion 21 minSdkVersion 21 minSdkVersion 21 minSdkVersion 21 compileSdkVersion 26 <manifest android:versionCode="1"r android:versionName="1.0"s package="com.understandinggradle">t <uses-sdk android:minSdkVersion="21"u android:targetSdkVersion="26" />v ... </manifest> -
app/build.gradle android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion
21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' }H }I }J -
app/build.gradle android { buildTypes { release { minifyEnabled true proguardFiles
getDefaultProguardFile('proguard- android.txt'), 'proguard-rules.pro' }H }I }J -
app/build.gradle android { buildTypes { release { minifyEnabled true proguardFiles
getDefaultProguardFile('proguard- android.txt'), 'proguard-rules.pro' }H debug { versionNameSuffix = "-SNAPSHOT" minifyEnabled false }1 }I }J -
app/build.gradle android { buildTypes { release { minifyEnabled true proguardFiles
getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }H debug { versionNameSuffix = "-SNAPSHOT" minifyEnabled false }1 beta { versionNameSuffix = "-BETA" minifyEnabled true }2J }I }J -
app/build.gradle apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions'
android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }H }I }J dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }K -
app/build.gradle dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso- core:3.0.1' }K -
app/build.gradle dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' implementation 'com.google.dagger:dagger:2.11' annotationProcessor 'com.google.dagger:dagger-compiler:2.11' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso- core:3.0.1' }KK -
app/build.gradle dependenciesX{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation
'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso- core:3.0.1' }K -
build.gradle app/build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google()
jcenter() }A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }H }I }J dependenciesX{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }K -
build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google() jcenter()
}A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F -
build.gradle buildscript { ... }C allprojects { ... }E task
clean(type: Delete) { ... }F -
build.gradle buildscript { ... }C allprojects { ... }E task
clean(type: Delete) { ... }F ext { dagger = "com.google.dagger:dagger:2.11" daggerCompiler = "com.google.dagger:dagger-compiler:2.11" }L -
build.gradle buildscript { ... }C allprojects { ... }E task
clean(type: Delete) { ... }F ext { String daggerVersion = "2.11" dagger = "com.google.dagger:dagger:2.11" daggerCompiler = "com.google.dagger:dagger-compiler:2.11" }L -
build.gradle buildscript { ... }C allprojects { ... }E task
clean(type: Delete) { ... }F ext { String daggerVersion = "2.11" dagger = "com.google.dagger:dagger:$daggerVersion" daggerCompiler = "com.google.dagger:dagger-compiler:$daggerVersion" }L -
build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google() jcenter()
}A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F ext { String daggerVersion = "2.11" dagger = "com.google.dagger:dagger:$daggerVersion" daggerCompiler = "com.google.dagger:dagger-compiler:$daggerVersion" }L -
build.gradle app/build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google()
jcenter() }A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F ext { String daggerVersion = "2.11" dagger = "com.google.dagger:dagger:$daggerVersion" daggerCompiler = "com.google.dagger:dagger-compiler:$daggerVersion" }L apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }H }I }J dependenciesX{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }K -
app/build.gradle apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions'
android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }H }I }J dependenciesX{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }K -
app/build.gradle dependenciesX{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation
'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso- core:3.0.1' }K -
app/build.gradle dependenciesX{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation
'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' implementation 'com.google.dagger:dagger:2.11' annotationProcessor 'com.google.dagger:dagger-compiler:2.11' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso- core:3.0.1' }KK -
app/build.gradle dependenciesX{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation
'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' implementation rootProject.ext.dagger annotationProcessor rootProject.ext.daggerCompiler testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso- core:3.0.1' }KK -
app/build.gradle apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions'
android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }H }I }J dependenciesX{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' implementation rootProject.ext.dagger annotationProcessor rootProject.ext.daggerCompiler testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }K -
build.gradle app/build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google()
jcenter() }A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F ext { String daggerVersion = "2.11" dagger = "com.google.dagger:dagger:$daggerVersion" daggerCompiler = "com.google.dagger:dagger-compiler:$daggerVersion" }L apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }H }I }J dependenciesX{ implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' implementation rootProject.ext.dagger annotationProcessor rootProject.ext.daggerCompiler testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }K -
build.gradle buildscript { ext.kotlin_version = '1.1.51' repositories { google() jcenter()
}A dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }B }C allprojects { repositories { google() jcenter() }D }E task clean(type: Delete) { delete rootProject.buildDir }F ext { String daggerVersion = "2.11" dagger = "com.google.dagger:dagger:$daggerVersion" daggerCompiler = "com.google.dagger:dagger-compiler:$daggerVersion" }L -
build.gradle buildscript { ... }C allprojects { ... }E task
clean(type: Delete) { ... }F ext { ...8 }L -
build.gradle def constructVersionName() { def code = buildNumber() def major
= "1" def feature = "6" def minor = "0" def suffix = code == 99999 ? "-DEV" : "" if (isCi()) { suffix = "-${getGitBranchName().replace('/', '-')}" }Z return "${major}.${feature}.${minor}.${code}${suffix}" }Y ext { ... }L -
build.gradle def constructVersionName() { def code = buildNumber() def major
= "1" def feature = "6" def minor = "0" def suffix = code == 99999 ? "-DEV" : "" if (isCi()) { suffix = "-${getGitBranchName().replace('/', '-')}" }Z return "${major}.${feature}.${minor}.${code}${suffix}" }Y ext { appVersionName = constructVersionName() ... }L -
app/build.gradle android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion
21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' }H }I }J -
app/build.gradle android { compileSdkVersion 26 defaultConfig { applicationId "com.understandinggradle" minSdkVersion
21 targetSdkVersion 26 versionCode 1 versionName rootProject.ext.appVersionName testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }G buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro' }H }I }J