Skip to content

Commit

Permalink
feat(app): Add spreed
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin committed Aug 9, 2023
1 parent f43ea40 commit e8dfce1
Show file tree
Hide file tree
Showing 14 changed files with 145 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ android {
applicationId "de.provokateurin.neon"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 21
minSdkVersion 23
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
9 changes: 9 additions & 0 deletions packages/app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@

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

<!-- WebRTC -->
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

<application
android:label="@string/app_name"
android:name="${applicationName}"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions packages/app/lib/apps.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:neon_files/neon_files.dart';
import 'package:neon_news/neon_news.dart';
import 'package:neon_notes/neon_notes.dart';
import 'package:neon_notifications/neon_notifications.dart';
import 'package:neon_spreed/neon_spreed.dart';
import 'package:shared_preferences/shared_preferences.dart';

List<AppImplementation> getAppImplementations(
Expand All @@ -17,4 +18,5 @@ List<AppImplementation> getAppImplementations(
NewsApp(sharedPreferences, requestManager, platform),
NotesApp(sharedPreferences, requestManager, platform),
NotificationsApp(sharedPreferences, requestManager, platform),
SpreedApp(sharedPreferences, requestManager, platform),
];
4 changes: 4 additions & 0 deletions packages/app/linux/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "generated_plugin_registrant.h"

#include <file_selector_linux/file_selector_plugin.h>
#include <flutter_webrtc/flutter_web_r_t_c_plugin.h>
#include <screen_retriever/screen_retriever_plugin.h>
#include <tray_manager/tray_manager_plugin.h>
#include <url_launcher_linux/url_launcher_plugin.h>
Expand All @@ -16,6 +17,9 @@ void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
g_autoptr(FlPluginRegistrar) flutter_webrtc_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterWebRTCPlugin");
flutter_web_r_t_c_plugin_register_with_registrar(flutter_webrtc_registrar);
g_autoptr(FlPluginRegistrar) screen_retriever_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "ScreenRetrieverPlugin");
screen_retriever_plugin_register_with_registrar(screen_retriever_registrar);
Expand Down
1 change: 1 addition & 0 deletions packages/app/linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

list(APPEND FLUTTER_PLUGIN_LIST
file_selector_linux
flutter_webrtc
screen_retriever
tray_manager
url_launcher_linux
Expand Down
120 changes: 120 additions & 0 deletions packages/app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.17.3"
dart_webrtc:
dependency: transitive
description:
name: dart_webrtc
sha256: "3f581ea799829fabd6e0b99bd2210146e4d107c7b3ac8495af3510737a5c5c1a"
url: "https://pub.dev"
source: hosted
version: "1.1.1"
dbus:
dependency: transitive
description:
Expand All @@ -217,13 +225,29 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.7.8"
diffutil_dart:
dependency: transitive
description:
name: diffutil_dart
sha256: e0297e4600b9797edff228ed60f4169a778ea357691ec98408fa3b72994c7d06
url: "https://pub.dev"
source: hosted
version: "3.0.0"
dynamite_runtime:
dependency: "direct overridden"
description:
path: "../dynamite/dynamite_runtime"
relative: true
source: path
version: "1.0.0"
equatable:
dependency: transitive
description:
name: equatable
sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2
url: "https://pub.dev"
source: hosted
version: "2.0.5"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -324,6 +348,23 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.3.1"
flutter_chat_types:
dependency: transitive
description:
name: flutter_chat_types
sha256: "34d1d61e46d5ca15f3b46e72d0a9ac98da72edc5eb5bf644a26e27351c9e15ba"
url: "https://pub.dev"
source: hosted
version: "3.6.0"
flutter_chat_ui:
dependency: transitive
description:
path: "."
ref: "feature/reusable-text-matchers"
resolved-ref: "684fb7976ba4544fed4093af494ea2b2adb5cba6"
url: "https://github.com/provokateurin/flutter_chat_ui"
source: git
version: "1.6.6"
flutter_driver:
dependency: transitive
description: flutter
Expand All @@ -345,6 +386,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.0.0-beta.2"
flutter_link_previewer:
dependency: transitive
description:
name: flutter_link_previewer
sha256: d495edef667d4b5db37fb6f31571406c137161a8399dd44a5de4ce2a7c7ba529
url: "https://pub.dev"
source: hosted
version: "3.2.0"
flutter_linkify:
dependency: transitive
description:
name: flutter_linkify
sha256: c89fe74de985ec22f23d3538d2249add085a4f37ac1c29fd79e1a207efb81d63
url: "https://pub.dev"
source: hosted
version: "5.0.2"
flutter_local_notifications:
dependency: transitive
description:
Expand Down Expand Up @@ -424,6 +481,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_webrtc:
dependency: transitive
description:
name: flutter_webrtc
sha256: f7e3ee080638db1793109a2ca4f1391413907057cbee46a7f9bd1dc2a636d1cd
url: "https://pub.dev"
source: hosted
version: "0.9.36"
flutter_zxing:
dependency: transitive
description:
Expand Down Expand Up @@ -602,6 +667,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.8.1"
linkify:
dependency: transitive
description:
name: linkify
sha256: bdfbdafec6cdc9cd0ebb333a868cafc046714ad508e48be8095208c54691d959
url: "https://pub.dev"
source: hosted
version: "4.1.0"
list_counter:
dependency: transitive
description:
Expand Down Expand Up @@ -725,6 +798,13 @@ packages:
relative: true
source: path
version: "1.0.0"
neon_spreed:
dependency: "direct main"
description:
path: "../neon/neon_spreed"
relative: true
source: path
version: "1.0.0"
nested:
dependency: transitive
description:
Expand Down Expand Up @@ -885,6 +965,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "5.4.0"
photo_view:
dependency: transitive
description:
name: photo_view
sha256: "8036802a00bae2a78fc197af8a158e3e2f7b500561ed23b4c458107685e645bb"
url: "https://pub.dev"
source: hosted
version: "0.14.0"
platform:
dependency: transitive
description:
Expand All @@ -893,6 +981,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.1.0"
platform_detect:
dependency: transitive
description:
name: platform_detect
sha256: "14afcb6ffcd93745e39a288db53d1d6522ea25d71f7993c13a367a86c437b54d"
url: "https://pub.dev"
source: hosted
version: "2.0.7"
plugin_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -1029,6 +1125,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.1.6"
scroll_to_index:
dependency: transitive
description:
name: scroll_to_index
sha256: b707546e7500d9f070d63e5acf74fd437ec7eeeb68d3412ef7b0afada0b4f176
url: "https://pub.dev"
source: hosted
version: "3.0.1"
scrollable_positioned_list:
dependency: transitive
description:
Expand Down Expand Up @@ -1409,6 +1513,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.0.2"
visibility_detector:
dependency: transitive
description:
name: visibility_detector
sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420
url: "https://pub.dev"
source: hosted
version: "0.4.0+2"
vm_service:
dependency: transitive
description:
Expand Down Expand Up @@ -1441,6 +1553,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.0.2"
webrtc_interface:
dependency: transitive
description:
name: webrtc_interface
sha256: "0dd96f4d7fb6ba9895930644cebd3f1adb5179caa83cb1760061b2fe9cba5aad"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
webview_flutter:
dependency: transitive
description:
Expand Down
4 changes: 4 additions & 0 deletions packages/app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ dependencies:
git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/neon/neon_notifications
neon_spreed:
git:
url: https://github.com/provokateurin/nextcloud-neon
path: packages/neon/neon_spreed
shared_preferences: ^2.1.1

dev_dependencies:
Expand Down
4 changes: 3 additions & 1 deletion packages/app/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# melos_managed_dependency_overrides: dynamite_runtime,file_icons,neon,neon_files,neon_news,neon_notes,neon_notifications,nextcloud,sort_box
# melos_managed_dependency_overrides: dynamite_runtime,file_icons,neon,neon_files,neon_news,neon_notes,neon_notifications,neon_spreed,nextcloud,sort_box
dependency_overrides:
dynamite_runtime:
path: ../dynamite/dynamite_runtime
Expand All @@ -14,6 +14,8 @@ dependency_overrides:
path: ../neon/neon_notes
neon_notifications:
path: ../neon/neon_notifications
neon_spreed:
path: ../neon/neon_spreed
nextcloud:
path: ../nextcloud
sort_box:
Expand Down
1 change: 1 addition & 0 deletions tool/generate-neon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ copy_nextcloud_app_svg files external/nextcloud-server/apps/files
copy_nextcloud_app_svg news external/nextcloud-news
copy_nextcloud_app_svg notes external/nextcloud-notes
copy_nextcloud_app_svg notifications external/nextcloud-notifications
copy_nextcloud_app_svg spreed external/nextcloud-spreed

(
cd packages/neon/neon
Expand Down

0 comments on commit e8dfce1

Please sign in to comment.