From 6485e477a10bb89dfb2e40f3596d72b20bf23cc8 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 15 Jan 2023 05:17:38 +0100 Subject: [PATCH 1/4] feat: connect to first device if given device was not found --- src/main/kotlin/app/revanced/utils/adb/Adb.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/utils/adb/Adb.kt b/src/main/kotlin/app/revanced/utils/adb/Adb.kt index 53820de..46d1edb 100644 --- a/src/main/kotlin/app/revanced/utils/adb/Adb.kt +++ b/src/main/kotlin/app/revanced/utils/adb/Adb.kt @@ -17,7 +17,7 @@ internal class Adb( private val device: JadbDevice init { - device = JadbConnection().devices.find { it.serial == deviceName } + device = JadbConnection().devices.let { device -> device.find { it.serial == deviceName } ?: device.first() } ?: throw IllegalArgumentException("No such device with name $deviceName") if (!modeInstall && device.run("su -h", false) != 0) From a39cf893d6fb1332c97ae9ac787d07f6587bca9e Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 15 Jan 2023 04:25:04 +0000 Subject: [PATCH 2/4] chore(release): 2.20.0-dev.2 [skip ci] # [2.20.0-dev.2](https://github.com/revanced/revanced-cli/compare/v2.20.0-dev.1...v2.20.0-dev.2) (2023-01-15) ### Features * connect to first device if given device was not found ([6485e47](https://github.com/revanced/revanced-cli/commit/6485e477a10bb89dfb2e40f3596d72b20bf23cc8)) --- CHANGELOG.md | 7 +++++++ gradle.properties | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f2bef1..e5b0307 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.20.0-dev.2](https://github.com/revanced/revanced-cli/compare/v2.20.0-dev.1...v2.20.0-dev.2) (2023-01-15) + + +### Features + +* connect to first device if given device was not found ([6485e47](https://github.com/revanced/revanced-cli/commit/6485e477a10bb89dfb2e40f3596d72b20bf23cc8)) + # [2.20.0](https://github.com/revanced/revanced-cli/compare/v2.19.0...v2.20.0) (2023-01-02) diff --git a/gradle.properties b/gradle.properties index fed62b4..f590fe0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ kotlin.code.style = official -version = 2.20.0 +version = 2.20.0-dev.2 From 51c04b7b162ad2876bbeb248b7ccddd105b5076d Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 15 Jan 2023 05:34:33 +0100 Subject: [PATCH 3/4] fix: bump patcher dependency version This commit addresses https://github.com/revanced/multidexlib2/issues/2. --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index c774d1d..c0400a1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,7 +25,7 @@ repositories { dependencies { implementation(kotlin("reflect")) - implementation("app.revanced:revanced-patcher:6.4.0") + implementation("app.revanced:revanced-patcher:6.4.1") implementation("info.picocli:picocli:4.7.0") implementation("com.github.revanced:jadb:master-SNAPSHOT") // updated fork implementation("com.android.tools.build:apksig:7.2.1") From 9888b0e08e8afb78d7c8c7c3ed10d7cc522ee44f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 15 Jan 2023 04:36:31 +0000 Subject: [PATCH 4/4] chore(release): 2.20.0-dev.3 [skip ci] # [2.20.0-dev.3](https://github.com/revanced/revanced-cli/compare/v2.20.0-dev.2...v2.20.0-dev.3) (2023-01-15) ### Bug Fixes * bump patcher dependency version ([51c04b7](https://github.com/revanced/revanced-cli/commit/51c04b7b162ad2876bbeb248b7ccddd105b5076d)) --- CHANGELOG.md | 7 +++++++ gradle.properties | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5b0307..a8b7ce2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.20.0-dev.3](https://github.com/revanced/revanced-cli/compare/v2.20.0-dev.2...v2.20.0-dev.3) (2023-01-15) + + +### Bug Fixes + +* bump patcher dependency version ([51c04b7](https://github.com/revanced/revanced-cli/commit/51c04b7b162ad2876bbeb248b7ccddd105b5076d)) + # [2.20.0-dev.2](https://github.com/revanced/revanced-cli/compare/v2.20.0-dev.1...v2.20.0-dev.2) (2023-01-15) diff --git a/gradle.properties b/gradle.properties index f590fe0..3410828 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ kotlin.code.style = official -version = 2.20.0-dev.2 +version = 2.20.0-dev.3