Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Code to publish the library on jCenter.
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Aug 10, 2015
1 parent 0863bc9 commit e2324f5
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 13 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
Android Myo library by darken is an opensource Android library to communicate with Myo devices
Android Myo library by darken is an open source Android library to communicate with Myo devices

It was created for a research project at the [mHealth - Uniklinik RWTH Aachen](https://mhealth.imib.rwth-aachen.de) deparment. The projected required receiving sensor data (Gyro, Accl., EMG) from multiple Myo devices simultaneously, which is currently not possible through the official Android SDK for Myo from Thalmic Labs.
It was created for a research project at the [mHealth - Uniklinik RWTH Aachen](https://mhealth.imib.rwth-aachen.de) deparment. The projected required receiving sensor data (Gyro, Accl., EMG) from multiple Myo devices simultaneously, which was not possible at that time (August 2015) through the official Android SDK for Myo from Thalmic Labs.

Contributions are welcome. If you submit pull-requests please adhere to the projects current coding style.
If you are using this library, i would love mention your project here, feel free to contact me.

# Quickstart
# Setup
Include this in your apps build.grade file:
```java
compile 'eu.darken.myolib:myolib:0.0.1'
```

# Examples
## Utilizing callbacks
```java
MyoConnector connector = new MyoConnector(getContext());
Expand Down
9 changes: 3 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.3.1'
}
}

Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Jul 31 11:38:55 CEST 2015
#Mon Aug 10 13:37:58 CEST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-bin.zip
34 changes: 32 additions & 2 deletions myolib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,41 @@
apply plugin: 'com.android.library'

def myVersionName = "0.0.1"
def myVersionCode = 1

ext {
bintrayRepo = 'maven'
bintrayName = 'myolib'

publishedGroupId = 'eu.darken.myolib'
libraryName = 'Android Myo library by darken'
artifact = 'myolib'

libraryDescription = 'An open source Android library to communicate with Myo devices.'

siteUrl = 'https://github.com/d4rken/myolib'
gitUrl = 'https://github.com/d4rken/myolib.git'

libraryVersion = myVersionName

developerId = 'darken'
developerName = 'Matthias Urhahn'
developerEmail = 'darken@darken.eu'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"

defaultConfig {
minSdkVersion 18
targetSdkVersion 22
versionCode 1
versionName "0.1"
versionCode myVersionCode
versionName myVersionName
}
buildTypes {
release {
Expand All @@ -22,3 +49,6 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-annotations:22.2.1'
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

0 comments on commit e2324f5

Please sign in to comment.