Skip to content

Commit 14fe53f

Browse files
committed
feat(app): Add spreed
Signed-off-by: jld3103 <jld3103yt@gmail.com>
1 parent 0c20287 commit 14fe53f

File tree

14 files changed

+145
-2
lines changed

14 files changed

+145
-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
@@ -5,6 +5,7 @@ import 'package:neon_files/neon_files.dart';
55
import 'package:neon_news/neon_news.dart';
66
import 'package:neon_notes/neon_notes.dart';
77
import 'package:neon_notifications/neon_notifications.dart';
8+
import 'package:neon_spreed/neon_spreed.dart';
89
import 'package:shared_preferences/shared_preferences.dart';
910

1011
List<AppImplementation> getAppImplementations(
@@ -17,4 +18,5 @@ List<AppImplementation> getAppImplementations(
1718
NewsApp(sharedPreferences, requestManager, platform),
1819
NotesApp(sharedPreferences, requestManager, platform),
1920
NotificationsApp(sharedPreferences, requestManager, platform),
21+
SpreedApp(sharedPreferences, requestManager, platform),
2022
];

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: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ packages:
209209
url: "https://pub.dev"
210210
source: hosted
211211
version: "0.17.3"
212+
dart_webrtc:
213+
dependency: transitive
214+
description:
215+
name: dart_webrtc
216+
sha256: "3f581ea799829fabd6e0b99bd2210146e4d107c7b3ac8495af3510737a5c5c1a"
217+
url: "https://pub.dev"
218+
source: hosted
219+
version: "1.1.1"
212220
dbus:
213221
dependency: transitive
214222
description:
@@ -217,13 +225,29 @@ packages:
217225
url: "https://pub.dev"
218226
source: hosted
219227
version: "0.7.8"
228+
diffutil_dart:
229+
dependency: transitive
230+
description:
231+
name: diffutil_dart
232+
sha256: e0297e4600b9797edff228ed60f4169a778ea357691ec98408fa3b72994c7d06
233+
url: "https://pub.dev"
234+
source: hosted
235+
version: "3.0.0"
220236
dynamite_runtime:
221237
dependency: "direct overridden"
222238
description:
223239
path: "../dynamite/dynamite_runtime"
224240
relative: true
225241
source: path
226242
version: "1.0.0"
243+
equatable:
244+
dependency: transitive
245+
description:
246+
name: equatable
247+
sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2
248+
url: "https://pub.dev"
249+
source: hosted
250+
version: "2.0.5"
227251
fake_async:
228252
dependency: transitive
229253
description:
@@ -324,6 +348,23 @@ packages:
324348
url: "https://pub.dev"
325349
source: hosted
326350
version: "3.3.1"
351+
flutter_chat_types:
352+
dependency: transitive
353+
description:
354+
name: flutter_chat_types
355+
sha256: "34d1d61e46d5ca15f3b46e72d0a9ac98da72edc5eb5bf644a26e27351c9e15ba"
356+
url: "https://pub.dev"
357+
source: hosted
358+
version: "3.6.0"
359+
flutter_chat_ui:
360+
dependency: transitive
361+
description:
362+
path: "."
363+
ref: "feature/reusable-text-matchers"
364+
resolved-ref: "684fb7976ba4544fed4093af494ea2b2adb5cba6"
365+
url: "https://github.com/provokateurin/flutter_chat_ui"
366+
source: git
367+
version: "1.6.6"
327368
flutter_driver:
328369
dependency: transitive
329370
description: flutter
@@ -345,6 +386,22 @@ packages:
345386
url: "https://pub.dev"
346387
source: hosted
347388
version: "3.0.0-beta.2"
389+
flutter_link_previewer:
390+
dependency: transitive
391+
description:
392+
name: flutter_link_previewer
393+
sha256: d495edef667d4b5db37fb6f31571406c137161a8399dd44a5de4ce2a7c7ba529
394+
url: "https://pub.dev"
395+
source: hosted
396+
version: "3.2.0"
397+
flutter_linkify:
398+
dependency: transitive
399+
description:
400+
name: flutter_linkify
401+
sha256: c89fe74de985ec22f23d3538d2249add085a4f37ac1c29fd79e1a207efb81d63
402+
url: "https://pub.dev"
403+
source: hosted
404+
version: "5.0.2"
348405
flutter_local_notifications:
349406
dependency: transitive
350407
description:
@@ -424,6 +481,14 @@ packages:
424481
description: flutter
425482
source: sdk
426483
version: "0.0.0"
484+
flutter_webrtc:
485+
dependency: transitive
486+
description:
487+
name: flutter_webrtc
488+
sha256: f7e3ee080638db1793109a2ca4f1391413907057cbee46a7f9bd1dc2a636d1cd
489+
url: "https://pub.dev"
490+
source: hosted
491+
version: "0.9.36"
427492
flutter_zxing:
428493
dependency: transitive
429494
description:
@@ -602,6 +667,14 @@ packages:
602667
url: "https://pub.dev"
603668
source: hosted
604669
version: "4.8.1"
670+
linkify:
671+
dependency: transitive
672+
description:
673+
name: linkify
674+
sha256: bdfbdafec6cdc9cd0ebb333a868cafc046714ad508e48be8095208c54691d959
675+
url: "https://pub.dev"
676+
source: hosted
677+
version: "4.1.0"
605678
list_counter:
606679
dependency: transitive
607680
description:
@@ -725,6 +798,13 @@ packages:
725798
relative: true
726799
source: path
727800
version: "1.0.0"
801+
neon_spreed:
802+
dependency: "direct main"
803+
description:
804+
path: "../neon/neon_spreed"
805+
relative: true
806+
source: path
807+
version: "1.0.0"
728808
nested:
729809
dependency: transitive
730810
description:
@@ -885,6 +965,14 @@ packages:
885965
url: "https://pub.dev"
886966
source: hosted
887967
version: "5.4.0"
968+
photo_view:
969+
dependency: transitive
970+
description:
971+
name: photo_view
972+
sha256: "8036802a00bae2a78fc197af8a158e3e2f7b500561ed23b4c458107685e645bb"
973+
url: "https://pub.dev"
974+
source: hosted
975+
version: "0.14.0"
888976
platform:
889977
dependency: transitive
890978
description:
@@ -893,6 +981,14 @@ packages:
893981
url: "https://pub.dev"
894982
source: hosted
895983
version: "3.1.0"
984+
platform_detect:
985+
dependency: transitive
986+
description:
987+
name: platform_detect
988+
sha256: "14afcb6ffcd93745e39a288db53d1d6522ea25d71f7993c13a367a86c437b54d"
989+
url: "https://pub.dev"
990+
source: hosted
991+
version: "2.0.7"
896992
plugin_platform_interface:
897993
dependency: transitive
898994
description:
@@ -1029,6 +1125,14 @@ packages:
10291125
url: "https://pub.dev"
10301126
source: hosted
10311127
version: "0.1.6"
1128+
scroll_to_index:
1129+
dependency: transitive
1130+
description:
1131+
name: scroll_to_index
1132+
sha256: b707546e7500d9f070d63e5acf74fd437ec7eeeb68d3412ef7b0afada0b4f176
1133+
url: "https://pub.dev"
1134+
source: hosted
1135+
version: "3.0.1"
10321136
scrollable_positioned_list:
10331137
dependency: transitive
10341138
description:
@@ -1409,6 +1513,14 @@ packages:
14091513
url: "https://pub.dev"
14101514
source: hosted
14111515
version: "3.0.2"
1516+
visibility_detector:
1517+
dependency: transitive
1518+
description:
1519+
name: visibility_detector
1520+
sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420
1521+
url: "https://pub.dev"
1522+
source: hosted
1523+
version: "0.4.0+2"
14121524
vm_service:
14131525
dependency: transitive
14141526
description:
@@ -1441,6 +1553,14 @@ packages:
14411553
url: "https://pub.dev"
14421554
source: hosted
14431555
version: "3.0.2"
1556+
webrtc_interface:
1557+
dependency: transitive
1558+
description:
1559+
name: webrtc_interface
1560+
sha256: "0dd96f4d7fb6ba9895930644cebd3f1adb5179caa83cb1760061b2fe9cba5aad"
1561+
url: "https://pub.dev"
1562+
source: hosted
1563+
version: "1.1.0"
14441564
webview_flutter:
14451565
dependency: transitive
14461566
description:

packages/app/pubspec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ dependencies:
3131
git:
3232
url: https://github.com/nextcloud/neon
3333
path: packages/neon/neon_notifications
34+
neon_spreed:
35+
git:
36+
url: https://github.com/provokateurin/nextcloud-neon
37+
path: packages/neon/neon_spreed
3438
shared_preferences: ^2.1.1
3539

3640
dev_dependencies:

packages/app/pubspec_overrides.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# melos_managed_dependency_overrides: dynamite_runtime,file_icons,neon,neon_files,neon_news,neon_notes,neon_notifications,nextcloud,sort_box
1+
# melos_managed_dependency_overrides: dynamite_runtime,file_icons,neon,neon_files,neon_news,neon_notes,neon_notifications,neon_spreed,nextcloud,sort_box
22
dependency_overrides:
33
dynamite_runtime:
44
path: ../dynamite/dynamite_runtime
@@ -14,6 +14,8 @@ dependency_overrides:
1414
path: ../neon/neon_notes
1515
neon_notifications:
1616
path: ../neon/neon_notifications
17+
neon_spreed:
18+
path: ../neon/neon_spreed
1719
nextcloud:
1820
path: ../nextcloud
1921
sort_box:

tool/generate-neon.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ copy_nextcloud_app_svg files external/nextcloud-server/apps/files
2626
copy_nextcloud_app_svg news external/nextcloud-news
2727
copy_nextcloud_app_svg notes external/nextcloud-notes
2828
copy_nextcloud_app_svg notifications external/nextcloud-notifications
29+
copy_nextcloud_app_svg spreed external/nextcloud-spreed
2930

3031
(
3132
cd packages/neon/neon

0 commit comments

Comments
 (0)