Skip to content

Commit a65bfc9

Browse files
libmedia,libsrtのアップデート
1 parent fb99a65 commit a65bfc9

10 files changed

Lines changed: 18 additions & 57 deletions

File tree

dConnectDevicePlugin/dConnectDeviceHost/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ android {
3333
buildConfigField "String", "DEMO_DIR", "\"demo\""
3434
buildConfigField "String", "DEMO_ZIP", "\"" + DEMO_ZIP_NAME + "\""
3535
buildConfigField "long", "STATS_INTERVAL", "5000L"
36-
}
36+
}
3737

3838
signingConfigs {
3939
releaseConfig {
@@ -103,8 +103,8 @@ dependencies {
103103
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:1.9.7'
104104
implementation 'org.deviceconnect:dconnect-device-plugin-sdk:2.8.6'
105105
implementation 'org.deviceconnect:dconnect-demo-lib:1.0.1'
106-
implementation 'org.deviceconnect:libmedia:1.2.2'
107-
implementation 'org.deviceconnect:libsrt:1.2.2'
106+
implementation 'org.deviceconnect:libmedia:1.3.0'
107+
implementation 'org.deviceconnect:libsrt:1.3.0'
108108
// implementation project(':libmedia')
109109
// implementation project(':libsrt')
110110
}

dConnectDevicePlugin/dConnectDeviceUVC/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ dependencies {
9595
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
9696
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:1.9.7'
9797
implementation 'org.deviceconnect:dconnect-device-plugin-sdk:2.8.6'
98-
implementation 'org.deviceconnect:libmedia:1.2.2'
99-
implementation 'org.deviceconnect:libsrt:1.2.2'
98+
implementation 'org.deviceconnect:libmedia:1.3.0'
99+
implementation 'org.deviceconnect:libsrt:1.3.0'
100100
implementation project(':libuvc')
101101
}

dConnectDevicePlugin/dConnectDeviceUVC/app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
<uses-feature android:name="android.hardware.usb.host" />
1010

11-
<application android:allowBackup="false">
11+
<application
12+
android:allowBackup="false"
13+
android:icon="@drawable/dconnect_icon"
14+
android:label="@string/app_name_uvc"
15+
android:theme="@style/AppTheme">
1216

1317
<!-- プラグインの設定画面用の Activity -->
1418
<activity android:name=".activity.UVCSettingsActivity"
@@ -23,15 +27,6 @@
2327
<meta-data
2428
android:name="org.deviceconnect.android.deviceplugin"
2529
android:resource="@xml/org_deviceconnect_android_deviceplugin_uvc" />
26-
27-
<meta-data
28-
android:name="org.deviceconnect.android.deviceplugin.name"
29-
android:value="@string/app_name_uvc" />
30-
31-
<meta-data
32-
android:name="org.deviceconnect.android.deviceplugin.icon"
33-
android:resource="@drawable/dconnect_icon" />
34-
3530
</service>
3631

3732
<!-- Device Connect API リクエストのレシーバー -->

dConnectDevicePlugin/dConnectDeviceUVC/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
jcenter()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.6.2'
9+
classpath 'com.android.tools.build:gradle:4.1.2'
1010

1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files

dConnectDevicePlugin/dConnectDeviceUVC/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip

dConnectManager/dConnectManager/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
jcenter()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.6.2'
9+
classpath 'com.android.tools.build:gradle:4.1.2'
1010

1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files

dConnectManager/dConnectManager/dconnect-manager-app-things/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ android {
3838
repositories {
3939
maven {
4040
name = "DeviceConnect-Android"
41-
url = uri("https://maven.pkg.github.com/DeviceConnect/DeviceConnect-Android")
41+
url = uri("https://maven.pkg.github.com/TakayukiHoshi1984/DeviceConnect-Android")
4242

4343
credentials {
4444
username = System.getenv("GPR_USER") ?: githubProperties['gpr.usr']

dConnectManager/dConnectManager/dconnect-manager-app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ android {
8282
repositories {
8383
maven {
8484
name = "DeviceConnect-Android"
85-
url = uri("https://maven.pkg.github.com/DeviceConnect/DeviceConnect-Android")
85+
url = uri("https://maven.pkg.github.com/TakayukiHoshi1984/DeviceConnect-Android")
8686

8787
credentials {
8888
username = System.getenv("GPR_USER") ?: githubProperties['gpr.usr']
@@ -116,7 +116,7 @@ dependencies {
116116
}
117117

118118
android.testVariants.all { variant ->
119-
task("generateJavadocForManagerJUnit", type: Javadoc, overwrite: true) {
119+
tasks.register("generate${variant.name.capitalize()}JavadocForManagerJUnit", Javadoc) {
120120
title = "Android Device Connect Manager Unit Test"
121121
description = "Generates Javadoc for JUnit"
122122
source = android.sourceSets.androidTest.java.sourceFiles

dConnectManager/dConnectManager/dconnect-manager-app/src/main/java/org/deviceconnect/android/manager/DConnectService.java

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -304,41 +304,7 @@ public void onError(final Exception e) {
304304
}
305305
}
306306
}
307-
308-
/**
309-
* Hostプラグインを追加します.
310-
*/
311-
private void addDevicePlugin() {
312-
String packageName = getPackageName();
313-
String className = HostDevicePlugin.class.getName();
314-
315-
DevicePlugin plugin;
316-
try {
317-
plugin = new DevicePlugin.Builder(this)
318-
.setClassName(className)
319-
.setPackageName(packageName)
320-
.setConnectionType(ConnectionType.DIRECT)
321-
.setDeviceName(getString(R.string.app_name_host))
322-
.setPluginIconId(R.drawable.dconnect_icon)
323-
.setVersionName(org.deviceconnect.android.deviceplugin.host.BuildConfig.VERSION_NAME)
324-
.setPluginXml(DevicePluginXmlUtil.getXml(getApplicationContext(),
325-
R.xml.org_deviceconnect_android_deviceplugin_host))
326-
.setPluginId(DConnectUtil.toMD5(packageName + className))
327-
.setPluginSdkVersionName(VersionName.parse("2.0.0"))
328-
.addProviderAuthority("org.deviceconnect.android.deviceplugin.host.provider.included")
329-
.build();
330-
mManager.getPluginManager().addDevicePlugin(plugin);
331-
} catch (UnsupportedEncodingException e) {
332-
if (DEBUG) {
333-
Log.e(TAG, "add plugin error.", e);
334-
}
335-
} catch (NoSuchAlgorithmException e) {
336-
if (DEBUG) {
337-
Log.e(TAG, "add plugin error.", e);
338-
}
339-
}
340-
}
341-
/**
307+
/**
342308
* DConnectManagerを停止します.
343309
*/
344310
private void stopManager() {

dConnectManager/dConnectManager/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip

0 commit comments

Comments
 (0)