Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit 06a2b02

Browse files
committed
bug fixes
1 parent e53f6e8 commit 06a2b02

19 files changed

Lines changed: 285 additions & 331 deletions

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SkySync - File Management Application
22

3+
![Skysync logo](assets/Logo-name.png)
4+
35
## Overview
46

57
SkySync is a modern file management application built with Flutter that provides secure file storage, sharing and management capabilities. The application features a comprehensive error handling system, multi-language support, and an intuitive user interface.
@@ -64,6 +66,13 @@ SkySync is a modern file management application built with Flutter that provides
6466

6567
## First look
6668

69+
```mermaid
70+
flowchart TD
71+
A[Start] --> B{Warunek?}
72+
B -->|Tak| C[Wykonaj akcję]
73+
B -->|Nie| D[Zakończ]
74+
```
75+
6776
| Demo images | Demo images |
6877
|-----------------------|-----------------------|
6978
| ![img1](rdAssets/2.png) | ![img2](rdAssets/3.png) |

SERVER.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ RATE_LIMIT_WINDOW=60
214214
- **In password field do not put your gmail password. It must be app password more information [here](https://www.hostpapa.com/knowledgebase/how-to-create-and-use-google-app-passwords/)**
215215
- **Highly recommend using [ngrok](https://ngrok.com/) for tunneling**
216216

217+
```bash
218+
# If you using ngrok type:
219+
$ ngrok http --url <domain> <port>
220+
```
221+
217222
### 3. Start the server
218223

219224
```bash

lib/config/env_config.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
// Plik konfiguracyjny dla zmiennych środowiskowych
1+
import 'package:flutter_dotenv/flutter_dotenv.dart';
2+
23
class EnvConfig {
34
static String get apiKey => _apiKey;
45
static String get baseUrl => _baseUrl;
6+
7+
static String _apiKey = dotenv.env['API_KEY'] ?? '';
8+
static String _baseUrl = dotenv.env['BASE_URL'] ?? '';
59

6-
// Prywatne zmienne do przechowywania wartości
7-
static String _apiKey = '987654321POL';
8-
static String _baseUrl = 'https://topical-sheep-apparently.ngrok-free.app';
9-
10-
// Metoda do ustawiania wartości
1110
static void setConfig({String? apiKey, String? baseUrl}) {
1211
if (apiKey != null) _apiKey = apiKey;
1312
if (baseUrl != null) _baseUrl = baseUrl;

lib/config/env_linux.dart

Lines changed: 0 additions & 12 deletions
This file was deleted.

lib/config/env_macos.dart

Lines changed: 0 additions & 12 deletions
This file was deleted.

lib/config/env_mobile.dart

Lines changed: 0 additions & 21 deletions
This file was deleted.

lib/config/env_web.dart

Lines changed: 0 additions & 24 deletions
This file was deleted.

lib/config/env_web_stub.dart

Lines changed: 0 additions & 11 deletions
This file was deleted.

lib/config/env_windows.dart

Lines changed: 0 additions & 21 deletions
This file was deleted.

lib/main.dart

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,18 @@ import 'utils/notification_service.dart';
2020
import 'utils/app_settings.dart';
2121
import 'utils/token_service.dart';
2222
import 'utils/cache_service.dart';
23-
import 'config/env_mobile.dart';
24-
import 'config/env_windows.dart';
25-
import 'config/env_linux.dart';
26-
import 'config/env_macos.dart';
27-
import 'config/env_web.dart' if (dart.library.io) 'config/env_web_stub.dart';
23+
import 'package:flutter_dotenv/flutter_dotenv.dart';
2824

2925
void main() async {
3026
WidgetsFlutterBinding.ensureInitialized();
27+
await dotenv.load(fileName: ".env");
3128

3229
await EasyLocalization.ensureInitialized();
3330
await SystemChrome.setPreferredOrientations([
3431
DeviceOrientation.portraitUp,
3532
DeviceOrientation.portraitDown,
3633
]);
3734

38-
// Inicjalizacja konfiguracji środowiska
39-
if (kIsWeb) {
40-
WebEnvConfig.initialize();
41-
} else if (Platform.isWindows) {
42-
await WindowsEnvConfig.initialize();
43-
} else if (Platform.isLinux) {
44-
LinuxEnvConfig.initialize();
45-
} else if (Platform.isMacOS) {
46-
MacOSEnvConfig.initialize();
47-
} else {
48-
await MobileEnvConfig.initialize();
49-
}
5035

5136
runApp(
5237
EasyLocalization(

0 commit comments

Comments
 (0)