Consistently use tabs in build.gradle.
This commit is contained in:
committed by
Joshua Granick
parent
28e9fe1a14
commit
2788dec2a5
@@ -1,26 +1,26 @@
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
|
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
|
||||||
// buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
|
// buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "::META_PACKAGE_NAME::"
|
applicationId "::META_PACKAGE_NAME::"
|
||||||
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
|
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
|
||||||
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
|
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
|
||||||
versionCode Integer.parseInt(project.VERSION_CODE)
|
versionCode Integer.parseInt(project.VERSION_CODE)
|
||||||
versionName project.VERSION_NAME
|
versionName project.VERSION_NAME
|
||||||
}
|
}
|
||||||
|
|
||||||
::if KEY_STORE::
|
::if KEY_STORE::
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
storeFile file(project.KEY_STORE)
|
storeFile file(project.KEY_STORE)
|
||||||
storePassword project.KEY_STORE_PASSWORD
|
storePassword project.KEY_STORE_PASSWORD
|
||||||
keyAlias project.KEY_STORE_ALIAS
|
keyAlias project.KEY_STORE_ALIAS
|
||||||
keyPassword project.KEY_STORE_ALIAS_PASSWORD
|
keyPassword project.KEY_STORE_ALIAS_PASSWORD
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
::else::
|
::else::
|
||||||
File signingFile = file('signing.properties');
|
File signingFile = file('signing.properties');
|
||||||
if(signingFile.exists()) {
|
if(signingFile.exists()) {
|
||||||
@@ -38,14 +38,14 @@ android {
|
|||||||
}
|
}
|
||||||
::end::
|
::end::
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
}
|
}
|
||||||
@@ -1,27 +1,27 @@
|
|||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.1.0'
|
classpath 'com.android.tools.build:gradle:2.1.0'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task clean(type: Delete) {
|
task clean(type: Delete) {
|
||||||
delete rootProject.buildDir
|
delete rootProject.buildDir
|
||||||
}
|
}
|
||||||
|
|
||||||
task wrapper(type: Wrapper) {
|
task wrapper(type: Wrapper) {
|
||||||
gradleVersion = '::ANDROID_GRADLE_VERSION::'
|
gradleVersion = '::ANDROID_GRADLE_VERSION::'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.1.0'
|
classpath 'com.android.tools.build:gradle:2.1.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'android-library'
|
apply plugin: 'android-library'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
|
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
|
||||||
// buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
|
// buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user