Skip to content

Commit aab9e8c

Browse files
authored
Merge pull request #3 from codepath/origin/async-http
Add support for sources too
2 parents 3d00059 + e2b83d9 commit aab9e8c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To use this library, add the following to your `.gradle` file:
1717

1818
```gradle
1919
dependencies {
20-
implementation 'com.codepath.libraries:asynchttpclient:2.0.0'
20+
implementation 'com.codepath.libraries:asynchttpclient:2.0.1'
2121
}
2222
```
2323

library/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ext {
1111
POM_DESC = "Async Http Client wrapper using OkHttp"
1212
POM_SCM_URL = 'https://github.com/codepath/AsyncHttpClient'
1313
BASE_VERSION = 2
14-
VERSION_NAME = "2.0.0"
14+
VERSION_NAME = "2.0.1"
1515
}
1616

1717
version = VERSION_NAME
@@ -51,6 +51,10 @@ dependencies {
5151
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
5252
}
5353

54+
task androidSourcesJar(type: Jar) {
55+
archiveClassifier.set('sources')
56+
from android.sourceSets.main.java.srcDirs
57+
}
5458

5559
// Because the components are created only during the afterEvaluate phase, you must
5660
// configure your publications using the afterEvaluate() lifecycle method.
@@ -61,6 +65,7 @@ afterEvaluate {
6165
release(MavenPublication) {
6266
// Applies the component for the release build variant.
6367
from components.release
68+
artifact androidSourcesJar
6469

6570
// You can then customize attributes of the publication as shown below.
6671
groupId = group

0 commit comments

Comments
 (0)