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

Commit

Permalink
Remove some more Android references
Browse files Browse the repository at this point in the history
  • Loading branch information
samtstern committed Jun 11, 2019
1 parent d8c91b9 commit f9ffc05
Show file tree
Hide file tree
Showing 27 changed files with 14 additions and 675 deletions.
8 changes: 1 addition & 7 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,7 @@
<dependency>
<groupId>com.google.firebase</groupId>
<artifactId>firebase-admin</artifactId>
<version>[5.3.0,)</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>2.2.1</version>
<version>[6.0.0,)</version>
<scope>provided</scope>
</dependency>

Expand Down
17 changes: 0 additions & 17 deletions common/src/main/java/com/firebase/geofire/AndroidEventRaiser.java

This file was deleted.

26 changes: 11 additions & 15 deletions common/src/main/java/com/firebase/geofire/GeoFire.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,20 @@

package com.firebase.geofire;

import static com.firebase.geofire.util.GeoUtils.capRadius;

import com.firebase.geofire.core.GeoHash;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.ValueEventListener;
import com.google.firebase.database.GenericTypeIndicator;
import java.lang.Throwable;
import java.util.*;
import com.google.firebase.database.ValueEventListener;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;

import static com.firebase.geofire.util.GeoUtils.capRadius;

/**
* A GeoFire instance is used to store geo location data in Firebase.
*/
Expand Down Expand Up @@ -123,14 +125,7 @@ public static GeoLocation getLocationValue(DataSnapshot dataSnapshot) {
*/
public GeoFire(DatabaseReference databaseReference) {
this.databaseReference = databaseReference;
EventRaiser eventRaiser;
try {
eventRaiser = new AndroidEventRaiser();
} catch (Throwable e) {
// We're not on Android, use the ThreadEventRaiser
eventRaiser = new ThreadEventRaiser();
}
this.eventRaiser = eventRaiser;
this.eventRaiser = new ThreadEventRaiser();
}

/**
Expand Down Expand Up @@ -179,7 +174,8 @@ public void onComplete(DatabaseError databaseError, DatabaseReference databaseRe
}
});
} else {
keyRef.setValue(updates, geoHash.getGeoHashString());
Object priority = geoHash.getGeoHashString();
keyRef.setValueAsync(updates, priority);
}
}

Expand Down Expand Up @@ -212,7 +208,7 @@ public void onComplete(DatabaseError databaseError, DatabaseReference databaseRe
}
});
} else {
keyRef.setValue(null);
keyRef.removeValueAsync();
}
}

Expand Down
4 changes: 0 additions & 4 deletions examples/SFVehicles/.gitignore

This file was deleted.

24 changes: 0 additions & 24 deletions examples/SFVehicles/README.md

This file was deleted.

1 change: 0 additions & 1 deletion examples/SFVehicles/SF Vehicles/.gitignore

This file was deleted.

55 changes: 0 additions & 55 deletions examples/SFVehicles/SF Vehicles/build.gradle

This file was deleted.

17 changes: 0 additions & 17 deletions examples/SFVehicles/SF Vehicles/proguard-rules.txt

This file was deleted.

36 changes: 0 additions & 36 deletions examples/SFVehicles/SF Vehicles/src/main/AndroidManifest.xml

This file was deleted.

Loading

0 comments on commit f9ffc05

Please sign in to comment.