Skip to content

Commit a8aaa44

Browse files
committed
Compatibility with AS Ladybug 2024.1.3
1 parent 240736d commit a8aaa44

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## [[Unreleased]]
44

5+
## [1.6.16] - 2024-07-21
6+
- Compatibility with Android Studio Ladybug
7+
58
## [1.6.15] - 2024-03-17
69
- Compatibility with Android Studio Jellyfish
710

@@ -202,8 +205,9 @@
202205
- Command to clear data
203206
- Command to clear data and restart
204207

205-
[Unreleased]: https://github.com/pbreault/adb-idea/compare/1.6.15...HEAD
206-
[1.6.14]: https://github.com/pbreault/adb-idea/compare/1.6.14...1.6.15
208+
[Unreleased]: https://github.com/pbreault/adb-idea/compare/1.6.16...HEAD
209+
[1.6.16]: https://github.com/pbreault/adb-idea/compare/1.6.15...1.6.16
210+
[1.6.15]: https://github.com/pbreault/adb-idea/compare/1.6.14...1.6.15
207211
[1.6.14]: https://github.com/pbreault/adb-idea/compare/1.6.13...1.6.14
208212
[1.6.13]: https://github.com/pbreault/adb-idea/compare/1.6.12...1.6.13
209213
[1.6.12]: https://github.com/pbreault/adb-idea/compare/1.6.11...1.6.12

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ tasks.runIde {
6767
tasks.register("printLastChanges") {
6868
doLast {
6969
println(recentChanges(outputType = MARKDOWN))
70+
println(recentChanges(outputType = HTML))
7071
}
7172
}
7273

@@ -95,7 +96,7 @@ fun recentChanges(outputType: Changelog.OutputType): String {
9596
.take(5) // last 5 changes
9697
.forEach { (key, _) ->
9798
s += changelog.renderItem(
98-
changelog.get(key).withHeader(false).withEmptySections(false), outputType
99+
changelog.get(key).withHeader(true).withEmptySections(false), outputType
99100
)
100101
}
101102

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Android Studio Version
22
# Get it from `list-studio-versions.sh`
3-
ideVersion=2023.3.1.13
3+
ideVersion=2024.1.3.1
44

55
# Minimum Intellij PLatform version supported by this plugin
66
# see https://plugins.jetbrains.com/docs/intellij/android-studio-releases-list.html
7-
sinceBuild=233.13135
7+
sinceBuild=241.18034
88

99
# The path to a local Android Studio installation. Note that this will override the ideVersion
1010
# Should provide this either as a command line argument or in your home gradle.properties

src/main/kotlin/com/developerphil/adbidea/adb/DeviceResultFetcher.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package com.developerphil.adbidea.adb
33
import com.android.ddmlib.IDevice
44
import com.android.tools.idea.insights.isAndroidApp
55
import com.android.tools.idea.model.AndroidModel
6+
import com.android.tools.idea.projectsystem.isHolderModule
67
import com.android.tools.idea.util.androidFacet
78
import com.developerphil.adbidea.adb.DeviceResult.DeviceNotFound
89
import com.developerphil.adbidea.adb.DeviceResult.SuccessfulDeviceResult
@@ -52,8 +53,8 @@ class DeviceResultFetcher constructor(
5253

5354
private fun getFacet(facets: List<AndroidFacet>): AndroidFacet? {
5455
val appFacets = facets
55-
.filter { it.holderModule.isAndroidApp }
56-
.mapNotNull { it.holderModule.androidFacet }
56+
.filter { it.module.isAndroidApp && it.module.isHolderModule()}
57+
.mapNotNull { it.module.androidFacet }
5758
.distinct()
5859

5960
return if (appFacets.size > 1) {

src/main/kotlin/com/developerphil/adbidea/ui/MyDeviceChooser.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import com.android.sdklib.IAndroidTarget
2323
import com.android.tools.idea.model.AndroidModel
2424
import com.android.tools.idea.model.StudioAndroidModuleInfo
2525
import com.android.tools.idea.run.AndroidDevice
26-
import com.android.tools.idea.run.ConnectedAndroidDevice
26+
import com.android.tools.idea.run.FakeAndroidDevice
2727
import com.android.tools.idea.run.LaunchCompatibility
2828
import com.android.tools.idea.run.LaunchCompatibility.State
2929
import com.google.common.util.concurrent.ListenableFuture
@@ -294,7 +294,7 @@ class MyDeviceChooser(
294294
SERIAL_COLUMN_INDEX -> return device.serialNumber
295295
DEVICE_STATE_COLUMN_INDEX -> return getDeviceState(device)
296296
COMPATIBILITY_COLUMN_INDEX -> {
297-
val connectedDevice: AndroidDevice = ConnectedAndroidDevice(device)
297+
val connectedDevice: AndroidDevice = FakeAndroidDevice(device)
298298
return try {
299299
if (myMinSdkVersion.isDone) connectedDevice.canRun(
300300
myMinSdkVersion.get(),

0 commit comments

Comments
 (0)