Skip to content

Commit

Permalink
Organization of gradle files
Browse files Browse the repository at this point in the history
  • Loading branch information
zirouan committed Mar 20, 2018
1 parent d424898 commit 1c12ef6
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 59 deletions.
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext {
compileSdkVersion = 27
targetSdkVersion = 27
mindkVersion = 18

gsonVersion = '2.8.2'

supportLibraryVersion = '27.1.0'
constraintLayoutVersion = '1.0.2'
}

buildscript {

Expand All @@ -7,7 +17,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
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
Expand Down
29 changes: 14 additions & 15 deletions demo/build.gradle
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
apply plugin: 'com.android.application'
apply from: './dependencies.gradle'

android {
compileSdkVersion 27
compileSdkVersion rootProject.compileSdkVersion

dataBinding {
enabled = true
}

defaultConfig {
minSdkVersion rootProject.mindkVersion
targetSdkVersion rootProject.targetSdkVersion
applicationId "br.com.liveo.searchview_materialdesign"
minSdkVersion 18
targetSdkVersion 27

versionCode 1
versionName "1.0"

vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation project(':library')
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:27.1.0'
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'
}
}
9 changes: 9 additions & 0 deletions demo/dependencies.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies {
implementation project(':library')
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation "com.google.code.gson:gson:$gsonVersion"
implementation "com.android.support:design:$supportLibraryVersion"
implementation "com.android.support:appcompat-v7:$supportLibraryVersion"
implementation "com.android.support.constraint:constraint-layout:$constraintLayoutVersion"
}

This file was deleted.

This file was deleted.

0 comments on commit 1c12ef6

Please sign in to comment.