Skip to content

Commit 118827a

Browse files
committed
add new sftp features
1 parent c0f466b commit 118827a

File tree

6 files changed

+489
-233
lines changed

6 files changed

+489
-233
lines changed

android/app/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ def keystoreProperties = new Properties()
2121
def keystorePropertiesFile = rootProject.file("app/key.properties")
2222
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
2323

24-
def flutterVersionCode = "42"
25-
//def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
26-
//if (flutterVersionCode == null) {
27-
//flutterVersionCode = "17"
28-
//}
24+
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
25+
if (flutterVersionCode == null) {
26+
flutterVersionCode = "17"
27+
}
2928

3029
def flutterVersionName = "1.0Beta4"
3130
//def flutterVersionName = localProperties.getProperty("flutter.versionName")

lib/help_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class HelpPage extends StatelessWidget {
6262
showAboutDialog(
6363
context: context,
6464
applicationName: 'connecter',
65-
applicationVersion: '1.0 Beta 4',
65+
applicationVersion: '1.0 Beta 5',
6666
);
6767
},
6868
child: const Text('关于'),

lib/services/setting_service.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ class SettingsService {
5050
// 获取平台特定的默认下载路径
5151
static Future<String?> getPlatformDefaultDownloadPath() async {
5252
if (Platform.isAndroid) {
53-
// Android: 优先使用 Downloads 目录
54-
final downloadsDir = await getDownloadsDirectory();
55-
if (downloadsDir != null) {
56-
return downloadsDir.path;
57-
}
58-
59-
// 备用方案:外部存储目录下的 Download 文件夹
6053
final externalDir = await getExternalStorageDirectory();
6154
if (externalDir != null) {
6255
final downloadDir = Directory('${externalDir.path}/Download');

lib/setting_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class _SettingsPageState extends State<SettingsPage> {
222222
Platform.isWindows
223223
? 'Windows平台不支持目录选择功能,如需自定义路径请手动输入'
224224
: Platform.isAndroid
225-
? '留空将使用 Downloads 目录'
225+
? '留空将在每次下载时询问,当权限不完整则会保存到Android/data中'
226226
: '无需修改',
227227
style: const TextStyle(
228228
fontSize: 12,

0 commit comments

Comments
 (0)