Skip to content

Commit

Permalink
update to 1.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
longforus committed Mar 15, 2020
1 parent 221b9bd commit f285cbe
Show file tree
Hide file tree
Showing 7 changed files with 157 additions and 118 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ buildscript {
ext.kotlin_version = '1.3.41'

repositories {
maven {url 'https://maven.aliyun.com/repository/public'}
mavenCentral()
jcenter()
}
Expand All @@ -26,6 +27,7 @@ apply plugin: 'kotlin-kapt'


repositories {
maven {url 'https://maven.aliyun.com/repository/public'}
mavenCentral()
jcenter()
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PutStringAction : AdbAction() {


override fun actionPerformed(e: AnActionEvent, project: Project) {
var result = JOptionPane.showInputDialog("Input simple string(ASCII) put to device")
var result = JOptionPane.showInputDialog("Input simple string(ASCII) put to device,need open USB debugging(Security settings)")
if (!result.isNullOrEmpty()) {
result = result.replace(" ","")
AdbFacade.putStringToDevice(project,result)
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/developerphil/adbidea/adb/AdbFacade.kt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ object AdbFacade {

if (result != null) {
for (device in result.devices) {
EXECUTOR.submit({ runnable.run(project, device, result.facet, result.packageName) } as Runnable)
EXECUTOR.submit { runnable.run(project, device, result.facet, result.packageName) }
}
} else {
NotificationHelper.error("No Device found")
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.developerphil.adbidea.adb.command.receiver

import com.android.ddmlib.IShellOutputReceiver
import com.developerphil.adbidea.ui.Utils.Companion.isEmpty
import com.google.common.base.Charsets

class PrintReceiver : IShellOutputReceiver {
private var mString: String? = null
override fun addOutput(data: ByteArray, offset: Int, length: Int) {
if (!this.isCancelled) {
mString = """
${String(data, offset, length, Charsets.UTF_8)}
""".trimIndent()
}
}

override fun flush() {}
fun done() {}
override fun isCancelled(): Boolean {
return false
}

override fun toString(): String {
return (if (isEmpty(mString)) "" else mString)!!
}
}
206 changes: 125 additions & 81 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin url="https://github.com/pbreault/adb-idea">
<id>com.developerphil.adbidea</id>
<name>ADB Idea</name>
<version>1.6.4</version>
<version>1.6.5</version>
<vendor url="https://github.com/longforus">Philippe Breault and Void Young</vendor>

<description><![CDATA[
Expand Down Expand Up @@ -34,10 +34,15 @@


<change-notes><![CDATA[
<b>1.6.5</b>
<ul>
<li>update to origin : support Android Studio 3.6+</li>
</ul>
<b>1.6.4</b>
<ul>
<li> BUGFIX: The result of multi-module selection is inconsistent with the actual selection </li>
</ul><b>1.6.3</b>
</ul>
<b>1.6.3</b>
<ul>
<li>update to origin : BUGFIX: Show all connected devices on Android Studio 3.4+</li>
</ul>
Expand Down Expand Up @@ -147,93 +152,132 @@
<li>Now support projects with more than one application module</li>
</ul>
]]>
</change-notes>
</change-notes>

<!-- Android Studio 3.3+ -->
<!-- see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html -->
<idea-version since-build="182"/>
<!-- Android Studio 3.3+ -->
<!-- see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html -->
<idea-version since-build="182"/>

<depends>com.intellij.modules.platform</depends>
<depends>org.jetbrains.android</depends>
<depends>com.intellij.modules.platform</depends>
<depends>org.jetbrains.android</depends>

<actions>
<group id="AdbIdea" text="_ADB Idea" description="ADB Idea" popup="true">
<action id="com.developerphil.adbidea.action.AdbIdeaQuickList"
class="com.developerphil.adbidea.action.QuickListAction" text="ADB Operations Popup..."
description="List all the adb idea operations in a popup">
<keyboard-shortcut keymap="Mac OS X" first-keystroke="shift ctrl A"/>
<keyboard-shortcut keymap="Mac OS X 10.5+" first-keystroke="shift ctrl A"/>
<keyboard-shortcut keymap="$default" first-keystroke="shift ctrl alt A"/>
</action>
<separator/>
<actions>
<group id="AdbIdea" text="_ADB Idea" description="ADB Idea" popup="true">
<action id="com.developerphil.adbidea.action.AdbIdeaQuickList"
class="com.developerphil.adbidea.action.QuickListAction" text="ADB Operations Popup..."
description="List all the adb idea operations in a popup">
<keyboard-shortcut keymap="Mac OS X" first-keystroke="shift ctrl A"/>
<keyboard-shortcut keymap="Mac OS X 10.5+" first-keystroke="shift ctrl A"/>
<keyboard-shortcut keymap="$default" first-keystroke="shift ctrl alt A"/>
</action>
<action id="com.developerphil.adbidea.action.QuickListSupplementaryAction"
class="com.developerphil.adbidea.action.QuickListSupplementaryAction" text="ADB Supplementary Operations Popup..."
description="List supplementary the adb idea operations in a popup">
</action>
<separator/>

<action id="com.developerphil.adbidea.action.RevokePermissionsAction"
class="com.developerphil.adbidea.action.RevokePermissionsAction"
text="ADB Revoke Permissions"
description="Revoking the runtime permissions of the current application">
</action>
<action id="com.developerphil.adbidea.action.RevokePermissionsAction"
class="com.developerphil.adbidea.action.RevokePermissionsAction"
text="ADB Revoke Permissions"
description="Revoking the runtime permissions of the current application">
</action>

<action id="com.developerphil.adbidea.action.RevokePermissionsAndRestartAction"
class="com.developerphil.adbidea.action.RevokePermissionsAndRestartAction"
text="ADB Revoke Permissions and Restart"
description="Revoking the runtime permissions of the current application and restarts it">
</action>
<action id="com.developerphil.adbidea.action.RevokePermissionsAndRestartAction"
class="com.developerphil.adbidea.action.RevokePermissionsAndRestartAction"
text="ADB Revoke Permissions and Restart"
description="Revoking the runtime permissions of the current application and restarts it">
</action>

<action id="com.developerphil.adbidea.action.GrantPermissionsAction"
class="com.developerphil.adbidea.action.GrantPermissionsAction"
text="ADB Grant Permissions"
description="Granting the runtime permissions of the current application">
</action>
<action id="com.developerphil.adbidea.action.GrantPermissionsAction"
class="com.developerphil.adbidea.action.GrantPermissionsAction"
text="ADB Grant Permissions"
description="Granting the runtime permissions of the current application">
</action>

<action id="com.developerphil.adbidea.action.UninstallAction"
class="com.developerphil.adbidea.action.UninstallAction"
text="ADB Uninstall App"
description="Uninstalls the current application">
</action>
<action id="com.developerphil.adbidea.action.UninstallAction"
class="com.developerphil.adbidea.action.UninstallAction"
text="ADB Uninstall App"
description="Uninstalls the current application">
</action>

<action id="com.developerphil.adbidea.action.KillAction"
class="com.developerphil.adbidea.action.KillAction"
text="ADB Kill App"
description="Kills the current application">
</action>
<action id="com.developerphil.adbidea.action.StartAction"
class="com.developerphil.adbidea.action.StartAction"
text="ADB Start App"
description="Starts the current application">
</action>
<action id="com.developerphil.adbidea.action.RestartAction"
class="com.developerphil.adbidea.action.RestartAction"
text="ADB Restart App"
description="Restarts the current application">
</action>
<action id="com.developerphil.adbidea.action.ClearDataAction"
class="com.developerphil.adbidea.action.ClearDataAction"
text="ADB Clear App Data"
description="Clears the private storage of the app">
</action>
<action id="com.developerphil.adbidea.action.ClearDataAndRestartAction"
class="com.developerphil.adbidea.action.ClearDataAndRestartAction"
text="ADB Clear App Data and Restart"
description="Clears the private storage of the app and restarts it">
</action>
<action id="com.developerphil.adbidea.action.StartWithDebuggerAction"
class="com.developerphil.adbidea.action.StartWithDebuggerAction"
text="ADB Start App With Debugger"
description="Starts the current application and attach the debugger">
</action>
<action id="com.developerphil.adbidea.action.KillAction"
class="com.developerphil.adbidea.action.KillAction"
text="ADB Kill App"
description="Kills the current application">
</action>
<action id="com.developerphil.adbidea.action.StartAction"
class="com.developerphil.adbidea.action.StartAction"
text="ADB Start App"
description="Starts the current application">
</action>
<action id="com.developerphil.adbidea.action.RestartAction"
class="com.developerphil.adbidea.action.RestartAction"
text="ADB Restart App"
description="Restarts the current application">
</action>
<action id="com.developerphil.adbidea.action.ClearDataAction"
class="com.developerphil.adbidea.action.ClearDataAction"
text="ADB Clear App Data"
description="Clears the private storage of the app">
</action>
<action id="com.developerphil.adbidea.action.ClearDataAndRestartAction"
class="com.developerphil.adbidea.action.ClearDataAndRestartAction"
text="ADB Clear App Data and Restart"
description="Clears the private storage of the app and restarts it">
</action>
<action id="com.developerphil.adbidea.action.StartWithDebuggerAction"
class="com.developerphil.adbidea.action.StartWithDebuggerAction"
text="ADB Start App With Debugger"
description="Starts the current application and attach the debugger">
</action>

<action id="com.developerphil.adbidea.action.RestartWithDebuggerAction"
class="com.developerphil.adbidea.action.RestartWithDebuggerAction"
text="ADB Restart App With Debugger"
description="Restarts the current application and attach the debugger">
</action>
<add-to-group group-id="AndroidToolsGroup" anchor="first"/>
</group>
</actions>
<action id="com.developerphil.adbidea.action.RestartWithDebuggerAction"
class="com.developerphil.adbidea.action.RestartWithDebuggerAction"
text="ADB Restart App With Debugger"
description="Restarts the current application and attach the debugger">
</action>
<separator/>
<action id="com.developerphil.adbidea.action.extend.SetDefaultModuleAction"
class="com.developerphil.adbidea.action.extend.SetDefaultModuleAction"
text="ADB Set Default Operation Module "
description="Set Default operation module in this project">
</action>
<separator/>
<action id="com.developerphil.adbidea.action.extend.ApplicationManagementPopupAction"
class="com.developerphil.adbidea.action.extend.ApplicationManagementPopupAction" text="ADB Application management..."
description="List all the adb idea application management operations in a popup">
</action>
<action id="com.developerphil.adbidea.action.extend.InteractingAction"
class="com.developerphil.adbidea.action.extend.InteractingAction" text="ADB Application Interacting..."
description="Interacting with applications, e.g. start activity ,send broadcast">
</action>
<action id="com.developerphil.adbidea.action.extend.ShowDeviceInfoAction"
class="com.developerphil.adbidea.action.extend.ShowDeviceInfoAction" text="ADB Device information..."
description="Show device information , e.g. model ,battery Service state">
</action>
<action id="com.developerphil.adbidea.action.extend.InstallApkAction"
class="com.developerphil.adbidea.action.extend.InstallApkAction" text="ADB Install Apk file"
description="Install Apk file to phone">
</action>
<action id="com.developerphil.adbidea.action.extend.PutStringAction"
class="com.developerphil.adbidea.action.extend.PutStringAction" text="ADB Put simple string to device"
description="Input simple string to device">
</action>
<action id="com.developerphil.adbidea.action.extend.ScreenRecordAction"
class="com.developerphil.adbidea.action.extend.ScreenRecordAction" text="ADB Record device screen"
description="Record device screen via adb">
</action>
<action id="com.developerphil.adbidea.action.extend.ScreenCaptureAction"
class="com.developerphil.adbidea.action.extend.ScreenCaptureAction" text="ADB Capture device screen"
description="Capture device screen via adb">
</action>
<add-to-group group-id="AndroidToolsGroup" anchor="first"/>
</group>
</actions>

<project-components>
<component>
<implementation-class>com.developerphil.adbidea.ObjectGraph</implementation-class>
</component>
</project-components>
<project-components>
<component>
<implementation-class>com.developerphil.adbidea.ObjectGraph</implementation-class>
</component>
</project-components>
</idea-plugin>

0 comments on commit f285cbe

Please sign in to comment.