diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index e2d43ed..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/android/app/src/main/java/net/lemontree/push/MainActivity.java b/android/app/src/main/java/net/lemontree/push/MainActivity.java index 0b5028f..8554673 100644 --- a/android/app/src/main/java/net/lemontree/push/MainActivity.java +++ b/android/app/src/main/java/net/lemontree/push/MainActivity.java @@ -60,7 +60,6 @@ public class MainActivity extends AppCompatActivity { private int selectPC = 0; private final String LAST_PC_KEY = "lastPC"; - private final String TAG = "MainAc"; @RequiresApi(api = Build.VERSION_CODES.N) @Override @@ -201,7 +200,7 @@ private void getPCClipboard(PCClient pcClient) { call.enqueue(new Callback() { @Override public void onFailure(@NonNull Call call, @NonNull IOException e) { - + runOnUiThread(() -> Toast.makeText(context, "获取失败:电脑未启动程序或IP地址错误", Toast.LENGTH_SHORT).show()); } @Override @@ -281,30 +280,7 @@ public boolean onOptionsItemSelected(MenuItem item) { if (item.getItemId() == android.R.id.home) { finish(); } else if (item.getItemId() == R.id.set) { - /*AlertDialog.Builder builder = new AlertDialog.Builder(this); - builder.setTitle("电脑IP"); - EditText editText = new EditText(this); - editText.setHint("请输入电脑端IP地址,如192.168.1.66"); - builder.setView(editText); - builder.setPositiveButton("确定", (dialogInterface, i) -> { - SharedPreferences.Editor editor = sp.edit(); - // TODO: 2022/5/5 校验是否为ip地址 - host = editText.getText().toString(); - if (!host.equals("")) { - editor.putString("host", host); - editor.apply(); - infoTv.setText("电脑端:" + host + ":" + PORT); - } else { - showToast("IP地址为空,请重新输入"); - } - }); - builder.setNegativeButton("取消", (dialogInterface, i) -> { - dialogInterface.dismiss(); - }); - builder.create().show();*/ - startActivity(new Intent(this, PCConfigActivity.class)); - } else if (item.getItemId() == R.id.guide) { openUrl("https://sibtools.app/lemon_push/docs/intro"); } else if (item.getItemId() == R.id.sib_tools) { @@ -330,7 +306,6 @@ private String getVersionName() { PackageManager packageManager = getPackageManager(); PackageInfo packageInfo = packageManager.getPackageInfo(getPackageName(), 0); return packageInfo.versionName; - // 在这里可以使用 versionName 对应的值 } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); return "v1.0.1"; diff --git a/desktop/.DS_Store b/desktop/.DS_Store deleted file mode 100644 index 7852e6b..0000000 Binary files a/desktop/.DS_Store and /dev/null differ diff --git a/desktop/src/.DS_Store b/desktop/src/.DS_Store deleted file mode 100644 index 3bc3844..0000000 Binary files a/desktop/src/.DS_Store and /dev/null differ diff --git a/desktop/src/lemon_push_v102_darwin_amd64 b/desktop/src/lemon_push_v102_darwin_amd64 deleted file mode 100755 index 2b5bb02..0000000 Binary files a/desktop/src/lemon_push_v102_darwin_amd64 and /dev/null differ diff --git a/desktop/src/lemon_push_v102_darwin_arm64 b/desktop/src/lemon_push_v102_darwin_arm64 deleted file mode 100755 index 28a9c43..0000000 Binary files a/desktop/src/lemon_push_v102_darwin_arm64 and /dev/null differ diff --git a/desktop/src/lemon_push_v102_linux_amd64 b/desktop/src/lemon_push_v102_linux_amd64 deleted file mode 100755 index 0bbd65c..0000000 Binary files a/desktop/src/lemon_push_v102_linux_amd64 and /dev/null differ diff --git a/desktop/src/lemon_push_v102_windows_amd64.exe b/desktop/src/lemon_push_v102_windows_amd64.exe deleted file mode 100755 index 3e7c1c5..0000000 Binary files a/desktop/src/lemon_push_v102_windows_amd64.exe and /dev/null differ diff --git a/docs/docs/download.md b/docs/docs/download.md index 2d8f5ae..7489e12 100644 --- a/docs/docs/download.md +++ b/docs/docs/download.md @@ -7,7 +7,7 @@ sidebar_position: 2 ## 123云盘汇总下载链接 ### v1.0.2 -(https://www.123pan.com/s/y4HrVv-WlKlA.html)[https://www.123pan.com/s/y4HrVv-WlKlA.html] +[https://www.123pan.com/s/y4HrVv-WlKlA.html](https://www.123pan.com/s/y4HrVv-WlKlA.html) ### v1.0.1 [https://www.123pan.com/s/y4HrVv-3RKlA.html](https://www.123pan.com/s/y4HrVv-3RKlA.html) diff --git a/docs/docs/intro.md b/docs/docs/intro.md index dd253d7..15ed3fc 100644 --- a/docs/docs/intro.md +++ b/docs/docs/intro.md @@ -13,7 +13,7 @@ sidebar_position: 1 ![lemonpush](https://sibtools.app/lemon_push/img/lemonpush.jpg) -## [下载地址](https://sibtools.app/lemon_push/docs/download) +## [下载地址(包含iOS快捷指令)](https://sibtools.app/lemon_push/docs/download) ## 配置教程 电脑双击启动程序后会显示电脑IP,手机安装柠檬Push App后,点击设置电脑端显示IP,可能会出现多个IP,使用局域网所在网络的IP,一般192开头,填写电脑IP后点击推送剪切板即可获取剪切板并推送至电脑端 diff --git a/readme.md b/readme.md index 7c6e1a6..790a542 100644 --- a/readme.md +++ b/readme.md @@ -14,7 +14,7 @@ ## 配置教程 电脑双击启动程序后会显示电脑IP,手机安装柠檬Push App后,点击设置电脑端显示IP,可能会出现多个IP,使用局域网所在网络的IP,一般192开头,填写电脑IP后点击推送剪切板即可获取剪切板并推送至电脑端 -程序首次运行会创建默认配置文件lemon_push.conf,如出现端口冲突可在配置文件修改端口号后重启程序 +程序首次运行会创建默认配置文件lemon_push.conf,如出现端口冲突可在配置文件修改端口号后重启程序 ## 接口说明 ### 写入电脑剪切板 @@ -67,7 +67,7 @@ Windows运行`Start-Process -WindowStyle hidden -FilePath "程序"`,Mac运行` 提高效率核心是减少步骤、减少选择。发文本到电脑几乎必然是复制到剪切板,发链接到电脑几乎必然用浏览器打开,所以柠檬Push基于以上设定开发 ## 开发技术 -电脑端使用固定端口作为服务端,基于局域网的htt服务实现信息交互,使用Go语言实现电脑端程序 +电脑端将剪切板接口转为http服务,基于局域网的http服务实现信息交互,使用Go语言实现电脑端程序 ## 已知问题 受限于作者的开发水平,软件还有许多未完善的地方。如使用传输内容未加密会存在安全性问题,除了局域网内有人主动攻击,对于多数的场景下是安全的