Skip to content

Commit f9bea87

Browse files
committed
feat(app): Add spreed
Signed-off-by: jld3103 <jld3103yt@gmail.com>
1 parent 40b08b3 commit f9bea87

File tree

14 files changed

+152
-2
lines changed

14 files changed

+152
-2
lines changed

packages/app/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ android {
4646
applicationId "de.provokateurin.neon"
4747
// You can update the following values to match your application needs.
4848
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
49-
minSdkVersion 21
49+
minSdkVersion 23
5050
targetSdkVersion flutter.targetSdkVersion
5151
versionCode flutterVersionCode.toInteger()
5252
versionName flutterVersionName

packages/app/android/app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33

44
<uses-permission android:name="android.permission.INTERNET"/>
55

6+
<!-- WebRTC -->
7+
<uses-feature android:name="android.hardware.camera" />
8+
<uses-feature android:name="android.hardware.camera.autofocus" />
9+
<uses-permission android:name="android.permission.CAMERA" />
10+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
11+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
12+
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
13+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
14+
615
<application
716
android:label="@string/app_name"
817
android:name="${applicationName}"
Loading
Loading
Loading
Loading
Loading

packages/app/lib/apps.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ import 'package:neon_files/neon_files.dart';
33
import 'package:neon_news/neon_news.dart';
44
import 'package:neon_notes/neon_notes.dart';
55
import 'package:neon_notifications/neon_notifications.dart';
6+
import 'package:neon_spreed/neon_spreed.dart';
67

78
final List<AppImplementation> appImplementations = [
89
FilesApp(),
910
NewsApp(),
1011
NotesApp(),
1112
NotificationsApp(),
13+
SpreedApp(),
1214
];

packages/app/linux/flutter/generated_plugin_registrant.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "generated_plugin_registrant.h"
88

99
#include <file_selector_linux/file_selector_plugin.h>
10+
#include <flutter_webrtc/flutter_web_r_t_c_plugin.h>
1011
#include <screen_retriever/screen_retriever_plugin.h>
1112
#include <tray_manager/tray_manager_plugin.h>
1213
#include <url_launcher_linux/url_launcher_plugin.h>
@@ -16,6 +17,9 @@ void fl_register_plugins(FlPluginRegistry* registry) {
1617
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
1718
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
1819
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
20+
g_autoptr(FlPluginRegistrar) flutter_webrtc_registrar =
21+
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterWebRTCPlugin");
22+
flutter_web_r_t_c_plugin_register_with_registrar(flutter_webrtc_registrar);
1923
g_autoptr(FlPluginRegistrar) screen_retriever_registrar =
2024
fl_plugin_registry_get_registrar_for_plugin(registry, "ScreenRetrieverPlugin");
2125
screen_retriever_plugin_register_with_registrar(screen_retriever_registrar);

packages/app/linux/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
list(APPEND FLUTTER_PLUGIN_LIST
66
file_selector_linux
7+
flutter_webrtc
78
screen_retriever
89
tray_manager
910
url_launcher_linux

packages/app/pubspec.lock

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ packages:
169169
url: "https://pub.dev"
170170
source: hosted
171171
version: "0.17.3"
172+
dart_webrtc:
173+
dependency: transitive
174+
description:
175+
name: dart_webrtc
176+
sha256: dfe42714abe3eb83eefec407c9da7f8e341a899aa1b8ac2484af298cdfeb74a3
177+
url: "https://pub.dev"
178+
source: hosted
179+
version: "1.1.2"
172180
dbus:
173181
dependency: transitive
174182
description:
@@ -177,13 +185,29 @@ packages:
177185
url: "https://pub.dev"
178186
source: hosted
179187
version: "0.7.8"
188+
diffutil_dart:
189+
dependency: transitive
190+
description:
191+
name: diffutil_dart
192+
sha256: e0297e4600b9797edff228ed60f4169a778ea357691ec98408fa3b72994c7d06
193+
url: "https://pub.dev"
194+
source: hosted
195+
version: "3.0.0"
180196
dynamite_runtime:
181197
dependency: "direct overridden"
182198
description:
183199
path: "../dynamite/dynamite_runtime"
184200
relative: true
185201
source: path
186202
version: "1.0.0"
203+
equatable:
204+
dependency: transitive
205+
description:
206+
name: equatable
207+
sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2
208+
url: "https://pub.dev"
209+
source: hosted
210+
version: "2.0.5"
187211
fake_async:
188212
dependency: transitive
189213
description:
@@ -284,6 +308,23 @@ packages:
284308
url: "https://pub.dev"
285309
source: hosted
286310
version: "3.3.1"
311+
flutter_chat_types:
312+
dependency: transitive
313+
description:
314+
name: flutter_chat_types
315+
sha256: e285b588f6d19d907feb1f6d912deaf22e223656769c34093b64e1c59b094fb9
316+
url: "https://pub.dev"
317+
source: hosted
318+
version: "3.6.2"
319+
flutter_chat_ui:
320+
dependency: transitive
321+
description:
322+
path: "."
323+
ref: "feature/reusable-text-matchers"
324+
resolved-ref: "51bf6f5a3acb584144be3e6ce87d1d05fd67f9ed"
325+
url: "https://github.com/provokateurin/flutter_chat_ui"
326+
source: git
327+
version: "1.6.9"
287328
flutter_driver:
288329
dependency: transitive
289330
description: flutter
@@ -305,6 +346,22 @@ packages:
305346
url: "https://pub.dev"
306347
source: hosted
307348
version: "3.0.0-beta.2"
349+
flutter_link_previewer:
350+
dependency: transitive
351+
description:
352+
name: flutter_link_previewer
353+
sha256: "007069e60f42419fb59872beb7a3cc3ea21e9f1bdff5d40239f376fa62ca9f20"
354+
url: "https://pub.dev"
355+
source: hosted
356+
version: "3.2.2"
357+
flutter_linkify:
358+
dependency: transitive
359+
description:
360+
name: flutter_linkify
361+
sha256: "74669e06a8f358fee4512b4320c0b80e51cffc496607931de68d28f099254073"
362+
url: "https://pub.dev"
363+
source: hosted
364+
version: "6.0.0"
308365
flutter_local_notifications:
309366
dependency: transitive
310367
description:
@@ -392,6 +449,14 @@ packages:
392449
description: flutter
393450
source: sdk
394451
version: "0.0.0"
452+
flutter_webrtc:
453+
dependency: transitive
454+
description:
455+
name: flutter_webrtc
456+
sha256: "770c6f8babfdc4907539dc57bf9e98b89132eaa4486bac774c537dd25c2d5362"
457+
url: "https://pub.dev"
458+
source: hosted
459+
version: "0.9.40"
395460
flutter_zxing:
396461
dependency: transitive
397462
description:
@@ -546,6 +611,14 @@ packages:
546611
url: "https://pub.dev"
547612
source: hosted
548613
version: "4.8.1"
614+
linkify:
615+
dependency: transitive
616+
description:
617+
name: linkify
618+
sha256: "4139ea77f4651ab9c315b577da2dd108d9aa0bd84b5d03d33323f1970c645832"
619+
url: "https://pub.dev"
620+
source: hosted
621+
version: "5.0.0"
549622
list_counter:
550623
dependency: transitive
551624
description:
@@ -652,6 +725,13 @@ packages:
652725
relative: true
653726
source: path
654727
version: "1.0.0"
728+
neon_spreed:
729+
dependency: "direct main"
730+
description:
731+
path: "../neon/neon_spreed"
732+
relative: true
733+
source: path
734+
version: "1.0.0"
655735
nested:
656736
dependency: transitive
657737
description:
@@ -803,6 +883,14 @@ packages:
803883
url: "https://pub.dev"
804884
source: hosted
805885
version: "5.4.0"
886+
photo_view:
887+
dependency: transitive
888+
description:
889+
name: photo_view
890+
sha256: "8036802a00bae2a78fc197af8a158e3e2f7b500561ed23b4c458107685e645bb"
891+
url: "https://pub.dev"
892+
source: hosted
893+
version: "0.14.0"
806894
platform:
807895
dependency: transitive
808896
description:
@@ -811,6 +899,14 @@ packages:
811899
url: "https://pub.dev"
812900
source: hosted
813901
version: "3.1.0"
902+
platform_detect:
903+
dependency: transitive
904+
description:
905+
name: platform_detect
906+
sha256: "14afcb6ffcd93745e39a288db53d1d6522ea25d71f7993c13a367a86c437b54d"
907+
url: "https://pub.dev"
908+
source: hosted
909+
version: "2.0.7"
814910
plugin_platform_interface:
815911
dependency: transitive
816912
description:
@@ -843,6 +939,14 @@ packages:
843939
url: "https://pub.dev"
844940
source: hosted
845941
version: "6.0.5"
942+
pub_semver:
943+
dependency: transitive
944+
description:
945+
name: pub_semver
946+
sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c"
947+
url: "https://pub.dev"
948+
source: hosted
949+
version: "2.1.4"
846950
queue:
847951
dependency: transitive
848952
description:
@@ -907,6 +1011,14 @@ packages:
9071011
url: "https://pub.dev"
9081012
source: hosted
9091013
version: "0.1.9"
1014+
scroll_to_index:
1015+
dependency: transitive
1016+
description:
1017+
name: scroll_to_index
1018+
sha256: b707546e7500d9f070d63e5acf74fd437ec7eeeb68d3412ef7b0afada0b4f176
1019+
url: "https://pub.dev"
1020+
source: hosted
1021+
version: "3.0.1"
9101022
scrollable_positioned_list:
9111023
dependency: transitive
9121024
description:
@@ -1279,6 +1391,14 @@ packages:
12791391
url: "https://pub.dev"
12801392
source: hosted
12811393
version: "3.0.2"
1394+
visibility_detector:
1395+
dependency: transitive
1396+
description:
1397+
name: visibility_detector
1398+
sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420
1399+
url: "https://pub.dev"
1400+
source: hosted
1401+
version: "0.4.0+2"
12821402
vm_service:
12831403
dependency: transitive
12841404
description:
@@ -1319,6 +1439,14 @@ packages:
13191439
url: "https://pub.dev"
13201440
source: hosted
13211441
version: "3.0.2"
1442+
webrtc_interface:
1443+
dependency: transitive
1444+
description:
1445+
name: webrtc_interface
1446+
sha256: faec2b578f7cd588766843a8c59d4a0137c44de10b83341ce7bec05e104614d7
1447+
url: "https://pub.dev"
1448+
source: hosted
1449+
version: "1.1.1"
13221450
webview_flutter:
13231451
dependency: transitive
13241452
description:

packages/app/pubspec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ dependencies:
2929
git:
3030
url: https://github.com/nextcloud/neon
3131
path: packages/neon/neon_notifications
32+
neon_spreed:
33+
git:
34+
url: https://github.com/nextcloud/neon
35+
path: packages/neon/neon_spreed
3236
vector_graphics: ^1.1.7
3337

3438
dev_dependencies:

packages/app/pubspec_overrides.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# melos_managed_dependency_overrides: dynamite_runtime,file_icons,neon,neon_files,neon_news,neon_notes,neon_notifications,nextcloud,sort_box,neon_lints
21
dependency_overrides:
32
dynamite_runtime:
43
path: ../dynamite/dynamite_runtime
@@ -16,6 +15,8 @@ dependency_overrides:
1615
path: ../neon/neon_notes
1716
neon_notifications:
1817
path: ../neon/neon_notifications
18+
neon_spreed:
19+
path: ../neon/neon_spreed
1920
nextcloud:
2021
path: ../nextcloud
2122
sort_box:

tool/generate-neon.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ copy_app_svg files external/nextcloud-server/apps/files
3535
copy_app_svg news external/nextcloud-news
3636
copy_app_svg notes external/nextcloud-notes
3737
copy_app_svg notifications external/nextcloud-notifications
38+
copy_app_svg spreed external/nextcloud-spreed
3839

3940
icons_dir="packages/neon/neon/assets/icons/server/"
4041
rm -rf "$icons_dir"

0 commit comments

Comments
 (0)