Skip to content

Commit

Permalink
Add/update screenshots, update readme, update my UPI ID
Browse files Browse the repository at this point in the history
Signed-off-by: Shripal Jain <[email protected]>
  • Loading branch information
shripal17 committed Oct 27, 2020
1 parent e9b38ab commit 9637a27
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ I am an Android Developer myself and I always use scrcpy ❤ to test my work on

## Requirements
1. Works on Android Studio 4.0+ and other IntelliJ-based IDEs with build number `193.4099.13` and above
2. [ADB](https://developer.android.com/studio/releases/platform-tools) must be [installed](https://www.xda-developers.com/adb-fastboot-any-directory-windows-linux/) and configured
properly in PATH as
to be executable from cmd/bash in any directory
2. `adb` and `scrcpy` installed (need not be configured in `PATH`)

## Installation
Install the plugin in Android Studio/IntelliJ-based IDE via:
Expand All @@ -44,6 +42,11 @@ Install the plugin in Android Studio/IntelliJ-based IDE via:
|----------------|---------------------|-------------------|
| ![Main Tool Window](/screens/main.png?raw=true) | ![Settings](/screens/settings.png?raw=true) | ![Shortcuts Dialog](/screens/shortcuts.png?raw=true) |

##### Path Testers
| ADB Tester | scrcpy Tester |
|------------|---------------|
|![ADB Tester](/screens/adb_test.png?raw=true)| ![scrcpy Tester](/screens/scrcpy_test.png?raw=true)|

## Contributing
- Feel free to make a PR for feature additions/bugs
- This repository follows Google (2-space indents) coding style, so please keep this in mind while making PRs
Expand All @@ -61,7 +64,8 @@ Install the plugin in Android Studio/IntelliJ-based IDE via:

## Donate
- This project would not have been possible without scrcpy (of course)!
- I've spent endless nights making this plugin work well! If you liked my work, consider donating me via [UPI (ID: `shripal17@okicici`, Shripal Jain)](https://kutt.it/shripal17UPI) (works only in India, open link in smartphone) or [PayPal
- I've spent endless nights making this plugin work well! If you liked my work, consider donating me via [UPI (ID: `shripal17@okaxis`, Shripal Jain)](https://kutt.it/shripal17UPI) (works only in India, open link in
smartphone) or [PayPal
](https://paypal.me/shripaul17)

## License
Expand Down
Binary file added screens/adb_test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screens/scrcpy_test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screens/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ typealias StringProp = KMutableProperty1<ScrcpyProps, String?>
typealias BooleanProp = KMutableProperty1<ScrcpyProps, Boolean>

internal class ScrcpyController(private val toolWindow: ToolWindow) : DeviceDetectionListener {

private var props = ScrcpyProps.getInstance()
var mainPanel: JPanel? = null

Expand Down Expand Up @@ -156,7 +157,8 @@ internal class ScrcpyController(private val toolWindow: ToolWindow) : DeviceDete
}
if (ioe) {
commandExecutors.remove(it)
val notifMsg = if (props.scrcpyPath != null && !props.scrcpyPath.isNullOrEmpty()) "scrcpy was not found in the configured path" else "scrcpy path is not configured"
val notifMsg =
if (props.scrcpyPath != null && !props.scrcpyPath.isNullOrEmpty()) "scrcpy was not found in the configured path" else "scrcpy path is not configured"
val actionText = if (props.scrcpyPath != null && !props.scrcpyPath.isNullOrEmpty()) "Re-configure" else "Configure"

val action = ScrcpyNotificationAction(actionText) { _, _ ->
Expand Down Expand Up @@ -344,7 +346,11 @@ internal class ScrcpyController(private val toolWindow: ToolWindow) : DeviceDete
}
}
donateButton?.addActionListener {
TextDialog("Scrcpy Controller - Donate", "UPI (India only) ID: <b>shripal17@okicici</b> (Shripal Jain)<br>PayPal: <a href=\"https://paypal.me/shripaul17\">https://paypal.me/shripaul17</a>", true).showAndGet()
TextDialog(
"Scrcpy Controller - Donate",
"UPI (India only) ID: <b>shripal17@okaxis</b> (Shripal Jain)<br>PayPal: <a href=\"https://paypal.me/shripaul17\">https://paypal.me/shripaul17</a>",
true
).showAndGet()
}

wifiConnect?.addActionListener {
Expand Down Expand Up @@ -521,6 +527,7 @@ internal class ScrcpyController(private val toolWindow: ToolWindow) : DeviceDete
}

inner class DeviceCheckListener : TableModelListener {

override fun tableChanged(e: TableModelEvent?) {
e?.let {
if (e.firstRow == e.lastRow && e.column == 0 && e.source is TableModel) {
Expand Down

0 comments on commit 9637a27

Please sign in to comment.