Skip to content

Commit

Permalink
v1.0.2 release 完善readme,删除文件,App获取失败提示
Browse files Browse the repository at this point in the history
  • Loading branch information
ishare20 committed Aug 21, 2023
1 parent 74ae544 commit 301d818
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 30 deletions.
Binary file removed .DS_Store
Binary file not shown.
27 changes: 1 addition & 26 deletions android/app/src/main/java/net/lemontree/push/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand All @@ -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";
Expand Down
Binary file removed desktop/.DS_Store
Binary file not shown.
Binary file removed desktop/src/.DS_Store
Binary file not shown.
Binary file removed desktop/src/lemon_push_v102_darwin_amd64
Binary file not shown.
Binary file removed desktop/src/lemon_push_v102_darwin_arm64
Binary file not shown.
Binary file removed desktop/src/lemon_push_v102_linux_amd64
Binary file not shown.
Binary file removed desktop/src/lemon_push_v102_windows_amd64.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/docs/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -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后点击推送剪切板即可获取剪切板并推送至电脑端
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
## 配置教程
电脑双击启动程序后会显示电脑IP,手机安装柠檬Push App后,点击设置电脑端显示IP,可能会出现多个IP,使用局域网所在网络的IP,一般192开头,填写电脑IP后点击推送剪切板即可获取剪切板并推送至电脑端

程序首次运行会创建默认配置文件lemon_push.conf,如出现端口冲突可在配置文件修改端口号后重启程序
程序首次运行会创建默认配置文件lemon_push.conf如出现端口冲突可在配置文件修改端口号后重启程序

## 接口说明
### 写入电脑剪切板
Expand Down Expand Up @@ -67,7 +67,7 @@ Windows运行`Start-Process -WindowStyle hidden -FilePath "程序"`,Mac运行`
提高效率核心是减少步骤、减少选择。发文本到电脑几乎必然是复制到剪切板,发链接到电脑几乎必然用浏览器打开,所以柠檬Push基于以上设定开发

## 开发技术
电脑端使用固定端口作为服务端,基于局域网的htt服务实现信息交互,使用Go语言实现电脑端程序
电脑端将剪切板接口转为http服务,基于局域网的http服务实现信息交互,使用Go语言实现电脑端程序

## 已知问题
受限于作者的开发水平,软件还有许多未完善的地方。如使用传输内容未加密会存在安全性问题,除了局域网内有人主动攻击,对于多数的场景下是安全的
Expand Down

0 comments on commit 301d818

Please sign in to comment.