Skip to content
Merged
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
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.apk
*.ap_
.externalNativeBuild
.cxx/

# Files for the Dalvik VM
*.dex
Expand Down Expand Up @@ -108,7 +109,7 @@ local.properties
# PDT-specific
.buildpath

# sbteclipse plugin
# sbteclipse plugin
.target

# TeXlipse plugin
Expand Down Expand Up @@ -301,4 +302,4 @@ DerivedData
ant.properties
build.xml
HVCW.jar
RobotLibrary.jar
RobotLibrary.jar
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ DeviceConnect-Androidのソースコードをダウンロードしてくださ
$ git clone https://github.com/DeviceConnect/DeviceConnect-Android.git
```

ビルド前にANDROID_HOMEの環境変数にAndroidSDKへのパスが設定されていることを確認してください
ビルド前にANDROID_SDK_ROOTの環境変数にAndroidSDKへのパスが設定されていることを確認してください

```
$ echo 'export ANDROID_HOME=<path>' >> ~/.bash_profile
$ echo 'export ANDROID_SDK_ROOT=<path>' >> ~/.bash_profile
```

&lt;path&gt;には、AndroidSDKへのパスを指定してください。
Expand All @@ -49,7 +49,7 @@ $ ./gradlew assembleDebug
Device Connect Managerを端末にインストールします。

```
$ adb install app/build/outputs/apk/app-debug.apk
$ adb install dconnect-manager-app/build/outputs/apk/debug/dconnect-manager-app-debug.apk
```

### Windows
Expand Down
10 changes: 7 additions & 3 deletions dConnectDevicePlugin/dConnectDeviceAndroidWear/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

dependencies {
implementation fileTree(include: '*.jar', dir: 'libs')
implementation 'org.deviceconnect:dconnect-device-plugin-sdk:2.5.2'
implementation 'org.deviceconnect:dconnect-device-plugin-sdk:2.8.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.android.gms:play-services-wearable:15.0.1'

Expand All @@ -17,7 +17,7 @@ dependencies {

android {

compileSdkVersion 28
compileSdkVersion 29

def getVersionName = { ->
def version
Expand All @@ -33,7 +33,7 @@ android {
defaultConfig {
applicationId "org.deviceconnect.android.deviceplugin.wear"
minSdkVersion 23
targetSdkVersion 28
targetSdkVersion 29
versionCode 1
versionName getVersionName()
multiDexEnabled true
Expand Down Expand Up @@ -69,4 +69,8 @@ android {
checkReleaseBuilds false
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ apply plugin: 'com.android.application'


android {
compileSdkVersion 28
compileSdkVersion 29
defaultConfig {
applicationId "org.deviceconnect.android.deviceplugin.wear"
minSdkVersion 23
targetSdkVersion 28
targetSdkVersion 29
versionCode 1
versionName '2.0.0'
}
Expand Down Expand Up @@ -34,7 +34,10 @@ android {
checkReleaseBuilds false
abortOnError false
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
Expand Down
14 changes: 9 additions & 5 deletions dConnectDevicePlugin/dConnectDeviceChromeCast/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 26
compileSdkVersion 28

def getVersionName = { ->
def version
Expand All @@ -17,7 +17,7 @@ android {
defaultConfig {
applicationId "org.deviceconnect.android.deviceplugin.chromecast"
minSdkVersion 14
targetSdkVersion 26
targetSdkVersion 28
versionCode 1
versionName getVersionName()
}
Expand Down Expand Up @@ -48,6 +48,10 @@ android {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

repositories {
Expand All @@ -59,9 +63,9 @@ repositories {

dependencies {
implementation fileTree(include: '*.jar', dir: 'libs')
implementation 'org.deviceconnect:dconnect-device-plugin-sdk:2.5.1'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:mediarouter-v7:26.1.0'
implementation 'org.deviceconnect:dconnect-device-plugin-sdk:2.8.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.google.android.gms:play-services-cast-framework:11.8.0'
}

10 changes: 7 additions & 3 deletions dConnectDevicePlugin/dConnectDeviceFaBo/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 26
compileSdkVersion 29

def getVersionName = { ->
def version
Expand All @@ -16,7 +16,7 @@ android {

defaultConfig {
minSdkVersion 16
targetSdkVersion 26
targetSdkVersion 29
versionCode 1
versionName getVersionName()
}
Expand All @@ -41,6 +41,10 @@ android {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

repositories {
Expand All @@ -52,7 +56,7 @@ repositories {

dependencies {
implementation fileTree(include: '*.jar', dir: 'libs')
api 'org.deviceconnect:dconnect-device-plugin-sdk:2.5.2'
api 'org.deviceconnect:dconnect-device-plugin-sdk:2.8.0'
androidTestImplementation 'com.android.support.test:testing-support-lib:0.1'
androidTestImplementation 'org.hamcrest:hamcrest-library:1.3'
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
import org.deviceconnect.android.message.DConnectMessageService;
import org.deviceconnect.android.profile.DConnectProfile;
import org.deviceconnect.android.profile.SystemProfile;
import org.deviceconnect.android.profile.spec.DConnectProfileSpec;
import org.deviceconnect.android.profile.spec.DConnectServiceSpec;
import org.deviceconnect.android.profile.spec.models.Swagger;
import org.deviceconnect.android.service.DConnectService;

import java.util.ArrayList;
Expand Down Expand Up @@ -269,12 +270,6 @@ public VirtualService updateServiceData(final ServiceData serviceData) {
DConnectProfile profile = VirtualServiceFactory.createProfile(p);
if (profile != null) {
service.addProfile(profile);

DConnectProfileSpec profileSpec =
getPluginSpec().findProfileSpec(profile.getProfileName().toLowerCase());
if (profileSpec != null) {
profile.setProfileSpec(profileSpec);
}
profile.setContext(this);
}
}
Expand Down
8 changes: 6 additions & 2 deletions dConnectDevicePlugin/dConnectDeviceFaBo/plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 26
compileSdkVersion 29

def getVersionName = { ->
def version
Expand All @@ -17,7 +17,7 @@ android {
defaultConfig {
applicationId "org.deviceconnect.android.deviceplugin.fabo"
minSdkVersion 16
targetSdkVersion 26
targetSdkVersion 29
versionCode 1
versionName getVersionName()

Expand All @@ -44,6 +44,10 @@ android {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 26
compileSdkVersion 29

def getVersionName = { ->
def version
Expand All @@ -17,7 +17,7 @@ android {
defaultConfig {
applicationId "org.deviceconnect.android.deviceplugin.fabo"
minSdkVersion 16
targetSdkVersion 26
targetSdkVersion 29
versionCode 1
versionName getVersionName()

Expand All @@ -44,6 +44,10 @@ android {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
repositories {
maven { url 'https://raw.githubusercontent.com/DeviceConnect/DeviceConnect-Android/master/dConnectSDK/dConnectSDKForAndroid/repository/' }
Expand All @@ -55,5 +59,5 @@ repositories {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':app')
compileOnly 'com.google.android.things:androidthings:0.4-devpreview'
compileOnly 'com.google.android.things:androidthings:1.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.google.android.things.pio.Gpio;
import com.google.android.things.pio.GpioCallback;
import com.google.android.things.pio.I2cDevice;
import com.google.android.things.pio.PeripheralManagerService;
import com.google.android.things.pio.PeripheralManager;

import org.deviceconnect.android.deviceplugin.fabo.BuildConfig;
import org.deviceconnect.android.deviceplugin.fabo.device.FaBoDeviceControl;
Expand Down Expand Up @@ -113,7 +113,7 @@ public class FaBoThingsDeviceControl implements FaBoDeviceControl {
/**
* GPIO,I2cなどのデバイスを管理するクラス.
*/
private PeripheralManagerService mManagerService;
private PeripheralManager mManagerService;

/**
* GPIOの処理を行うハンドラ.
Expand All @@ -132,7 +132,7 @@ public void initialize() {
Log.i(TAG, "FaBoThingsDeviceControl::initialize");
}

mManagerService = new PeripheralManagerService();
mManagerService = PeripheralManager.getInstance();

initGpio();
}
Expand Down
11 changes: 8 additions & 3 deletions dConnectDevicePlugin/dConnectDeviceHOGP/plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

dependencies {
implementation fileTree(include: '*.jar', dir: 'libs')
implementation 'org.deviceconnect:dconnect-device-plugin-sdk:2.5.1'
implementation 'org.deviceconnect:dconnect-device-plugin-sdk:2.8.0'
}

repositories {
Expand All @@ -14,12 +14,12 @@ repositories {

android {

compileSdkVersion 28
compileSdkVersion 29

defaultConfig {
applicationId "org.deviceconnect.android.deviceplugin.hogp"
minSdkVersion 14
targetSdkVersion 28
targetSdkVersion 29
versionCode 1
versionName '1.0.0'
}
Expand Down Expand Up @@ -51,4 +51,9 @@ android {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

}
10 changes: 5 additions & 5 deletions dConnectDevicePlugin/dConnectDeviceHVC/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
compileSdkVersion 29

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

def getVersionName = { ->
Expand All @@ -22,7 +22,7 @@ android {
defaultConfig {
applicationId "org.deviceconnect.android.deviceplugin.hvc"
minSdkVersion 18
targetSdkVersion 28
targetSdkVersion 29
versionCode 1
versionName getVersionName()
}
Expand Down Expand Up @@ -64,5 +64,5 @@ repositories {

dependencies {
implementation fileTree(include: '*.jar', dir: 'libs')
implementation 'org.deviceconnect:dconnect-device-plugin-sdk:2.5.1'
implementation 'org.deviceconnect:dconnect-device-plugin-sdk:2.8.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public void timeoutProc() {
*/
private void initDetector() {
if (mDetector == null) {
mDetector = new BleDeviceDetector(getContext());
mDetector = new BleDeviceDetector(this);
mDetector.setListener(new BleDeviceDiscoveryListener() {

@Override
Expand Down
Loading