Skip to content

Commit 8cf85b4

Browse files
committed
[Fixed] Android bug in params order to getLog. Thanks. [Fixed] Typo in Javascript API callback in . Thanks @mikehardy.
1 parent b183816 commit 8cf85b4

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 3.3.2 - 2019-10-25
4+
- [Fixed] Android bug in params order to getLog. Thanks @mikehardy.
5+
- [Fixed] Typo in Javascript API callback in `destroyLog`. Thanks @mikehardy.
6+
37
## 3.3.1 - 2019-10-23
48
- [Fixed] Android NPE
59
```

android/src/main/java/com/transistorsoft/rnbackgroundgeolocation/RNBackgroundGeolocationModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ public void playSound(String soundId) {
762762
}
763763

764764
@ReactMethod
765-
public void getLog(final Callback success, ReadableMap params, final Callback failure) {
765+
public void getLog(ReadableMap params, final Callback success, final Callback failure) {
766766
SQLQuery query = parseSQLQuery(params);
767767

768768
TSLog.getLog(query, new TSGetLogCallback() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-background-geolocation",
3-
"version": "3.3.1",
3+
"version": "3.3.2",
44
"description": "The most sophisticated cross-platform background location-tracking & geofencing module with battery-conscious motion-detection intelligence",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

src/Logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default class Logger {
8282

8383
static destroyLog() {
8484
return new Promise((resolve, reject) => {
85-
let success = (sucess) => { resolve(sucesss) }
85+
let success = (success) => { resolve(success) }
8686
let failure = (error) => { reject(error) }
8787
RNBackgroundGeolocation.destroyLog(success, failure);
8888
});

src/declarations/interfaces/Logger.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/// <reference path="../types.d.ts" />
2+
/// <reference path="./SQLQuery.d.ts" />
3+
14
declare module "react-native-background-geolocation" {
25
/**
36
* # Logger API

0 commit comments

Comments
 (0)