From 6c2861314415c300636a2994a4cee6942aad0d24 Mon Sep 17 00:00:00 2001 From: xz-dev Date: Fri, 30 Oct 2020 11:12:41 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=A2=9E=E5=8A=A0=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=B8=82=E5=9C=BA=E6=A8=A1=E5=BC=8F=E6=89=B9=E9=87=8F=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E7=9A=84=E9=87=8D=E8=AF=95=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 +- core/build.gradle | 4 ++-- .../net/xzos/upgradeall/core/network_api/GrpcReleaseApi.kt | 4 ++-- .../core/server_manager/module/applications/Applications.kt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e2f10b7f1..54006a273 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -67,7 +67,7 @@ dependencies { implementation 'androidx.preference:preference-ktx:1.1.1' implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0' - testImplementation 'junit:junit:4.13' + testImplementation 'junit:junit:4.13.1' androidTestImplementation 'androidx.test:runner:1.3.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' implementation 'androidx.recyclerview:recyclerview:1.1.0' diff --git a/core/build.gradle b/core/build.gradle index d04cfb96c..ca6693760 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'com.google.protobuf' -def grpc_version = '1.32.1' +def grpc_version = '1.33.0' android { compileSdkVersion 30 @@ -64,7 +64,7 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.3.2' implementation 'androidx.appcompat:appcompat:1.2.0' - testImplementation 'junit:junit:4.13' + testImplementation 'junit:junit:4.13.1' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' diff --git a/core/src/main/java/net/xzos/upgradeall/core/network_api/GrpcReleaseApi.kt b/core/src/main/java/net/xzos/upgradeall/core/network_api/GrpcReleaseApi.kt index 69dd62387..6bfc01322 100644 --- a/core/src/main/java/net/xzos/upgradeall/core/network_api/GrpcReleaseApi.kt +++ b/core/src/main/java/net/xzos/upgradeall/core/network_api/GrpcReleaseApi.kt @@ -61,7 +61,7 @@ object GrpcReleaseApi { chunkedCallGetAppRelease(hubUuid, auth, appIdList) } - private suspend fun chunkedCallGetAppRelease( + internal suspend fun chunkedCallGetAppRelease( hubUuid: String, auth: Map, appIdList: Collection>, autoRetryNum: Int = 3, ) { @@ -73,7 +73,7 @@ object GrpcReleaseApi { } } - internal suspend fun callGetAppRelease( + private suspend fun callGetAppRelease( hubUuid: String, auth: Map, appIdList0: Collection>, autoRetryNum: Int, channel: ManagedChannel = GrpcApi.getChannel(), diff --git a/core/src/main/java/net/xzos/upgradeall/core/server_manager/module/applications/Applications.kt b/core/src/main/java/net/xzos/upgradeall/core/server_manager/module/applications/Applications.kt index 4d3f7ed09..1cbfc21d5 100644 --- a/core/src/main/java/net/xzos/upgradeall/core/server_manager/module/applications/Applications.kt +++ b/core/src/main/java/net/xzos/upgradeall/core/server_manager/module/applications/Applications.kt @@ -66,7 +66,7 @@ class Applications(override val appDatabase: ApplicationsDatabase, } } }) - GrpcReleaseApi.callGetAppRelease(hubUuid, auth, excludeAppIdList.keys, 0) + GrpcReleaseApi.chunkedCallGetAppRelease(hubUuid, auth, excludeAppIdList.keys, 2) } override fun refreshData() {