Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cordova-background-geolocation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Aksimaya
cordova-background-geolocation
Commits
cd3a21b6
Commit
cd3a21b6
authored
Aug 03, 2015
by
Chris Scott
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #125 from christocracy/gradle
Gradle
parents
ea71a5b3
4f1a1c95
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
4 deletions
+40
-4
plugin.xml
plugin.xml
+3
-3
CDVBackgroundGeolocation.java
src/android/CDVBackgroundGeolocation.java
+6
-1
build.gradle
src/android/build.gradle
+31
-0
eventbus-2.4.0.jar
src/android/libs/eventbus-2.4.0.jar
+0
-0
transistor-locationmanager.jar
src/android/libs/transistor-locationmanager.jar
+0
-0
tslocationmanager.aar
src/android/libs/tslocationmanager.aar
+0
-0
No files found.
plugin.xml
View file @
cd3a21b6
...
...
@@ -27,9 +27,9 @@
<!-- android -->
<platform
name=
"android"
>
<framework
src=
"
com.google.android.gms:play-services-location:7.3.0
"
/>
<
source-file
src=
"src/android/libs/eventbus-2.4.0.jar"
target-dir=
"libs
"
/>
<source-file
src=
"src/android/libs/transistor-locationmanager.jar"
target-dir=
"libs"
/>
<framework
src=
"
src/android/build.gradle"
custom=
"true"
type=
"gradleReference
"
/>
<
resource-file
src=
"src/android/libs/tslocationmanager.aar"
target=
"src/android/libs/tslocationmanager.aar
"
/>
<source-file
src=
"src/android/CDVBackgroundGeolocation.java"
target-dir=
"src/com/transistorsoft/cordova/bggeo"
/>
<source-file
src=
"src/android/BootReceiver.java"
target-dir=
"src/com/transistorsoft/cordova/bggeo"
/>
...
...
src/android/CDVBackgroundGeolocation.java
View file @
cd3a21b6
...
...
@@ -20,6 +20,7 @@ import android.app.AlertDialog;
import
android.content.DialogInterface
;
import
de.greenrobot.event.EventBus
;
import
de.greenrobot.event.Subscribe
;
import
android.app.Activity
;
import
android.content.Intent
;
import
android.content.SharedPreferences
;
...
...
@@ -448,6 +449,7 @@ public class CDVBackgroundGeolocation extends CordovaPlugin {
* EventBus listener for Event Bundle
* @param {Bundle} event
*/
@Subscribe
public
void
onEventMainThread
(
Bundle
event
)
{
if
(
event
.
containsKey
(
"request"
))
{
return
;
...
...
@@ -535,6 +537,7 @@ public class CDVBackgroundGeolocation extends CordovaPlugin {
* EventBus listener for ARS
* @param {ActivityRecognitionResult} result
*/
@Subscribe
public
void
onEventMainThread
(
ActivityRecognitionResult
result
)
{
currentActivity
=
result
.
getMostProbableActivity
();
...
...
@@ -554,6 +557,7 @@ public class CDVBackgroundGeolocation extends CordovaPlugin {
* EventBus listener
* @param {Location} location
*/
@Subscribe
public
void
onEventMainThread
(
Location
location
)
{
JSONObject
locationData
=
BackgroundGeolocationService
.
locationToJson
(
location
,
currentActivity
,
isMoving
);
this
.
onLocationChange
(
locationData
);
...
...
@@ -587,7 +591,8 @@ public class CDVBackgroundGeolocation extends CordovaPlugin {
}
/**
* EventBus handler for Geofencing events
*/
*/
@Subscribe
public
void
onEventMainThread
(
GeofencingEvent
geofenceEvent
)
{
Log
.
i
(
TAG
,
"- Rx GeofencingEvent: "
+
geofenceEvent
);
...
...
src/android/build.gradle
0 → 100644
View file @
cd3a21b6
android
{
compileSdkVersion
22
buildToolsVersion
"22.0.1"
defaultConfig
{
minSdkVersion
15
targetSdkVersion
22
versionCode
1
versionName
"1.0"
}
buildTypes
{
release
{
minifyEnabled
false
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
}
}
}
repositories
{
jcenter
()
flatDir
{
dirs
'src/android/libs'
}
}
dependencies
{
compile
'com.google.android.gms:play-services:7.5.0'
compile
'de.greenrobot:eventbus:3.0.0-beta1'
compile
(
name:
'tslocationmanager'
,
ext:
'aar'
)
}
src/android/libs/eventbus-2.4.0.jar
deleted
100644 → 0
View file @
ea71a5b3
File deleted
src/android/libs/transistor-locationmanager.jar
deleted
100644 → 0
View file @
ea71a5b3
File deleted
src/android/libs/tslocationmanager.aar
0 → 100644
View file @
cd3a21b6
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment