Skip to content

Commit 1b75da7

Browse files
committed
Add support for appImage build
1 parent ba7964a commit 1b75da7

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
.pub/
3232
/build/
3333

34+
# Output
35+
dist/
36+
output/
37+
3438
# Web related
3539

3640
# Symbolication related

lib/config_provider.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class ConfigProvider {
243243
_notificationSettings = Map<NotificationType, bool>.from(jsonDecode(value).map(
244244
(key, value) => MapEntry(NotificationType.values.byName(key), value),
245245
));
246-
if (_notificationSettings!.values.contains(true)) {
246+
if (_notificationSettings!.values.contains(true) && Platform.isAndroid) {
247247
FlutterLocalNotificationsPlugin()
248248
.resolvePlatformSpecificImplementation<AndroidFlutterLocalNotificationsPlugin>()!
249249
.areNotificationsEnabled()
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
display_name: Klient
2+
3+
icon: android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
4+
5+
keywords:
6+
- Skolengo
7+
8+
generic_name: Klient
9+
10+
startup_notify: true
11+
12+
categories:
13+
- Education
14+
15+
include: []

pubspec.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ packages:
378378
source: hosted
379379
version: "0.1.1"
380380
html:
381-
dependency: transitive
381+
dependency: "direct main"
382382
description:
383383
name: html
384384
sha256: "58e3491f7bf0b6a4ea5110c0c688877460d1a6366731155c4a4580e7ded773e8"

pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ dependencies:
6464
ref: b22562b41a0a721b974de281527b25c03e1161c9
6565
path: packages/animations
6666
desktop_webview_window: ^0.2.0
67+
html: ^0.15.3
6768

6869
dev_dependencies:
6970
flutter_test:

0 commit comments

Comments
 (0)