Difference between revisions of "Binaries and downloads"

From Neurotech Software Development Kit
Jump to: navigation, search
(Notes)
(Android)
Line 10: Line 10:
  
 
=Android=
 
=Android=
Standard and extended versions of SDK have different ways of publishing libraries
+
Android software development kit libraries for NeuroMD devices could be linked into project from JCenter repository, or could be downloaded as .aar files from server
==Base version of SDK==
+
===JCenter repository===
You are able to get neuro-sdk for Android development through JitPack or by downloading latest aar library from direct link
+
Extended SDK binaries could be obtained from JCenter repository. To use it, check if you have following lines in gradle script of your project
===JitPack===
 
To get a Git project into your build:
 
  
Step 1. Add the JitPack repository to your build file
+
<syntaxhighlight lang='bash'>
 +
allprojects {
 +
    repositories {
 +
        jcenter()
 +
  }
 +
}
 +
</syntaxhighlight>
  
Add it in your root build.gradle at the end of repositories:
+
To link Base SDK library to your project add following line to your dependencies list
 
<syntaxhighlight lang='bash'>
 
<syntaxhighlight lang='bash'>
allprojects {
+
compile 'com.neuromd.neurosdk:neuro-sdk:1.0'
repositories {
 
...
 
maven { url 'https://jitpack.io' }
 
}
 
}
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
+
To link Extended SDK library to your project add following line to your dependencies list
Step 2. Add the dependency
 
 
 
 
<syntaxhighlight lang='bash'>
 
<syntaxhighlight lang='bash'>
dependencies {
+
compile 'com.neuromd.neurosdk:neuro-sdk-ext:1.0.1'
implementation 'com.github.NeuroMD:neuro-sdk:1.0'
 
}
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
That's it! The first time you request a project JitPack checks out the code, builds it and serves the build artifacts.
+
===Binaries download===
 +
Use the following link to get latest vesion of extended SDK library:
  
===Binaries download links===
+
===Base SDK versions===
Following links could be used to obtain SDK libraries
 
  
 
[[File:Libneurosdk-release-1.0.aar|Libneurosdk-release-1.0.aar]]
 
[[File:Libneurosdk-release-1.0.aar|Libneurosdk-release-1.0.aar]]
Line 51: Line 46:
  
 
==Extended SDK versions==
 
==Extended SDK versions==
===JCenter repository===
 
Extended SDK binaries could be obtained from JCenter repository. To use it, check if you have following lines in gradle script of your project
 
 
<syntaxhighlight lang='bash'>
 
allprojects {
 
    repositories {
 
        jcenter()
 
  }
 
}
 
</syntaxhighlight>
 
 
To link Extended SDK library to your project add following line to your dependencies list
 
<syntaxhighlight lang='bash'>
 
compile 'com.neuromd.neurosdk:neuro-sdk-ext:1.0.1'
 
</syntaxhighlight>
 
 
===Binaries download===
 
Use the following link to get latest vesion of extended SDK library:
 
  
 
[[File:Neuro-sdk-ext-1.0.1.aar]]
 
[[File:Neuro-sdk-ext-1.0.1.aar]]

Revision as of 06:32, 8 June 2018

Current stable version is 1.0

Current stable version of extended SDK is 1.0.1


Previous versions

0.17
0.16
0.15

Android

Android software development kit libraries for NeuroMD devices could be linked into project from JCenter repository, or could be downloaded as .aar files from server

JCenter repository

Extended SDK binaries could be obtained from JCenter repository. To use it, check if you have following lines in gradle script of your project

allprojects {
    repositories {
        jcenter()
   }
}

To link Base SDK library to your project add following line to your dependencies list

compile 'com.neuromd.neurosdk:neuro-sdk:1.0'

To link Extended SDK library to your project add following line to your dependencies list

compile 'com.neuromd.neurosdk:neuro-sdk-ext:1.0.1'

Binaries download

Use the following link to get latest vesion of extended SDK library:

Base SDK versions

File:Libneurosdk-release-1.0.aar

Previous versions

File:Libneurosdk-release-0.17.aar

File:Libneurosdk-release.aar

Extended SDK versions

File:Neuro-sdk-ext-1.0.1.aar

Previous versions

File:Neuro-sdk-ext-0.17.1.aar

File:Neuro-sdk-ext-0.16.1.aar

Including aar library to your project

To include aar library as module to existing project in Android Studio do the following steps:

1. Go to File->New->New module

Wiki-manual-1.png


2. Select 'Import .JAR/.AAR Package' and click 'Next'

Wiki-manual-2.png


3. Specify path of downloaded library and choose name for module

Wiki-manual-3.png


4. If module been not added to project automatically, go to settings.gradle file and add new module

Wiki-manual-4.png


5. Add module to project dependencies

Wiki-manual-5.png

Notes

Constructor of DeviceScanner class needs Context object to get access to Bluetooth system service. All operations with Bluetooth data are performed in main UI thread of application, so doing too much work in it may cause connection issues and data packets loss.