Skip to content
This repository was archived by the owner on Dec 17, 2020. It is now read-only.

Commit 0c6480f

Browse files
committed
Small cleanup and demo compile fix
1 parent 0c2af94 commit 0c6480f

File tree

4 files changed

+10
-43
lines changed

4 files changed

+10
-43
lines changed

annotations-processor/build.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,11 @@ apply plugin: 'java'
55
sourceCompatibility = JavaVersion.VERSION_1_7
66
targetCompatibility = JavaVersion.VERSION_1_7
77

8-
9-
/**
10-
* Upload new library version:
11-
* > gradlew install
12-
* > gradlew bintrayUpload
13-
*/
14-
15-
168
//Without this line the Bintray upload will fail as it uses the module directory name as artifactId
179
archivesBaseName = POM_ARTIFACT_ID
1810
group = GROUP
1911
version = VERSION_NAME
2012

21-
22-
2313
dependencies {
2414
compile fileTree(include: ['*.jar'], dir: 'libs')
2515
compile project(':annotations')

annotations/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ apply plugin: 'java'
55
sourceCompatibility = JavaVersion.VERSION_1_7
66
targetCompatibility = JavaVersion.VERSION_1_7
77

8+
//Without this line the Bintray upload will fail as it uses the module directory name as artifactId
9+
archivesBaseName = POM_ARTIFACT_ID
10+
group = GROUP
11+
version = VERSION_NAME
12+
813
dependencies {
914
compile fileTree(dir: 'libs', include: ['*.jar'])
1015

demo/src/main/java/org/neotech/app/retainabletasksdemo/activity/ProgressTaskHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ public void execute(){
3434
}
3535

3636
@TaskAttach(TASK_PROGRESS)
37-
public void onAttach(SimpleTask task){
37+
public void onAttach(Task task){
3838
// Task attaches, make sure to show the progress dialog and update the progress if needed.
3939
progressDialog = ProgressDialog.showIfNotShowing(demoActivityAnnotations.getSupportFragmentManager(), DIALOG_PROGRESS);
4040
if(task.getLastKnownProgress() != null) {
41-
progressDialog.setProgress(task.getLastKnownProgress());
41+
progressDialog.setProgress((Integer) task.getLastKnownProgress());
4242
}
4343
}
4444

library/build.gradle

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

3-
//ext {
4-
/**
5-
* Upload new library version:
6-
* > gradlew install
7-
* > gradlew bintrayUpload
8-
*/
3+
// To upload new artifact to maven:
4+
// > gradlew install
5+
// > gradlew bintrayUpload
96

10-
/*
11-
12-
bintrayRepo = 'maven'
13-
bintrayName = 'android-retainable-tasks' //Should match the name of the Bintray online repository
14-
15-
//Maven metadata
16-
publishedGroupId = 'org.neotech.library'
17-
libraryName = 'Android-Retainable-Tasks'
18-
artifact = 'android-retainable-tasks'
19-
20-
libraryDescription = 'Android-Retainable-Tasks is an easy to use mini-library for easy asynchronous background tasking with callback support to the UI. This library is based on the Android AsyncTask implementation but with support for retaining tasks and therefore surviving configuration changes (orientation).'
21-
libraryVersion = '1.0.0-alpha-1'
22-
23-
siteUrl = 'https://github.com/NeoTech-Software/Android-Retainable-Tasks'
24-
gitUrl = 'https://github.com/NeoTech-Software/Android-Retainable-Tasks.git'
25-
26-
developerId = 'rolf-smit'
27-
developerName = 'Rolf Smit'
28-
developerEmail = '[email protected]'
29-
30-
licenseName = 'The Apache Software License, Version 2.0'
31-
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
32-
allLicenses = ["Apache-2.0"]
33-
}
34-
*/
357

368
//Without this line the Bintray upload will fail as it uses the module directory name as artifactId
379
archivesBaseName = POM_ARTIFACT_ID

0 commit comments

Comments
 (0)