From f18065db4939e275c708ea1a2c824bbc5f8968f7 Mon Sep 17 00:00:00 2001 From: ksenia312 Date: Wed, 7 Feb 2024 13:30:34 +0100 Subject: [PATCH] feat(lib, android, ios): permissions clean up, add id to files pack --- README.md | 6 +- android/src/main/AndroidManifest.xml | 9 +- .../android/app/src/main/AndroidManifest.xml | 11 +- .../android/app/src/main/AndroidManifest.xml | 30 +-- example_full/ios/Runner/Info.plist | 4 + example_full/lib/domain/app_service.dart | 30 ++- example_full/lib/main.dart | 1 + example_full/lib/presentation/app.dart | 28 +- .../builder/app_step_view_builder.dart | 8 +- .../presentation/components/file_preview.dart | 46 ++++ .../presentation/listener/files_listener.dart | 10 +- .../listener/messages_listener.dart | 23 +- .../presentation/view/communication_view.dart | 252 ++++++++---------- .../lib/presentation/view/connected_view.dart | 37 ++- ios/Classes/Models/NearbyCommand.swift | 11 +- ios/Classes/NearbyManager.swift | 1 + ios/Classes/Store/NearbyFilesStore.swift | 6 +- lib/src/model/nearby_files_pack.dart | 15 +- lib/src/model/nearby_message_content.dart | 2 +- lib/src/utils/file_socket.dart | 3 + 20 files changed, 313 insertions(+), 220 deletions(-) create mode 100644 example_full/lib/presentation/components/file_preview.dart diff --git a/README.md b/README.md index 5f4eaf4..4fb6778 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,11 @@ # Nearby Service +Nearby Service Flutter Plugin for creating connections in a P2P network. With this plugin you can easily create any +application for sharing information **without the Internet connection**. -

Connecting phones in a P2P network

+### Connecting phones in a P2P network [![Xenikii Website](https://img.shields.io/badge/-xenikii.one-bd2727?style=flat&logoColor=white)](https://xenikii.one) [![LICENSE BSD](https://img.shields.io/badge/License-BSD-4577d9)](https://github.com/ksenia312/nearby_service/blob/main/LICENSE) + + diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index f327df6..3206053 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,14 +1,13 @@ - + + - + + - - - - + - - - - - - - - - - - - - - - - - - + + + android:icon="@mipmap/ic_launcher" + android:label="nearby_service_example_full"> + android:name="io.flutter.embedding.android.NormalTheme" + android:resource="@style/NormalTheme" /> - - + +