Skip to content

Commit

Permalink
Document jitpack.io usage and drop precompiled folder/task
Browse files Browse the repository at this point in the history
  • Loading branch information
schlusslicht committed Jan 9, 2021
1 parent 5f89dc3 commit 4474160
Show file tree
Hide file tree
Showing 29 changed files with 7 additions and 125 deletions.
Binary file removed Precompiled/sensorlib-debug.aar
Binary file not shown.
Binary file removed Precompiled/sensorlibutils-debug.aar
Binary file not shown.
Binary file removed Precompiled/sensorlibutils-release.aar
Binary file not shown.
Binary file removed Precompiled/sls-empatica-debug.aar
Binary file not shown.
Binary file removed Precompiled/sls-fitnessshirt-debug.aar
Binary file not shown.
Binary file removed Precompiled/sls-fitnessshirt-release.aar
Binary file not shown.
Binary file removed Precompiled/sls-muse-debug.aar
Binary file not shown.
Binary file removed Precompiled/sls-muse-release.aar
Binary file not shown.
Binary file removed Precompiled/sls-myo-debug.aar
Binary file not shown.
Binary file removed Precompiled/sls-portabiles-debug.aar
Binary file not shown.
Binary file removed Precompiled/sls-shimmer-debug.aar
Binary file not shown.
Binary file removed Precompiled/sls-shimmer-release.aar
Binary file not shown.
Binary file removed Precompiled/sls-simblee-debug.aar
Binary file not shown.
Binary file removed Precompiled/sls-smartband2-debug.aar
Binary file not shown.
Binary file removed Precompiled/sls-smartwatch-debug.aar
Binary file not shown.
Binary file removed Precompiled/sls-tek-debug.aar
Binary file not shown.
Binary file removed Precompiled/sls-tek-release.aar
Binary file not shown.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,18 @@ Right now, the following external libraries are required to compile all sensor m
## Minimal example
Using the SensorLib is very easy.

First, you have to include the sensorlib.aar and the respective sensor-submodule you want to use into your build.gradle file. To do this, just add the following line to your build.gradle:
First, you have to include the Jitpack.io maven repository to your project build.grade file and then add the sensorlib and the respective sensor-submodule you want to use into your module build.gradle file. To do this, just add the following line to the respective files:
```
# build.gradle
repositories {
flatDir {
dirs 'libs'
}
maven { url 'https://jitpack.io' }
}
...
# app/build.gradle
dependencies {
...
compile(name: 'sensorlib', ext: 'aar')
compile(name: 'sls-tek', ext: 'aar')
implementation 'com.github.mad-lab-fau.sensorlib:sensorlib:0.15.7'
implementation 'com.github.mad-lab-fau.sensorlib:sls-tek:0.15.7'
...
}
```
Expand Down
3 changes: 0 additions & 3 deletions SensorLib/sensorlib/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,3 @@ captures/

# Keystore files
*.jks

# Exclude Precompiled sensorlib libraries
Precompiled
11 changes: 0 additions & 11 deletions SensorLib/sensorlib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,3 @@ dependencies {
implementation 'com.xeoh.android:checkboxgroup:1.0.1'

}

tasks.create(name: 'copyApk', type: Copy) {
from 'build/outputs/aar'
into '../../Precompiled'
}

tasks.whenTaskAdded { task ->
if (task.name == 'mockableAndroidJar') {
task.dependsOn 'copyApk'
}
}
11 changes: 0 additions & 11 deletions SensorLib/sensorlibutils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,3 @@ dependencies {
implementation project(path: ':sensorlib')
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
}

tasks.create(name: 'copyApk', type: Copy) {
from 'build/outputs/aar'
into '../../Precompiled'
}

tasks.whenTaskAdded { task ->
if (task.name == 'mockableAndroidJar') {
task.dependsOn 'copyApk'
}
}
11 changes: 0 additions & 11 deletions SensorLib/sls-fitnessshirt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,3 @@ dependencies {
implementation project(path: ':sensorlib')
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
}

tasks.create(name: 'copyApk', type: Copy) {
from 'build/outputs/aar'
into '../../Precompiled'
}

tasks.whenTaskAdded { task ->
if (task.name == 'mockableAndroidJar') {
task.dependsOn 'copyApk'
}
}
11 changes: 0 additions & 11 deletions SensorLib/sls-muse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,3 @@ dependencies {
implementation project(path: ':sensorlib')
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
}

tasks.create(name: 'copyApk', type: Copy) {
from 'build/outputs/aar'
into '../../Precompiled'
}

tasks.whenTaskAdded { task ->
if (task.name == 'mockableAndroidJar') {
task.dependsOn 'copyApk'
}
}
12 changes: 0 additions & 12 deletions SensorLib/sls-portabiles/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,3 @@ dependencies {
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'no.nordicsemi.android:dfu:1.9.0'
}


tasks.create(name: 'copyApk', type: Copy) {
from 'build/outputs/aar'
into '../../Precompiled'
}

tasks.whenTaskAdded { task ->
if (task.name == 'mockableAndroidJar') {
task.dependsOn 'copyApk'
}
}
13 changes: 1 addition & 12 deletions SensorLib/sls-shimmer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {
versionCode 1
versionName "1.0"
}

lintOptions {
abortOnError false
}
Expand All @@ -34,14 +34,3 @@ dependencies {
implementation group: 'java3d', name: 'vecmath', version: '1.3.1'

}

tasks.create(name: 'copyApk', type: Copy) {
from 'build/outputs/aar'
into '../../Precompiled'
}

tasks.whenTaskAdded { task ->
if (task.name == 'mockableAndroidJar') {
task.dependsOn 'copyApk'
}
}
12 changes: 0 additions & 12 deletions SensorLib/sls-simblee/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,3 @@ dependencies {
implementation project(path: ':sensorlib')
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
}


tasks.create(name: 'copyApk', type: Copy) {
from 'build/outputs/aar'
into '../../Precompiled'
}

tasks.whenTaskAdded { task ->
if (task.name == 'mockableAndroidJar') {
task.dependsOn 'copyApk'
}
}
12 changes: 0 additions & 12 deletions SensorLib/sls-smartband2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,3 @@ dependencies {
implementation project(path: ':sensorlib')
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
}


tasks.create(name: 'copyApk', type: Copy) {
from 'build/outputs/aar'
into '../../Precompiled'
}

tasks.whenTaskAdded { task ->
if (task.name == 'mockableAndroidJar') {
task.dependsOn 'copyApk'
}
}
11 changes: 0 additions & 11 deletions SensorLib/sls-smartwatch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,3 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
implementation 'com.google.android.gms:play-services-wearable:16.0.1'
}

tasks.create(name: 'copyApk', type: Copy) {
from 'build/outputs/aar'
into '../../Precompiled'
}

tasks.whenTaskAdded { task ->
if (task.name == 'mockableAndroidJar') {
task.dependsOn 'copyApk'
}
}
11 changes: 0 additions & 11 deletions SensorLib/sls-tek/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,3 @@ dependencies {
implementation project(path: ':sensorlib')
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
}

tasks.create(name: 'copyApk', type: Copy) {
from 'build/outputs/aar'
into '../../Precompiled'
}

tasks.whenTaskAdded { task ->
if (task.name == 'mockableAndroidJar') {
task.dependsOn 'copyApk'
}
}

0 comments on commit 4474160

Please sign in to comment.