|
1 | | -apply plugin: 'com.android.library' |
2 | | -apply plugin: 'maven' |
3 | | -apply plugin: 'signing' |
4 | | - |
5 | | -version '0.1' |
6 | | -group 'com.bignerdranch.android' |
7 | | - |
8 | | -def isSnapshot = version.endsWith('-SNAPSHOT') |
| 1 | +apply plugin: 'com.android.application' |
9 | 2 |
|
10 | 3 | android { |
11 | 4 | compileSdkVersion 21 |
12 | 5 | buildToolsVersion "21.1.2" |
13 | 6 |
|
14 | 7 | defaultConfig { |
15 | | - minSdkVersion 13 |
| 8 | + applicationId "com.bignerdranch.android.criminalintent" |
| 9 | + minSdkVersion 15 |
16 | 10 | targetSdkVersion 21 |
17 | | - versionCode 1 |
18 | | - versionName project.version.toString() |
19 | 11 | } |
| 12 | + |
20 | 13 | buildTypes { |
21 | 14 | release { |
22 | 15 | minifyEnabled false |
23 | | - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| 16 | + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' |
24 | 17 | } |
25 | 18 | } |
26 | | - compileOptions { |
27 | | - sourceCompatibility JavaVersion.VERSION_1_7 |
28 | | - targetCompatibility JavaVersion.VERSION_1_7 |
29 | | - } |
30 | 19 | } |
31 | 20 |
|
32 | | -signing { |
33 | | - required { !isSnapshot && gradle.taskGraph.hasTask("uploadArchives") } |
34 | | - |
35 | | - sign configurations.archives |
36 | | -} |
37 | | - |
38 | | - |
39 | | -android.libraryVariants.all { variant -> |
40 | | - task("generate${variant.name.substring(0,1).toUpperCase() + variant.name.substring(1)}Javadoc", type: Javadoc) { |
41 | | - source = variant.javaCompile.source |
42 | | - def androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar" |
43 | | - |
44 | | - classpath = files(variant.javaCompile.classpath.files, androidJar) |
45 | | - options { |
46 | | - links "http://docs.oracle.com/javase/7/docs/api/" |
47 | | - linksOffline "http://d.android.com/reference","${android.sdkDirectory}/docs/reference" |
48 | | - } |
49 | | - exclude '**/BuildConfig.java' |
50 | | - exclude '**/R.java' |
51 | | - } |
52 | | -} |
53 | | - |
54 | | - |
55 | | - |
56 | 21 | dependencies { |
57 | | - compile 'com.android.support:appcompat-v7:21.+' |
58 | | - compile 'com.android.support:appcompat-v7:21.+' |
59 | | - compile 'com.android.support:support-v13:21.+' |
| 22 | + compile 'com.android.support:appcompat-v7:21.0.0' |
| 23 | + compile 'com.android.support:recyclerview-v7:+' |
| 24 | + compile 'com.android.support:support-v13:21.0.0' |
60 | 25 | compile project(':recyclerview-multiselect') |
61 | 26 | } |
0 commit comments