diff --git a/readme.md b/readme.md index fd29f8a..efe4648 100644 --- a/readme.md +++ b/readme.md @@ -20,7 +20,7 @@ repositories { } dependencies { - compile 'com.link184:respiration:0.2.4' + compile 'com.link184:respiration:0.2.5' } ``` @@ -30,7 +30,7 @@ Maven: com.link184 respiration - 0.2.4 + 0.2.5 pom ``` diff --git a/respiration/build.gradle b/respiration/build.gradle index 11965ab..bf614cc 100644 --- a/respiration/build.gradle +++ b/respiration/build.gradle @@ -36,7 +36,7 @@ ext { siteUrl = 'https://github.com/Link184/Respiration' gitUrl = 'https://github.com/Link184/Respiration.git' - libraryVersion = '0.2.4' + libraryVersion = '0.2.5' developerId = 'link184' developerName = 'Eugeniu Tufar' diff --git a/respiration/src/main/java/com/link184/respiration/repository/GeneralRepository.java b/respiration/src/main/java/com/link184/respiration/repository/GeneralRepository.java index 1d13260..76098bd 100644 --- a/respiration/src/main/java/com/link184/respiration/repository/GeneralRepository.java +++ b/respiration/src/main/java/com/link184/respiration/repository/GeneralRepository.java @@ -1,6 +1,5 @@ package com.link184.respiration.repository; -import com.google.android.gms.tasks.OnCompleteListener; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseReference; @@ -72,7 +71,7 @@ public void setValue(M newValue) { databaseReference.setValue(newValue); } - public void setValue(M newValue, OnCompleteListener onCompleteListener) { + public void setValue(M newValue, com.google.firebase.database.DatabaseReference.CompletionListener onCompleteListener) { databaseReference.setValue(newValue, onCompleteListener); } diff --git a/respiration/src/main/java/com/link184/respiration/repository/ListRepository.java b/respiration/src/main/java/com/link184/respiration/repository/ListRepository.java index bf94a41..9e88835 100644 --- a/respiration/src/main/java/com/link184/respiration/repository/ListRepository.java +++ b/respiration/src/main/java/com/link184/respiration/repository/ListRepository.java @@ -1,6 +1,5 @@ package com.link184.respiration.repository; -import com.google.android.gms.tasks.OnCompleteListener; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseReference; @@ -116,7 +115,7 @@ public final void setValue(T newValue) { databaseReference.push().setValue(newValue); } - public final void setValue(T newValue, OnCompleteListener onCompleteListener) { + public final void setValue(T newValue, com.google.firebase.database.DatabaseReference.CompletionListener onCompleteListener) { databaseReference.push().setValue(newValue, onCompleteListener); }