Skip to content

Commit

Permalink
Fixed setValue method overloading issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeniu committed Oct 13, 2017
1 parent aeff455 commit 59211a8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repositories {
}
dependencies {
compile 'com.link184:respiration:0.2.4'
compile 'com.link184:respiration:0.2.5'
}
```

Expand All @@ -30,7 +30,7 @@ Maven:
<dependency>
<groupId>com.link184</groupId>
<artifactId>respiration</artifactId>
<version>0.2.4</version>
<version>0.2.5</version>
<type>pom</type>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion respiration/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 59211a8

Please sign in to comment.