Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,28 @@ Setup for Pathsense Android SDK

3. Save AndroidManifest.xml.

4. Place **pathsense-android-sdk-bundle-release-2.3.0.0.aar** under **/libs**
4. Add new module **pathsense-android-sdk**

5. In **build.gradle**, add the following:
* create folder **pathsense-android-sdk** to root

* add ```':pathsense-android-sdk'``` module to **settings.gradle**

* to the **repositories** element:

5. Place **pathsense-android-sdk-bundle-release-2.3.0.0.aar** in module **pathsense-android-sdk**

6. In module **pathsense-android-sdk** create file **build.gradle**
```groovy
repositories {
flatDir {
dirs 'libs'
}
}
configurations.maybeCreate("default")
artifacts.add("default", file('pathsense-android-sdk-bundle-release-2.3.0.0.aar'))
```


7. Add dependency to your module

* to the **dependencies** element:

```groovy
compile(name:'pathsense-android-sdk-bundle-release-2.3.0.0', ext:'aar')
compile project(':pathsense-android-sdk')
```

6. Save build.gradle.

7. Re-build application.
8. Re-build application.
20 changes: 4 additions & 16 deletions pathsense-activitydemo-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,17 @@ Setup for Pathsense Activity Demo

3. Save AndroidManifest.xml.

4. Place **pathsense-android-sdk-bundle-release-2.3.0.0.aar** under **/libs**

5. In **build.gradle**, add the following:

* to the **repositories** element:

```groovy
repositories {
flatDir {
dirs 'libs'
}
}
```
4. In **build.gradle**, add the following:

* to the **dependencies** element:

```groovy
compile(name:'pathsense-android-sdk-bundle-release-2.3.0.0', ext:'aar')
compile project(':pathsense-android-sdk')
```

6. Save build.gradle.
5. Save build.gradle.

7. Re-build application.
6. Re-build application.

Requesting Activity Updates
-------------
Expand Down
8 changes: 1 addition & 7 deletions pathsense-activitydemo-app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
apply plugin: 'com.android.application'

repositories {
flatDir {
dirs 'libs'
}
}

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
Expand All @@ -26,6 +20,6 @@ android {
}

dependencies {
compile(name:'pathsense-android-sdk-bundle-release-2.3.0.0', ext:'aar')
compile project(':pathsense-android-sdk')
compile 'com.android.support:appcompat-v7:22.1.1'
}
2 changes: 2 additions & 0 deletions pathsense-android-sdk/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('pathsense-android-sdk-bundle-release-2.3.0.0.aar'))
20 changes: 4 additions & 16 deletions pathsense-geofencedemo-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,17 @@ Setup for Pathsense Geofence Demo

4. Save AndroidManifest.xml.

5. Place **pathsense-android-sdk-bundle-release-2.3.0.0.aar** under **/libs**

6. In **build.gradle**, add the following:

* to the **repositories** element:

```groovy
repositories {
flatDir {
dirs 'libs'
}
}
```
5. In **build.gradle**, add the following:

* to the **dependencies** element:

```groovy
compile(name:'pathsense-android-sdk-bundle-release-2.3.0.0', ext:'aar')
compile project(':pathsense-android-sdk')
```

7. Save build.gradle.
6. Save build.gradle.

8. Re-build application.
7. Re-build application.

Adding a Geofence
-------------
Expand Down
8 changes: 1 addition & 7 deletions pathsense-geofencedemo-app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
apply plugin: 'com.android.application'

repositories {
flatDir {
dirs 'libs'
}
}

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
Expand All @@ -26,7 +20,7 @@ android {
}

dependencies {
compile(name:'pathsense-android-sdk-bundle-release-2.3.0.0', ext:'aar')
compile project(':pathsense-android-sdk')
compile 'com.android.support:appcompat-v7:22.1.1'
compile "com.google.android.gms:play-services-maps:7.5.0"
}
Empty file.
22 changes: 5 additions & 17 deletions pathsense-invehiclelocationdemo-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,17 @@ Setup for Pathsense In-Vehicle Location Demo

4. Save AndroidManifest.xml.

5. Place **pathsense-android-sdk-bundle-release-2.3.0.0.aar** under **/libs**

6. In **build.gradle**, add the following:

* to the **repositories** element:

```groovy
repositories {
flatDir {
dirs 'libs'
}
}
```

5. In **build.gradle**, add the following:

* to the **dependencies** element:

```groovy
compile(name:'pathsense-android-sdk-bundle-release-2.3.0.0', ext:'aar')
compile project(':pathsense-android-sdk')
```

7. Save build.gradle.
6. Save build.gradle.

8. Re-build application.
7. Re-build application.

Requesting In-Vehicle Location Updates
-------------
Expand Down
8 changes: 1 addition & 7 deletions pathsense-invehiclelocationdemo-app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
apply plugin: 'com.android.application'

repositories {
flatDir {
dirs 'libs'
}
}

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
Expand All @@ -26,7 +20,7 @@ android {
}

dependencies {
compile(name:'pathsense-android-sdk-bundle-release-2.3.0.0', ext:'aar')
compile project(':pathsense-android-sdk')
compile 'com.android.support:appcompat-v7:22.1.1'
compile "com.google.android.gms:play-services-maps:7.5.0"
}
Empty file.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':pathsense-activitydemo-app', ':pathsense-geofencedemo-app', ':pathsense-invehiclelocationdemo-app'
include ':pathsense-activitydemo-app', ':pathsense-geofencedemo-app', ':pathsense-invehiclelocationdemo-app', ':pathsense-android-sdk'