fix lint warnings

This commit is contained in:
Yury Polek
2020-08-22 12:11:09 +03:00
parent 7dd8112caa
commit 76391ef6fc
3 changed files with 7 additions and 2 deletions

View File

@@ -13,4 +13,4 @@ style:
MagicNumber: MagicNumber:
active: false active: false
WildcardImport: WildcardImport:
excludeImports: ['java.util.*', 'kotlinx.coroutines.*'] excludeImports: ['java.util.*', 'kotlinx.coroutines.*', 'dev.polek.adbwifi.utils.*']

View File

@@ -2,5 +2,6 @@ package dev.polek.adbwifi.ui
import com.intellij.ui.components.JBPanel import com.intellij.ui.components.JBPanel
import java.awt.FlowLayout import java.awt.FlowLayout
import java.awt.FlowLayout.CENTER
class FlowLayoutPanel(hgap: Int = 5, vgap: Int = 5) : JBPanel<FlowLayoutPanel>(FlowLayout(FlowLayout.CENTER, hgap, vgap)) class FlowLayoutPanel(hgap: Int = 5, vgap: Int = 5) : JBPanel<FlowLayoutPanel>(FlowLayout(CENTER, hgap, vgap))

View File

@@ -15,12 +15,14 @@ class AdbTest {
ce0717171c16e33b03 device ce0717171c16e33b03 device
""".trimIndent() """.trimIndent()
"adb -s R28M51Y8E0H shell settings get secure android_id" -> "3987ac205a864cc6"
"adb -s R28M51Y8E0H shell getprop ro.product.model" -> "SM-G9700" "adb -s R28M51Y8E0H shell getprop ro.product.model" -> "SM-G9700"
"adb -s R28M51Y8E0H shell getprop ro.product.manufacturer" -> "samsung" "adb -s R28M51Y8E0H shell getprop ro.product.manufacturer" -> "samsung"
"adb -s R28M51Y8E0H shell getprop ro.build.version.release" -> "10" "adb -s R28M51Y8E0H shell getprop ro.build.version.release" -> "10"
"adb -s R28M51Y8E0H shell getprop ro.build.version.sdk" -> "29" "adb -s R28M51Y8E0H shell getprop ro.build.version.sdk" -> "29"
"adb -s R28M51Y8E0H shell ip route" -> "192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.179" "adb -s R28M51Y8E0H shell ip route" -> "192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.179"
"adb -s ce0717171c16e33b03 shell settings get secure android_id" -> "c51c1b1f0a05ce61"
"adb -s ce0717171c16e33b03 shell getprop ro.product.model" -> "SM-G930F" "adb -s ce0717171c16e33b03 shell getprop ro.product.model" -> "SM-G930F"
"adb -s ce0717171c16e33b03 shell getprop ro.product.manufacturer" -> "samsung" "adb -s ce0717171c16e33b03 shell getprop ro.product.manufacturer" -> "samsung"
"adb -s ce0717171c16e33b03 shell getprop ro.build.version.release" -> "8.0.0" "adb -s ce0717171c16e33b03 shell getprop ro.build.version.release" -> "8.0.0"
@@ -42,6 +44,7 @@ class AdbTest {
val device1 = devices[0] val device1 = devices[0]
assertThat(device1.id).isEqualTo("ce0717171c16e33b03") assertThat(device1.id).isEqualTo("ce0717171c16e33b03")
assertThat(device1.androidId).isEqualTo("c51c1b1f0a05ce61")
assertThat(device1.name).isEqualTo("samsung SM-G930F") assertThat(device1.name).isEqualTo("samsung SM-G930F")
assertThat(device1.address).isEqualTo("192.168.1.159") assertThat(device1.address).isEqualTo("192.168.1.159")
assertThat(device1.androidVersion).isEqualTo("8.0.0") assertThat(device1.androidVersion).isEqualTo("8.0.0")
@@ -51,6 +54,7 @@ class AdbTest {
val device2 = devices[1] val device2 = devices[1]
assertThat(device2.id).isEqualTo("R28M51Y8E0H") assertThat(device2.id).isEqualTo("R28M51Y8E0H")
assertThat(device2.androidId).isEqualTo("3987ac205a864cc6")
assertThat(device2.name).isEqualTo("samsung SM-G9700") assertThat(device2.name).isEqualTo("samsung SM-G9700")
assertThat(device2.address).isEqualTo("192.168.1.179") assertThat(device2.address).isEqualTo("192.168.1.179")
assertThat(device2.androidVersion).isEqualTo("10") assertThat(device2.androidVersion).isEqualTo("10")