diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f2bef1..a8b7ce2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +# [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) + + +### 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/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") diff --git a/gradle.properties b/gradle.properties index fed62b4..3410828 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ kotlin.code.style = official -version = 2.20.0 +version = 2.20.0-dev.3 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)