Skip to content
This repository was archived by the owner on Oct 23, 2021. It is now read-only.

Commit f464d07

Browse files
committed
cleaned up project and restored recyclers view build.gradle
1 parent 7f567e6 commit f464d07

File tree

2 files changed

+51
-44
lines changed

2 files changed

+51
-44
lines changed

criminalintent-sample/build.gradle

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,26 @@
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'
92

103
android {
114
compileSdkVersion 21
125
buildToolsVersion "21.1.2"
136

147
defaultConfig {
15-
minSdkVersion 13
8+
applicationId "com.bignerdranch.android.criminalintent"
9+
minSdkVersion 15
1610
targetSdkVersion 21
17-
versionCode 1
18-
versionName project.version.toString()
1911
}
12+
2013
buildTypes {
2114
release {
2215
minifyEnabled false
23-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
16+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
2417
}
2518
}
26-
compileOptions {
27-
sourceCompatibility JavaVersion.VERSION_1_7
28-
targetCompatibility JavaVersion.VERSION_1_7
29-
}
3019
}
3120

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-
5621
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'
6025
compile project(':recyclerview-multiselect')
6126
}

recyclerview-multiselect/build.gradle

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def isSnapshot = version.endsWith('-SNAPSHOT')
99

1010
android {
1111
compileSdkVersion 21
12-
buildToolsVersion "21.1.2"
12+
buildToolsVersion "21.0.2"
1313

1414
defaultConfig {
1515
minSdkVersion 11
@@ -35,6 +35,48 @@ android {
3535
sign configurations.archives
3636
}
3737

38+
uploadArchives {
39+
repositories {
40+
mavenDeployer {
41+
beforeDeployment { MavenDeployment deployment ->
42+
signing.signPom(deployment)
43+
}
44+
45+
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
46+
authentication(userName: ossrhUsername, password: ossrhPassword)
47+
}
48+
49+
pom.project {
50+
packaging 'aar'
51+
name 'RecyclerView MultiSelect'
52+
description 'An Android library that handles displaying and managing selections in RecyclerView.'
53+
54+
url 'https://bignerdranch.github.io/recyclerview-multiselect/'
55+
56+
scm {
57+
url 'https://github.com/bignerdranch/recyclerview-multiselect'
58+
connection 'scm:git:https://github.com/bignerdranch/recyclerview-multiselect.git'
59+
}
60+
61+
licenses {
62+
license {
63+
name 'MIT License'
64+
url 'http://opensource.org/licenses/MIT'
65+
distribution 'repo'
66+
}
67+
}
68+
69+
developers {
70+
developer {
71+
id 'jingibus'
72+
name 'Bill Phillips'
73+
email 'phillips@bignerdranch.com'
74+
}
75+
}
76+
}
77+
}
78+
}
79+
}
3880

3981
android.libraryVariants.all { variant ->
4082
task("generate${variant.name.substring(0,1).toUpperCase() + variant.name.substring(1)}Javadoc", type: Javadoc) {

0 commit comments

Comments
 (0)