diff --git a/app/pubspec.yaml b/app/pubspec.yaml deleted file mode 100644 index 1613ed0..0000000 --- a/app/pubspec.yaml +++ /dev/null @@ -1,89 +0,0 @@ -name: app -description: "A new Flutter project." -# The following line prevents the package from being accidentally published to -# pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev - -# The following defines the version and build number for your application. -# A version number is three numbers separated by dots, like 1.2.43 -# followed by an optional build number separated by a +. -# Both the version and the builder number may be overridden in flutter -# build by specifying --build-name and --build-number, respectively. -# In Android, build-name is used as versionName while build-number used as versionCode. -# Read more about Android versioning at https://developer.android.com/studio/publish/versioning -# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. -# Read more about iOS versioning at -# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -# In Windows, build-name is used as the major, minor, and patch parts -# of the product and file versions while build-number is used as the build suffix. -version: 1.0.0+1 - -environment: - sdk: ^3.10.8 - -# Dependencies specify other packages that your package needs in order to work. -# To automatically upgrade your package dependencies to the latest versions -# consider running `flutter pub upgrade --major-versions`. Alternatively, -# dependencies can be manually updated by changing the version numbers below to -# the latest version available on pub.dev. To see which dependencies have newer -# versions available, run `flutter pub outdated`. -dependencies: - flutter: - sdk: flutter - - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.8 - -dev_dependencies: - flutter_test: - sdk: flutter - - # The "flutter_lints" package below contains a set of recommended lints to - # encourage good coding practices. The lint set provided by the package is - # activated in the `analysis_options.yaml` file located at the root of your - # package. See that file for information about deactivating specific lint - # rules and activating additional ones. - flutter_lints: ^6.0.0 - -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter packages. -flutter: - - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. - uses-material-design: true - - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/to/resolution-aware-images - - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/to/asset-from-package - - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/to/font-from-package diff --git a/server/crates/arbiter-proto/Cargo.toml b/server/crates/arbiter-proto/Cargo.toml index 3de2aed..ade18fe 100644 --- a/server/crates/arbiter-proto/Cargo.toml +++ b/server/crates/arbiter-proto/Cargo.toml @@ -28,4 +28,7 @@ rstest.workspace = true rand.workspace = true rcgen.workspace = true +[package.metadata.cargo-shear] +ignored = ["tonic-prost", "prost", "kameo"] + diff --git a/server/crates/arbiter-useragent/src/lib.rs b/server/crates/arbiter-useragent/src/lib.rs index e69de29..c4da0d0 100644 --- a/server/crates/arbiter-useragent/src/lib.rs +++ b/server/crates/arbiter-useragent/src/lib.rs @@ -0,0 +1,13 @@ +use ed25519_dalek::SigningKey; +use kameo::Actor; +use tonic::transport::CertificateDer; + +struct Storage { + pub identity: SigningKey, + pub server_ca_cert: CertificateDer<'static>, +} + +#[derive(Actor)] +pub struct UserAgent { + +} \ No newline at end of file diff --git a/app/.gitignore b/useragent/.gitignore similarity index 100% rename from app/.gitignore rename to useragent/.gitignore diff --git a/app/.metadata b/useragent/.metadata similarity index 100% rename from app/.metadata rename to useragent/.metadata diff --git a/app/README.md b/useragent/README.md similarity index 100% rename from app/README.md rename to useragent/README.md diff --git a/app/analysis_options.yaml b/useragent/analysis_options.yaml similarity index 100% rename from app/analysis_options.yaml rename to useragent/analysis_options.yaml diff --git a/app/lib/main.dart b/useragent/lib/main.dart similarity index 100% rename from app/lib/main.dart rename to useragent/lib/main.dart diff --git a/app/macos/.gitignore b/useragent/macos/.gitignore similarity index 100% rename from app/macos/.gitignore rename to useragent/macos/.gitignore diff --git a/app/macos/Flutter/Flutter-Debug.xcconfig b/useragent/macos/Flutter/Flutter-Debug.xcconfig similarity index 100% rename from app/macos/Flutter/Flutter-Debug.xcconfig rename to useragent/macos/Flutter/Flutter-Debug.xcconfig diff --git a/app/macos/Flutter/Flutter-Release.xcconfig b/useragent/macos/Flutter/Flutter-Release.xcconfig similarity index 100% rename from app/macos/Flutter/Flutter-Release.xcconfig rename to useragent/macos/Flutter/Flutter-Release.xcconfig diff --git a/app/macos/Flutter/GeneratedPluginRegistrant.swift b/useragent/macos/Flutter/GeneratedPluginRegistrant.swift similarity index 100% rename from app/macos/Flutter/GeneratedPluginRegistrant.swift rename to useragent/macos/Flutter/GeneratedPluginRegistrant.swift diff --git a/app/macos/Runner.xcodeproj/project.pbxproj b/useragent/macos/Runner.xcodeproj/project.pbxproj similarity index 100% rename from app/macos/Runner.xcodeproj/project.pbxproj rename to useragent/macos/Runner.xcodeproj/project.pbxproj diff --git a/app/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/useragent/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from app/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to useragent/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/app/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/useragent/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from app/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to useragent/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/app/macos/Runner.xcworkspace/contents.xcworkspacedata b/useragent/macos/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from app/macos/Runner.xcworkspace/contents.xcworkspacedata rename to useragent/macos/Runner.xcworkspace/contents.xcworkspacedata diff --git a/app/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/useragent/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from app/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to useragent/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/app/macos/Runner/AppDelegate.swift b/useragent/macos/Runner/AppDelegate.swift similarity index 100% rename from app/macos/Runner/AppDelegate.swift rename to useragent/macos/Runner/AppDelegate.swift diff --git a/app/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from app/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png similarity index 100% rename from app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png rename to useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png diff --git a/app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png similarity index 100% rename from app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png rename to useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png diff --git a/app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png similarity index 100% rename from app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png rename to useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png diff --git a/app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png similarity index 100% rename from app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png rename to useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png diff --git a/app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png similarity index 100% rename from app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png rename to useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png diff --git a/app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png similarity index 100% rename from app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png rename to useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png diff --git a/app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png similarity index 100% rename from app/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png rename to useragent/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png diff --git a/app/macos/Runner/Base.lproj/MainMenu.xib b/useragent/macos/Runner/Base.lproj/MainMenu.xib similarity index 100% rename from app/macos/Runner/Base.lproj/MainMenu.xib rename to useragent/macos/Runner/Base.lproj/MainMenu.xib diff --git a/app/macos/Runner/Configs/AppInfo.xcconfig b/useragent/macos/Runner/Configs/AppInfo.xcconfig similarity index 100% rename from app/macos/Runner/Configs/AppInfo.xcconfig rename to useragent/macos/Runner/Configs/AppInfo.xcconfig diff --git a/app/macos/Runner/Configs/Debug.xcconfig b/useragent/macos/Runner/Configs/Debug.xcconfig similarity index 100% rename from app/macos/Runner/Configs/Debug.xcconfig rename to useragent/macos/Runner/Configs/Debug.xcconfig diff --git a/app/macos/Runner/Configs/Release.xcconfig b/useragent/macos/Runner/Configs/Release.xcconfig similarity index 100% rename from app/macos/Runner/Configs/Release.xcconfig rename to useragent/macos/Runner/Configs/Release.xcconfig diff --git a/app/macos/Runner/Configs/Warnings.xcconfig b/useragent/macos/Runner/Configs/Warnings.xcconfig similarity index 100% rename from app/macos/Runner/Configs/Warnings.xcconfig rename to useragent/macos/Runner/Configs/Warnings.xcconfig diff --git a/app/macos/Runner/DebugProfile.entitlements b/useragent/macos/Runner/DebugProfile.entitlements similarity index 100% rename from app/macos/Runner/DebugProfile.entitlements rename to useragent/macos/Runner/DebugProfile.entitlements diff --git a/app/macos/Runner/Info.plist b/useragent/macos/Runner/Info.plist similarity index 100% rename from app/macos/Runner/Info.plist rename to useragent/macos/Runner/Info.plist diff --git a/app/macos/Runner/MainFlutterWindow.swift b/useragent/macos/Runner/MainFlutterWindow.swift similarity index 100% rename from app/macos/Runner/MainFlutterWindow.swift rename to useragent/macos/Runner/MainFlutterWindow.swift diff --git a/app/macos/Runner/Release.entitlements b/useragent/macos/Runner/Release.entitlements similarity index 100% rename from app/macos/Runner/Release.entitlements rename to useragent/macos/Runner/Release.entitlements diff --git a/app/macos/RunnerTests/RunnerTests.swift b/useragent/macos/RunnerTests/RunnerTests.swift similarity index 100% rename from app/macos/RunnerTests/RunnerTests.swift rename to useragent/macos/RunnerTests/RunnerTests.swift diff --git a/app/pubspec.lock b/useragent/pubspec.lock similarity index 96% rename from app/pubspec.lock rename to useragent/pubspec.lock index 08f88ae..134f6f2 100644 --- a/app/pubspec.lock +++ b/useragent/pubspec.lock @@ -41,14 +41,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.19.1" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 - url: "https://pub.dev" - source: hosted - version: "1.0.8" fake_async: dependency: transitive description: diff --git a/useragent/pubspec.yaml b/useragent/pubspec.yaml new file mode 100644 index 0000000..5050191 --- /dev/null +++ b/useragent/pubspec.yaml @@ -0,0 +1,21 @@ +name: arbiter +description: "User agent for Arbiter" +publish_to: 'none' + +version: 0.1.0 + +environment: + sdk: ^3.10.8 + +dependencies: + flutter: + sdk: flutter + +dev_dependencies: + flutter_test: + sdk: flutter + + flutter_lints: ^6.0.0 + +flutter: + uses-material-design: true diff --git a/app/windows/.gitignore b/useragent/windows/.gitignore similarity index 100% rename from app/windows/.gitignore rename to useragent/windows/.gitignore diff --git a/app/windows/CMakeLists.txt b/useragent/windows/CMakeLists.txt similarity index 100% rename from app/windows/CMakeLists.txt rename to useragent/windows/CMakeLists.txt diff --git a/app/windows/flutter/CMakeLists.txt b/useragent/windows/flutter/CMakeLists.txt similarity index 100% rename from app/windows/flutter/CMakeLists.txt rename to useragent/windows/flutter/CMakeLists.txt diff --git a/app/windows/flutter/generated_plugin_registrant.cc b/useragent/windows/flutter/generated_plugin_registrant.cc similarity index 100% rename from app/windows/flutter/generated_plugin_registrant.cc rename to useragent/windows/flutter/generated_plugin_registrant.cc diff --git a/app/windows/flutter/generated_plugin_registrant.h b/useragent/windows/flutter/generated_plugin_registrant.h similarity index 100% rename from app/windows/flutter/generated_plugin_registrant.h rename to useragent/windows/flutter/generated_plugin_registrant.h diff --git a/app/windows/flutter/generated_plugins.cmake b/useragent/windows/flutter/generated_plugins.cmake similarity index 100% rename from app/windows/flutter/generated_plugins.cmake rename to useragent/windows/flutter/generated_plugins.cmake diff --git a/app/windows/runner/CMakeLists.txt b/useragent/windows/runner/CMakeLists.txt similarity index 100% rename from app/windows/runner/CMakeLists.txt rename to useragent/windows/runner/CMakeLists.txt diff --git a/app/windows/runner/Runner.rc b/useragent/windows/runner/Runner.rc similarity index 100% rename from app/windows/runner/Runner.rc rename to useragent/windows/runner/Runner.rc diff --git a/app/windows/runner/flutter_window.cpp b/useragent/windows/runner/flutter_window.cpp similarity index 100% rename from app/windows/runner/flutter_window.cpp rename to useragent/windows/runner/flutter_window.cpp diff --git a/app/windows/runner/flutter_window.h b/useragent/windows/runner/flutter_window.h similarity index 100% rename from app/windows/runner/flutter_window.h rename to useragent/windows/runner/flutter_window.h diff --git a/app/windows/runner/main.cpp b/useragent/windows/runner/main.cpp similarity index 100% rename from app/windows/runner/main.cpp rename to useragent/windows/runner/main.cpp diff --git a/app/windows/runner/resource.h b/useragent/windows/runner/resource.h similarity index 100% rename from app/windows/runner/resource.h rename to useragent/windows/runner/resource.h diff --git a/app/windows/runner/resources/app_icon.ico b/useragent/windows/runner/resources/app_icon.ico similarity index 100% rename from app/windows/runner/resources/app_icon.ico rename to useragent/windows/runner/resources/app_icon.ico diff --git a/app/windows/runner/runner.exe.manifest b/useragent/windows/runner/runner.exe.manifest similarity index 100% rename from app/windows/runner/runner.exe.manifest rename to useragent/windows/runner/runner.exe.manifest diff --git a/app/windows/runner/utils.cpp b/useragent/windows/runner/utils.cpp similarity index 100% rename from app/windows/runner/utils.cpp rename to useragent/windows/runner/utils.cpp diff --git a/app/windows/runner/utils.h b/useragent/windows/runner/utils.h similarity index 100% rename from app/windows/runner/utils.h rename to useragent/windows/runner/utils.h diff --git a/app/windows/runner/win32_window.cpp b/useragent/windows/runner/win32_window.cpp similarity index 100% rename from app/windows/runner/win32_window.cpp rename to useragent/windows/runner/win32_window.cpp diff --git a/app/windows/runner/win32_window.h b/useragent/windows/runner/win32_window.h similarity index 100% rename from app/windows/runner/win32_window.h rename to useragent/windows/runner/win32_window.h