Compare commits
2 Commits
66640261c3
...
32793f2129
Author | SHA1 | Date | |
---|---|---|---|
32793f2129 | |||
3922906a33 |
@ -8,6 +8,7 @@ Environment=PATH=$PATH:/home/reimar/.dotnet
|
||||
Environment=DEFAULT_CONNECTION="Data Source=/home/reimar/skantravels/database.sqlite3"
|
||||
ExecStartPre=/home/reimar/skantravels/efbundle
|
||||
ExecStart=/home/reimar/skantravels/API --urls=http://0.0.0.0:5001
|
||||
WorkingDirectory=/home/reimar/skantravels
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
|
@ -3,7 +3,7 @@
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
<application
|
||||
android:label="mobile"
|
||||
android:label="SkanTravels"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 18 KiB |
4
Mobile/build-apk.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
java -version
|
||||
flutter build apk --split-per-abi --no-shrink --dart-define-from-file environment.prod.json
|
||||
|
4
Mobile/environment.prod.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"AUTH_SERVICE_HOST": "https://skantravels.reim.ar",
|
||||
"APP_SERVICE_HOST": "https://skantravels.reim.ar"
|
||||
}
|
@ -18,6 +18,8 @@ import 'api.dart' as api;
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
// Refresh JWT on startup
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
if (prefs.getString("token") != null && prefs.getString("refresh-token") != null) {
|
||||
|
@ -6,6 +6,7 @@ After=network.target
|
||||
Environment=RUST_BACKEND_PORT=5002
|
||||
Environment=RUST_BACKEND_DB=/home/reimar/skantravels/database-rust.sqlite3
|
||||
ExecStart=/home/reimar/skantravels/skantravels
|
||||
WorkingDirectory=/home/reimar/skantravels
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
|