File tree Expand file tree Collapse file tree 6 files changed +489
-233
lines changed
Expand file tree Collapse file tree 6 files changed +489
-233
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,10 @@ def keystoreProperties = new Properties()
2121def keystorePropertiesFile = rootProject. file(" app/key.properties" )
2222keystoreProperties. 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
3029def flutterVersionName = " 1.0Beta4"
3130// def flutterVersionName = localProperties.getProperty("flutter.versionName")
Original file line number Diff line number Diff 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 ('关于' ),
Original file line number Diff line number Diff 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' );
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments