Skip to content

Commit 7eab9b7

Browse files
author
Blankj
committed
see 04/02 log
1 parent c882387 commit 7eab9b7

4 files changed

Lines changed: 44 additions & 69 deletions

File tree

app/build.gradle

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion rootProject.ext.android.compileSdkVersion
5-
buildToolsVersion rootProject.ext.android.buildToolsVersion
4+
compileSdkVersion rootProject.ext.compileSdkVersion
5+
buildToolsVersion rootProject.ext.buildToolsVersion
66

77
defaultConfig {
88
applicationId "com.blankj.androidutilcode"
9-
minSdkVersion rootProject.ext.android.minSdkVersion
10-
targetSdkVersion rootProject.ext.android.targetSdkVersion
11-
versionCode rootProject.ext.android.versionCode
12-
versionName rootProject.ext.android.versionName
9+
minSdkVersion rootProject.ext.minSdkVersion
10+
targetSdkVersion rootProject.ext.targetSdkVersion
11+
versionCode rootProject.ext.versionCode
12+
versionName rootProject.ext.versionName
1313
}
1414
buildTypes {
1515
release {
@@ -21,16 +21,14 @@ android {
2121

2222
dependencies {
2323
compile fileTree(include: ['*.jar'], dir: 'libs')
24-
compile project(':utilcode')
25-
compile rootProject.ext.deps.design
26-
compile rootProject.ext.deps.supportV4
24+
compile "com.android.support:design:$rootProject.supportVersion"
25+
compile "com.android.support:support-v4:$rootProject.supportVersion"
26+
compile "com.android.support:appcompat-v7:$rootProject.supportVersion"
2727

28-
// RxAndroid
29-
compile rootProject.ext.deps.rxAndroid
30-
compile rootProject.ext.deps.rxJava
28+
compile project(':utilcode')
3129

3230
// LeakCanary
33-
debugCompile rootProject.ext.deps.leakcanaryAndroid
34-
releaseCompile rootProject.ext.deps.leakcanaryAndroidNoOp
35-
testCompile rootProject.ext.deps.leakcanaryAndroidNoOp
31+
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
32+
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
33+
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
3634
}

build.gradle

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
apply from: "config.gradle"
3-
42
buildscript {
53
repositories {
64
jcenter()
@@ -22,4 +20,23 @@ allprojects {
2220

2321
task clean(type: Delete) {
2422
delete rootProject.buildDir
23+
}
24+
25+
ext {
26+
// Sdk and tools
27+
compileSdkVersion = 25
28+
buildToolsVersion = "25.0.0"
29+
minSdkVersion = 15
30+
targetSdkVersion = 19
31+
versionCode = 16
32+
versionName = "1.3.7"
33+
34+
// App dependencies
35+
supportVersion = '25.0.0'
36+
rxjavaVersion = '1.1.8'
37+
rxandroidVersion = '1.2.1'
38+
brvahVersion = '2.9.2'
39+
junitVersion = '4.12'
40+
truthVersion = '0.29'
41+
robolectricVersion = '3.1.2'
2542
}

config.gradle

Lines changed: 0 additions & 40 deletions
This file was deleted.

utilcode/build.gradle

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion rootProject.ext.android.compileSdkVersion
5-
buildToolsVersion rootProject.ext.android.buildToolsVersion
4+
compileSdkVersion rootProject.ext.compileSdkVersion
5+
buildToolsVersion rootProject.ext.buildToolsVersion
66

77
defaultConfig {
8-
minSdkVersion rootProject.ext.android.minSdkVersion
9-
versionCode rootProject.ext.android.versionCode
10-
versionName rootProject.ext.android.versionName
8+
minSdkVersion rootProject.ext.minSdkVersion
9+
versionCode rootProject.ext.versionCode
10+
versionName rootProject.ext.versionName
1111
}
1212
buildTypes {
1313
release {
@@ -18,12 +18,12 @@ android {
1818
}
1919

2020
dependencies {
21-
provided rootProject.ext.deps.design
22-
provided rootProject.ext.deps.supportV4
23-
provided rootProject.ext.deps.appcompatV7
24-
testCompile rootProject.ext.deps.junit
25-
testCompile rootProject.ext.deps.truth
26-
testCompile rootProject.ext.deps.robolectric
21+
provided "com.android.support:design:$rootProject.supportVersion"
22+
provided "com.android.support:support-v4:$rootProject.supportVersion"
23+
provided "com.android.support:appcompat-v7:$rootProject.supportVersion"
24+
testCompile "junit:junit:$rootProject.junitVersion"
25+
testCompile "com.google.truth:truth:$rootProject.truthVersion"
26+
testCompile "org.robolectric:robolectric:$rootProject.robolectricVersion"
2727
}
28-
apply from: "https://raw.githubusercontent.com/xiaopansky/android-library-publish-to-jcenter/master/bintrayUpload.gradle"
28+
//apply from: "https://raw.githubusercontent.com/xiaopansky/android-library-publish-to-jcenter/master/bintrayUpload.gradle"
2929
//gradlew bintrayUpload

0 commit comments

Comments
 (0)