diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bbcf6ad --- /dev/null +++ b/Dockerfile @@ -0,0 +1,47 @@ +# Environemnt to install flutter and build web +FROM debian:latest AS build-env + +# install all needed stuff +RUN apt-get update +RUN apt-get install -y curl git unzip + +# define variables +ARG FLUTTER_SDK=/usr/local/flutter +ARG FLUTTER_VERSION=3.19.6 +ARG APP=/app/ + +#clone flutter +RUN git clone https://github.com/flutter/flutter.git $FLUTTER_SDK +# change dir to current flutter folder and make a checkout to the specific version +RUN cd $FLUTTER_SDK && git fetch && git checkout $FLUTTER_VERSION + +# setup the flutter path as an enviromental variable +ENV PATH="$FLUTTER_SDK/bin:$FLUTTER_SDK/bin/cache/dart-sdk/bin:${PATH}" + +# Start to run Flutter commands +# doctor to see if all was installes ok +RUN flutter doctor -v + +# create folder to copy source code +RUN mkdir $APP +# copy source code to folder +COPY . $APP +# stup new folder as the working directory +WORKDIR $APP + +# Run build: 1 - clean, 2 - pub get, 3 - build web +RUN flutter clean +RUN flutter pub get +RUN flutter build web + +# once heare the app will be compiled and ready to deploy + +# use nginx to deploy +FROM nginx:1.25.2-alpine + +# copy the info of the builded web app to nginx +COPY --from=build-env /app/build/web /usr/share/nginx/html + +# Expose and run nginx +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/README.md b/README.md index abc247f..ebdafb3 100644 --- a/README.md +++ b/README.md @@ -1,125 +1,16 @@ - -

- - - Flutter - -

-
+# oc_front -[![Flutter CI Status](https://flutter-dashboard.appspot.com/api/public/build-status-badge?repo=flutter)](https://flutter-dashboard.appspot.com/#/build?repo=flutter) -[![Discord badge][]][Discord instructions] -[![Twitter handle][]][Twitter badge] -[![codecov](https://codecov.io/gh/flutter/flutter/branch/master/graph/badge.svg?token=11yDrJU2M2)](https://codecov.io/gh/flutter/flutter) -[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5631/badge)](https://bestpractices.coreinfrastructure.org/projects/5631) -[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/flutter/flutter/badge)](https://deps.dev/project/github/flutter%2Fflutter) -[![SLSA 1](https://slsa.dev/images/gh-badge-level1.svg)](https://slsa.dev) +A new Flutter project. -Flutter is Google's SDK for crafting beautiful, fast user experiences for -mobile, web, and desktop from a single codebase. Flutter works with existing -code, is used by developers and organizations around the world, and is free and -open source. +## Getting Started -## Documentation +This project is a starting point for a Flutter application. -* [Install Flutter](https://flutter.dev/get-started/) -* [Flutter documentation](https://docs.flutter.dev/) -* [Development wiki](./docs/README.md) -* [Contributing to Flutter](https://github.com/flutter/flutter/blob/main/CONTRIBUTING.md) +A few resources to get you started if this is your first Flutter project: -For announcements about new releases, follow the -[flutter-announce@googlegroups.com](https://groups.google.com/forum/#!forum/flutter-announce) -mailing list. Our documentation also tracks [breaking -changes](https://docs.flutter.dev/release/breaking-changes) across releases. +- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) -## Terms of service - -The Flutter tool may occasionally download resources from Google servers. By -downloading or using the Flutter SDK, you agree to the Google Terms of Service: -https://policies.google.com/terms - -For example, when installed from GitHub (as opposed to from a prepackaged -archive), the Flutter tool will download the Dart SDK from Google servers -immediately when first run, as it is used to execute the `flutter` tool itself. -This will also occur when Flutter is upgraded (e.g. by running the `flutter -upgrade` command). - -## About Flutter - -We think Flutter will help you create beautiful, fast apps, with a productive, -extensible and open development model, whether you're targeting iOS or Android, -web, Windows, macOS, Linux or embedding it as the UI toolkit for a platform of -your choice. - -### Beautiful user experiences - -We want to enable designers to deliver their full creative vision without being -forced to water it down due to limitations of the underlying framework. -Flutter's [layered architecture] gives you control over every pixel on the -screen and its powerful compositing capabilities let you overlay and animate -graphics, video, text, and controls without limitation. Flutter includes a full -[set of widgets][widget catalog] that deliver pixel-perfect experiences whether -you're building for iOS ([Cupertino]) or other platforms ([Material]), along with -support for customizing or creating entirely new visual components. - -

Reflectly hero image

- -### Fast results - -Flutter is fast. It's powered by hardware-accelerated 2D graphics -libraries like [Skia] (that underpins Chrome and Android) and -[Impeller]. We architected Flutter to -support glitch-free, jank-free graphics at the native speed of your device. - -Flutter code is powered by the world-class [Dart platform], which enables -compilation to 32-bit and 64-bit ARM machine code for iOS and Android, -JavaScript and WebAssembly for the web, as well as Intel x64 and ARM -for desktop devices. - -

Dart diagram

- -### Productive development - -Flutter offers [stateful hot reload][Hot reload], allowing you to make changes to your code -and see the results instantly without restarting your app or losing its state. - -[![Hot reload animation][]][Hot reload] - -### Extensible and open model - -Flutter works with any development tool (or none at all), and also includes -editor plug-ins for both [Visual Studio Code] and [IntelliJ / Android Studio]. -Flutter provides [tens of thousands of packages][Flutter packages] to speed your -development, regardless of your target platform. And accessing other native code -is easy, with support for both FFI ([on Android][Android FFI], [on iOS][iOS FFI], -[on macOS][macOS FFI], and [on Windows][Windows FFI]) as well as -[platform-specific APIs][platform channels]. - -Flutter is a fully open-source project, and we welcome contributions. -Information on how to get started can be found in our -[contributor guide](CONTRIBUTING.md). - -[flutter.dev]: https://flutter.dev -[Discord instructions]: ./docs/contributing/Chat.md -[Discord badge]: https://img.shields.io/discord/608014603317936148?logo=discord -[Twitter handle]: https://img.shields.io/twitter/follow/flutterdev.svg?style=social&label=Follow -[Twitter badge]: https://twitter.com/intent/follow?screen_name=flutterdev -[layered architecture]: https://docs.flutter.dev/resources/inside-flutter -[architectural overview]: https://docs.flutter.dev/resources/architectural-overview -[widget catalog]: https://flutter.dev/widgets/ -[Cupertino]: https://docs.flutter.dev/development/ui/widgets/cupertino -[Material]: https://docs.flutter.dev/development/ui/widgets/material -[Skia]: https://skia.org/ -[Dart platform]: https://dart.dev/ -[Hot reload animation]: https://github.com/flutter/website/blob/main/src/assets/images/docs/tools/android-studio/hot-reload.gif?raw=true -[Hot reload]: https://docs.flutter.dev/development/tools/hot-reload -[Visual Studio Code]: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter -[IntelliJ / Android Studio]: https://plugins.jetbrains.com/plugin/9212-flutter -[Flutter packages]: https://pub.dev/flutter -[Android FFI]: https://docs.flutter.dev/development/platform-integration/android/c-interop -[iOS FFI]: https://docs.flutter.dev/development/platform-integration/ios/c-interop -[macOS FFI]: https://docs.flutter.dev/development/platform-integration/macos/c-interop -[Windows FFI]: https://docs.flutter.dev/development/platform-integration/windows/building#integrating-with-windows -[platform channels]: https://docs.flutter.dev/development/platform-integration/platform-channels -[interop example]: https://github.com/flutter/flutter/tree/main/examples/platform_channel -[Impeller]: https://docs.flutter.dev/perf/impeller +For help getting started with Flutter development, view the +[online documentation](https://docs.flutter.dev/), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 0000000..0d29021 --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1,28 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at https://dart.dev/lints. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/android/.gitignore b/android/.gitignore new file mode 100644 index 0000000..6f56801 --- /dev/null +++ b/android/.gitignore @@ -0,0 +1,13 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java + +# Remember to never publicly share your keystore. +# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app +key.properties +**/*.keystore +**/*.jks diff --git a/android/app/build.gradle b/android/app/build.gradle new file mode 100644 index 0000000..5e47d4c --- /dev/null +++ b/android/app/build.gradle @@ -0,0 +1,67 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +android { + namespace "com.example.oc_front" + compileSdk flutter.compileSdkVersion + ndkVersion flutter.ndkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.oc_front" + // You can update the following values to match your application needs. + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies {} diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..cb2dba6 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/kotlin/com/example/oc_front/MainActivity.kt b/android/app/src/main/kotlin/com/example/oc_front/MainActivity.kt new file mode 100644 index 0000000..23fc99c --- /dev/null +++ b/android/app/src/main/kotlin/com/example/oc_front/MainActivity.kt @@ -0,0 +1,6 @@ + +package com.example.oc_front + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000..f74085f --- /dev/null +++ b/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..db77bb4 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..17987b7 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..09d4391 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d5f1c8d Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4d6372e Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..06952be --- /dev/null +++ b/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..cb1ef88 --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/build.gradle b/android/build.gradle new file mode 100644 index 0000000..bc157bd --- /dev/null +++ b/android/build.gradle @@ -0,0 +1,18 @@ +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..598d13f --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..e1ca574 --- /dev/null +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/android/oc_front_android.iml b/android/oc_front_android.iml new file mode 100644 index 0000000..1899969 --- /dev/null +++ b/android/oc_front_android.iml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/android/settings.gradle b/android/settings.gradle new file mode 100644 index 0000000..1d6d19b --- /dev/null +++ b/android/settings.gradle @@ -0,0 +1,26 @@ +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "7.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.7.10" apply false +} + +include ":app" diff --git a/assets/images/icon.svg b/assets/images/icon.svg new file mode 100644 index 0000000..bb32afc --- /dev/null +++ b/assets/images/icon.svg @@ -0,0 +1,86 @@ + + + + + + + + image/svg+xml + + + + + + + +   + + + diff --git a/assets/images/logo.svg b/assets/images/logo.svg new file mode 100644 index 0000000..893c5ca --- /dev/null +++ b/assets/images/logo.svg @@ -0,0 +1,115 @@ + + + + + + + + image/svg+xml + + + + + + + +   + + CLOUD + pen + + diff --git a/build/.last_build_id b/build/.last_build_id new file mode 100644 index 0000000..0f9f65c --- /dev/null +++ b/build/.last_build_id @@ -0,0 +1 @@ +0e42810c62c7d99e697db4e3ab779648 \ No newline at end of file diff --git a/build/2794971a5855e7decd7bb368de5d49d1.cache.dill.track.dill b/build/2794971a5855e7decd7bb368de5d49d1.cache.dill.track.dill new file mode 100644 index 0000000..7923ae8 Binary files /dev/null and b/build/2794971a5855e7decd7bb368de5d49d1.cache.dill.track.dill differ diff --git a/build/dfe53975051e59f61e0887d6cddddde2/_composite.stamp b/build/dfe53975051e59f61e0887d6cddddde2/_composite.stamp new file mode 100644 index 0000000..1b2d28c --- /dev/null +++ b/build/dfe53975051e59f61e0887d6cddddde2/_composite.stamp @@ -0,0 +1 @@ +{"inputs":[],"outputs":[]} \ No newline at end of file diff --git a/build/dfe53975051e59f61e0887d6cddddde2/gen_dart_plugin_registrant.stamp b/build/dfe53975051e59f61e0887d6cddddde2/gen_dart_plugin_registrant.stamp new file mode 100644 index 0000000..9a8b4a9 --- /dev/null +++ b/build/dfe53975051e59f61e0887d6cddddde2/gen_dart_plugin_registrant.stamp @@ -0,0 +1 @@ +{"inputs":["/home/mr/Documents/OC/oc-front/oc_front/.dart_tool/package_config_subset"],"outputs":["/home/mr/Documents/OC/oc-front/oc_front/.dart_tool/flutter_build/dart_plugin_registrant.dart"]} \ No newline at end of file diff --git a/build/dfe53975051e59f61e0887d6cddddde2/gen_localizations.stamp b/build/dfe53975051e59f61e0887d6cddddde2/gen_localizations.stamp new file mode 100644 index 0000000..1b2d28c --- /dev/null +++ b/build/dfe53975051e59f61e0887d6cddddde2/gen_localizations.stamp @@ -0,0 +1 @@ +{"inputs":[],"outputs":[]} \ No newline at end of file diff --git a/build/flutter_assets/AssetManifest.bin b/build/flutter_assets/AssetManifest.bin new file mode 100644 index 0000000..f617265 --- /dev/null +++ b/build/flutter_assets/AssetManifest.bin @@ -0,0 +1 @@ + assets/images/icon.svg  assetassets/images/icon.svgassets/images/logo.svg  assetassets/images/logo.svg2packages/cupertino_icons/assets/CupertinoIcons.ttf  asset2packages/cupertino_icons/assets/CupertinoIcons.ttf4packages/flutter_map/lib/assets/flutter_map_logo.png  asset4packages/flutter_map/lib/assets/flutter_map_logo.png \ No newline at end of file diff --git a/build/flutter_assets/AssetManifest.json b/build/flutter_assets/AssetManifest.json new file mode 100644 index 0000000..31ce3dc --- /dev/null +++ b/build/flutter_assets/AssetManifest.json @@ -0,0 +1 @@ +{"assets/images/icon.svg":["assets/images/icon.svg"],"assets/images/logo.svg":["assets/images/logo.svg"],"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"],"packages/flutter_map/lib/assets/flutter_map_logo.png":["packages/flutter_map/lib/assets/flutter_map_logo.png"]} \ No newline at end of file diff --git a/build/flutter_assets/FontManifest.json b/build/flutter_assets/FontManifest.json new file mode 100644 index 0000000..464ab58 --- /dev/null +++ b/build/flutter_assets/FontManifest.json @@ -0,0 +1 @@ +[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]}] \ No newline at end of file diff --git a/build/flutter_assets/NOTICES.Z b/build/flutter_assets/NOTICES.Z new file mode 100644 index 0000000..4909e4b Binary files /dev/null and b/build/flutter_assets/NOTICES.Z differ diff --git a/build/flutter_assets/assets/images/icon.svg b/build/flutter_assets/assets/images/icon.svg new file mode 100644 index 0000000..bb32afc --- /dev/null +++ b/build/flutter_assets/assets/images/icon.svg @@ -0,0 +1,86 @@ + + + + + + + + image/svg+xml + + + + + + + +   + + + diff --git a/build/flutter_assets/assets/images/logo.svg b/build/flutter_assets/assets/images/logo.svg new file mode 100644 index 0000000..893c5ca --- /dev/null +++ b/build/flutter_assets/assets/images/logo.svg @@ -0,0 +1,115 @@ + + + + + + + + image/svg+xml + + + + + + + +   + + CLOUD + pen + + diff --git a/build/flutter_assets/fonts/MaterialIcons-Regular.otf b/build/flutter_assets/fonts/MaterialIcons-Regular.otf new file mode 100644 index 0000000..8c99266 Binary files /dev/null and b/build/flutter_assets/fonts/MaterialIcons-Regular.otf differ diff --git a/build/flutter_assets/kernel_blob.bin b/build/flutter_assets/kernel_blob.bin new file mode 100644 index 0000000..83b1f05 Binary files /dev/null and b/build/flutter_assets/kernel_blob.bin differ diff --git a/build/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf b/build/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf new file mode 100644 index 0000000..d580ce7 Binary files /dev/null and b/build/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf differ diff --git a/build/flutter_assets/packages/flutter_map/lib/assets/flutter_map_logo.png b/build/flutter_assets/packages/flutter_map/lib/assets/flutter_map_logo.png new file mode 100644 index 0000000..8603d0a Binary files /dev/null and b/build/flutter_assets/packages/flutter_map/lib/assets/flutter_map_logo.png differ diff --git a/build/flutter_assets/shaders/ink_sparkle.frag b/build/flutter_assets/shaders/ink_sparkle.frag new file mode 100644 index 0000000..b49cd0e Binary files /dev/null and b/build/flutter_assets/shaders/ink_sparkle.frag differ diff --git a/build/flutter_assets/version.json b/build/flutter_assets/version.json new file mode 100644 index 0000000..0059e70 --- /dev/null +++ b/build/flutter_assets/version.json @@ -0,0 +1 @@ +{"app_name":"oc_front","version":"1.0.0","build_number":"1","package_name":"oc_front"} \ No newline at end of file diff --git a/build/linux/x64/debug/.ninja_deps b/build/linux/x64/debug/.ninja_deps new file mode 100644 index 0000000..08ec0d9 Binary files /dev/null and b/build/linux/x64/debug/.ninja_deps differ diff --git a/build/linux/x64/debug/.ninja_log b/build/linux/x64/debug/.ninja_log new file mode 100644 index 0000000..133ab28 --- /dev/null +++ b/build/linux/x64/debug/.ninja_log @@ -0,0 +1,82 @@ +# ninja log v5 +4837 4966 1719925438199633542 plugins/desktop_window/libdesktop_window_plugin.so 3d5ee8e4ec3cf1d0 +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h 9779dd0abe3f0b7c +4319 4837 1719925438067635324 plugins/desktop_window/CMakeFiles/desktop_window_plugin.dir/desktop_window_plugin.cc.o f9f26580045750ab +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_value.h 9779dd0abe3f0b7c +5320 5755 1720106199968715516 CMakeFiles/oc_front.dir/my_application.cc.o 4ec87ad0095a5c67 +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_view.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/flutter_linux.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h 9779dd0abe3f0b7c +5320 5739 1720106199952715806 CMakeFiles/oc_front.dir/flutter/generated_plugin_registrant.cc.o 3c63709113723fa9 +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h 9779dd0abe3f0b7c +2 5320 0 flutter/_phony_ 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h 9779dd0abe3f0b7c +4316 4743 1719925437975636567 CMakeFiles/oc_front.dir/main.cc.o c7cb056afffdd1c4 +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_call.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_response.h 9779dd0abe3f0b7c +5755 5878 1720106200096713201 intermediates_do_not_run/oc_front f9992acb89849d5e +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_engine.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h 9779dd0abe3f0b7c +2 5320 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h 9779dd0abe3f0b7c +5878 6034 0 CMakeFiles/install.util 50cfc09af436cf59 +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_engine.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_call.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_response.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_value.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_view.h 9779dd0abe3f0b7c +3 5345 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/flutter_linux.h 9779dd0abe3f0b7c +3 5345 0 flutter/_phony_ 9779dd0abe3f0b7c +5346 5771 1720106239132012480 CMakeFiles/oc_front.dir/flutter/generated_plugin_registrant.cc.o 3c63709113723fa9 +5345 5788 1720106239148012195 CMakeFiles/oc_front.dir/my_application.cc.o 4ec87ad0095a5c67 +5788 5916 1720106239276009914 intermediates_do_not_run/oc_front f9992acb89849d5e +5916 6068 0 CMakeFiles/install.util 50cfc09af436cf59 +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_engine.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_call.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_response.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_value.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_view.h 9779dd0abe3f0b7c +3 5583 0 /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/flutter_linux.h 9779dd0abe3f0b7c +3 5583 0 flutter/_phony_ 9779dd0abe3f0b7c +5584 6002 1720106279707295237 CMakeFiles/oc_front.dir/flutter/generated_plugin_registrant.cc.o 3c63709113723fa9 +5583 6040 1720106279743294606 CMakeFiles/oc_front.dir/my_application.cc.o 4ec87ad0095a5c67 +6040 6224 1720106279931291307 intermediates_do_not_run/oc_front f9992acb89849d5e +6224 6386 0 CMakeFiles/install.util 50cfc09af436cf59 diff --git a/build/linux/x64/debug/CMakeCache.txt b/build/linux/x64/debug/CMakeCache.txt new file mode 100644 index 0000000..89cb070 --- /dev/null +++ b/build/linux/x64/debug/CMakeCache.txt @@ -0,0 +1,525 @@ +# This is the CMakeCache file. +# For build in directory: /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug +# It was generated by CMake: /snap/flutter/145/usr/bin/cmake +# You can edit this file to change values found and used by cmake. +# If you do not want to change any of the values, simply exit the editor. +# If you do want to change a value, simply edit, save, and exit the editor. +# The syntax for the file is as follows: +# KEY:TYPE=VALUE +# KEY is the name of a variable in the cache. +# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. +# VALUE is the current value for the KEY. + +######################## +# EXTERNAL cache entries +######################## + +//Path to a program. +CMAKE_ADDR2LINE:FILEPATH=/snap/flutter/current/usr/bin/addr2line + +//Path to a program. +CMAKE_AR:FILEPATH=/snap/flutter/current/usr/bin/ar + +//Choose the type of build, options are: None Debug Release RelWithDebInfo +// MinSizeRel ... +CMAKE_BUILD_TYPE:STRING=Debug + +//CXX compiler +CMAKE_CXX_COMPILER:FILEPATH=/snap/flutter/current/usr/bin/clang++ + +//LLVM archiver +CMAKE_CXX_COMPILER_AR:FILEPATH=CMAKE_CXX_COMPILER_AR-NOTFOUND + +//Generate index for LLVM archive +CMAKE_CXX_COMPILER_RANLIB:FILEPATH=CMAKE_CXX_COMPILER_RANLIB-NOTFOUND + +//Flags used by the CXX compiler during all build types. +CMAKE_CXX_FLAGS:STRING= + +//Flags used by the CXX compiler during DEBUG builds. +CMAKE_CXX_FLAGS_DEBUG:STRING=-g + +//Flags used by the CXX compiler during MINSIZEREL builds. +CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the CXX compiler during RELEASE builds. +CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the CXX compiler during RELWITHDEBINFO builds. +CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//Path to a program. +CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND + +//Flags used by the linker during all build types. +CMAKE_EXE_LINKER_FLAGS:STRING=-B/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -B/snap/flutter/current/usr/lib/x86_64-linux-gnu -B/snap/flutter/current/lib/x86_64-linux-gnu -B/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -lblkid -lgcrypt -llzma -llz4 -lgpg-error -luuid -lpthread -ldl -lepoxy -lfontconfig + +//Flags used by the linker during DEBUG builds. +CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during MINSIZEREL builds. +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during RELEASE builds. +CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during RELWITHDEBINFO builds. +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Enable/Disable output of compile commands during generation. +CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF + +//... +CMAKE_INSTALL_PREFIX:PATH=/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle + +//Path to a program. +CMAKE_LINKER:FILEPATH=/snap/flutter/current/usr/bin/ld + +//Program used to build from build.ninja files. +CMAKE_MAKE_PROGRAM:FILEPATH=/snap/flutter/current/usr/bin/ninja + +//Flags used by the linker during the creation of modules during +// all build types. +CMAKE_MODULE_LINKER_FLAGS:STRING=-B/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -B/snap/flutter/current/usr/lib/x86_64-linux-gnu -B/snap/flutter/current/lib/x86_64-linux-gnu -B/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -lblkid -lgcrypt -llzma -llz4 -lgpg-error -luuid -lpthread -ldl -lepoxy -lfontconfig + +//Flags used by the linker during the creation of modules during +// DEBUG builds. +CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of modules during +// MINSIZEREL builds. +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of modules during +// RELEASE builds. +CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of modules during +// RELWITHDEBINFO builds. +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_NM:FILEPATH=/snap/flutter/current/usr/bin/nm + +//Path to a program. +CMAKE_OBJCOPY:FILEPATH=/snap/flutter/current/usr/bin/objcopy + +//Path to a program. +CMAKE_OBJDUMP:FILEPATH=/snap/flutter/current/usr/bin/objdump + +//Value Computed by CMake +CMAKE_PROJECT_DESCRIPTION:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_HOMEPAGE_URL:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_NAME:STATIC=runner + +//Path to a program. +CMAKE_RANLIB:FILEPATH=/snap/flutter/current/usr/bin/ranlib + +//Path to a program. +CMAKE_READELF:FILEPATH=/snap/flutter/current/usr/bin/readelf + +//Flags used by the linker during the creation of shared libraries +// during all build types. +CMAKE_SHARED_LINKER_FLAGS:STRING=-B/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -B/snap/flutter/current/usr/lib/x86_64-linux-gnu -B/snap/flutter/current/lib/x86_64-linux-gnu -B/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -lblkid -lgcrypt -llzma -llz4 -lgpg-error -luuid -lpthread -ldl -lepoxy -lfontconfig + +//Flags used by the linker during the creation of shared libraries +// during DEBUG builds. +CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of shared libraries +// during MINSIZEREL builds. +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELEASE builds. +CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELWITHDEBINFO builds. +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//If set, runtime paths are not added when installing shared libraries, +// but are added when building. +CMAKE_SKIP_INSTALL_RPATH:BOOL=NO + +//If set, runtime paths are not added when using shared libraries. +CMAKE_SKIP_RPATH:BOOL=NO + +//Flags used by the linker during the creation of static libraries +// during all build types. +CMAKE_STATIC_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of static libraries +// during DEBUG builds. +CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of static libraries +// during MINSIZEREL builds. +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELEASE builds. +CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELWITHDEBINFO builds. +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_STRIP:FILEPATH=/snap/flutter/current/usr/bin/strip + +//If this value is on, makefiles will be generated without the +// .SILENT directive, and all commands will be echoed to the console +// during the make. This is useful for debugging only. With Visual +// Studio IDE projects all commands are done without /nologo. +CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE + +//No help, variable specified on the command line. +FLUTTER_TARGET_PLATFORM:UNINITIALIZED=linux-x64 + +//pkg-config executable +PKG_CONFIG_EXECUTABLE:FILEPATH=/snap/flutter/current/usr/bin/pkg-config + +//Value Computed by CMake +desktop_window_BINARY_DIR:STATIC=/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window + +//Value Computed by CMake +desktop_window_SOURCE_DIR:STATIC=/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/.plugin_symlinks/desktop_window/linux + +//Path to a library. +pkgcfg_lib_GIO_gio-2.0:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libgio-2.0.so + +//Path to a library. +pkgcfg_lib_GIO_glib-2.0:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libglib-2.0.so + +//Path to a library. +pkgcfg_lib_GIO_gobject-2.0:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libgobject-2.0.so + +//Path to a library. +pkgcfg_lib_GLIB_glib-2.0:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libglib-2.0.so + +//Path to a library. +pkgcfg_lib_GTK_atk-1.0:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libatk-1.0.so + +//Path to a library. +pkgcfg_lib_GTK_cairo:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo.so + +//Path to a library. +pkgcfg_lib_GTK_cairo-gobject:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo-gobject.so + +//Path to a library. +pkgcfg_lib_GTK_gdk-3:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk-3.so + +//Path to a library. +pkgcfg_lib_GTK_gdk_pixbuf-2.0:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so + +//Path to a library. +pkgcfg_lib_GTK_gio-2.0:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libgio-2.0.so + +//Path to a library. +pkgcfg_lib_GTK_glib-2.0:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libglib-2.0.so + +//Path to a library. +pkgcfg_lib_GTK_gobject-2.0:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libgobject-2.0.so + +//Path to a library. +pkgcfg_lib_GTK_gtk-3:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libgtk-3.so + +//Path to a library. +pkgcfg_lib_GTK_harfbuzz:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libharfbuzz.so + +//Path to a library. +pkgcfg_lib_GTK_pango-1.0:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libpango-1.0.so + +//Path to a library. +pkgcfg_lib_GTK_pangocairo-1.0:FILEPATH=/snap/flutter/current/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so + +//Value Computed by CMake +runner_BINARY_DIR:STATIC=/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug + +//Value Computed by CMake +runner_SOURCE_DIR:STATIC=/home/mr/Documents/OC/oc-front/oc_front/linux + + +######################## +# INTERNAL cache entries +######################## + +//ADVANCED property for variable: CMAKE_ADDR2LINE +CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_AR +CMAKE_AR-ADVANCED:INTERNAL=1 +//This is the directory where this CMakeCache.txt was created +CMAKE_CACHEFILE_DIR:INTERNAL=/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug +//Major version of cmake used to create the current loaded cache +CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 +//Minor version of cmake used to create the current loaded cache +CMAKE_CACHE_MINOR_VERSION:INTERNAL=16 +//Patch version of cmake used to create the current loaded cache +CMAKE_CACHE_PATCH_VERSION:INTERNAL=3 +//Path to CMake executable. +CMAKE_COMMAND:INTERNAL=/snap/flutter/145/usr/bin/cmake +//Path to cpack program executable. +CMAKE_CPACK_COMMAND:INTERNAL=/snap/flutter/145/usr/bin/cpack +//Path to ctest program executable. +CMAKE_CTEST_COMMAND:INTERNAL=/snap/flutter/145/usr/bin/ctest +//ADVANCED property for variable: CMAKE_CXX_COMPILER +CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR +CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB +CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS +CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG +CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL +CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE +CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO +CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_DLLTOOL +CMAKE_DLLTOOL-ADVANCED:INTERNAL=1 +//Executable file format +CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS +CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG +CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE +CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS +CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 +//Name of external makefile project generator. +CMAKE_EXTRA_GENERATOR:INTERNAL= +//Name of generator. +CMAKE_GENERATOR:INTERNAL=Ninja +//Generator instance identifier. +CMAKE_GENERATOR_INSTANCE:INTERNAL= +//Name of generator platform. +CMAKE_GENERATOR_PLATFORM:INTERNAL= +//Name of generator toolset. +CMAKE_GENERATOR_TOOLSET:INTERNAL= +//Source directory with the top level CMakeLists.txt file for this +// project +CMAKE_HOME_DIRECTORY:INTERNAL=/home/mr/Documents/OC/oc-front/oc_front/linux +//Install .so files without execute permission. +CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 +//ADVANCED property for variable: CMAKE_LINKER +CMAKE_LINKER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MAKE_PROGRAM +CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS +CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG +CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE +CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_NM +CMAKE_NM-ADVANCED:INTERNAL=1 +//number of local generators +CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=3 +//ADVANCED property for variable: CMAKE_OBJCOPY +CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJDUMP +CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 +//Platform information initialized +CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_RANLIB +CMAKE_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_READELF +CMAKE_READELF-ADVANCED:INTERNAL=1 +//Path to CMake installation. +CMAKE_ROOT:INTERNAL=/snap/flutter/145/usr/share/cmake-3.16 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS +CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG +CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE +CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH +CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_RPATH +CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS +CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG +CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE +CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STRIP +CMAKE_STRIP-ADVANCED:INTERNAL=1 +//uname command +CMAKE_UNAME:INTERNAL=/usr/bin/uname +//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE +CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 +//Details about finding PkgConfig +FIND_PACKAGE_MESSAGE_DETAILS_PkgConfig:INTERNAL=[/snap/flutter/current/usr/bin/pkg-config][v0.29.1()] +GIO_CFLAGS:INTERNAL=-pthread;-I/snap/flutter/current/usr/include/libmount;-I/snap/flutter/current/usr/include/blkid;-I/snap/flutter/current/usr/include/glib-2.0;-I/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GIO_CFLAGS_I:INTERNAL= +GIO_CFLAGS_OTHER:INTERNAL=-pthread +GIO_FOUND:INTERNAL=1 +GIO_INCLUDEDIR:INTERNAL=/snap/flutter/current/usr/include +GIO_INCLUDE_DIRS:INTERNAL=/snap/flutter/current/usr/include/libmount;/snap/flutter/current/usr/include/blkid;/snap/flutter/current/usr/include/glib-2.0;/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GIO_LDFLAGS:INTERNAL=-L/snap/flutter/current/usr/lib/x86_64-linux-gnu;-lgio-2.0;-lgobject-2.0;-lglib-2.0 +GIO_LDFLAGS_OTHER:INTERNAL= +GIO_LIBDIR:INTERNAL=/snap/flutter/current/usr/lib/x86_64-linux-gnu +GIO_LIBRARIES:INTERNAL=gio-2.0;gobject-2.0;glib-2.0 +GIO_LIBRARY_DIRS:INTERNAL=/snap/flutter/current/usr/lib/x86_64-linux-gnu +GIO_LIBS:INTERNAL= +GIO_LIBS_L:INTERNAL= +GIO_LIBS_OTHER:INTERNAL= +GIO_LIBS_PATHS:INTERNAL= +GIO_MODULE_NAME:INTERNAL=gio-2.0 +GIO_PREFIX:INTERNAL=/snap/flutter/current/usr +GIO_STATIC_CFLAGS:INTERNAL=-pthread;-I/snap/flutter/current/usr/include/libmount;-I/snap/flutter/current/usr/include/blkid;-I/snap/flutter/current/usr/include/glib-2.0;-I/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GIO_STATIC_CFLAGS_I:INTERNAL= +GIO_STATIC_CFLAGS_OTHER:INTERNAL=-pthread +GIO_STATIC_INCLUDE_DIRS:INTERNAL=/snap/flutter/current/usr/include/libmount;/snap/flutter/current/usr/include/blkid;/snap/flutter/current/usr/include/glib-2.0;/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GIO_STATIC_LDFLAGS:INTERNAL=-L/snap/flutter/current/usr/lib/x86_64-linux-gnu;-L/snap/flutter/current/usr/lib;-L/snap/flutter/current/usr/lib/x86_64-linux-gnu;-lgio-2.0;-ldl;-pthread;-lresolv;-lgmodule-2.0;-pthread;-ldl;-lz;-lmount;-lblkid;-lselinux;-lsepol;-lpcre2-8;-pthread;-lgobject-2.0;-pthread;-lffi;-lglib-2.0;-pthread;-lpcre;-pthread +GIO_STATIC_LDFLAGS_OTHER:INTERNAL=-pthread +GIO_STATIC_LIBDIR:INTERNAL= +GIO_STATIC_LIBRARIES:INTERNAL=gio-2.0;dl;resolv;gmodule-2.0;dl;z;mount;blkid;selinux;sepol;pcre2-8;gobject-2.0;ffi;glib-2.0;pcre +GIO_STATIC_LIBRARY_DIRS:INTERNAL=/snap/flutter/current/usr/lib/x86_64-linux-gnu;/snap/flutter/current/usr/lib;/snap/flutter/current/usr/lib/x86_64-linux-gnu +GIO_STATIC_LIBS:INTERNAL= +GIO_STATIC_LIBS_L:INTERNAL= +GIO_STATIC_LIBS_OTHER:INTERNAL= +GIO_STATIC_LIBS_PATHS:INTERNAL= +GIO_VERSION:INTERNAL=2.64.6 +GIO_gio-2.0_INCLUDEDIR:INTERNAL= +GIO_gio-2.0_LIBDIR:INTERNAL= +GIO_gio-2.0_PREFIX:INTERNAL= +GIO_gio-2.0_VERSION:INTERNAL= +GLIB_CFLAGS:INTERNAL=-I/snap/flutter/current/usr/include/glib-2.0;-I/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_CFLAGS_I:INTERNAL= +GLIB_CFLAGS_OTHER:INTERNAL= +GLIB_FOUND:INTERNAL=1 +GLIB_INCLUDEDIR:INTERNAL=/snap/flutter/current/usr/include +GLIB_INCLUDE_DIRS:INTERNAL=/snap/flutter/current/usr/include/glib-2.0;/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_LDFLAGS:INTERNAL=-L/snap/flutter/current/usr/lib/x86_64-linux-gnu;-lglib-2.0 +GLIB_LDFLAGS_OTHER:INTERNAL= +GLIB_LIBDIR:INTERNAL=/snap/flutter/current/usr/lib/x86_64-linux-gnu +GLIB_LIBRARIES:INTERNAL=glib-2.0 +GLIB_LIBRARY_DIRS:INTERNAL=/snap/flutter/current/usr/lib/x86_64-linux-gnu +GLIB_LIBS:INTERNAL= +GLIB_LIBS_L:INTERNAL= +GLIB_LIBS_OTHER:INTERNAL= +GLIB_LIBS_PATHS:INTERNAL= +GLIB_MODULE_NAME:INTERNAL=glib-2.0 +GLIB_PREFIX:INTERNAL=/snap/flutter/current/usr +GLIB_STATIC_CFLAGS:INTERNAL=-I/snap/flutter/current/usr/include/glib-2.0;-I/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_STATIC_CFLAGS_I:INTERNAL= +GLIB_STATIC_CFLAGS_OTHER:INTERNAL= +GLIB_STATIC_INCLUDE_DIRS:INTERNAL=/snap/flutter/current/usr/include/glib-2.0;/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GLIB_STATIC_LDFLAGS:INTERNAL=-L/snap/flutter/current/usr/lib/x86_64-linux-gnu;-lglib-2.0;-pthread;-lpcre;-pthread +GLIB_STATIC_LDFLAGS_OTHER:INTERNAL=-pthread +GLIB_STATIC_LIBDIR:INTERNAL= +GLIB_STATIC_LIBRARIES:INTERNAL=glib-2.0;pcre +GLIB_STATIC_LIBRARY_DIRS:INTERNAL=/snap/flutter/current/usr/lib/x86_64-linux-gnu +GLIB_STATIC_LIBS:INTERNAL= +GLIB_STATIC_LIBS_L:INTERNAL= +GLIB_STATIC_LIBS_OTHER:INTERNAL= +GLIB_STATIC_LIBS_PATHS:INTERNAL= +GLIB_VERSION:INTERNAL=2.64.6 +GLIB_glib-2.0_INCLUDEDIR:INTERNAL= +GLIB_glib-2.0_LIBDIR:INTERNAL= +GLIB_glib-2.0_PREFIX:INTERNAL= +GLIB_glib-2.0_VERSION:INTERNAL= +GTK_CFLAGS:INTERNAL=-pthread;-I/snap/flutter/current/usr/include/gtk-3.0;-I/snap/flutter/current/usr/include/at-spi2-atk/2.0;-I/snap/flutter/current/usr/include/at-spi-2.0;-I/snap/flutter/current/usr/include/dbus-1.0;-I/snap/flutter/current/usr/lib/x86_64-linux-gnu/dbus-1.0/include;-I/snap/flutter/current/usr/include/gtk-3.0;-I/snap/flutter/current/usr/include/gio-unix-2.0;-I/snap/flutter/current/usr/include/cairo;-I/snap/flutter/current/usr/include/pango-1.0;-I/snap/flutter/current/usr/include/fribidi;-I/snap/flutter/current/usr/include/harfbuzz;-I/snap/flutter/current/usr/include/atk-1.0;-I/snap/flutter/current/usr/include/cairo;-I/snap/flutter/current/usr/include/pixman-1;-I/snap/flutter/current/usr/include/uuid;-I/snap/flutter/current/usr/include/freetype2;-I/snap/flutter/current/usr/include/libpng16;-I/snap/flutter/current/usr/include/gdk-pixbuf-2.0;-I/snap/flutter/current/usr/include/libmount;-I/snap/flutter/current/usr/include/blkid;-I/snap/flutter/current/usr/include/glib-2.0;-I/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GTK_CFLAGS_I:INTERNAL= +GTK_CFLAGS_OTHER:INTERNAL=-pthread +GTK_FOUND:INTERNAL=1 +GTK_INCLUDEDIR:INTERNAL=/snap/flutter/current/usr/include +GTK_INCLUDE_DIRS:INTERNAL=/snap/flutter/current/usr/include/gtk-3.0;/snap/flutter/current/usr/include/at-spi2-atk/2.0;/snap/flutter/current/usr/include/at-spi-2.0;/snap/flutter/current/usr/include/dbus-1.0;/snap/flutter/current/usr/lib/x86_64-linux-gnu/dbus-1.0/include;/snap/flutter/current/usr/include/gtk-3.0;/snap/flutter/current/usr/include/gio-unix-2.0;/snap/flutter/current/usr/include/cairo;/snap/flutter/current/usr/include/pango-1.0;/snap/flutter/current/usr/include/fribidi;/snap/flutter/current/usr/include/harfbuzz;/snap/flutter/current/usr/include/atk-1.0;/snap/flutter/current/usr/include/cairo;/snap/flutter/current/usr/include/pixman-1;/snap/flutter/current/usr/include/uuid;/snap/flutter/current/usr/include/freetype2;/snap/flutter/current/usr/include/libpng16;/snap/flutter/current/usr/include/gdk-pixbuf-2.0;/snap/flutter/current/usr/include/libmount;/snap/flutter/current/usr/include/blkid;/snap/flutter/current/usr/include/glib-2.0;/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GTK_LDFLAGS:INTERNAL=-L/snap/flutter/current/usr/lib/x86_64-linux-gnu;-lgtk-3;-lgdk-3;-lpangocairo-1.0;-lpango-1.0;-lharfbuzz;-latk-1.0;-lcairo-gobject;-lcairo;-lgdk_pixbuf-2.0;-lgio-2.0;-lgobject-2.0;-lglib-2.0 +GTK_LDFLAGS_OTHER:INTERNAL= +GTK_LIBDIR:INTERNAL=/snap/flutter/current/usr/lib/x86_64-linux-gnu +GTK_LIBRARIES:INTERNAL=gtk-3;gdk-3;pangocairo-1.0;pango-1.0;harfbuzz;atk-1.0;cairo-gobject;cairo;gdk_pixbuf-2.0;gio-2.0;gobject-2.0;glib-2.0 +GTK_LIBRARY_DIRS:INTERNAL=/snap/flutter/current/usr/lib/x86_64-linux-gnu +GTK_LIBS:INTERNAL= +GTK_LIBS_L:INTERNAL= +GTK_LIBS_OTHER:INTERNAL= +GTK_LIBS_PATHS:INTERNAL= +GTK_MODULE_NAME:INTERNAL=gtk+-3.0 +GTK_PREFIX:INTERNAL=/snap/flutter/current/usr +GTK_STATIC_CFLAGS:INTERNAL=-pthread;-I/snap/flutter/current/usr/include/gtk-3.0;-I/snap/flutter/current/usr/include/at-spi2-atk/2.0;-I/snap/flutter/current/usr/include/at-spi-2.0;-I/snap/flutter/current/usr/include/dbus-1.0;-I/snap/flutter/current/usr/lib/x86_64-linux-gnu/dbus-1.0/include;-I/snap/flutter/current/usr/include/gtk-3.0;-I/snap/flutter/current/usr/include/gio-unix-2.0;-I/snap/flutter/current/usr/include/cairo;-I/snap/flutter/current/usr/include/pango-1.0;-I/snap/flutter/current/usr/include/fribidi;-I/snap/flutter/current/usr/include/harfbuzz;-I/snap/flutter/current/usr/include/atk-1.0;-I/snap/flutter/current/usr/include/cairo;-I/snap/flutter/current/usr/include/pixman-1;-I/snap/flutter/current/usr/include/uuid;-I/snap/flutter/current/usr/include/freetype2;-I/snap/flutter/current/usr/include/libpng16;-I/snap/flutter/current/usr/include/gdk-pixbuf-2.0;-I/snap/flutter/current/usr/include/libmount;-I/snap/flutter/current/usr/include/blkid;-I/snap/flutter/current/usr/include/glib-2.0;-I/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GTK_STATIC_CFLAGS_I:INTERNAL= +GTK_STATIC_CFLAGS_OTHER:INTERNAL=-pthread +GTK_STATIC_INCLUDE_DIRS:INTERNAL=/snap/flutter/current/usr/include/gtk-3.0;/snap/flutter/current/usr/include/at-spi2-atk/2.0;/snap/flutter/current/usr/include/at-spi-2.0;/snap/flutter/current/usr/include/dbus-1.0;/snap/flutter/current/usr/lib/x86_64-linux-gnu/dbus-1.0/include;/snap/flutter/current/usr/include/gtk-3.0;/snap/flutter/current/usr/include/gio-unix-2.0;/snap/flutter/current/usr/include/cairo;/snap/flutter/current/usr/include/pango-1.0;/snap/flutter/current/usr/include/fribidi;/snap/flutter/current/usr/include/harfbuzz;/snap/flutter/current/usr/include/atk-1.0;/snap/flutter/current/usr/include/cairo;/snap/flutter/current/usr/include/pixman-1;/snap/flutter/current/usr/include/uuid;/snap/flutter/current/usr/include/freetype2;/snap/flutter/current/usr/include/libpng16;/snap/flutter/current/usr/include/gdk-pixbuf-2.0;/snap/flutter/current/usr/include/libmount;/snap/flutter/current/usr/include/blkid;/snap/flutter/current/usr/include/glib-2.0;/snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include +GTK_STATIC_LDFLAGS:INTERNAL=-L/snap/flutter/current/usr/lib/x86_64-linux-gnu;-L/snap/flutter/current/usr/lib;-L/snap/flutter/current/usr/lib/x86_64-linux-gnu;-lgtk-3;-latk-bridge-2.0;-latspi;-lXtst;-ldbus-1;-lpthread;-lsystemd;-Wl,--export-dynamic;-lgdk-3;-lXinerama;-lXi;-lXrandr;-lXcursor;-lXcomposite;-lXdamage;-lXfixes;-lxkbcommon;-lwayland-cursor;-lwayland-egl;-lwayland-client;-lepoxy;-ldl;-lGL;-lEGL;-lpangocairo-1.0;-lm;-lpangoft2-1.0;-lm;-lpango-1.0;-lm;-lfribidi;-lthai;-ldatrie;-lXft;-lharfbuzz;-lm;-lgraphite2;-latk-1.0;-lcairo-gobject;-lcairo;-lz;-lpixman-1;-lfontconfig;-luuid;-lexpat;-lfreetype;-lpng16;-lm;-lz;-lm;-lxcb-shm;-lxcb-render;-lXrender;-lXext;-lX11;-lpthread;-lxcb;-lXau;-lXdmcp;-lgdk_pixbuf-2.0;-lm;-lgio-2.0;-ldl;-pthread;-lresolv;-lgmodule-2.0;-pthread;-ldl;-lz;-lmount;-lblkid;-lselinux;-lsepol;-lpcre2-8;-pthread;-lgobject-2.0;-pthread;-lffi;-lglib-2.0;-pthread;-lpcre;-pthread +GTK_STATIC_LDFLAGS_OTHER:INTERNAL=-Wl,--export-dynamic;-pthread +GTK_STATIC_LIBDIR:INTERNAL= +GTK_STATIC_LIBRARIES:INTERNAL=gtk-3;atk-bridge-2.0;atspi;Xtst;dbus-1;pthread;systemd;gdk-3;Xinerama;Xi;Xrandr;Xcursor;Xcomposite;Xdamage;Xfixes;xkbcommon;wayland-cursor;wayland-egl;wayland-client;epoxy;dl;GL;EGL;pangocairo-1.0;m;pangoft2-1.0;m;pango-1.0;m;fribidi;thai;datrie;Xft;harfbuzz;m;graphite2;atk-1.0;cairo-gobject;cairo;z;pixman-1;fontconfig;uuid;expat;freetype;png16;m;z;m;xcb-shm;xcb-render;Xrender;Xext;X11;pthread;xcb;Xau;Xdmcp;gdk_pixbuf-2.0;m;gio-2.0;dl;resolv;gmodule-2.0;dl;z;mount;blkid;selinux;sepol;pcre2-8;gobject-2.0;ffi;glib-2.0;pcre +GTK_STATIC_LIBRARY_DIRS:INTERNAL=/snap/flutter/current/usr/lib/x86_64-linux-gnu;/snap/flutter/current/usr/lib;/snap/flutter/current/usr/lib/x86_64-linux-gnu +GTK_STATIC_LIBS:INTERNAL= +GTK_STATIC_LIBS_L:INTERNAL= +GTK_STATIC_LIBS_OTHER:INTERNAL= +GTK_STATIC_LIBS_PATHS:INTERNAL= +GTK_VERSION:INTERNAL=3.24.20 +GTK_gtk+-3.0_INCLUDEDIR:INTERNAL= +GTK_gtk+-3.0_LIBDIR:INTERNAL= +GTK_gtk+-3.0_PREFIX:INTERNAL= +GTK_gtk+-3.0_VERSION:INTERNAL= +//ADVANCED property for variable: PKG_CONFIG_EXECUTABLE +PKG_CONFIG_EXECUTABLE-ADVANCED:INTERNAL=1 +__pkg_config_arguments_GIO:INTERNAL=REQUIRED;IMPORTED_TARGET;gio-2.0 +__pkg_config_arguments_GLIB:INTERNAL=REQUIRED;IMPORTED_TARGET;glib-2.0 +__pkg_config_arguments_GTK:INTERNAL=REQUIRED;IMPORTED_TARGET;gtk+-3.0 +__pkg_config_checked_GIO:INTERNAL=1 +__pkg_config_checked_GLIB:INTERNAL=1 +__pkg_config_checked_GTK:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GIO_gio-2.0 +pkgcfg_lib_GIO_gio-2.0-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GIO_glib-2.0 +pkgcfg_lib_GIO_glib-2.0-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GIO_gobject-2.0 +pkgcfg_lib_GIO_gobject-2.0-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GLIB_glib-2.0 +pkgcfg_lib_GLIB_glib-2.0-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_atk-1.0 +pkgcfg_lib_GTK_atk-1.0-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_cairo +pkgcfg_lib_GTK_cairo-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_cairo-gobject +pkgcfg_lib_GTK_cairo-gobject-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_gdk-3 +pkgcfg_lib_GTK_gdk-3-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_gdk_pixbuf-2.0 +pkgcfg_lib_GTK_gdk_pixbuf-2.0-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_gio-2.0 +pkgcfg_lib_GTK_gio-2.0-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_glib-2.0 +pkgcfg_lib_GTK_glib-2.0-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_gobject-2.0 +pkgcfg_lib_GTK_gobject-2.0-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_gtk-3 +pkgcfg_lib_GTK_gtk-3-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_harfbuzz +pkgcfg_lib_GTK_harfbuzz-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_pango-1.0 +pkgcfg_lib_GTK_pango-1.0-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_GTK_pangocairo-1.0 +pkgcfg_lib_GTK_pangocairo-1.0-ADVANCED:INTERNAL=1 +prefix_result:INTERNAL=/snap/flutter/current/usr/lib/x86_64-linux-gnu + diff --git a/build/linux/x64/debug/CMakeFiles/3.16.3/CMakeCXXCompiler.cmake b/build/linux/x64/debug/CMakeFiles/3.16.3/CMakeCXXCompiler.cmake new file mode 100644 index 0000000..eb290dc --- /dev/null +++ b/build/linux/x64/debug/CMakeFiles/3.16.3/CMakeCXXCompiler.cmake @@ -0,0 +1,88 @@ +set(CMAKE_CXX_COMPILER "/snap/flutter/current/usr/bin/clang++") +set(CMAKE_CXX_COMPILER_ARG1 "") +set(CMAKE_CXX_COMPILER_ID "Clang") +set(CMAKE_CXX_COMPILER_VERSION "10.0.0") +set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") +set(CMAKE_CXX_COMPILER_WRAPPER "") +set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14") +set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20") +set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") +set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") +set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") +set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17") +set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20") + +set(CMAKE_CXX_PLATFORM_ID "Linux") +set(CMAKE_CXX_SIMULATE_ID "") +set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "GNU") +set(CMAKE_CXX_SIMULATE_VERSION "") + + + +set(CMAKE_AR "/snap/flutter/current/usr/bin/ar") +set(CMAKE_CXX_COMPILER_AR "CMAKE_CXX_COMPILER_AR-NOTFOUND") +set(CMAKE_RANLIB "/snap/flutter/current/usr/bin/ranlib") +set(CMAKE_CXX_COMPILER_RANLIB "CMAKE_CXX_COMPILER_RANLIB-NOTFOUND") +set(CMAKE_LINKER "/snap/flutter/current/usr/bin/ld") +set(CMAKE_MT "") +set(CMAKE_COMPILER_IS_GNUCXX ) +set(CMAKE_CXX_COMPILER_LOADED 1) +set(CMAKE_CXX_COMPILER_WORKS TRUE) +set(CMAKE_CXX_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_CXX_COMPILER_ID_RUN 1) +set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP) +set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) + +foreach (lang C OBJC OBJCXX) + if (CMAKE_${lang}_COMPILER_ID_RUN) + foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS) + list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension}) + endforeach() + endif() +endforeach() + +set(CMAKE_CXX_LINKER_PREFERENCE 30) +set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) + +# Save compiler ABI information. +set(CMAKE_CXX_SIZEOF_DATA_PTR "8") +set(CMAKE_CXX_COMPILER_ABI "ELF") +set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") + +if(CMAKE_CXX_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_CXX_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") +endif() + +if(CMAKE_CXX_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") +endif() + +set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9;/snap/flutter/current/usr/include/c++/9;/snap/flutter/current/usr/include;/snap/flutter/current/usr/include/x86_64-linux-gnu;/snap/flutter/current/usr/include/c++/10;/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/10;/snap/flutter/current/usr/include/c++/10/backward;/usr/local/include;/snap/flutter/145/usr/lib/llvm-10/lib/clang/10.0.0/include;/usr/include/x86_64-linux-gnu;/usr/include") +set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "blkid;gcrypt;lzma;lz4;gpg-error;uuid;pthread;dl;epoxy;fontconfig;stdc++;m;gcc_s;gcc;c;gcc_s;gcc") +set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9;/snap/flutter/current/usr/lib/x86_64-linux-gnu;/snap/flutter/current/lib/x86_64-linux-gnu;/snap/flutter/current/usr/lib;/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/10;/lib/x86_64-linux-gnu;/lib64;/usr/lib/x86_64-linux-gnu;/usr/lib64;/snap/flutter/145/usr/lib/llvm-10/lib;/lib;/usr/lib") +set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/build/linux/x64/debug/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_CXX.bin b/build/linux/x64/debug/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_CXX.bin new file mode 100755 index 0000000..8415b49 Binary files /dev/null and b/build/linux/x64/debug/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_CXX.bin differ diff --git a/build/linux/x64/debug/CMakeFiles/3.16.3/CMakeSystem.cmake b/build/linux/x64/debug/CMakeFiles/3.16.3/CMakeSystem.cmake new file mode 100644 index 0000000..34cbec2 --- /dev/null +++ b/build/linux/x64/debug/CMakeFiles/3.16.3/CMakeSystem.cmake @@ -0,0 +1,15 @@ +set(CMAKE_HOST_SYSTEM "Linux-5.15.0-107-generic") +set(CMAKE_HOST_SYSTEM_NAME "Linux") +set(CMAKE_HOST_SYSTEM_VERSION "5.15.0-107-generic") +set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") + + + +set(CMAKE_SYSTEM "Linux-5.15.0-107-generic") +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_VERSION "5.15.0-107-generic") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(CMAKE_CROSSCOMPILING "FALSE") + +set(CMAKE_SYSTEM_LOADED 1) diff --git a/build/linux/x64/debug/CMakeFiles/3.16.3/CompilerIdCXX/CMakeCXXCompilerId.cpp b/build/linux/x64/debug/CMakeFiles/3.16.3/CompilerIdCXX/CMakeCXXCompilerId.cpp new file mode 100644 index 0000000..69cfdba --- /dev/null +++ b/build/linux/x64/debug/CMakeFiles/3.16.3/CompilerIdCXX/CMakeCXXCompilerId.cpp @@ -0,0 +1,660 @@ +/* This source file must have a .cpp extension so that all C++ compilers + recognize the extension without flags. Borland does not know .cxx for + example. */ +#ifndef __cplusplus +# error "A C compiler has been selected for C++." +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__COMO__) +# define COMPILER_ID "Comeau" + /* __COMO_VERSION__ = VRR */ +# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) +# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) + +#elif defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# if defined(__GNUC__) +# define SIMULATE_ID "GNU" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# if defined(__GNUC__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) +# elif defined(__GNUG__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_CC) +# define COMPILER_ID "SunPro" +# if __SUNPRO_CC >= 0x5100 + /* __SUNPRO_CC = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# endif + +#elif defined(__HP_aCC) +# define COMPILER_ID "HP" + /* __HP_aCC = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) + +#elif defined(__DECCXX) +# define COMPILER_ID "Compaq" + /* __DECCXX_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) + +#elif defined(__IBMCPP__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__ibmxl__) && defined(__clang__) +# define COMPILER_ID "XLClang" +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) + + +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800 +# define COMPILER_ID "XL" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 +# define COMPILER_ID "VisualAge" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__ghs__) +# define COMPILER_ID "GHS" +/* __GHS_VERSION_NUMBER = VVVVRP */ +# ifdef __GHS_VERSION_NUMBER +# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) +# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) +# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) +# endif + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__ARMCC_VERSION) && !defined(__clang__) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) +# define COMPILER_ID "ARMClang" + # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) +# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) || defined(__GNUG__) +# define COMPILER_ID "GNU" +# if defined(__GNUC__) +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# else +# define COMPILER_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) && defined(__ICCARM__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__)) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) +# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) +# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#elif defined(__INTEGRITY) +# if defined(INT_178B) +# define PLATFORM_ID "Integrity178" + +# else /* regular Integrity */ +# define PLATFORM_ID "Integrity" +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCRX__) +# define ARCHITECTURE_ID "RX" + +# elif defined(__ICCRH850__) +# define ARCHITECTURE_ID "RH850" + +# elif defined(__ICCRL78__) +# define ARCHITECTURE_ID "RL78" + +# elif defined(__ICCRISCV__) +# define ARCHITECTURE_ID "RISCV" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# elif defined(__ICC430__) +# define ARCHITECTURE_ID "MSP430" + +# elif defined(__ICCV850__) +# define ARCHITECTURE_ID "V850" + +# elif defined(__ICC8051__) +# define ARCHITECTURE_ID "8051" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__ghs__) +# if defined(__PPC64__) +# define ARCHITECTURE_ID "PPC64" + +# elif defined(__ppc__) +# define ARCHITECTURE_ID "PPC" + +# elif defined(__ARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__x86_64__) +# define ARCHITECTURE_ID "x64" + +# elif defined(__i386__) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L +# if defined(__INTEL_CXX11_MODE__) +# if defined(__cpp_aggregate_nsdmi) +# define CXX_STD 201402L +# else +# define CXX_STD 201103L +# endif +# else +# define CXX_STD 199711L +# endif +#elif defined(_MSC_VER) && defined(_MSVC_LANG) +# define CXX_STD _MSVC_LANG +#else +# define CXX_STD __cplusplus +#endif + +const char* info_language_dialect_default = "INFO" ":" "dialect_default[" +#if CXX_STD > 201703L + "20" +#elif CXX_STD >= 201703L + "17" +#elif CXX_STD >= 201402L + "14" +#elif CXX_STD >= 201103L + "11" +#else + "98" +#endif +"]"; + +/*--------------------------------------------------------------------------*/ + +int main(int argc, char* argv[]) +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} diff --git a/build/linux/x64/debug/CMakeFiles/3.16.3/CompilerIdCXX/a.out b/build/linux/x64/debug/CMakeFiles/3.16.3/CompilerIdCXX/a.out new file mode 100755 index 0000000..bd1253b Binary files /dev/null and b/build/linux/x64/debug/CMakeFiles/3.16.3/CompilerIdCXX/a.out differ diff --git a/build/linux/x64/debug/CMakeFiles/CMakeOutput.log b/build/linux/x64/debug/CMakeFiles/CMakeOutput.log new file mode 100644 index 0000000..e85e235 --- /dev/null +++ b/build/linux/x64/debug/CMakeFiles/CMakeOutput.log @@ -0,0 +1,228 @@ +The system is: Linux - 5.15.0-107-generic - x86_64 +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. +Compiler: /snap/flutter/current/usr/bin/clang++ +Build flags: +Id flags: + +The output was: +0 + + +Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" + +The CXX compiler identification is Clang, found in "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/3.16.3/CompilerIdCXX/a.out" + +Determining if the CXX compiler works passed with the following output: +Change Dir: /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/CMakeTmp + +Run Build Command(s):/snap/flutter/current/usr/bin/ninja cmTC_bc15d && [1/2] Building CXX object CMakeFiles/cmTC_bc15d.dir/testCXXCompiler.cxx.o +[2/2] Linking CXX executable cmTC_bc15d + + + +Detecting CXX compiler ABI info compiled with the following output: +Change Dir: /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/CMakeTmp + +Run Build Command(s):/snap/flutter/current/usr/bin/ninja cmTC_bc420 && [1/2] Building CXX object CMakeFiles/cmTC_bc420.dir/CMakeCXXCompilerABI.cpp.o +clang version 10.0.0-4ubuntu1 +Target: x86_64-pc-linux-gnu +Thread model: posix +InstalledDir: /snap/flutter/current/usr/bin +Found candidate GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10 +Found candidate GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/9 +Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9 +Selected GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10 +Candidate multilib: .;@m64 +Selected multilib: .;@m64 + (in-process) + "/snap/flutter/145/usr/lib/llvm-10/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /snap/flutter/145/usr/lib/llvm-10/lib/clang/10.0.0 -cxx-isystem /snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9 -cxx-isystem /snap/flutter/current/usr/include/c++/9 -cxx-isystem /snap/flutter/current/usr/include -cxx-isystem /snap/flutter/current/usr/include/x86_64-linux-gnu -cxx-isystem /snap/flutter/current/usr/include/c++/9 -internal-isystem /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10 -internal-isystem /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10 -internal-isystem /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10 -internal-isystem /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/backward -internal-isystem /usr/local/include -internal-isystem /snap/flutter/145/usr/lib/llvm-10/lib/clang/10.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/CMakeTmp -ferror-limit 19 -fmessage-length 0 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o CMakeFiles/cmTC_bc420.dir/CMakeCXXCompilerABI.cpp.o -x c++ /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp +clang -cc1 version 10.0.0 based upon LLVM 10.0.0 default target x86_64-pc-linux-gnu +ignoring nonexistent directory "/include" +ignoring duplicate directory "/snap/flutter/current/usr/include/c++/9" +ignoring duplicate directory "/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10" +#include "..." search starts here: +#include <...> search starts here: + /snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9 + /snap/flutter/current/usr/include/c++/9 + /snap/flutter/current/usr/include + /snap/flutter/current/usr/include/x86_64-linux-gnu + /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10 + /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10 + /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/backward + /usr/local/include + /snap/flutter/145/usr/lib/llvm-10/lib/clang/10.0.0/include + /usr/include/x86_64-linux-gnu + /usr/include +End of search list. +[2/2] Linking CXX executable cmTC_bc420 +clang version 10.0.0-4ubuntu1 +Target: x86_64-pc-linux-gnu +Thread model: posix +InstalledDir: /snap/flutter/current/usr/bin +Found candidate GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10 +Found candidate GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/9 +Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9 +Selected GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10 +Candidate multilib: .;@m64 +Selected multilib: .;@m64 + "/snap/flutter/current/usr/bin/ld" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_bc420 /snap/flutter/current/usr/lib/x86_64-linux-gnu/crt1.o /snap/flutter/current/usr/lib/x86_64-linux-gnu/crti.o /snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9/crtbegin.o -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10 -L/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64 -L/usr/lib/x86_64-linux-gnu/../../lib64 -L/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../.. -L/snap/flutter/145/usr/lib/llvm-10/bin/../lib -L/lib -L/usr/lib -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib -lblkid -lgcrypt -llzma -llz4 -lgpg-error -luuid -lpthread -ldl -lepoxy -lfontconfig CMakeFiles/cmTC_bc420.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9/crtend.o /snap/flutter/current/usr/lib/x86_64-linux-gnu/crtn.o + + + +Parsed CXX implicit include dir info from above output: rv=done + found start of include info + found start of implicit include info + add: [/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9] + add: [/snap/flutter/current/usr/include/c++/9] + add: [/snap/flutter/current/usr/include] + add: [/snap/flutter/current/usr/include/x86_64-linux-gnu] + add: [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10] + add: [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10] + add: [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/backward] + add: [/usr/local/include] + add: [/snap/flutter/145/usr/lib/llvm-10/lib/clang/10.0.0/include] + add: [/usr/include/x86_64-linux-gnu] + add: [/usr/include] + end of search list found + collapse include dir [/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9] ==> [/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9] + collapse include dir [/snap/flutter/current/usr/include/c++/9] ==> [/snap/flutter/current/usr/include/c++/9] + collapse include dir [/snap/flutter/current/usr/include] ==> [/snap/flutter/current/usr/include] + collapse include dir [/snap/flutter/current/usr/include/x86_64-linux-gnu] ==> [/snap/flutter/current/usr/include/x86_64-linux-gnu] + collapse include dir [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10] ==> [/snap/flutter/current/usr/include/c++/10] + collapse include dir [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10] ==> [/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/10] + collapse include dir [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/backward] ==> [/snap/flutter/current/usr/include/c++/10/backward] + collapse include dir [/usr/local/include] ==> [/usr/local/include] + collapse include dir [/snap/flutter/145/usr/lib/llvm-10/lib/clang/10.0.0/include] ==> [/snap/flutter/145/usr/lib/llvm-10/lib/clang/10.0.0/include] + collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu] + collapse include dir [/usr/include] ==> [/usr/include] + implicit include dirs: [/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9;/snap/flutter/current/usr/include/c++/9;/snap/flutter/current/usr/include;/snap/flutter/current/usr/include/x86_64-linux-gnu;/snap/flutter/current/usr/include/c++/10;/snap/flutter/current/usr/include/x86_64-linux-gnu/c++/10;/snap/flutter/current/usr/include/c++/10/backward;/usr/local/include;/snap/flutter/145/usr/lib/llvm-10/lib/clang/10.0.0/include;/usr/include/x86_64-linux-gnu;/usr/include] + + +Parsed CXX implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command(s):/snap/flutter/current/usr/bin/ninja cmTC_bc420 && [1/2] Building CXX object CMakeFiles/cmTC_bc420.dir/CMakeCXXCompilerABI.cpp.o] + ignore line: [clang version 10.0.0-4ubuntu1 ] + ignore line: [Target: x86_64-pc-linux-gnu] + ignore line: [Thread model: posix] + ignore line: [InstalledDir: /snap/flutter/current/usr/bin] + ignore line: [Found candidate GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10] + ignore line: [Found candidate GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/9] + ignore line: [Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9] + ignore line: [Selected GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10] + ignore line: [Candidate multilib: .] + ignore line: [@m64] + ignore line: [Selected multilib: .] + ignore line: [@m64] + ignore line: [ (in-process)] + ignore line: [ "/snap/flutter/145/usr/lib/llvm-10/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir /snap/flutter/145/usr/lib/llvm-10/lib/clang/10.0.0 -cxx-isystem /snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9 -cxx-isystem /snap/flutter/current/usr/include/c++/9 -cxx-isystem /snap/flutter/current/usr/include -cxx-isystem /snap/flutter/current/usr/include/x86_64-linux-gnu -cxx-isystem /snap/flutter/current/usr/include/c++/9 -internal-isystem /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10 -internal-isystem /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10 -internal-isystem /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10 -internal-isystem /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/backward -internal-isystem /usr/local/include -internal-isystem /snap/flutter/145/usr/lib/llvm-10/lib/clang/10.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/CMakeTmp -ferror-limit 19 -fmessage-length 0 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o CMakeFiles/cmTC_bc420.dir/CMakeCXXCompilerABI.cpp.o -x c++ /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp] + ignore line: [clang -cc1 version 10.0.0 based upon LLVM 10.0.0 default target x86_64-pc-linux-gnu] + ignore line: [ignoring nonexistent directory "/include"] + ignore line: [ignoring duplicate directory "/snap/flutter/current/usr/include/c++/9"] + ignore line: [ignoring duplicate directory "/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10"] + ignore line: [#include "..." search starts here:] + ignore line: [#include <...> search starts here:] + ignore line: [ /snap/flutter/current/usr/include/x86_64-linux-gnu/c++/9] + ignore line: [ /snap/flutter/current/usr/include/c++/9] + ignore line: [ /snap/flutter/current/usr/include] + ignore line: [ /snap/flutter/current/usr/include/x86_64-linux-gnu] + ignore line: [ /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10] + ignore line: [ /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/x86_64-linux-gnu/c++/10] + ignore line: [ /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/backward] + ignore line: [ /usr/local/include] + ignore line: [ /snap/flutter/145/usr/lib/llvm-10/lib/clang/10.0.0/include] + ignore line: [ /usr/include/x86_64-linux-gnu] + ignore line: [ /usr/include] + ignore line: [End of search list.] + ignore line: [[2/2] Linking CXX executable cmTC_bc420] + ignore line: [clang version 10.0.0-4ubuntu1 ] + ignore line: [Target: x86_64-pc-linux-gnu] + ignore line: [Thread model: posix] + ignore line: [InstalledDir: /snap/flutter/current/usr/bin] + ignore line: [Found candidate GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10] + ignore line: [Found candidate GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/9] + ignore line: [Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9] + ignore line: [Selected GCC installation: /snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10] + ignore line: [Candidate multilib: .] + ignore line: [@m64] + ignore line: [Selected multilib: .] + ignore line: [@m64] + link line: [ "/snap/flutter/current/usr/bin/ld" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_bc420 /snap/flutter/current/usr/lib/x86_64-linux-gnu/crt1.o /snap/flutter/current/usr/lib/x86_64-linux-gnu/crti.o /snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9/crtbegin.o -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10 -L/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64 -L/usr/lib/x86_64-linux-gnu/../../lib64 -L/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../.. -L/snap/flutter/145/usr/lib/llvm-10/bin/../lib -L/lib -L/usr/lib -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib -lblkid -lgcrypt -llzma -llz4 -lgpg-error -luuid -lpthread -ldl -lepoxy -lfontconfig CMakeFiles/cmTC_bc420.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9/crtend.o /snap/flutter/current/usr/lib/x86_64-linux-gnu/crtn.o] + arg [/snap/flutter/current/usr/bin/ld] ==> ignore + arg [-zrelro] ==> ignore + arg [--hash-style=gnu] ==> ignore + arg [--build-id] ==> ignore + arg [--eh-frame-hdr] ==> ignore + arg [-m] ==> ignore + arg [elf_x86_64] ==> ignore + arg [-dynamic-linker] ==> ignore + arg [/lib64/ld-linux-x86-64.so.2] ==> ignore + arg [-o] ==> ignore + arg [cmTC_bc420] ==> ignore + arg [/snap/flutter/current/usr/lib/x86_64-linux-gnu/crt1.o] ==> ignore + arg [/snap/flutter/current/usr/lib/x86_64-linux-gnu/crti.o] ==> ignore + arg [/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9/crtbegin.o] ==> ignore + arg [-L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9] ==> dir [/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9] + arg [-L/snap/flutter/current/usr/lib/x86_64-linux-gnu] ==> dir [/snap/flutter/current/usr/lib/x86_64-linux-gnu] + arg [-L/snap/flutter/current/lib/x86_64-linux-gnu] ==> dir [/snap/flutter/current/lib/x86_64-linux-gnu] + arg [-L/snap/flutter/current/usr/lib/] ==> dir [/snap/flutter/current/usr/lib/] + arg [-L/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10] ==> dir [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10] + arg [-L/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu] ==> dir [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu] + arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] + arg [-L/lib/../lib64] ==> dir [/lib/../lib64] + arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] + arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64] + arg [-L/usr/lib/x86_64-linux-gnu/../../lib64] ==> dir [/usr/lib/x86_64-linux-gnu/../../lib64] + arg [-L/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../..] ==> dir [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../..] + arg [-L/snap/flutter/145/usr/lib/llvm-10/bin/../lib] ==> dir [/snap/flutter/145/usr/lib/llvm-10/bin/../lib] + arg [-L/lib] ==> dir [/lib] + arg [-L/usr/lib] ==> dir [/usr/lib] + arg [-L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9] ==> dir [/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9] + arg [-L/snap/flutter/current/usr/lib/x86_64-linux-gnu] ==> dir [/snap/flutter/current/usr/lib/x86_64-linux-gnu] + arg [-L/snap/flutter/current/lib/x86_64-linux-gnu] ==> dir [/snap/flutter/current/lib/x86_64-linux-gnu] + arg [-L/snap/flutter/current/usr/lib] ==> dir [/snap/flutter/current/usr/lib] + arg [-lblkid] ==> lib [blkid] + arg [-lgcrypt] ==> lib [gcrypt] + arg [-llzma] ==> lib [lzma] + arg [-llz4] ==> lib [lz4] + arg [-lgpg-error] ==> lib [gpg-error] + arg [-luuid] ==> lib [uuid] + arg [-lpthread] ==> lib [pthread] + arg [-ldl] ==> lib [dl] + arg [-lepoxy] ==> lib [epoxy] + arg [-lfontconfig] ==> lib [fontconfig] + arg [CMakeFiles/cmTC_bc420.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore + arg [-lstdc++] ==> lib [stdc++] + arg [-lm] ==> lib [m] + arg [-lgcc_s] ==> lib [gcc_s] + arg [-lgcc] ==> lib [gcc] + arg [-lc] ==> lib [c] + arg [-lgcc_s] ==> lib [gcc_s] + arg [-lgcc] ==> lib [gcc] + arg [/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9/crtend.o] ==> ignore + arg [/snap/flutter/current/usr/lib/x86_64-linux-gnu/crtn.o] ==> ignore + collapse library dir [/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9] ==> [/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9] + collapse library dir [/snap/flutter/current/usr/lib/x86_64-linux-gnu] ==> [/snap/flutter/current/usr/lib/x86_64-linux-gnu] + collapse library dir [/snap/flutter/current/lib/x86_64-linux-gnu] ==> [/snap/flutter/current/lib/x86_64-linux-gnu] + collapse library dir [/snap/flutter/current/usr/lib/] ==> [/snap/flutter/current/usr/lib] + collapse library dir [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10] ==> [/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/10] + collapse library dir [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu] ==> [/snap/flutter/current/usr/lib/x86_64-linux-gnu] + collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] + collapse library dir [/lib/../lib64] ==> [/lib64] + collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] + collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64] + collapse library dir [/usr/lib/x86_64-linux-gnu/../../lib64] ==> [/usr/lib64] + collapse library dir [/snap/flutter/current/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../..] ==> [/snap/flutter/current/usr/lib] + collapse library dir [/snap/flutter/145/usr/lib/llvm-10/bin/../lib] ==> [/snap/flutter/145/usr/lib/llvm-10/lib] + collapse library dir [/lib] ==> [/lib] + collapse library dir [/usr/lib] ==> [/usr/lib] + collapse library dir [/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9] ==> [/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9] + collapse library dir [/snap/flutter/current/usr/lib/x86_64-linux-gnu] ==> [/snap/flutter/current/usr/lib/x86_64-linux-gnu] + collapse library dir [/snap/flutter/current/lib/x86_64-linux-gnu] ==> [/snap/flutter/current/lib/x86_64-linux-gnu] + collapse library dir [/snap/flutter/current/usr/lib] ==> [/snap/flutter/current/usr/lib] + implicit libs: [blkid;gcrypt;lzma;lz4;gpg-error;uuid;pthread;dl;epoxy;fontconfig;stdc++;m;gcc_s;gcc;c;gcc_s;gcc] + implicit dirs: [/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9;/snap/flutter/current/usr/lib/x86_64-linux-gnu;/snap/flutter/current/lib/x86_64-linux-gnu;/snap/flutter/current/usr/lib;/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/10;/lib/x86_64-linux-gnu;/lib64;/usr/lib/x86_64-linux-gnu;/usr/lib64;/snap/flutter/145/usr/lib/llvm-10/lib;/lib;/usr/lib] + implicit fwks: [] + + diff --git a/build/linux/x64/debug/CMakeFiles/TargetDirectories.txt b/build/linux/x64/debug/CMakeFiles/TargetDirectories.txt new file mode 100644 index 0000000..213f93b --- /dev/null +++ b/build/linux/x64/debug/CMakeFiles/TargetDirectories.txt @@ -0,0 +1,21 @@ +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/install/strip.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/install.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/list_install_components.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/rebuild_cache.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/edit_cache.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/install/local.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/CMakeFiles/oc_front.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter/CMakeFiles/install/strip.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter/CMakeFiles/install/local.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter/CMakeFiles/install.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter/CMakeFiles/list_install_components.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter/CMakeFiles/rebuild_cache.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter/CMakeFiles/edit_cache.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter/CMakeFiles/flutter_assemble.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window/CMakeFiles/install/strip.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window/CMakeFiles/install/local.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window/CMakeFiles/install.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window/CMakeFiles/list_install_components.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window/CMakeFiles/rebuild_cache.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window/CMakeFiles/edit_cache.dir +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window/CMakeFiles/desktop_window_plugin.dir diff --git a/build/linux/x64/debug/CMakeFiles/cmake.check_cache b/build/linux/x64/debug/CMakeFiles/cmake.check_cache new file mode 100644 index 0000000..3dccd73 --- /dev/null +++ b/build/linux/x64/debug/CMakeFiles/cmake.check_cache @@ -0,0 +1 @@ +# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git a/build/linux/x64/debug/CMakeFiles/oc_front.dir/flutter/generated_plugin_registrant.cc.o b/build/linux/x64/debug/CMakeFiles/oc_front.dir/flutter/generated_plugin_registrant.cc.o new file mode 100644 index 0000000..c8620f9 Binary files /dev/null and b/build/linux/x64/debug/CMakeFiles/oc_front.dir/flutter/generated_plugin_registrant.cc.o differ diff --git a/build/linux/x64/debug/CMakeFiles/oc_front.dir/main.cc.o b/build/linux/x64/debug/CMakeFiles/oc_front.dir/main.cc.o new file mode 100644 index 0000000..6fd1d88 Binary files /dev/null and b/build/linux/x64/debug/CMakeFiles/oc_front.dir/main.cc.o differ diff --git a/build/linux/x64/debug/CMakeFiles/oc_front.dir/my_application.cc.o b/build/linux/x64/debug/CMakeFiles/oc_front.dir/my_application.cc.o new file mode 100644 index 0000000..53ccadc Binary files /dev/null and b/build/linux/x64/debug/CMakeFiles/oc_front.dir/my_application.cc.o differ diff --git a/build/linux/x64/debug/build.ninja b/build/linux/x64/debug/build.ninja new file mode 100644 index 0000000..535dab5 --- /dev/null +++ b/build/linux/x64/debug/build.ninja @@ -0,0 +1,413 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Ninja" Generator, CMake Version 3.16 + +# This file contains all the build statements describing the +# compilation DAG. + +# ============================================================================= +# Write statements declared in CMakeLists.txt: +# +# Which is the root file. +# ============================================================================= + +# ============================================================================= +# Project: runner +# Configuration: Debug +# ============================================================================= + +############################################# +# Minimal version of Ninja required by this file + +ninja_required_version = 1.5 + +# ============================================================================= +# Include auxiliary files. + + +############################################# +# Include rules file. + +include rules.ninja + + +############################################# +# Utility command for install/strip + +build CMakeFiles/install/strip.util: CUSTOM_COMMAND all + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug && /snap/flutter/145/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake + DESC = Installing the project stripped... + pool = console + restat = 1 + +build install/strip: phony CMakeFiles/install/strip.util + + +############################################# +# Utility command for install + +build CMakeFiles/install.util: CUSTOM_COMMAND all + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug && /snap/flutter/145/usr/bin/cmake -P cmake_install.cmake + DESC = Install the project... + pool = console + restat = 1 + +build install: phony CMakeFiles/install.util + + +############################################# +# Utility command for list_install_components + +build list_install_components: phony + + +############################################# +# Utility command for rebuild_cache + +build CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug && /snap/flutter/145/usr/bin/cmake -S/home/mr/Documents/OC/oc-front/oc_front/linux -B/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug + DESC = Running CMake to regenerate build system... + pool = console + restat = 1 + +build rebuild_cache: phony CMakeFiles/rebuild_cache.util + + +############################################# +# Utility command for edit_cache + +build CMakeFiles/edit_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug && /snap/flutter/145/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. + DESC = No interactive CMake dialog available... + restat = 1 + +build edit_cache: phony CMakeFiles/edit_cache.util + + +############################################# +# Utility command for install/local + +build CMakeFiles/install/local.util: CUSTOM_COMMAND all + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug && /snap/flutter/145/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake + DESC = Installing only the local directory... + pool = console + restat = 1 + +build install/local: phony CMakeFiles/install/local.util + +# ============================================================================= +# Object build statements for EXECUTABLE target oc_front + + +############################################# +# Order-only phony target for oc_front + +build cmake_object_order_depends_target_oc_front: phony || cmake_object_order_depends_target_desktop_window_plugin flutter/flutter_assemble + +build CMakeFiles/oc_front.dir/main.cc.o: CXX_COMPILER__oc_front /home/mr/Documents/OC/oc-front/oc_front/linux/main.cc || cmake_object_order_depends_target_oc_front + DEFINES = -DAPPLICATION_ID=\"com.example.oc_front\" + DEP_FILE = CMakeFiles/oc_front.dir/main.cc.o.d + FLAGS = -g -Wall -Werror -pthread + INCLUDES = -I/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral -I/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/.plugin_symlinks/desktop_window/linux/include -isystem /snap/flutter/current/usr/include/gtk-3.0 -isystem /snap/flutter/current/usr/include/at-spi2-atk/2.0 -isystem /snap/flutter/current/usr/include/at-spi-2.0 -isystem /snap/flutter/current/usr/include/dbus-1.0 -isystem /snap/flutter/current/usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /snap/flutter/current/usr/include/gio-unix-2.0 -isystem /snap/flutter/current/usr/include/cairo -isystem /snap/flutter/current/usr/include/pango-1.0 -isystem /snap/flutter/current/usr/include/fribidi -isystem /snap/flutter/current/usr/include/harfbuzz -isystem /snap/flutter/current/usr/include/atk-1.0 -isystem /snap/flutter/current/usr/include/pixman-1 -isystem /snap/flutter/current/usr/include/uuid -isystem /snap/flutter/current/usr/include/freetype2 -isystem /snap/flutter/current/usr/include/libpng16 -isystem /snap/flutter/current/usr/include/gdk-pixbuf-2.0 -isystem /snap/flutter/current/usr/include/libmount -isystem /snap/flutter/current/usr/include/blkid -isystem /snap/flutter/current/usr/include/glib-2.0 -isystem /snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include + OBJECT_DIR = CMakeFiles/oc_front.dir + OBJECT_FILE_DIR = CMakeFiles/oc_front.dir + +build CMakeFiles/oc_front.dir/my_application.cc.o: CXX_COMPILER__oc_front /home/mr/Documents/OC/oc-front/oc_front/linux/my_application.cc || cmake_object_order_depends_target_oc_front + DEFINES = -DAPPLICATION_ID=\"com.example.oc_front\" + DEP_FILE = CMakeFiles/oc_front.dir/my_application.cc.o.d + FLAGS = -g -Wall -Werror -pthread + INCLUDES = -I/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral -I/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/.plugin_symlinks/desktop_window/linux/include -isystem /snap/flutter/current/usr/include/gtk-3.0 -isystem /snap/flutter/current/usr/include/at-spi2-atk/2.0 -isystem /snap/flutter/current/usr/include/at-spi-2.0 -isystem /snap/flutter/current/usr/include/dbus-1.0 -isystem /snap/flutter/current/usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /snap/flutter/current/usr/include/gio-unix-2.0 -isystem /snap/flutter/current/usr/include/cairo -isystem /snap/flutter/current/usr/include/pango-1.0 -isystem /snap/flutter/current/usr/include/fribidi -isystem /snap/flutter/current/usr/include/harfbuzz -isystem /snap/flutter/current/usr/include/atk-1.0 -isystem /snap/flutter/current/usr/include/pixman-1 -isystem /snap/flutter/current/usr/include/uuid -isystem /snap/flutter/current/usr/include/freetype2 -isystem /snap/flutter/current/usr/include/libpng16 -isystem /snap/flutter/current/usr/include/gdk-pixbuf-2.0 -isystem /snap/flutter/current/usr/include/libmount -isystem /snap/flutter/current/usr/include/blkid -isystem /snap/flutter/current/usr/include/glib-2.0 -isystem /snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include + OBJECT_DIR = CMakeFiles/oc_front.dir + OBJECT_FILE_DIR = CMakeFiles/oc_front.dir + +build CMakeFiles/oc_front.dir/flutter/generated_plugin_registrant.cc.o: CXX_COMPILER__oc_front /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/generated_plugin_registrant.cc || cmake_object_order_depends_target_oc_front + DEFINES = -DAPPLICATION_ID=\"com.example.oc_front\" + DEP_FILE = CMakeFiles/oc_front.dir/flutter/generated_plugin_registrant.cc.o.d + FLAGS = -g -Wall -Werror -pthread + INCLUDES = -I/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral -I/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/.plugin_symlinks/desktop_window/linux/include -isystem /snap/flutter/current/usr/include/gtk-3.0 -isystem /snap/flutter/current/usr/include/at-spi2-atk/2.0 -isystem /snap/flutter/current/usr/include/at-spi-2.0 -isystem /snap/flutter/current/usr/include/dbus-1.0 -isystem /snap/flutter/current/usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /snap/flutter/current/usr/include/gio-unix-2.0 -isystem /snap/flutter/current/usr/include/cairo -isystem /snap/flutter/current/usr/include/pango-1.0 -isystem /snap/flutter/current/usr/include/fribidi -isystem /snap/flutter/current/usr/include/harfbuzz -isystem /snap/flutter/current/usr/include/atk-1.0 -isystem /snap/flutter/current/usr/include/pixman-1 -isystem /snap/flutter/current/usr/include/uuid -isystem /snap/flutter/current/usr/include/freetype2 -isystem /snap/flutter/current/usr/include/libpng16 -isystem /snap/flutter/current/usr/include/gdk-pixbuf-2.0 -isystem /snap/flutter/current/usr/include/libmount -isystem /snap/flutter/current/usr/include/blkid -isystem /snap/flutter/current/usr/include/glib-2.0 -isystem /snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include + OBJECT_DIR = CMakeFiles/oc_front.dir + OBJECT_FILE_DIR = CMakeFiles/oc_front.dir/flutter + + +# ============================================================================= +# Link build statements for EXECUTABLE target oc_front + + +############################################# +# Link the executable intermediates_do_not_run/oc_front + +build intermediates_do_not_run/oc_front: CXX_EXECUTABLE_LINKER__oc_front CMakeFiles/oc_front.dir/main.cc.o CMakeFiles/oc_front.dir/my_application.cc.o CMakeFiles/oc_front.dir/flutter/generated_plugin_registrant.cc.o | plugins/desktop_window/libdesktop_window_plugin.so /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgtk-3.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk-3.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libpango-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libharfbuzz.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libatk-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo-gobject.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgio-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgobject-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libglib-2.0.so || flutter/flutter_assemble plugins/desktop_window/libdesktop_window_plugin.so + FLAGS = -g + LINK_FLAGS = -B/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -B/snap/flutter/current/usr/lib/x86_64-linux-gnu -B/snap/flutter/current/lib/x86_64-linux-gnu -B/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -lblkid -lgcrypt -llzma -llz4 -lgpg-error -luuid -lpthread -ldl -lepoxy -lfontconfig + LINK_LIBRARIES = -Wl,-rpath,/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window:/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral: plugins/desktop_window/libdesktop_window_plugin.so /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgtk-3.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk-3.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libpango-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libharfbuzz.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libatk-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo-gobject.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgio-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgobject-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libglib-2.0.so + OBJECT_DIR = CMakeFiles/oc_front.dir + POST_BUILD = : + PRE_LINK = : + TARGET_FILE = intermediates_do_not_run/oc_front + TARGET_PDB = oc_front.dbg + +# ============================================================================= +# Write statements declared in CMakeLists.txt: +# /home/mr/Documents/OC/oc-front/oc_front/linux/CMakeLists.txt +# ============================================================================= + + +############################################# +# Utility command for install/strip + +build flutter/CMakeFiles/install/strip.util: CUSTOM_COMMAND flutter/all + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter && /snap/flutter/145/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake + DESC = Installing the project stripped... + pool = console + restat = 1 + +build flutter/install/strip: phony flutter/CMakeFiles/install/strip.util + + +############################################# +# Utility command for install/local + +build flutter/CMakeFiles/install/local.util: CUSTOM_COMMAND flutter/all + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter && /snap/flutter/145/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake + DESC = Installing only the local directory... + pool = console + restat = 1 + +build flutter/install/local: phony flutter/CMakeFiles/install/local.util + + +############################################# +# Utility command for install + +build flutter/CMakeFiles/install.util: CUSTOM_COMMAND flutter/all + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter && /snap/flutter/145/usr/bin/cmake -P cmake_install.cmake + DESC = Install the project... + pool = console + restat = 1 + +build flutter/install: phony flutter/CMakeFiles/install.util + + +############################################# +# Utility command for list_install_components + +build flutter/list_install_components: phony + + +############################################# +# Utility command for rebuild_cache + +build flutter/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter && /snap/flutter/145/usr/bin/cmake -S/home/mr/Documents/OC/oc-front/oc_front/linux -B/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug + DESC = Running CMake to regenerate build system... + pool = console + restat = 1 + +build flutter/rebuild_cache: phony flutter/CMakeFiles/rebuild_cache.util + + +############################################# +# Utility command for edit_cache + +build flutter/CMakeFiles/edit_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter && /snap/flutter/145/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. + DESC = No interactive CMake dialog available... + restat = 1 + +build flutter/edit_cache: phony flutter/CMakeFiles/edit_cache.util + + +############################################# +# Utility command for flutter_assemble + +build flutter/flutter_assemble: phony flutter/CMakeFiles/flutter_assemble /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_engine.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_call.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_response.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_value.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_view.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/flutter_linux.h flutter/_phony_ + + +############################################# +# Phony custom command for flutter/CMakeFiles/flutter_assemble + +build flutter/CMakeFiles/flutter_assemble: phony /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_engine.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_call.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_response.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_value.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_view.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/flutter_linux.h + + +############################################# +# Custom command for /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so + +build /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_engine.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_call.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_response.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_value.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_view.h /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/flutter_linux.h flutter/_phony_: CUSTOM_COMMAND + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter && /snap/flutter/145/usr/bin/cmake -E env FLUTTER_ROOT=/home/mr/snap/flutter/common/flutter PROJECT_DIR=/home/mr/Documents/OC/oc-front/oc_front DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC9jNGNkNDhlMTg2NDYwYjMyZDQ0NTg1Y2UzYzEwMzI3MWFiNjc2MzU1Lw== DART_OBFUSCATION=false TRACK_WIDGET_CREATION=true TREE_SHAKE_ICONS=false PACKAGE_CONFIG=/home/mr/Documents/OC/oc-front/oc_front/.dart_tool/package_config.json FLUTTER_TARGET=/home/mr/Documents/OC/oc-front/oc_front/lib/main.dart /home/mr/snap/flutter/common/flutter/packages/flutter_tools/bin/tool_backend.sh linux-x64 Debug + DESC = Generating /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_engine.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_call.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_method_response.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_value.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/fl_view.h, /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_ + restat = 1 + +# ============================================================================= +# Write statements declared in CMakeLists.txt: +# /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/generated_plugins.cmake +# ============================================================================= + + +############################################# +# Utility command for install/strip + +build plugins/desktop_window/CMakeFiles/install/strip.util: CUSTOM_COMMAND plugins/desktop_window/all + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window && /snap/flutter/145/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake + DESC = Installing the project stripped... + pool = console + restat = 1 + +build plugins/desktop_window/install/strip: phony plugins/desktop_window/CMakeFiles/install/strip.util + + +############################################# +# Utility command for install/local + +build plugins/desktop_window/CMakeFiles/install/local.util: CUSTOM_COMMAND plugins/desktop_window/all + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window && /snap/flutter/145/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake + DESC = Installing only the local directory... + pool = console + restat = 1 + +build plugins/desktop_window/install/local: phony plugins/desktop_window/CMakeFiles/install/local.util + + +############################################# +# Utility command for install + +build plugins/desktop_window/CMakeFiles/install.util: CUSTOM_COMMAND plugins/desktop_window/all + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window && /snap/flutter/145/usr/bin/cmake -P cmake_install.cmake + DESC = Install the project... + pool = console + restat = 1 + +build plugins/desktop_window/install: phony plugins/desktop_window/CMakeFiles/install.util + + +############################################# +# Utility command for list_install_components + +build plugins/desktop_window/list_install_components: phony + + +############################################# +# Utility command for rebuild_cache + +build plugins/desktop_window/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window && /snap/flutter/145/usr/bin/cmake -S/home/mr/Documents/OC/oc-front/oc_front/linux -B/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug + DESC = Running CMake to regenerate build system... + pool = console + restat = 1 + +build plugins/desktop_window/rebuild_cache: phony plugins/desktop_window/CMakeFiles/rebuild_cache.util + + +############################################# +# Utility command for edit_cache + +build plugins/desktop_window/CMakeFiles/edit_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window && /snap/flutter/145/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. + DESC = No interactive CMake dialog available... + restat = 1 + +build plugins/desktop_window/edit_cache: phony plugins/desktop_window/CMakeFiles/edit_cache.util + +# ============================================================================= +# Object build statements for SHARED_LIBRARY target desktop_window_plugin + + +############################################# +# Order-only phony target for desktop_window_plugin + +build cmake_object_order_depends_target_desktop_window_plugin: phony || flutter/flutter_assemble + +build plugins/desktop_window/CMakeFiles/desktop_window_plugin.dir/desktop_window_plugin.cc.o: CXX_COMPILER__desktop_window_plugin /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/.plugin_symlinks/desktop_window/linux/desktop_window_plugin.cc || cmake_object_order_depends_target_desktop_window_plugin + DEFINES = -DAPPLICATION_ID=\"com.example.oc_front\" -DFLUTTER_PLUGIN_IMPL -Ddesktop_window_plugin_EXPORTS + DEP_FILE = plugins/desktop_window/CMakeFiles/desktop_window_plugin.dir/desktop_window_plugin.cc.o.d + FLAGS = -g -fPIC -fvisibility=hidden -Wall -Werror -pthread + INCLUDES = -I/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral -isystem /snap/flutter/current/usr/include/gtk-3.0 -isystem /snap/flutter/current/usr/include/at-spi2-atk/2.0 -isystem /snap/flutter/current/usr/include/at-spi-2.0 -isystem /snap/flutter/current/usr/include/dbus-1.0 -isystem /snap/flutter/current/usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /snap/flutter/current/usr/include/gio-unix-2.0 -isystem /snap/flutter/current/usr/include/cairo -isystem /snap/flutter/current/usr/include/pango-1.0 -isystem /snap/flutter/current/usr/include/fribidi -isystem /snap/flutter/current/usr/include/harfbuzz -isystem /snap/flutter/current/usr/include/atk-1.0 -isystem /snap/flutter/current/usr/include/pixman-1 -isystem /snap/flutter/current/usr/include/uuid -isystem /snap/flutter/current/usr/include/freetype2 -isystem /snap/flutter/current/usr/include/libpng16 -isystem /snap/flutter/current/usr/include/gdk-pixbuf-2.0 -isystem /snap/flutter/current/usr/include/libmount -isystem /snap/flutter/current/usr/include/blkid -isystem /snap/flutter/current/usr/include/glib-2.0 -isystem /snap/flutter/current/usr/lib/x86_64-linux-gnu/glib-2.0/include + OBJECT_DIR = plugins/desktop_window/CMakeFiles/desktop_window_plugin.dir + OBJECT_FILE_DIR = plugins/desktop_window/CMakeFiles/desktop_window_plugin.dir + + +# ============================================================================= +# Link build statements for SHARED_LIBRARY target desktop_window_plugin + + +############################################# +# Link the shared library plugins/desktop_window/libdesktop_window_plugin.so + +build plugins/desktop_window/libdesktop_window_plugin.so: CXX_SHARED_LIBRARY_LINKER__desktop_window_plugin plugins/desktop_window/CMakeFiles/desktop_window_plugin.dir/desktop_window_plugin.cc.o | /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgtk-3.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk-3.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libpango-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libharfbuzz.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libatk-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo-gobject.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgio-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgobject-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libglib-2.0.so || flutter/flutter_assemble + LANGUAGE_COMPILE_FLAGS = -g + LINK_FLAGS = -B/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -B/snap/flutter/current/usr/lib/x86_64-linux-gnu -B/snap/flutter/current/lib/x86_64-linux-gnu -B/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -lblkid -lgcrypt -llzma -llz4 -lgpg-error -luuid -lpthread -ldl -lepoxy -lfontconfig + LINK_LIBRARIES = -Wl,-rpath,/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgtk-3.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk-3.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libpango-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libharfbuzz.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libatk-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo-gobject.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgio-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgobject-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libglib-2.0.so + OBJECT_DIR = plugins/desktop_window/CMakeFiles/desktop_window_plugin.dir + POST_BUILD = : + PRE_LINK = : + SONAME = libdesktop_window_plugin.so + SONAME_FLAG = -Wl,-soname, + TARGET_FILE = plugins/desktop_window/libdesktop_window_plugin.so + TARGET_PDB = desktop_window_plugin.so.dbg + +# ============================================================================= +# Target aliases. + +build desktop_window_plugin: phony plugins/desktop_window/libdesktop_window_plugin.so + +build flutter_assemble: phony flutter/flutter_assemble + +build libdesktop_window_plugin.so: phony plugins/desktop_window/libdesktop_window_plugin.so + +build oc_front: phony intermediates_do_not_run/oc_front + +# ============================================================================= +# Folder targets. + +# ============================================================================= + +############################################# +# Folder: /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug + +build all: phony intermediates_do_not_run/oc_front flutter/all plugins/desktop_window/all + +# ============================================================================= + +############################################# +# Folder: /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter + +build flutter/all: phony + +# ============================================================================= + +############################################# +# Folder: /home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window + +build plugins/desktop_window/all: phony plugins/desktop_window/libdesktop_window_plugin.so + +# ============================================================================= +# Built-in targets + + +############################################# +# Make the all target the default. + +default all + +############################################# +# Re-run CMake if any of its inputs changed. + +build build.ninja: RERUN_CMAKE | /home/mr/Documents/OC/oc-front/oc_front/linux/CMakeLists.txt /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/CMakeLists.txt /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/.plugin_symlinks/desktop_window/linux/CMakeLists.txt /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/generated_config.cmake /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/generated_plugins.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeCXXInformation.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeCommonLanguageInclude.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeGenericSystem.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeInitializeConfigs.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeLanguageInformation.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeSystemSpecificInformation.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeSystemSpecificInitialize.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Compiler/CMakeCommonCompilerMacros.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Compiler/Clang-CXX.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Compiler/Clang.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Compiler/GNU.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/FindPackageMessage.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Internal/CMakeCheckCompilerFlag.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Platform/Linux-Clang-CXX.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Platform/Linux-GNU-CXX.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Platform/Linux-GNU.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Platform/Linux.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.16.3/CMakeCXXCompiler.cmake CMakeFiles/3.16.3/CMakeSystem.cmake + pool = console + + +############################################# +# A missing CMake input file is not an error. + +build /home/mr/Documents/OC/oc-front/oc_front/linux/CMakeLists.txt /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/CMakeLists.txt /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/.plugin_symlinks/desktop_window/linux/CMakeLists.txt /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/generated_config.cmake /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/generated_plugins.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeCXXInformation.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeCommonLanguageInclude.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeGenericSystem.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeInitializeConfigs.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeLanguageInformation.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeSystemSpecificInformation.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/CMakeSystemSpecificInitialize.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Compiler/CMakeCommonCompilerMacros.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Compiler/Clang-CXX.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Compiler/Clang.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Compiler/GNU.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/FindPackageMessage.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Internal/CMakeCheckCompilerFlag.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Platform/Linux-Clang-CXX.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Platform/Linux-GNU-CXX.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Platform/Linux-GNU.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Platform/Linux.cmake /snap/flutter/145/usr/share/cmake-3.16/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.16.3/CMakeCXXCompiler.cmake CMakeFiles/3.16.3/CMakeSystem.cmake: phony + + +############################################# +# Clean all the built files. + +build clean: CLEAN + + +############################################# +# Print all primary targets available. + +build help: HELP + diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.bin b/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.bin new file mode 100644 index 0000000..f617265 --- /dev/null +++ b/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.bin @@ -0,0 +1 @@ + assets/images/icon.svg  assetassets/images/icon.svgassets/images/logo.svg  assetassets/images/logo.svg2packages/cupertino_icons/assets/CupertinoIcons.ttf  asset2packages/cupertino_icons/assets/CupertinoIcons.ttf4packages/flutter_map/lib/assets/flutter_map_logo.png  asset4packages/flutter_map/lib/assets/flutter_map_logo.png \ No newline at end of file diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.json b/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.json new file mode 100644 index 0000000..31ce3dc --- /dev/null +++ b/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.json @@ -0,0 +1 @@ +{"assets/images/icon.svg":["assets/images/icon.svg"],"assets/images/logo.svg":["assets/images/logo.svg"],"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"],"packages/flutter_map/lib/assets/flutter_map_logo.png":["packages/flutter_map/lib/assets/flutter_map_logo.png"]} \ No newline at end of file diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/FontManifest.json b/build/linux/x64/debug/bundle/data/flutter_assets/FontManifest.json new file mode 100644 index 0000000..464ab58 --- /dev/null +++ b/build/linux/x64/debug/bundle/data/flutter_assets/FontManifest.json @@ -0,0 +1 @@ +[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]}] \ No newline at end of file diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/NOTICES.Z b/build/linux/x64/debug/bundle/data/flutter_assets/NOTICES.Z new file mode 100644 index 0000000..4909e4b Binary files /dev/null and b/build/linux/x64/debug/bundle/data/flutter_assets/NOTICES.Z differ diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/icon.svg b/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/icon.svg new file mode 100644 index 0000000..bb32afc --- /dev/null +++ b/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/icon.svg @@ -0,0 +1,86 @@ + + + + + + + + image/svg+xml + + + + + + + +   + + + diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/logo.svg b/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/logo.svg new file mode 100644 index 0000000..893c5ca --- /dev/null +++ b/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/logo.svg @@ -0,0 +1,115 @@ + + + + + + + + image/svg+xml + + + + + + + +   + + CLOUD + pen + + diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf b/build/linux/x64/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf new file mode 100644 index 0000000..8c99266 Binary files /dev/null and b/build/linux/x64/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf differ diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/kernel_blob.bin b/build/linux/x64/debug/bundle/data/flutter_assets/kernel_blob.bin new file mode 100644 index 0000000..83b1f05 Binary files /dev/null and b/build/linux/x64/debug/bundle/data/flutter_assets/kernel_blob.bin differ diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf b/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf new file mode 100644 index 0000000..d580ce7 Binary files /dev/null and b/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf differ diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/packages/flutter_map/lib/assets/flutter_map_logo.png b/build/linux/x64/debug/bundle/data/flutter_assets/packages/flutter_map/lib/assets/flutter_map_logo.png new file mode 100644 index 0000000..8603d0a Binary files /dev/null and b/build/linux/x64/debug/bundle/data/flutter_assets/packages/flutter_map/lib/assets/flutter_map_logo.png differ diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/shaders/ink_sparkle.frag b/build/linux/x64/debug/bundle/data/flutter_assets/shaders/ink_sparkle.frag new file mode 100644 index 0000000..b49cd0e Binary files /dev/null and b/build/linux/x64/debug/bundle/data/flutter_assets/shaders/ink_sparkle.frag differ diff --git a/build/linux/x64/debug/bundle/data/flutter_assets/version.json b/build/linux/x64/debug/bundle/data/flutter_assets/version.json new file mode 100644 index 0000000..0059e70 --- /dev/null +++ b/build/linux/x64/debug/bundle/data/flutter_assets/version.json @@ -0,0 +1 @@ +{"app_name":"oc_front","version":"1.0.0","build_number":"1","package_name":"oc_front"} \ No newline at end of file diff --git a/build/linux/x64/debug/bundle/data/icudtl.dat b/build/linux/x64/debug/bundle/data/icudtl.dat new file mode 100644 index 0000000..466abd8 Binary files /dev/null and b/build/linux/x64/debug/bundle/data/icudtl.dat differ diff --git a/build/linux/x64/debug/bundle/lib/libdesktop_window_plugin.so b/build/linux/x64/debug/bundle/lib/libdesktop_window_plugin.so new file mode 100644 index 0000000..e2e190f Binary files /dev/null and b/build/linux/x64/debug/bundle/lib/libdesktop_window_plugin.so differ diff --git a/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so b/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so new file mode 100644 index 0000000..bbf1a1f Binary files /dev/null and b/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so differ diff --git a/build/linux/x64/debug/bundle/oc_front b/build/linux/x64/debug/bundle/oc_front new file mode 100755 index 0000000..8ebf1c5 Binary files /dev/null and b/build/linux/x64/debug/bundle/oc_front differ diff --git a/build/linux/x64/debug/cmake_install.cmake b/build/linux/x64/debug/cmake_install.cmake new file mode 100644 index 0000000..a45d5d4 --- /dev/null +++ b/build/linux/x64/debug/cmake_install.cmake @@ -0,0 +1,156 @@ +# Install script for directory: /home/mr/Documents/OC/oc-front/oc_front/linux + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xRuntimex" OR NOT CMAKE_INSTALL_COMPONENT) + + file(REMOVE_RECURSE "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/") + +endif() + +if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xRuntimex" OR NOT CMAKE_INSTALL_COMPONENT) + if(EXISTS "$ENV{DESTDIR}/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/oc_front" AND + NOT IS_SYMLINK "$ENV{DESTDIR}/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/oc_front") + file(RPATH_CHECK + FILE "$ENV{DESTDIR}/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/oc_front" + RPATH "$ORIGIN/lib") + endif() + list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES + "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/oc_front") + if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) + message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() + if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) + message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() +file(INSTALL DESTINATION "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle" TYPE EXECUTABLE FILES "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/intermediates_do_not_run/oc_front") + if(EXISTS "$ENV{DESTDIR}/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/oc_front" AND + NOT IS_SYMLINK "$ENV{DESTDIR}/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/oc_front") + file(RPATH_CHANGE + FILE "$ENV{DESTDIR}/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/oc_front" + OLD_RPATH "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window:/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral:" + NEW_RPATH "$ORIGIN/lib") + if(CMAKE_INSTALL_DO_STRIP) + execute_process(COMMAND "/snap/flutter/current/usr/bin/strip" "$ENV{DESTDIR}/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/oc_front") + endif() + endif() +endif() + +if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xRuntimex" OR NOT CMAKE_INSTALL_COMPONENT) + list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES + "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/icudtl.dat") + if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) + message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() + if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) + message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() +file(INSTALL DESTINATION "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data" TYPE FILE FILES "/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/icudtl.dat") +endif() + +if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xRuntimex" OR NOT CMAKE_INSTALL_COMPONENT) + list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES + "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so") + if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) + message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() + if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) + message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() +file(INSTALL DESTINATION "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/lib" TYPE FILE FILES "/home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/libflutter_linux_gtk.so") +endif() + +if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xRuntimex" OR NOT CMAKE_INSTALL_COMPONENT) + list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES + "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/lib/libdesktop_window_plugin.so") + if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) + message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() + if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) + message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() +file(INSTALL DESTINATION "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/lib" TYPE FILE FILES "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window/libdesktop_window_plugin.so") +endif() + +if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xRuntimex" OR NOT CMAKE_INSTALL_COMPONENT) + list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES + "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/lib/") + if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) + message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() + if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) + message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() +file(INSTALL DESTINATION "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/lib" TYPE DIRECTORY FILES "/home/mr/Documents/OC/oc-front/oc_front/build/native_assets/linux/") +endif() + +if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xRuntimex" OR NOT CMAKE_INSTALL_COMPONENT) + + file(REMOVE_RECURSE "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets") + +endif() + +if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xRuntimex" OR NOT CMAKE_INSTALL_COMPONENT) + list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES + "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets") + if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION) + message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() + if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION) + message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}") + endif() +file(INSTALL DESTINATION "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data" TYPE DIRECTORY FILES "/home/mr/Documents/OC/oc-front/oc_front/build//flutter_assets") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/flutter/cmake_install.cmake") + include("/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/plugins/desktop_window/cmake_install.cmake") + +endif() + +if(CMAKE_INSTALL_COMPONENT) + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +file(WRITE "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/${CMAKE_INSTALL_MANIFEST}" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") diff --git a/build/linux/x64/debug/flutter/cmake_install.cmake b/build/linux/x64/debug/flutter/cmake_install.cmake new file mode 100644 index 0000000..9757a95 --- /dev/null +++ b/build/linux/x64/debug/flutter/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /home/mr/Documents/OC/oc-front/oc_front/linux/flutter + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + diff --git a/build/linux/x64/debug/install_manifest.txt b/build/linux/x64/debug/install_manifest.txt new file mode 100644 index 0000000..fc71f4b --- /dev/null +++ b/build/linux/x64/debug/install_manifest.txt @@ -0,0 +1,16 @@ +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/oc_front +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/icudtl.dat +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/lib/libdesktop_window_plugin.so +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.json +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/icon.svg +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/assets/images/logo.svg +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/kernel_blob.bin +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/fonts/MaterialIcons-Regular.otf +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/shaders/ink_sparkle.frag +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/NOTICES.Z +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/packages/flutter_map/lib/assets/flutter_map_logo.png +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/version.json +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/FontManifest.json +/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle/data/flutter_assets/AssetManifest.bin \ No newline at end of file diff --git a/build/linux/x64/debug/intermediates_do_not_run/oc_front b/build/linux/x64/debug/intermediates_do_not_run/oc_front new file mode 100755 index 0000000..4dc8bbc Binary files /dev/null and b/build/linux/x64/debug/intermediates_do_not_run/oc_front differ diff --git a/build/linux/x64/debug/plugins/desktop_window/CMakeFiles/desktop_window_plugin.dir/desktop_window_plugin.cc.o b/build/linux/x64/debug/plugins/desktop_window/CMakeFiles/desktop_window_plugin.dir/desktop_window_plugin.cc.o new file mode 100644 index 0000000..dc6db60 Binary files /dev/null and b/build/linux/x64/debug/plugins/desktop_window/CMakeFiles/desktop_window_plugin.dir/desktop_window_plugin.cc.o differ diff --git a/build/linux/x64/debug/plugins/desktop_window/cmake_install.cmake b/build/linux/x64/debug/plugins/desktop_window/cmake_install.cmake new file mode 100644 index 0000000..1885874 --- /dev/null +++ b/build/linux/x64/debug/plugins/desktop_window/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /home/mr/Documents/OC/oc-front/oc_front/linux/flutter/ephemeral/.plugin_symlinks/desktop_window/linux + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug/bundle") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + diff --git a/build/linux/x64/debug/plugins/desktop_window/libdesktop_window_plugin.so b/build/linux/x64/debug/plugins/desktop_window/libdesktop_window_plugin.so new file mode 100755 index 0000000..e2e190f Binary files /dev/null and b/build/linux/x64/debug/plugins/desktop_window/libdesktop_window_plugin.so differ diff --git a/build/linux/x64/debug/rules.ninja b/build/linux/x64/debug/rules.ninja new file mode 100644 index 0000000..d4bdf9a --- /dev/null +++ b/build/linux/x64/debug/rules.ninja @@ -0,0 +1,83 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Ninja" Generator, CMake Version 3.16 + +# This file contains all the rules used to get the outputs files +# built from the input files. +# It is included in the main 'build.ninja'. + +# ============================================================================= +# Project: runner +# Configuration: Debug +# ============================================================================= +# ============================================================================= + +############################################# +# Rule for running custom commands. + +rule CUSTOM_COMMAND + command = $COMMAND + description = $DESC + + +############################################# +# Rule for compiling CXX files. + +rule CXX_COMPILER__oc_front + depfile = $DEP_FILE + deps = gcc + command = /snap/flutter/current/usr/bin/clang++ $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in + description = Building CXX object $out + + +############################################# +# Rule for linking CXX executable. + +rule CXX_EXECUTABLE_LINKER__oc_front + command = $PRE_LINK && /snap/flutter/current/usr/bin/clang++ $FLAGS $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD + description = Linking CXX executable $TARGET_FILE + restat = $RESTAT + + +############################################# +# Rule for compiling CXX files. + +rule CXX_COMPILER__desktop_window_plugin + depfile = $DEP_FILE + deps = gcc + command = /snap/flutter/current/usr/bin/clang++ $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in + description = Building CXX object $out + + +############################################# +# Rule for linking CXX shared library. + +rule CXX_SHARED_LIBRARY_LINKER__desktop_window_plugin + command = $PRE_LINK && /snap/flutter/current/usr/bin/clang++ -fPIC $LANGUAGE_COMPILE_FLAGS $ARCH_FLAGS $LINK_FLAGS -shared $SONAME_FLAG$SONAME -o $TARGET_FILE $in $LINK_PATH $LINK_LIBRARIES && $POST_BUILD + description = Linking CXX shared library $TARGET_FILE + restat = $RESTAT + + +############################################# +# Rule for re-running cmake. + +rule RERUN_CMAKE + command = /snap/flutter/145/usr/bin/cmake -S/home/mr/Documents/OC/oc-front/oc_front/linux -B/home/mr/Documents/OC/oc-front/oc_front/build/linux/x64/debug + description = Re-running CMake... + generator = 1 + + +############################################# +# Rule for cleaning all built files. + +rule CLEAN + command = /snap/flutter/current/usr/bin/ninja -t clean + description = Cleaning all built files... + + +############################################# +# Rule for printing all primary targets available. + +rule HELP + command = /snap/flutter/current/usr/bin/ninja -t targets + description = All primary targets available: + diff --git a/ios/.gitignore b/ios/.gitignore new file mode 100644 index 0000000..7a7f987 --- /dev/null +++ b/ios/.gitignore @@ -0,0 +1,34 @@ +**/dgph +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/ephemeral/ +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..7c56964 --- /dev/null +++ b/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..53f9b09 --- /dev/null +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,616 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C8082294A63A400263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C807B294A618700263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 331C8082294A63A400263BE5 /* RunnerTests */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + 331C8081294A63A400263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C8080294A63A400263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 331C807D294A63A400263BE5 /* Sources */, + 331C807F294A63A400263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C8086294A63A400263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C8080294A63A400263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 97C146ED1CF9000F007C117D; + }; + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + 331C8080294A63A400263BE5 /* RunnerTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C807F294A63A400263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C807D294A63A400263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.ocFront; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 331C8088294A63A400263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.ocFront.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Debug; + }; + 331C8089294A63A400263BE5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.ocFront.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Release; + }; + 331C808A294A63A400263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.ocFront.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.ocFront; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.ocFront; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C8088294A63A400263BE5 /* Debug */, + 331C8089294A63A400263BE5 /* Release */, + 331C808A294A63A400263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..8e3ca5d --- /dev/null +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000..70693e4 --- /dev/null +++ b/ios/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..dc9ada4 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..7353c41 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..797d452 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..6ed2d93 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..4cd7b00 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..fe73094 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..321773c Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..797d452 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..502f463 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..0ec3034 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..0ec3034 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..e9f5fea Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..84ac32a Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..8953cba Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000..0467bf1 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..0bedcf2 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist new file mode 100644 index 0000000..b25797d --- /dev/null +++ b/ios/Runner/Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Oc Front + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + OpenCloud Demo + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000..308a2a5 --- /dev/null +++ b/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/ios/RunnerTests/RunnerTests.swift b/ios/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..86a7c3b --- /dev/null +++ b/ios/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import Flutter +import UIKit +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/lib/core/models/cart.dart b/lib/core/models/cart.dart new file mode 100644 index 0000000..b9a7570 --- /dev/null +++ b/lib/core/models/cart.dart @@ -0,0 +1,66 @@ +import 'package:flutter/material.dart'; +import 'package:oc_front/models/search.dart'; +import 'package:oc_front/models/workspace.dart'; +import 'package:oc_front/core/services/specialized_services/item_service.dart'; +import 'package:oc_front/core/services/specialized_services/workspace_service.dart'; + + +class WorkspaceLocal { + static Workspace? workspace; + static final WorkspaceService _service = WorkspaceService(); + static List items = []; + static void init(BuildContext context) { + _service.all(context).then((value) { + workspace = value.data; + if (workspace != null) { + if (workspace!.data.isNotEmpty) { + ItemService dataService = ItemService(); + dataService.get(context, workspace!.data.join(",")).then( + (value) { if (value.data != null) { items.add(value.data!); } } + ); + } + if (workspace!.computing.isNotEmpty) { + ItemService computingService = ItemService(); + computingService.get(context, workspace!.computing.join(",")).then( + (value) { if (value.data != null) { items.add(value.data!); } } + ); + } + if (workspace!.datacenter.isNotEmpty) { + ItemService dataCenterService = ItemService(); + dataCenterService.get(context, workspace!.datacenter.join(",")).then( + (value) { if (value.data != null) { items.add(value.data!); } } + ); + } + if (workspace!.storage.isNotEmpty) { + ItemService storageService = ItemService(); + storageService.get(context, workspace!.storage.join(",")).then( + (value) { if (value.data != null) { items.add(value.data!); } } + ); + } + } + }); + } + static AbstractItem? getItem(String id) { + var found = WorkspaceLocal.items.where((element) => element.id.toString() == id); + return found.isEmpty ? null : found.first; + } + + static void addItem(AbstractItem item) { + if (!WorkspaceLocal.hasItem(item)) { + items.add(item); + try { + _service.post(null, {}, { "id" : item.id.toString(), "rtype" : item.type.toString() }); + } catch (e) { /* */ } + + } + } + static void removeItem(AbstractItem item) { + items = items.where((element) => element.name != item.name).toList(); + try { _service.delete(null, { "id" : item.id.toString(), "rtype" : item.type.toString() }); + } catch (e) { /* */ } + } + static bool hasItem(AbstractItem item) { + return items.where((element) => element.name == item.name).isNotEmpty; + } + static void clear() => items.clear(); +} \ No newline at end of file diff --git a/lib/core/sections/end_drawer.dart b/lib/core/sections/end_drawer.dart new file mode 100644 index 0000000..be669cc --- /dev/null +++ b/lib/core/sections/end_drawer.dart @@ -0,0 +1,48 @@ +import 'package:flutter/material.dart'; +import 'package:oc_front/models/search.dart'; +import 'package:oc_front/pages/catalog.dart'; +import 'package:oc_front/core/models/cart.dart'; +import 'package:oc_front/widgets/items/item_row.dart'; + +GlobalKey endDrawerKey = GlobalKey(); +class EndDrawerWidget extends StatefulWidget { + final List? items; + EndDrawerWidget ({ this.items }): super(key: endDrawerKey); + @override EndDrawerWidgetState createState() => EndDrawerWidgetState(); +} +class EndDrawerWidgetState extends State { + @override Widget build(BuildContext context) { + List itemRows = WorkspaceLocal.items.map( + (e) => ItemRowWidget(contextWidth: 400, item: e, keys: [endDrawerKey, CatalogFactory.key],)).toList(); + return Container( + color: Colors.white, + width: 400, + height: MediaQuery.of(context).size.height, + child: SingleChildScrollView( + child: Column( children: [ + Container( + width: 400, + height: 50, + decoration: const BoxDecoration(color: Color.fromRGBO(38, 166, 154, 1)), + child: const Center( + child: Row( mainAxisAlignment: MainAxisAlignment.center, + children: [ + Padding(padding: EdgeInsets.only(right: 20), child: Icon(Icons.shopping_cart_outlined, size: 18, color: Colors.white)), + Text("Workspace", style: TextStyle(fontSize: 18, color: Colors.white, fontWeight: FontWeight.w600)) + ]) + + ), + ), + itemRows.isEmpty ? Container( height: MediaQuery.of(context).size.height - 50, + color: Colors.grey.shade300, + child: const Center(child: Text("WORKSPACE IS EMPTY", + style: TextStyle(fontSize: 25, fontWeight: FontWeight.w600, color: Colors.white)))) + : Container( child: SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Row( children: itemRows) + )), + ]) + ) + ); + } +} \ No newline at end of file diff --git a/lib/core/sections/header/header.dart b/lib/core/sections/header/header.dart new file mode 100644 index 0000000..30929b2 --- /dev/null +++ b/lib/core/sections/header/header.dart @@ -0,0 +1,20 @@ +import 'package:flutter/material.dart'; +import 'package:oc_front/core/sections/header/menu.dart'; +import 'package:oc_front/core/sections/header/search.dart'; +import 'package:oc_front/utils/clipper_menu.dart'; + +GlobalKey headerWidgetKey = GlobalKey(); +class HeaderWidget extends StatefulWidget { + HeaderWidget () : super(key: headerWidgetKey); + @override HeaderWidgetState createState() => HeaderWidgetState(); +} +class HeaderWidgetState extends State { + @override Widget build(BuildContext context) { + headerWidgetKey = GlobalKey(); + headerMenuKey.currentState?.closeMenu(); + return Column( children: [ + const HeaderMenuWidget(), + SearchWidget() + ],); + } +} diff --git a/lib/core/sections/header/menu.dart b/lib/core/sections/header/menu.dart new file mode 100644 index 0000000..59acc42 --- /dev/null +++ b/lib/core/sections/header/menu.dart @@ -0,0 +1,52 @@ +import 'package:oc_front/main.dart'; +import 'package:flutter/material.dart'; +import 'package:oc_front/utils/clipper_menu.dart'; +import 'package:oc_front/utils/dialog/login.dart'; + +class HeaderMenuWidget extends StatefulWidget{ + const HeaderMenuWidget ({ super.key }); + @override HeaderMenuWidgetState createState() => HeaderMenuWidgetState(); +} +class HeaderMenuWidgetState extends State { + @override Widget build(BuildContext context) { + return Container( + width: MediaQuery.of(context).size.width, + height: 50, + decoration: BoxDecoration( + border: Border(bottom: BorderSide(color: Colors.grey.shade300)) + ), + child: Padding(padding: const EdgeInsets.only(top: 5, bottom: 5, left: 50, right: 50), + child: Stack(children: [ + /*...(searchWidgetKey.currentState == null ? [Positioned( left: -20, top: -5, + child: SvgPicture.asset("assets/images/icon.svg", height: 70, semanticsLabel: 'OpenCloud Logo'))] : []),*/ + Row(crossAxisAlignment: CrossAxisAlignment.stretch, + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Tooltip( message: "workspace/cart", child: Padding(padding: const EdgeInsets.only(left: 10), + child: IconButton( + icon: const Icon(Icons.shopping_cart_outlined), + onPressed: () { + headerMenuKey.currentState?.closeMenu(); + scaffoldKey.currentState?.openEndDrawer(); + }, + ) + )), + Tooltip( message: "login", child: Padding(padding: const EdgeInsets.only(left: 10), + child: IconButton( + icon: const Icon(Icons.login_outlined), + onPressed: () { showDialog(context: context, builder: (context) => LoginWidget()); }, + ) + )), + Tooltip( message: "navigation", child: Padding(padding: const EdgeInsets.only(left: 10), + child: ClipperMenuWidget( + borderRadius: BorderRadius.circular(4), + iconColor: Colors.white, + ) + )) + ] + ) + ]) + ) + ); + } +} \ No newline at end of file diff --git a/lib/core/sections/header/search.dart b/lib/core/sections/header/search.dart new file mode 100644 index 0000000..99e23a9 --- /dev/null +++ b/lib/core/sections/header/search.dart @@ -0,0 +1,125 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_svg/svg.dart'; +import 'package:oc_front/core/services/router.dart'; + +class SearchConstants { + static final Map _searchHost = {}; + static String? get() { return _searchHost[AppRouter.currentRoute.route]; } + static void set(String? search) { _searchHost[AppRouter.currentRoute.route] = search; } + static void remove() { _searchHost.remove(AppRouter.currentRoute.route); } + static void clear() { _searchHost.clear(); } +} + +GlobalKey searchWidgetKey = GlobalKey(); +class SearchWidget extends StatefulWidget { + SearchWidget (): super(key: GlobalKey()); + @override SearchWidgetState createState() => SearchWidgetState(); +} +class SearchWidgetState extends State { + @override Widget build(BuildContext context) { + searchWidgetKey = widget.key as GlobalKey; + List widgets = [ + ...(MediaQuery.of(context).size.width > 600 || AppRouter.currentRoute.factory.searchFill() + ? [InkWell( + mouseCursor: SystemMouseCursors.click, + onTap: () => AppRouter.zones.first.go(context, {}), + child: Container( + margin: EdgeInsets.only(top: 20, left: AppRouter.currentRoute.factory.searchFill() ? 40 : 0), + child: SvgPicture.asset( + width: 300, + height: AppRouter.currentRoute.factory.searchFill() ? + ((MediaQuery.of(context).size.height - 50) / 2) : 150, + "assets/images/logo.svg", + semanticsLabel: 'OpenCloud Logo' + ) + ) + )] : []), + AppRouter.currentRoute.description != null ? + Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text(AppRouter.currentRoute.description!, style: const TextStyle( + color: Color.fromRGBO(38, 166, 154, 1), + fontSize: 24, + fontWeight: FontWeight.w600 + )), + Row(children: [ + ...(AppRouter.currentRoute.help == null || AppRouter.currentRoute.help!.isEmpty ? [] + : [ const Padding( padding: EdgeInsets.only(right: 10), + child: Icon(Icons.help_outline, color: Colors.grey, size: 20)), + Text(AppRouter.currentRoute.help ?? "", style: const TextStyle( + color: Colors.grey, + fontSize: 14, + fontWeight: FontWeight.w400 + )) ]) + ],) + + ], + ) + : Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Container( + width: MediaQuery.of(context).size.width - 300 - 100, + height: 50, + color: Colors.white, + child: TextField( + onChanged: (value) => SearchConstants.set(value), + decoration: InputDecoration( + hintText: "Search in ${AppRouter.currentRoute.route}...", + contentPadding: const EdgeInsets.symmetric(horizontal: 30), + hintStyle: const TextStyle( + color: Colors.black, + fontSize: 14, + fontWeight: FontWeight.w300 + ), + border: InputBorder.none + ) + ) + ), + Tooltip( + message: 'search', + child: InkWell( + onTap: () { + AppRouter.currentRoute.factory.search(context); + }, + child: Container( + width: 50, + height: 50, + decoration: BoxDecoration( + color: Colors.black, + border: Border(right: BorderSide(color: Colors.white)), + ), + child: const Icon(Icons.search, color: Colors.white) + ) + ) + ), + Tooltip( + message: 'distributed search', + child: InkWell( + onTap: () { + AppRouter.currentRoute.factory.search(context); + }, + child: Container( + width: 50, + height: 50, + color: Colors.black, + child: const Icon(Icons.screen_search_desktop_outlined, color: Colors.white) + ) + ) + ) + ]) + ]; + return Container( + width: MediaQuery.of(context).size.width, + height: AppRouter.currentRoute.factory.searchFill() ? (MediaQuery.of(context).size.height - 50) : 150, + color: Colors.grey.shade300, + child: AppRouter.currentRoute.factory.searchFill() ? Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: widgets) + : Row( mainAxisAlignment: MediaQuery.of(context).size.width < 600 + ? MainAxisAlignment.center : MainAxisAlignment.start, children: widgets) + ); + } +} \ No newline at end of file diff --git a/lib/core/services/api_service.dart b/lib/core/services/api_service.dart new file mode 100644 index 0000000..81f3a79 --- /dev/null +++ b/lib/core/services/api_service.dart @@ -0,0 +1,172 @@ + +import 'dart:io'; +import 'package:dio/dio.dart'; +import 'package:flutter/material.dart'; +import 'package:alert_banner/exports.dart'; +import 'package:oc_front/models/abstract.dart'; +import 'package:oc_front/models/response.dart'; +import 'package:oc_front/utils/dialog/alert.dart'; +import 'package:oc_front/core/services/html.dart' if (kIsWeb) 'dart:html' as http; + +class APIService { + static bool forceRequest = false; + static Map> cache = >{}; + static String auth = ""; + Dio _dio = Dio( + BaseOptions( + baseUrl: const String.fromEnvironment('HOST', defaultValue: 'http://localhost:8080'), // you can keep this blank + headers: { 'Content-Type': 'application/json; charset=UTF-8' }, + ), + )..interceptors.add(LogInterceptor( requestHeader: true, ),); + + APIService({ required String baseURL }) { + _dio = Dio( + BaseOptions( + baseUrl: baseURL, // you can keep this blank + headers: { 'Content-Type': 'application/json; charset=UTF-8' }, + ), + )..interceptors.add(LogInterceptor( requestHeader: true, ),); + } + + Future> call( + String url, String method, Map? body, bool force, BuildContext? context) async { + switch (method.toLowerCase()) { + case 'get' : return await get(url, force, context); + case 'post' : return await post(url, body!, context); + case 'put' : return await put(url, body!, context); + case 'delete' : return await delete(url, context); + default : return await get(url, force, context); + } + } + Future _request(String url, String method, dynamic body, Options? options) async { + switch (method.toLowerCase()) { + case 'get' : return await _dio.get(url, options: options); + case 'post' : return await _dio.post(url, data:body, options: options); + case 'put' : return await _dio.put(url, data: body!, options: options); + case 'delete' : return await _dio.delete(url, options: options); + default : return await _dio.get(url, options: options); + } + } + ValueNotifier downloadProgressNotifier = ValueNotifier(0); + Future _mainDownload(String url, String method, bool isFilter, String? extend, String savePath, bool isWeb, BuildContext context) async { + try { + downloadProgressNotifier.value = 0; + // dio.options.headers["authorization"] = auth; + if (isWeb) { + _dio.get("$url${extend ?? ""}").then((value) { + var url = http.Url.createObjectUrlFromBlob(http.Blob([value.data])); + http.AnchorElement(href: url)..setAttribute('download', savePath.split("/").last)..click(); + downloadProgressNotifier.value = 100; + Future.delayed(const Duration(seconds: 1), () { Navigator.of(context).pop(); }); + }); + } else { + _dio.download("$url${extend ?? ""}", savePath, onReceiveProgress: (actualBytes, int totalBytes) { + Future.delayed(const Duration(seconds: 1), () { + downloadProgressNotifier.value = (actualBytes / totalBytes * 100).floor(); + if (downloadProgressNotifier.value == 100) { Navigator.of(context).pop(); } + }); + }); + } + + } catch (e) { /* */ } + } + + Future> _main(String url, dynamic body, String method, String succeed, bool force, + BuildContext? context, Options? options) async { + var err = ""; + + if ((!force) && cache.containsKey(url) && cache[url] != null ) { + return cache[url]! as APIResponse; + } + try { + _dio.options.headers["authorization"] = auth; + _dio.interceptors.clear(); + var response = await _request(url, method, body, options); + if (response.statusCode != null && response.statusCode! < 400) { + if (method == "delete") { cache.remove(url); return APIResponse(); } + APIResponse resp = APIResponse().deserialize(response.data); + if (resp.error == "") { + if (method == "get") { cache[url]=resp; } + if (context != null && succeed != "") { + // ignore: use_build_context_synchronously + showAlertBanner(context, () {}, InfoAlertBannerChild(text: succeed), // <-- Put any widget here you want! + alertBannerLocation: AlertBannerLocation.bottom,); + } + try { return cache[url] as APIResponse; + } catch (e) { return APIResponse(); } + } + err = resp.error ?? "internal error"; + } + if (response.statusCode == 401) { err = "not authorized"; } + } catch(e, s) { + print(e); + print(s); + err = e.toString(); + } + //if (err.contains("token") && err.contains("expired")) { AuthService().unAuthenticate(); } + if (context != null) { + // ignore: use_build_context_synchronously + showAlertBanner( context, () {}, AlertAlertBannerChild(text: err),// <-- Put any widget here you want! + alertBannerLocation: AlertBannerLocation.bottom,); + } + throw Exception(err); + } + + Future> raw(String url, dynamic body, String method) async { + var err = ""; + if (url != "") { + try { + _dio.options.headers["authorization"] = auth; + _dio.interceptors.clear(); + var response = await _request(url, method, body, null); + if (response.statusCode != null && response.statusCode! < 400) { + if (method == "delete") { cache.remove(url); return APIResponse(); } + APIResponse resp = APIResponse().deserialize(response.data); + if (resp.error == "") { return resp; } + err = resp.error ?? "internal error"; + } + if (response.statusCode == 401) { err = "not authorized"; } + } catch(e, s) { print(e); print(s); + err = "${e.toString()} ${const String.fromEnvironment('HOST', defaultValue: 'http://localhost:8080')}"; } + } else { err = "no url"; } + // if (err.contains("token") && err.contains("expired")) { AuthService().unAuthenticate(); } + throw Exception(err); + } + + Future> sendFile(String url, File file, BuildContext context) async { + FormData formData = FormData.fromMap({ + "file": await MultipartFile.fromFile(file.path, filename:file.path.split("/").last), + }); + // ignore: use_build_context_synchronously + return _main(url, formData, "post", "send succeed", true, context, Options(contentType: 'multipart/form-data')); + } + + Future getWithDownload(String url, String format, Map cache, String savePath, bool isWeb, BuildContext context) async { + String asLabel = ""; + for (var key in cache.keys) { + if (!asLabel.contains(key)) { asLabel += "&${key}_aslabel=${cache[key]!}"; } + } + try { _mainDownload(url, "get", true, "&export=$format$asLabel", savePath, isWeb, context); + } catch (e) { /* */ } + } + + Future> getWithOffset(String url, bool force, BuildContext? context) async { + return _main(url, null, "get", "", force, context, null); + } + + Future> get(String url, bool force, BuildContext? context) async { + return _main(url, null, "get", "", force, context, null); + } + + Future> post(String url, Map values, BuildContext? context) async { + return _main(url, values, "post", "send succeed", true, context, null); + } + + Future> put(String url, Map values, BuildContext? context) async { + return _main(url, values, "put", "save succeed", true, context, null); + } + + Future> delete(String url, BuildContext? context) async { + return _main(url, null, "delete", "deletion succeed", true, context, null); + } +} \ No newline at end of file diff --git a/lib/core/services/html.dart b/lib/core/services/html.dart new file mode 100644 index 0000000..daf863a --- /dev/null +++ b/lib/core/services/html.dart @@ -0,0 +1,17 @@ +class Blob { + Blob(List blobParts, [String? type, String? endings]) { + // logic + } +} + +class Url { + static String createObjectUrlFromBlob(Blob blob) => ""; +} + +class AnchorElement { + AnchorElement({String? href}) { + // logic + } + void setAttribute(String name, Object value) {} + void click() { } +} \ No newline at end of file diff --git a/lib/core/services/router.dart b/lib/core/services/router.dart new file mode 100644 index 0000000..8fd7f1d --- /dev/null +++ b/lib/core/services/router.dart @@ -0,0 +1,145 @@ +import 'package:oc_front/main.dart'; +import 'package:oc_front/pages/abstract_page.dart'; +import 'package:oc_front/pages/catalog.dart'; +import 'package:oc_front/pages/catalog_item.dart'; +import 'package:oc_front/pages/datacenter.dart'; +import 'package:oc_front/pages/map.dart'; +import 'package:oc_front/pages/scheduler.dart'; +import 'package:oc_front/pages/workflow.dart'; +import 'package:shared_preferences/shared_preferences.dart'; +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +GlobalKey routerKey = GlobalKey(); + +class RouterWidget extends StatefulWidget { + const RouterWidget({Key? key}) : super(key: key); + @override RouterWidgetState createState() => RouterWidgetState(); +} + +class RouterWidgetState extends State { + @override Widget build(BuildContext context) { + return Padding( padding: const EdgeInsets.only(right: 20), child: Row(children: [ + IconButton(onPressed: () async => AppRouter.realHistory.length > 1 ? AppRouter.back() : null, icon: Icon(Icons.arrow_back, color: AppRouter.realHistory.length > 1 ? Colors.white : Theme.of(context).splashColor)), + IconButton(onPressed: () async => AppRouter.canForward() ? AppRouter.forward() : null, icon: Icon(Icons.arrow_forward, color: AppRouter.canForward() ? Colors.white : Theme.of(context).splashColor)), + ],)); + } +} + +class RouterItem { + final IconData? icon; + final String? label; + final String route; + final String? description; + final String? help; + final AbstractFactory factory; + List args = []; + RouterItem({this.icon, this.label, this.description, this.help, + required this.route, required this.factory, this.args = const []}); + String get path => "/${route == AppRouter.home ? "" : route}"; + + void go(BuildContext context, Map params) { + AppRouter.currentRoute = this; + var newPath = "$path"; + for (var arg in args) { newPath = newPath.replaceAll(":$arg", params[arg] ?? ""); } + context.go(newPath); + } +} + +class AppRouter { + static const String home = "catalog"; + static List zones = [ + RouterItem(icon: Icons.book_outlined, label: "catalog searcher", route: home, factory: CatalogFactory()), + RouterItem(icon: Icons.rebase_edit, label: "workflow manager", route: "workflow", + description: "View to select & create new workflow.", help: "Workflow only access to your workspace datas. If a an element of your flow is missing, perhaps means it's missing in workspace.", + factory: WorkflowFactory()), + RouterItem(icon: Icons.schedule, label: "scheduled tasks", route: "scheduler", factory: SchedulerFactory()), + RouterItem(icon: Icons.dns_outlined, label: "my datacenter", route: "datacenter", + description: "Manage & monitor your datacenter.", help: "not implemented for now", + factory: DatacenterFactory()), + RouterItem(icon: Icons.public_outlined, label: "localisations", route: "map", factory: MapFactory()), + RouterItem(description: "", help: "", route: "catalog/:id", factory: CatalogItemFactory(), args: ["id"]), + ]; + static List history = []; + static List realHistory = []; + static final AppRouter _instance = AppRouter._internal(); + factory AppRouter() { return _instance; } + AppRouter._internal() { + SharedPreferences.getInstance().then((prefs) { + if (prefs.containsKey("history")) { + realHistory = prefs.getString("history")!.split(","); + history = prefs.getString("history")!.split(","); + routerKey.currentState?.setState(() { }); + } + }); + } + + static Future getRouteCookie() async { + final SharedPreferences prefs = await SharedPreferences.getInstance(); + return prefs.getString("url") != "" ? prefs.getString("url") : null; + } + + static removeRouteCookie() async { + final SharedPreferences prefs = await SharedPreferences.getInstance(); + prefs.remove("url"); + } + + static setRouteCookie( String path , BuildContext context ) async { + final SharedPreferences prefs = await SharedPreferences.getInstance(); + prefs.setString("url", path); + if (realHistory.isNotEmpty && realHistory.last != path || realHistory.isEmpty) { + try { + var index = history.indexOf(realHistory.last); + history = history.sublist(0, index + 1); + } catch (e) { /* */ } + realHistory.add(path); + history.add(path); + if (history.length > 10) { + realHistory.removeAt(0); + history.removeAt(0); + } + prefs.setString("history", realHistory.join(",")); + routerKey.currentState?.setState(() { }); + } + } + + static back() async { + if (realHistory.length <= 1) { return; } + realHistory.removeLast(); + final SharedPreferences prefs = await SharedPreferences.getInstance(); + prefs.setString("url", realHistory.last); + prefs.setString("history", realHistory.join(",")); + var splitted = realHistory.last.split(":"); + routerKey.currentState?.setState(() { }); + scaffoldKey.currentState?.setState(() {}); + } + static bool canForward() { + try { + var index = history.indexOf(realHistory.last); + return (index + 1) < history.length; + } catch (e) { return false; } + + } + static forward() async { + if (canForward()) { + var index = history.indexOf(realHistory.last); + realHistory.add(history[index + 1]); + final SharedPreferences prefs = await SharedPreferences.getInstance(); + prefs.setString("url", realHistory.last); + var splitted = realHistory.last.split(":"); + prefs.setString("history", realHistory.join(",")); + routerKey.currentState?.setState(() { }); + scaffoldKey.currentState?.setState(() {}); + } + } + + static RouterItem currentRoute = zones.first; + static List get routes => zones.map( (k) => GoRoute( + name: k.route, + path: k.path, + builder: (BuildContext context, GoRouterState state) { + return MainPage(page: k.factory.factory(state, k.args)); + }, + )).toList(); +} +// ROUTER SHOULD INVOKE MAIN TO ACCESS VIEW, VIEW ARE MENU SECTION \ No newline at end of file diff --git a/lib/core/services/specialized_services/abstract_service.dart b/lib/core/services/specialized_services/abstract_service.dart new file mode 100644 index 0000000..4ee415d --- /dev/null +++ b/lib/core/services/specialized_services/abstract_service.dart @@ -0,0 +1,14 @@ +import 'package:flutter/material.dart'; +import 'package:oc_front/models/abstract.dart'; +import 'package:oc_front/models/response.dart'; +import 'package:oc_front/core/services/api_service.dart'; + +abstract class AbstractService { + abstract APIService service; + + Future> all(BuildContext? context) { throw UnimplementedError(); } + Future> get(BuildContext? context, String id); + Future> post(BuildContext? context, Map body, Map params); + Future> put(BuildContext? context, String id, Map body, Map params) { throw UnimplementedError(); } + Future> delete(BuildContext? context, Map params) { throw UnimplementedError(); } +} \ No newline at end of file diff --git a/lib/core/services/specialized_services/item_service.dart b/lib/core/services/specialized_services/item_service.dart new file mode 100644 index 0000000..90aebe1 --- /dev/null +++ b/lib/core/services/specialized_services/item_service.dart @@ -0,0 +1,23 @@ +import 'package:flutter/material.dart'; +import 'package:oc_front/core/services/api_service.dart'; +import 'package:oc_front/core/services/specialized_services/abstract_service.dart'; +import 'package:oc_front/models/abstract.dart'; +import 'package:oc_front/models/response.dart'; +import 'package:oc_front/models/search.dart'; + +class ItemService> extends AbstractService { + @override APIService service = APIService( + baseURL: String.fromEnvironment('SEARCH_HOST', defaultValue: 'http://localhost:49618/v1/${getTopic(S)}') + ); + + @override Future> all(BuildContext? context) { throw UnimplementedError(); } + @override Future> get(BuildContext? context, String id) { + if (id.contains(",")) { return service.get("/multi/$id", true, context); } + return service.get("/$id", true, context); + } + @override Future> post(BuildContext? context, Map body, Map params) { + return service.post("/", body, context); + } + @override Future> put(BuildContext? context, String id, Map body, Map params) { throw UnimplementedError(); } + @override Future> delete(BuildContext? context, Map params) { throw UnimplementedError(); } +} \ No newline at end of file diff --git a/lib/core/services/specialized_services/search_service.dart b/lib/core/services/specialized_services/search_service.dart new file mode 100644 index 0000000..56a801c --- /dev/null +++ b/lib/core/services/specialized_services/search_service.dart @@ -0,0 +1,19 @@ +import 'package:flutter/material.dart'; +import 'package:oc_front/core/services/api_service.dart'; +import 'package:oc_front/core/services/specialized_services/abstract_service.dart'; +import 'package:oc_front/models/response.dart'; +import 'package:oc_front/models/search.dart'; + +class SearchService extends AbstractService { + @override APIService service = APIService( + baseURL: const String.fromEnvironment('SEARCH_HOST', defaultValue: 'http://localhost:49618/v1/search') + ); + + @override Future> all(BuildContext? context) { throw UnimplementedError(); } + @override Future> get(BuildContext? context, String id) { + return service.get("/byWord?word=$id", true, context); + } + @override Future> post(BuildContext? context, Map body, Map params) { throw UnimplementedError(); } + @override Future> put(BuildContext? context, String id, Map body, Map params) { throw UnimplementedError(); } + @override Future> delete(BuildContext? context, Map params) { throw UnimplementedError(); } +} \ No newline at end of file diff --git a/lib/core/services/specialized_services/workflow_service.dart b/lib/core/services/specialized_services/workflow_service.dart new file mode 100644 index 0000000..fb6027f --- /dev/null +++ b/lib/core/services/specialized_services/workflow_service.dart @@ -0,0 +1,27 @@ +import 'package:flutter/material.dart'; +import 'package:oc_front/core/services/api_service.dart'; +import 'package:oc_front/core/services/specialized_services/abstract_service.dart'; +import 'package:oc_front/models/response.dart'; + +class WorflowService extends AbstractService { + @override APIService service = APIService( + baseURL: const String.fromEnvironment('SEARCH_HOST', defaultValue: 'http://localhost:49618/v1/workflow/') + ); + + @override Future> all(BuildContext? context) { + print("WorkflowService.all"); + return service.get("", true, context); + } + @override Future> get(BuildContext? context, String id) { throw UnimplementedError(); } + @override Future> post(BuildContext? context, Map body, Map params) { + String path = "?"; + for (var key in params.keys) { path += "$key=${params[key]}&"; } + return service.post(path, body, context); + } + @override Future> put(BuildContext? context, String id, Map body, Map params) { + throw UnimplementedError(); + } + @override Future> delete(BuildContext? context, Map params) { + throw UnimplementedError(); + } +} \ No newline at end of file diff --git a/lib/core/services/specialized_services/workspace_service.dart b/lib/core/services/specialized_services/workspace_service.dart new file mode 100644 index 0000000..423791f --- /dev/null +++ b/lib/core/services/specialized_services/workspace_service.dart @@ -0,0 +1,29 @@ +import 'package:flutter/material.dart'; +import 'package:oc_front/core/services/api_service.dart'; +import 'package:oc_front/core/services/specialized_services/abstract_service.dart'; +import 'package:oc_front/models/response.dart'; +import 'package:oc_front/models/workspace.dart'; + +class WorkspaceService extends AbstractService { + @override APIService service = APIService( + baseURL: const String.fromEnvironment('SEARCH_HOST', defaultValue: 'http://localhost:49618/v1/workspace/') + ); + + @override Future> all(BuildContext? context) { + return service.get("/list", true, context); + } + @override Future> get(BuildContext? context, String id) { throw UnimplementedError(); } + @override Future> post(BuildContext? context, Map body, Map params) { + String path = "?"; + for (var key in params.keys) { path += "$key=${params[key]}&"; } + return service.post(path, body, context); + } + @override Future> put(BuildContext? context, String id, Map body, Map params) { + throw UnimplementedError(); + } + @override Future> delete(BuildContext? context, Map params) { + String path = "?"; + for (var key in params.keys) { path += "$key=${params[key]}&"; } + return service.delete(path, context); + } +} \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart new file mode 100644 index 0000000..2005f16 --- /dev/null +++ b/lib/main.dart @@ -0,0 +1,80 @@ +import 'package:flutter/material.dart'; +import 'package:flutter/foundation.dart'; +import 'package:go_router/go_router.dart'; +import 'package:oc_front/core/models/cart.dart'; +import 'package:oc_front/core/services/router.dart'; +import 'package:oc_front/core/sections/end_drawer.dart'; +import 'package:oc_front/core/sections/header/header.dart'; +import 'package:desktop_window/desktop_window.dart' if (kIsWeb) ''; + +void main() { + runApp(const MyApp()); +} +GlobalKey scaffoldKey = GlobalKey(); +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + // This widget is the root of your application. + @override + Widget build(BuildContext context) { + if (!kIsWeb) { DesktopWindow.setMinWindowSize(const Size(400, 400)); } + return MaterialApp.router( + routerConfig: GoRouter( routes: AppRouter.routes ), + ); + } +} +// ignore: must_be_immutable +class MainPage extends StatefulWidget { + Widget page; + MainPage({super.key, required this.page}); + + // This widget is the home page of your application. It is stateful, meaning + // that it has a State object (defined below) that contains fields that affect + // how it looks. + + // This class is the configuration for the state. It holds the values (in this + // case the title) provided by the parent (in this case the App widget) and + // used by the build method of the State. Fields in a Widget subclass are + // always marked "final". + + @override + State createState() => _MainPageState(); +} + +class _MainPageState extends State { + @override + Widget build(BuildContext context) { + // This method is rerun every time setState is called, for instance as done + // by the _incrementCounter method above. + // + // The Flutter framework has been optimized to make rerunning build methods + // fast, so that you can just rebuild anything that needs updating rather + // than having to individually change instances of widgets. + WorkspaceLocal.init(context); + scaffoldKey = GlobalKey(); + return Scaffold( + key: scaffoldKey, + endDrawer: EndDrawerWidget(), + body: Column( + // Column is also a layout widget. It takes a list of children and + // arranges them vertically. By default, it sizes itself to fit its + // children horizontally, and tries to be as tall as its parent. + // + // Column has various properties to control how it sizes itself and + // how it positions its children. Here we use mainAxisAlignment to + // center the children vertically; the main axis here is the vertical + // axis because Columns are vertical (the cross axis would be + // horizontal). + // + // TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint" + // action in the IDE, or press "p" in the console), to see the + // wireframe for each widget. + mainAxisAlignment: MainAxisAlignment.start, + children: [ + HeaderWidget(), + widget.page // CatalogPageWidget(), + ], + ), + ); + } +} diff --git a/lib/models/abstract.dart b/lib/models/abstract.dart new file mode 100644 index 0000000..a3e1ed7 --- /dev/null +++ b/lib/models/abstract.dart @@ -0,0 +1,43 @@ +import 'dart:convert'; +import 'dart:developer' as developer; + +abstract class SerializerDeserializer { + T deserialize(dynamic json); + Map serialize(); +} + +Map> fromMapListJson(Map j, SerializerDeserializer ref) { + var map = >{}; + for (var key in j.keys) { + if(j[key] != null) { map[key] = fromListJson(j[key], ref); } + } + return map; +} + +Map fromMapJson(Map j, SerializerDeserializer ref) { + var map = {}; + for (var key in j.keys) { + if(j[key] != null) { map[key] = ref.deserialize(json.decode(json.encode(j[key]))); } + } + return map; +} + +List fromListJson(List jss, SerializerDeserializer ref) { + var list = []; + for (var js in jss) { list.add(ref.deserialize(json.decode(json.encode(js)))); } + return list; +} + +Map> toMapJson(Map json) { + var map = >{}; + for (var key in json.keys) { + if(json[key] != null) { map[key] = json[key]!.serialize(); } + } + return map; +} + +List> toListJson(List obj) { + var list = >[]; + for (var js in obj) { list.add(js.serialize()); } + return list; +} diff --git a/lib/models/response.dart b/lib/models/response.dart new file mode 100644 index 0000000..1718652 --- /dev/null +++ b/lib/models/response.dart @@ -0,0 +1,45 @@ +import 'package:oc_front/models/abstract.dart'; +import 'package:oc_front/models/search.dart'; +import 'package:oc_front/models/workspace.dart'; + +Map refs = { + RawData: RawData(), + Search: Search(), + Workspace: Workspace(), + DataItem: DataItem(), + DataCenterItem: DataCenterItem(), + StorageItem: StorageItem(), + ComputingItem: ComputingItem(), +}; + +class APIResponse { + APIResponse({ + this.data, + this.error = "", + this.offset = 0, + }); + int offset = 0; + T? data ; + String? error = ""; + + SerializerDeserializer? getTypeString() { + try { return refs[refs.keys.firstWhere((ref) => '$ref' == '$T')]; + } catch (e) { return null; } + } + + APIResponse deserialize(dynamic j) { + try { + return APIResponse( + data: refs[T]!.deserialize(j), + error: j.containsKey("error") && j["error"] != null ? j["error"] : "", + ); + } catch (e) { return APIResponse( data: refs[T]!.deserialize(j), ); } + + } +} +class RawData extends SerializerDeserializer { + RawData({ this.values = const []}); + dynamic values; + @override deserialize(dynamic json) { return RawData(values: json); } + @override Map serialize() => { }; +} diff --git a/lib/models/search.dart b/lib/models/search.dart new file mode 100644 index 0000000..6378073 --- /dev/null +++ b/lib/models/search.dart @@ -0,0 +1,381 @@ +import 'package:oc_front/models/abstract.dart'; + +const List _emptyComputing = []; +const List _emptyData = []; +const List _emptyDataCenter = []; +const List _emptyStorage = []; +class Search extends SerializerDeserializer { + Search({ + this.computing = _emptyComputing, + this.datacenter = _emptyDataCenter, + this.data = _emptyData, + this.storage = _emptyStorage, + }); + List computing; + List datacenter; + List data; + List storage; + @override deserialize(dynamic json) { + json = json as Map; + return Search( + computing: json.containsKey("computing") ? fromListJson(json["computing"], ComputingItem()) : [], + datacenter: json.containsKey("datacenter") ? fromListJson(json["datacenter"], DataCenterItem()) : [], + data: json.containsKey("data") ? fromListJson(json["data"], DataItem()) : [], + storage: json.containsKey("storage") ? fromListJson(json["storage"], StorageItem()) : [], + ); + } + @override Map serialize() => {}; +} +const List _empty = []; +abstract class AbstractItem { + String? id; + String? name; + String? logo; + String? type; + String? owner; + String? description; + String? shortDescription; + String topic = ""; +} + +Type? getTopicType(String topic) { + if (topic == "computing") { return ComputingItem; } + else if (topic == "data") { return DataItem; } + else if (topic == "datacenter") { return DataCenterItem; } + else if (topic == "storage") { return StorageItem; } + else { return null; } +} + +String getTopic(Type type) { + if (type == ComputingItem) { return "computing"; } + if (type == DataItem) { return "data"; } + if (type == DataCenterItem) { return "datacenter"; } + if (type == StorageItem) { return "storage"; } + return ""; +} + +bool isComputing(String topic) => topic == "computing"; +bool isData(String topic) => topic == "data"; +bool isDataCenter(String topic) => topic == "datacenter"; +bool isStorage(String topic) => topic == "storage"; + +class ComputingItem extends SerializerDeserializer implements AbstractItem { + ComputingItem({ + this.id, + this.name, + this.logo, + this.type, + this.owner, + this.price, + this.image, + this.command, + this.licence, + this.description, + this.requirements, + this.ports = _empty, + this.shortDescription, + this.dinputs = _empty, + this.doutputs = _empty, + this.arguments = _empty, + this.environment = _empty, + }); + @override String? id; + @override String? name; + @override String? logo; + @override String? type; + @override String? owner; + @override String topic = "computing"; + double? price; + String? image; + String? command; + String? licence; + List ports; + List dinputs; + List doutputs; + List arguments; + @override String? description; + @override String? shortDescription; + List environment; + ExecRequirements? requirements; + + @override deserialize(dynamic json) { + try { json = json as Map; + } catch (e) { return ComputingItem(); } + return ComputingItem( + id: json.containsKey("ID") ? json["ID"] : null, + name: json.containsKey("name") ? json["name"] : null, + logo: json.containsKey("logo") ? json["logo"] : null, + type: json.containsKey("type") ? json["type"] : null, + owner: json.containsKey("owner") ? json["owner"] : null, + price: json.containsKey("price") ? json["price"]?.toDouble() : null, + image: json.containsKey("image") ? json["image"] : null, + command: json.containsKey("command") ? json["command"] : null, + licence: json.containsKey("licence") ? json["licence"] : null, + description: json.containsKey("description") ? json["description"] : null, + ports: json["ports"] ?? [], + shortDescription: json.containsKey("short_description") ? json["short_description"] : null, + dinputs: json["dinputs"] ?? [], + doutputs: json["doutputs"] ?? [], + arguments: json["arguments"] ?? [], + environment: json["environment"] ?? [], + requirements: json.containsKey("requirements") ? ExecRequirements().deserialize(json["execution_requirements"]) : null, + ); + } + @override Map serialize() => {}; +} + +class ExecRequirements extends SerializerDeserializer { + ExecRequirements({ + this.ram, + this.cpus, + this.gpus, + this.diskIO, + this.scallingModel, + this.parallel = false, + }); + double? ram; + double? cpus; + double? gpus; + String? diskIO; + bool parallel = false; + double? scallingModel; + + @override deserialize(dynamic json) { + try { json = json as Map; + } catch (e) { return ExecRequirements(); } + return ExecRequirements( + ram: json.containsKey("ram") ? json["ram"]?.toDouble() : null, + cpus: json.containsKey("cpus") ? json["cpus"]?.toDouble() : null, + gpus: json.containsKey("gpus") ? json["gpus"]?.toDouble() : null, + diskIO: json.containsKey("disk_io") ? json["disk_io"] : null, + scallingModel: json.containsKey("scaling_model") ? json["scaling_model"]?.toDouble() : null, + parallel: json.containsKey("parallel") ? json["parallel"] : false, + ); + } + @override Map serialize() => {}; +} + +class DataItem extends SerializerDeserializer implements AbstractItem { + DataItem({ + this.id, + this.name, + this.logo, + this.type, + this.dtype, + this.owner, + this.example, + this.location, + this.description, + this.protocol = _empty, + this.shortDescription, + }); + @override String? id; + @override String? name; + @override String? logo; + @override String? type; + @override String topic = "data"; + String? dtype; + String? example; + String? location; + @override String? description; + List protocol; + @override String? shortDescription; + @override String? owner; + + @override deserialize(dynamic json) { + try { json = json as Map; + } catch (e) { return DataItem(); } + return DataItem( + id: json.containsKey("ID") ? json["ID"] : null, + name: json.containsKey("name") ? json["name"] : null, + logo: json.containsKey("logo") ? json["logo"] : null, + type: json.containsKey("type") ? json["type"] : null, + owner: json.containsKey("owner") ? json["owner"] : null, + dtype: json.containsKey("dtype") ? json["dtype"] : null, + example: json.containsKey("example") ? json["example"] : null, + location: json.containsKey("location") ? json["location"] : null, + description: json.containsKey("description") ? json["description"] : null, + protocol: json["protocol"] ?? [], + shortDescription: json.containsKey("short_description") ? json["short_description"] : null + ); + } + @override Map serialize() => {}; +} +const List _emptyGPU = []; +class DataCenterItem extends SerializerDeserializer implements AbstractItem { + DataCenterItem({ + this.id, + this.cpu, + this.ram, + this.name, + this.logo, + this.type, + this.owner, + this.acronym, + this.bookingPrice, + this.description, + this.hosts = _empty, + this.gpus = _emptyGPU, + this.shortDescription, + }); + CPU? cpu; + RAM? ram; + @override String? id; + @override String? name; + @override String? logo; + @override String? type; + @override String? owner; + @override String topic = "datacenter"; + String? acronym; + List gpus = []; + @override String? description; + List hosts; + double? bookingPrice; + @override String? shortDescription; + + @override deserialize(dynamic json) { + try { json = json as Map; + } catch (e) { return DataCenterItem(); } + return DataCenterItem( + id: json.containsKey("ID") ? json["ID"] : null, + ram: json.containsKey("ram") ? RAM().deserialize(json["ram"]) : null, + cpu: json.containsKey("cpu") ? CPU().deserialize(json["cpu"]) : null, + acronym: json.containsKey("acronym") ? json["acronym"] : null, + name: json.containsKey("name") ? json["name"] : null, + logo: json.containsKey("logo") ? json["logo"] : null, + type: json.containsKey("type") ? json["type"] : null, + owner: json.containsKey("owner") ? json["owner"] : null, + bookingPrice: json.containsKey("bookingPrice") ? json["bookingPrice"]?.toDouble() : null, + description: json.containsKey("description") ? json["description"] : null, + hosts: json["hosts"] ?? [], + shortDescription: json.containsKey("short_description") ? json["short_description"] : null, + gpus: json.containsKey("gpus") ? fromListJson(json["gpus"] ?? [], GPU()) : [], + ); + } + @override Map serialize() => {}; +} +class CPU extends SerializerDeserializer { + CPU({ + this.cores, + this.platform, + this.architecture, + this.minimumMemory, + this.shared = false, + }); + double? cores; + String? platform; + bool shared = false; + String? architecture; + double? minimumMemory; + + @override deserialize(dynamic json) { + try { json = json as Map; + } catch (e) { return CPU(); } + return CPU( + cores: json.containsKey("cores") ? json["cores"]?.toDouble() : null, + platform: json.containsKey("platform") ? json["platform"] : null, + architecture: json.containsKey("architecture") ? json["architecture"] : null, + minimumMemory: json.containsKey("minimumMemory") ? json["minimumMemory"]?.toDouble() : null, + shared: json.containsKey("shared") ? json["shared"] : false, + ); + } + @override Map serialize() => {}; +} +class GPU extends SerializerDeserializer { + GPU({ + this.cudaCores, + this.memory, + this.model, + this.tensorCores, + }); + double? cudaCores; + double? memory; + String? model; + double? tensorCores; + + @override deserialize(dynamic json) { + try { json = json as Map; + } catch (e) { return GPU(); } + return GPU( + cudaCores: json.containsKey("cuda_cores") ? json["cuda_cores"]?.toDouble() : null, + memory: json.containsKey("memory") ? json["memory"]?.toDouble() : null, + model: json.containsKey("model") ? json["model"] : null, + tensorCores: json.containsKey("tensor_cores") ? json["tensor_cores"]?.toDouble() : null, + ); + } + @override Map serialize() => {}; +} +class RAM extends SerializerDeserializer { + RAM({ + this.ecc = false, + this.size, + }); + bool ecc = false; + double? size; + + @override deserialize(dynamic json) { + try { json = json as Map; + } catch (e) { return RAM(); } + return RAM( + ecc: json.containsKey("ecc") ? json["ecc"] : false, + size: json.containsKey("size") ? json["size"]?.toDouble() : null, + ); + } + @override Map serialize() => {}; +} +class StorageItem extends SerializerDeserializer implements AbstractItem { + StorageItem({ + this.id, + this.url, + this.size, + this.name, + this.logo, + this.type, + this.owner, + this.acronym, + this.throughput, + this.redundancy, + this.description, + this.bookingPrice, + this.shortDescription, + this.encryption = false, + }); + @override String? id; + String? url; + @override String? name; + @override String? logo; + @override String? type; + @override String topic = "storage"; + double? size; + @override String? owner; + String? acronym; + String? redundancy; + String? throughput; + @override String? description; + double? bookingPrice; + bool encryption = false; + @override String? shortDescription; + + + @override deserialize(dynamic json) { + try { json = json as Map; + } catch (e) { return StorageItem(); } + return StorageItem( + id: json.containsKey("ID") ? json["ID"] : null, + url: json.containsKey("URL") ? json["URL"] : null, + size: json.containsKey("size") ? json["size"]?.toDouble() : null, + name: json.containsKey("name") ? json["name"] : null, + logo: json.containsKey("logo") ? json["logo"] : null, + type: json.containsKey("type") ? json["type"] : null, + owner: json.containsKey("owner") ? json["owner"] : null, + acronym: json.containsKey("DCacronym") ? json["DCacronym"] : null, + bookingPrice: json.containsKey("bookingPrice") ? json["bookingPrice"]?.toDouble() : null, + description: json.containsKey("description") ? json["description"] : null, + throughput: json.containsKey("throughput") ? json["throughput"] : [], + shortDescription: json.containsKey("short_description") ? json["short_description"] : null, + redundancy: json.containsKey("redundancy") ? json["redundancy"] : [], + encryption: json.containsKey("encryption") ? json["encryption"] : false, + ); + } + @override Map serialize() => {}; +} \ No newline at end of file diff --git a/lib/models/workspace.dart b/lib/models/workspace.dart new file mode 100644 index 0000000..366a7d7 --- /dev/null +++ b/lib/models/workspace.dart @@ -0,0 +1,29 @@ +import 'package:oc_front/models/abstract.dart'; + +class Workspace extends SerializerDeserializer { + String? id; + List data; + List datacenter; + List storage; + List computing; + + Workspace({ + this.id, + this.computing = const [], + this.data = const [], + this.datacenter = const [], + this.storage = const [], + }); + + @override deserialize(dynamic json) { + try { json = json as Map; + } catch (e) { return Workspace(); } + return Workspace( + computing: json.containsKey("computing") ? json["computing"] : [], + datacenter: json.containsKey("datacenter") ? json["datacenter"] : [], + data: json.containsKey("data") ? json["data"] : [], + storage: json.containsKey("storage") ? json["storage"] : [], + ); + } + @override Map serialize() => {}; +} \ No newline at end of file diff --git a/lib/pages/abstract_page.dart b/lib/pages/abstract_page.dart new file mode 100644 index 0000000..f5de51d --- /dev/null +++ b/lib/pages/abstract_page.dart @@ -0,0 +1,7 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; +abstract class AbstractFactory { + Widget factory(GoRouterState state, List args); + bool searchFill(); + void search(BuildContext context); +} \ No newline at end of file diff --git a/lib/pages/catalog.dart b/lib/pages/catalog.dart new file mode 100644 index 0000000..e0237a7 --- /dev/null +++ b/lib/pages/catalog.dart @@ -0,0 +1,40 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; +import 'package:oc_front/models/search.dart'; +import 'package:oc_front/widgets/catalog.dart'; +import 'package:oc_front/pages/abstract_page.dart'; +import 'package:oc_front/core/sections/header/search.dart'; +import 'package:oc_front/core/services/specialized_services/search_service.dart'; + +class CatalogFactory implements AbstractFactory { + static List items = []; + static GlobalKey key = GlobalKey(); + @override bool searchFill() { return CatalogFactory.items.isEmpty; } + @override Widget factory(GoRouterState state, List args) { return CatalogPageWidget(); } + @override void search(BuildContext context) { + CatalogFactory.key.currentState?.widget.search.get(context, SearchConstants.get()!).then((value) { + if (value.data == null) { return; } + CatalogFactory.items = [ + ...value.data!.computing, ...value.data!.data, ...value.data!.storage, ...value.data!.datacenter,]; + searchWidgetKey.currentState?.setState(() {}); + CatalogFactory.key.currentState?.setState(() {}); + }); + } +} + +class CatalogPageWidget extends StatefulWidget { + final SearchService search = SearchService(); + CatalogPageWidget (): super(key: CatalogFactory.key); + @override CatalogPageWidgetState createState() => CatalogPageWidgetState(); +} +class CatalogPageWidgetState extends State { + @override Widget build(BuildContext context) { + return Column( children : [ + SizedBox( + width: MediaQuery.of(context).size.width, + height: CatalogFactory.items.isEmpty ? 0 : MediaQuery.of(context).size.height - 200, + child: CatalogWidget(items: CatalogFactory.items) ) + ] + ); + } +} \ No newline at end of file diff --git a/lib/pages/catalog_item.dart b/lib/pages/catalog_item.dart new file mode 100644 index 0000000..cc6f47f --- /dev/null +++ b/lib/pages/catalog_item.dart @@ -0,0 +1,39 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; +import 'package:oc_front/core/models/cart.dart'; +import 'package:oc_front/models/search.dart'; +import 'package:oc_front/pages/abstract_page.dart'; +import 'package:oc_front/pages/catalog.dart'; +import 'package:oc_front/widgets/items/item.dart'; +import 'package:oc_front/widgets/items/item_row.dart'; + +class CatalogItemFactory implements AbstractFactory { + static GlobalKey key = GlobalKey(); + @override bool searchFill() { return false; } + @override Widget factory(GoRouterState state, List args) { + var id = state.pathParameters[args.first]; + try { + var item = CatalogFactory.items.firstWhere( (element) => element.id == id ); + return CatalogItemPageWidget(item : item); + } catch (e) { + var item = WorkspaceLocal.getItem(id ?? ""); + if (item != null) { return CatalogItemPageWidget(item : item); } + return Container(); + } + } + @override void search(BuildContext context) { } +} + +class CatalogItemPageWidget extends StatefulWidget { + AbstractItem item; + CatalogItemPageWidget ({ required this.item }) : super(key: CatalogItemFactory.key); + @override CatalogItemPageWidgetState createState() => CatalogItemPageWidgetState(); +} +class CatalogItemPageWidgetState extends State { + @override Widget build(BuildContext context) { + return Column( children: [ + ItemRowWidget(contextWidth: MediaQuery.of(context).size.width, item: widget.item, readOnly: true,), + ItemWidget(item: widget.item,), + ]); + } +} \ No newline at end of file diff --git a/lib/pages/datacenter.dart b/lib/pages/datacenter.dart new file mode 100644 index 0000000..7b9916a --- /dev/null +++ b/lib/pages/datacenter.dart @@ -0,0 +1,22 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; +import 'package:oc_front/pages/abstract_page.dart'; + +class DatacenterFactory implements AbstractFactory { + static GlobalKey key = GlobalKey(); + @override bool searchFill() { return false; } + @override Widget factory(GoRouterState state, List args) { return DataCenterPageWidget(); } + @override void search(BuildContext context) { } +} + +class DataCenterPageWidget extends StatefulWidget { + DataCenterPageWidget () : super(key: DatacenterFactory.key); + @override DataCenterPageWidgetState createState() => DataCenterPageWidgetState(); + + static Widget factory() { return DataCenterPageWidget(); } +} +class DataCenterPageWidgetState extends State { + @override Widget build(BuildContext context) { + return Column( children: []); + } +} \ No newline at end of file diff --git a/lib/pages/map.dart b/lib/pages/map.dart new file mode 100644 index 0000000..881e0ba --- /dev/null +++ b/lib/pages/map.dart @@ -0,0 +1,46 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; +import 'package:latlong2/latlong.dart'; +import 'package:flutter_map/flutter_map.dart'; +import 'package:oc_front/pages/abstract_page.dart'; + +class MapFactory implements AbstractFactory { + static GlobalKey key = GlobalKey(); + @override bool searchFill() { return false; } + @override Widget factory(GoRouterState state, List args) { return MapPageWidget(); } + @override void search(BuildContext context) { } +} + +class MapPageWidget extends StatefulWidget { + MapPageWidget(): super(key: MapFactory.key); + @override MapPageWidgetState createState() => MapPageWidgetState(); + static void search(BuildContext context) { } + static Widget factory() { return MapPageWidget(); } +} +class MapPageWidgetState extends State { + double currentZoom = 2.0; + LatLng currentCenter = const LatLng(51.5, -0.09); + static final MapController _mapController = MapController(); + void _zoom() { + currentZoom = currentZoom - 1; + _mapController.move(currentCenter, currentZoom); +} + + @override Widget build(BuildContext context) { + return Expanded( + child : FlutterMap( + mapController: _mapController, + options: MapOptions( + initialCenter: currentCenter, + initialZoom: currentZoom, + ), + children: [ + TileLayer( + urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', + userAgentPackageName: 'dev.fleaflet.flutter_map.example', + ) + ], + ) + ); + } +} \ No newline at end of file diff --git a/lib/pages/scheduler.dart b/lib/pages/scheduler.dart new file mode 100644 index 0000000..662c619 --- /dev/null +++ b/lib/pages/scheduler.dart @@ -0,0 +1,28 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; +import 'package:oc_front/pages/abstract_page.dart'; +import 'package:table_calendar/table_calendar.dart'; + +class SchedulerFactory implements AbstractFactory { + static GlobalKey key = GlobalKey(); + @override bool searchFill() { return false; } + @override Widget factory(GoRouterState state, List args) { return SchedulerPageWidget(); } + @override void search(BuildContext context) { } +} + +class SchedulerPageWidget extends StatefulWidget { + SchedulerPageWidget(): super(key: SchedulerFactory.key); + @override SchedulerPageWidgetState createState() => SchedulerPageWidgetState(); + static void search(BuildContext context) { } + static Widget factory() { return SchedulerPageWidget(); } +} +class SchedulerPageWidgetState extends State { + + @override Widget build(BuildContext context) { + return TableCalendar( + firstDay: DateTime.utc(2010, 10, 16), + lastDay: DateTime.utc(2030, 3, 14), + focusedDay: DateTime.now(), + ); + } +} \ No newline at end of file diff --git a/lib/pages/workflow.dart b/lib/pages/workflow.dart new file mode 100644 index 0000000..8a9fa88 --- /dev/null +++ b/lib/pages/workflow.dart @@ -0,0 +1,168 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; +import 'package:oc_front/core/services/specialized_services/workflow_service.dart'; +import 'package:oc_front/models/response.dart'; +import 'package:oc_front/pages/abstract_page.dart'; + +class WorkflowFactory implements AbstractFactory { + static GlobalKey key = GlobalKey(); + @override bool searchFill() { return false; } + @override Widget factory(GoRouterState state, List args) { return WorkflowPageWidget(); } + @override void search(BuildContext context) { } +} + +class WorkflowPageWidget extends StatefulWidget { + String? _selected; + TextEditingController _ctrl = TextEditingController(); + WorkflowPageWidget () : super(key: WorkflowFactory.key); + @override WorkflowPageWidgetState createState() => WorkflowPageWidgetState(); + static void search(BuildContext context) { } + static Widget factory() { return WorkflowPageWidget(); } +} +class WorkflowPageWidgetState extends State { + + final WorflowService _service = WorflowService(); + @override Widget build(BuildContext context) { + return SizedBox( + width: MediaQuery.of(context).size.width, + height: MediaQuery.of(context).size.height - 200, + child: Column( + children: [ + Container( + width: MediaQuery.of(context).size.width, + height: (MediaQuery.of(context).size.height - 200) / 2, + child : Row( + mainAxisAlignment: MainAxisAlignment.center, + children : [ + Container( width: MediaQuery.of(context).size.height / 1.5, + height: 50, margin: const EdgeInsets.only(top: 2), + child: FutureBuilder>( + future: _service.all(context), + builder: (context, snapshot) { + List items = []; + print(snapshot.error); + if (snapshot.hasData && snapshot.data!.data != null + && snapshot.data!.data!.values.isNotEmpty) { + items = (snapshot.data!.data!.values as List).map((dynamic value) { + return DropdownMenuItem( + value: value.toString(), + child: Text(value.toString()), + ); + }).toList(); + } + if (widget._selected != null + && !items.where((element) => element.value == widget._selected).isNotEmpty) { + items.add(DropdownMenuItem( + value: widget._selected.toString(), + child: Text(widget._selected.toString()), + )); + } + return DropdownButtonFormField( + value: widget._selected, + hint: const Text("select workflow to load...", style: TextStyle(color: Colors.grey, fontSize: 15)), + decoration: InputDecoration( + filled: true, + focusedBorder: OutlineInputBorder( borderRadius: BorderRadius.zero, + borderSide: BorderSide(color: Color.fromARGB(38, 166, 154, 1), width: 2.5), + ), + fillColor: Colors.grey.shade300, + contentPadding: const EdgeInsets.only(left: 30, right: 30), + enabledBorder: OutlineInputBorder( borderRadius: BorderRadius.zero, + borderSide: BorderSide(color: Colors.grey.shade300, width: 2.5), + ), + border: OutlineInputBorder( borderRadius: BorderRadius.zero, + borderSide: BorderSide(color: Colors.grey.shade300, width: 2.5)), + ), + items: items, onChanged: (value) { + setState(() { widget._selected = value.toString(); }); + }); + }) + ), + Tooltip( + message: 'empty selection', + child: InkWell( + mouseCursor: widget._selected == null || widget._selected!.isEmpty ? MouseCursor.defer : SystemMouseCursors.click, + onTap: () { setState(() { widget._selected = null; }); }, + child: Container( + width: 50, height: 48, + decoration: const BoxDecoration( color: Colors.black, + border: Border(right: BorderSide(color: Colors.white))), + child: Icon(Icons.refresh, color: widget._selected == null || widget._selected!.isEmpty ? Colors.grey : Colors.white), + ) + ) + ), + Tooltip( + message: 'load workflow selected', + child: InkWell( + mouseCursor: widget._selected == null || widget._selected!.isEmpty ? MouseCursor.defer : SystemMouseCursors.click, + onTap: () {}, + child: Container( + width: 50, height: 48, + color: Colors.black, + child: Icon(Icons.open_in_browser_outlined, + color: widget._selected == null || widget._selected!.isEmpty ? Colors.grey : Colors.white), + ) + ) + ) + ]), + ), + Container( + width: MediaQuery.of(context).size.width, + height: (MediaQuery.of(context).size.height - 200) / 2, + color: Colors.grey.shade300, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Row( children: [ + Container( + width: MediaQuery.of(context).size.width / 1.5, + height: 50, + child: TextFormField( + cursorColor: const Color.fromARGB(38, 166, 154, 1), + controller: widget._ctrl, + onChanged: (value) => setState(() { widget._ctrl.value = TextEditingValue(text: value); }), + validator: (value) => value == null || value.isEmpty ? "name is required" : null, + decoration: const InputDecoration( + hintText: "name a new workflow...", + fillColor: Colors.white, + filled: true, + contentPadding: EdgeInsets.symmetric(horizontal: 30), + hintStyle: TextStyle( + color: Colors.black, + fontSize: 14, + fontWeight: FontWeight.w300 + ), + border: InputBorder.none + ) + ) + ), + Tooltip( + message: 'add', + child:InkWell( + mouseCursor: widget._ctrl.value.text.isEmpty ? MouseCursor.defer : SystemMouseCursors.click, + onTap: () async { + if (widget._ctrl.value.text.isNotEmpty) { + await _service.post(context, {}, { "workflowName" : widget._ctrl.value.text }); + widget._selected = widget._ctrl.value.text; + widget._ctrl.value = const TextEditingValue(text: ""); + setState(() { }); + } + }, + child: Container( + width: 50, + height: 50, + color: Colors.black, + child: Icon(Icons.add, color: widget._ctrl.value.text.isEmpty ? Colors.grey : Colors.white) + ) + ) + ) + ], + ), + ]) + ) + ] + ) + ); + } +} \ No newline at end of file diff --git a/lib/utils/arrow_clipper.dart b/lib/utils/arrow_clipper.dart new file mode 100644 index 0000000..785a9b3 --- /dev/null +++ b/lib/utils/arrow_clipper.dart @@ -0,0 +1,17 @@ +import 'package:flutter/material.dart'; + +class ArrowClipper extends CustomClipper { + @override + Path getClip(Size size) { + Path path = Path(); + path.moveTo(0, size.height); + path.lineTo(size.width / 2, size.height / 2); + path.lineTo(size.width, size.height); + return path; + } + + @override + bool shouldReclip(CustomClipper oldClipper) { + return true; + } +} \ No newline at end of file diff --git a/lib/utils/clipper_menu.dart b/lib/utils/clipper_menu.dart new file mode 100644 index 0000000..392bc0f --- /dev/null +++ b/lib/utils/clipper_menu.dart @@ -0,0 +1,219 @@ +import 'package:flutter/material.dart'; +import 'package:oc_front/core/sections/header/menu.dart'; +import 'package:oc_front/core/services/router.dart'; +import 'package:oc_front/utils/arrow_clipper.dart'; + +class TooltipWidget extends StatefulWidget { + int index = -1; + Size? buttonSize; + List labels; + Offset? buttonPosition; + TooltipWidget ({ Key? key, + required this.labels, + required this.index, + required this.buttonSize, + required this.buttonPosition }): super(key: key); + @override TooltipWidgetState createState() => TooltipWidgetState(); +} +class TooltipWidgetState extends State { + @override Widget build(BuildContext context) { + double minimal = (widget.index < 0 ? 0 : 7 * widget.labels[widget.index].length).toDouble() + 30; + return Positioned( + top : ((widget.buttonPosition?.dy ?? 1 ) + 11) + (((widget.buttonSize?.height) ?? 1)* 1.5) * (widget.index + 1), + left: (widget.buttonPosition?.dx ?? 1) - minimal, + child: Container( + width: widget.index < 0 ? 0 : (widget.index < 0 ? 0 : minimal), + height: (widget.buttonSize?.height ?? 1) - 2, + color: Colors.black, + child: Text( widget.index < 0 ? "" : widget.labels[widget.index], + style: const TextStyle( + color: Colors.white, + decoration: TextDecoration.none, + fontSize: 14, + fontWeight: FontWeight.w300), + textAlign: TextAlign.center, + overflow: TextOverflow.ellipsis + ), + )); + } +} + +GlobalKey headerMenuKey = GlobalKey(); +class ClipperMenuWidget extends StatefulWidget { + final BorderRadius borderRadius; + final Color backgroundColor; + final Color iconColor; + int index = -1; + + ClipperMenuWidget({ + required this.borderRadius, + this.backgroundColor = const Color.fromRGBO(38, 166, 154, 1), + this.iconColor = Colors.black, + }) : super(key: headerMenuKey); + @override + // ignore: library_private_types_in_public_api + ClipperMenuWidgetState createState() => ClipperMenuWidgetState(); +} + +class ClipperMenuWidgetState extends State with SingleTickerProviderStateMixin { + late GlobalKey _key; + bool isMenuOpen = false; + Offset? buttonPosition; + Size? buttonSize; + final GlobalKey _tooltipKey = GlobalKey(); + OverlayEntry? _overlayEntry; + BorderRadius? _borderRadius; + AnimationController? _animationController; + + @override + void initState() { + _animationController = AnimationController( + vsync: this, + duration: const Duration(milliseconds: 250), + ); + _borderRadius = widget.borderRadius; // BorderRadius.circular(4) + super.initState(); + } + + @override + void dispose() { + _animationController?.dispose(); + super.dispose(); + } + + findButton() { + if (_key.currentContext != null) { + RenderBox renderBox = _key.currentContext?.findRenderObject()! as RenderBox; + buttonSize = renderBox.size; + buttonPosition = renderBox.localToGlobal(Offset.zero); + } + } + + void closeMenu() { + try { + _overlayEntry?.remove(); + _animationController?.reverse(); + isMenuOpen = false; + } catch (e) { } + + } + + void openMenu() { + findButton(); + _animationController?.forward(); + _overlayEntry = _overlayEntryBuilder(); + if (_overlayEntry != null) { Overlay.of(context).insert(_overlayEntry!); } + isMenuOpen = true; + } + + @override + Widget build(BuildContext context) { + _key = GlobalKey(); + headerMenuKey = widget.key as GlobalKey; + return Container( + key: _key, + padding: const EdgeInsets.all(0), + child: IconButton( + splashRadius: 4, + icon: _animationController == null ? + const Icon( + Icons.close, + ) : AnimatedIcon( + icon: AnimatedIcons.menu_close, + progress: _animationController!, + ), + onPressed: () { + if (isMenuOpen) { closeMenu(); + } else { openMenu(); } + }, + ), + ); + } + + OverlayEntry _overlayEntryBuilder() { + var routes = AppRouter.zones.where( + (e) => e.path != AppRouter.currentRoute.path && e.label != null && e.icon != null).toList(); + return OverlayEntry( + builder: (context) { + return Stack( children: [ + TooltipWidget( + key: _tooltipKey, + labels: routes.map((e) => e.label!).toList(), + buttonPosition: buttonPosition, + buttonSize: buttonSize, + index: widget.index + ), + Positioned( + top: (buttonPosition?.dy ?? 1 ) + (buttonSize?.height ?? 1), + left: buttonPosition?.dx, + width: buttonSize?.width, + child: Material( + color: Colors.transparent, + child: Stack( + children: [ + Align( + alignment: Alignment.topCenter, + child: ClipPath( + clipper: ArrowClipper(), + child: Container( + width: 17, + height: 17, + color: widget.backgroundColor ?? Color(0xFFF), + ), + ), + ), + Padding( + padding: const EdgeInsets.only(top: 15.0), + child: Container( + height: routes.length * ((buttonSize?.height ?? 1) * 1.5), + decoration: BoxDecoration( + boxShadow: const [BoxShadow(color: Colors.black54, spreadRadius: 1, blurRadius: 1, offset: Offset(0, 1))], + color: widget.backgroundColor, + borderRadius: _borderRadius, + ), + child: Theme( + data: ThemeData( + iconTheme: IconThemeData( color: widget.iconColor ), + ), + child: Column( + mainAxisSize: MainAxisSize.min, + children: List.generate(routes.length, (index) { + return GestureDetector( + onTap: () { + if (index >= 0) { routes[index].go(context, {}); } + closeMenu(); + }, + child: Container( + decoration: index == (routes.length - 1) ? null : const BoxDecoration( + border: Border( bottom: BorderSide(color: Colors.white ), ), + ), + width: (buttonSize?.width ?? 1) * 1.5, + height: (buttonSize?.height ?? 1) * 1.5, + child: MouseRegion( + cursor: SystemMouseCursors.click, + onEnter: (state) { + _tooltipKey.currentState?.setState(() { + _tooltipKey.currentState?.widget.index = index; + }); + }, + onExit: (state) { + _tooltipKey.currentState?.setState(() { _tooltipKey.currentState?.widget.index = -1; }); + }, + child: Icon( routes[index].icon, size: 19) + ), + ), + ); + }), + ), + ), + ), + ), + ], + ), + ), + ) + ]); + }, + ); + } +} \ No newline at end of file diff --git a/lib/utils/dialog/alert.dart b/lib/utils/dialog/alert.dart new file mode 100644 index 0000000..2b6a398 --- /dev/null +++ b/lib/utils/dialog/alert.dart @@ -0,0 +1,62 @@ + +import 'package:flutter/material.dart'; + +class InfoAlertBannerChild extends StatelessWidget { + final String text; + const InfoAlertBannerChild({super.key, required this.text}); + + @override + Widget build(BuildContext context) { + return Container( + width: double.infinity, + constraints: BoxConstraints(maxWidth: MediaQuery.of(context).size.width * 0.8), + decoration: const BoxDecoration( + color: Colors.greenAccent, + borderRadius: BorderRadius.all(Radius.circular(5)), + ), + child: Padding( + padding: const EdgeInsets.all(10), + child: Material( + color: Colors.transparent, + child: Text(text, + style: const TextStyle(color: Colors.white, fontSize: 18), + maxLines: 3, + overflow: TextOverflow.ellipsis, + textAlign: TextAlign.center, + ), + ), + ), + ); + } +} + +class AlertAlertBannerChild extends StatelessWidget { + final String text; + const AlertAlertBannerChild({super.key, required this.text}); + + @override + Widget build(BuildContext context) { + return Container( + width: double.infinity, + constraints: BoxConstraints(maxWidth: MediaQuery.of(context).size.width * 0.8), + decoration: const BoxDecoration( + color: Colors.redAccent, + borderRadius: BorderRadius.all( + Radius.circular(5), + ), + ), + child: Padding( + padding: const EdgeInsets.all(10), + child: Material( + color: Colors.transparent, + child: Text( text, + style: const TextStyle(color: Colors.white, fontSize: 18), + maxLines: 3, + overflow: TextOverflow.ellipsis, + textAlign: TextAlign.center, + ), + ), + ), + ); + } +} \ No newline at end of file diff --git a/lib/utils/dialog/confirm_box.dart b/lib/utils/dialog/confirm_box.dart new file mode 100644 index 0000000..2544fbc --- /dev/null +++ b/lib/utils/dialog/confirm_box.dart @@ -0,0 +1,31 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +class ConfirmBoxWidget extends StatefulWidget { + String purpose = ""; + Function validate = () {}; + ConfirmBoxWidget ({ Key? key, required this.purpose, required this.validate }): super(key: key); + @override ConfirmBoxWidgetState createState() => ConfirmBoxWidgetState(); +} +class ConfirmBoxWidgetState extends State { + @override Widget build(BuildContext context) { + return AlertDialog( + content: Padding(padding: EdgeInsets.all(20), child: Column(mainAxisSize: MainAxisSize.min, children: [ + Center(child: Padding( padding: EdgeInsets.only(bottom: 10), + child: Icon(Icons.help_outline_outlined, size: 80, color: Colors.grey,))), + Center(child: Text("Are you sure ?", style: TextStyle(fontSize: 25, color: Theme.of(context).primaryColor),)), + Center(child: Text("Do you really want to ${widget.purpose.toUpperCase()} ?", + style: const TextStyle(fontSize: 12.5, color: Colors.grey),)), + const Center(child: Text("You will not able to undo this action.", + style: TextStyle(fontSize: 12.5, color: Colors.grey),)), + Padding( padding: EdgeInsets.only(top: 20), child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ + Padding( padding: EdgeInsets.only(right: 10), child: TextButton(onPressed: () { + widget.validate(); + context.pop(); + }, style: ButtonStyle(backgroundColor: MaterialStateProperty.all(Theme.of(context).primaryColor)), + child: Padding( padding: EdgeInsets.symmetric(horizontal: 20), child: Text("YES", style: TextStyle(color: Colors.white, fontSize: 15),)))), + TextButton(onPressed: () => context.pop(), style: ButtonStyle(backgroundColor: MaterialStateProperty.all(Theme.of(context).splashColor)), + child: Padding( padding: EdgeInsets.symmetric(horizontal: 20), child: Text("NO", style: TextStyle(color: Colors.white, fontSize: 15),)))])) + ],))); + } +} \ No newline at end of file diff --git a/lib/utils/dialog/login.dart b/lib/utils/dialog/login.dart new file mode 100644 index 0000000..ad08ad6 --- /dev/null +++ b/lib/utils/dialog/login.dart @@ -0,0 +1,71 @@ +import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; +import 'package:go_router/go_router.dart'; + +class LoginWidget extends StatefulWidget { + LoginWidget ({ Key? key }): super(key: key); + @override LoginWidgetState createState() => LoginWidgetState(); +} +class LoginWidgetState extends State { + @override Widget build(BuildContext context) { + return AlertDialog( + backgroundColor: Colors.white, + shape: const RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(0))), + content: Padding(padding: const EdgeInsets.all(20), child: Column(mainAxisSize: MainAxisSize.min, children: [ + const Center(child: Padding( padding: EdgeInsets.only(bottom: 10), + child: Icon(Icons.person_search, size: 80, color: Colors.grey,))), + const Center(child: Text("WELCOME ON OPENCLOUD", style: TextStyle(fontSize: 25, fontWeight: FontWeight.w600, + color: Color.fromRGBO(38, 166, 154, 1)),)), + Padding(padding: const EdgeInsets.symmetric(vertical: 20), child: Divider(color: Colors.grey.shade300,),), + Container( margin: const EdgeInsets.only(bottom: 10), child: Center(child: Row( mainAxisAlignment: MainAxisAlignment.center, + children: [ + Container( + width: MediaQuery.of(context).size.width / 3, + alignment : Alignment.center, + child: TextField( + decoration: InputDecoration( + enabledBorder: OutlineInputBorder(borderSide: BorderSide(color: Colors.grey.shade300), borderRadius: BorderRadius.zero), + border: OutlineInputBorder(borderSide: BorderSide(color: Colors.grey.shade300), borderRadius: BorderRadius.zero), + focusedBorder: OutlineInputBorder(borderSide: BorderSide(color: Colors.grey.shade300), borderRadius: BorderRadius.zero), + hintText: "username...", + contentPadding: const EdgeInsets.symmetric(horizontal: 20), + fillColor: Colors.grey.shade300, + filled: true, + hintStyle: const TextStyle(fontSize: 12.5, color: Colors.grey)), + style: const TextStyle(fontSize: 12.5, color: Colors.grey)),), + Container(width: 50, height: 50, color: Colors.black, child: const Icon(Icons.person, color: Colors.white)) + ]))), + Container( margin: const EdgeInsets.only(bottom: 20), child: Center(child: Row( mainAxisAlignment: MainAxisAlignment.center, + children: [ + Container( + width: MediaQuery.of(context).size.width / 3, + alignment : Alignment.center, + child: TextField( + obscureText: true, + decoration: InputDecoration( + focusedBorder: OutlineInputBorder(borderSide: BorderSide(color: Colors.grey.shade300), borderRadius: BorderRadius.zero), + enabledBorder: OutlineInputBorder(borderSide: BorderSide(color: Colors.grey.shade300), borderRadius: BorderRadius.zero), + border: OutlineInputBorder(borderSide: BorderSide(color: Colors.grey.shade300), borderRadius: BorderRadius.zero), + hintText: "password...", + contentPadding: const EdgeInsets.symmetric(horizontal: 20), + fillColor: Colors.grey.shade300, + filled: true, + hintStyle: const TextStyle(fontSize: 12.5, color: Colors.grey)), + style: const TextStyle(fontSize: 12.5, color: Colors.grey)),), + Container(width: 50, height: 50, color: Colors.black, child: const Icon(Icons.password, color: Colors.white)) + ]))), + Row( mainAxisAlignment: MainAxisAlignment.center, children: [ + Padding( padding: const EdgeInsets.only(right: 10), child: + InkWell(onTap: () { context.pop(); }, + mouseCursor: SystemMouseCursors.click, + child: Container( + margin: const EdgeInsets.only(top: 20), + width: MediaQuery.of(context).size.width / 3, + padding: const EdgeInsets.symmetric(vertical: 20), + color: const Color.fromRGBO(38, 166, 154, 1), + child: const Center( child: Text("LOGIN", style: TextStyle(color: Colors.white, fontSize: 15),))))), + ]) + ],))); + } +} \ No newline at end of file diff --git a/lib/widgets/catalog.dart b/lib/widgets/catalog.dart new file mode 100644 index 0000000..9b098bd --- /dev/null +++ b/lib/widgets/catalog.dart @@ -0,0 +1,17 @@ +import 'package:flutter/material.dart'; +import 'package:oc_front/core/models/cart.dart'; +import 'package:oc_front/models/search.dart'; +import 'package:oc_front/widgets/items/item_row.dart'; + +class CatalogWidget extends StatefulWidget { + final List? items; + CatalogWidget ({ Key? key, this.items }): super(key: key); + @override CatalogWidgetState createState() => CatalogWidgetState(); +} +class CatalogWidgetState extends State { + @override Widget build(BuildContext context) { + var items = widget.items ?? WorkspaceLocal.items; + List itemRows = items.map((e) => ItemRowWidget(contextWidth: MediaQuery.of(context).size.width, item: e)).toList(); + return SingleChildScrollView( child: Column( children: itemRows) ); + } +} \ No newline at end of file diff --git a/lib/widgets/items/item.dart b/lib/widgets/items/item.dart new file mode 100644 index 0000000..1f0dabb --- /dev/null +++ b/lib/widgets/items/item.dart @@ -0,0 +1,40 @@ + +import 'package:flutter/material.dart'; +import 'package:oc_front/models/search.dart'; +import 'package:oc_front/widgets/items_details/data_item.dart'; + +class ItemWidget extends StatefulWidget { + AbstractItem item; + ItemWidget ({ super.key, required this.item }); + @override ItemWidgetState createState() => ItemWidgetState(); +} +class ItemWidgetState extends State { + @override Widget build(BuildContext context) { + Widget w = Container(); + /* if (isData(widget.item.topic)) { w = DataItemWidget(item: widget.item as DataItem); } + else if (isComputing(widget.item.topic)) { w = DataItemWidget(item: widget.item as DataItem); } + else if (isDataCenter(widget.item.topic)) { w = DataItemWidget(item: widget.item as DataItem); } + else if (isStorage(widget.item.topic)) { w = DataItemWidget(item: widget.item as DataItem); } */ + + return Container( + height: MediaQuery.of(context).size.height - 300, + child: SingleChildScrollView( + child: Column( children: [ + widget.item.description == null ? Container() : Container( + width: MediaQuery.of(context).size.width, + alignment: Alignment.center, + decoration: BoxDecoration(border: Border(bottom: BorderSide(color: Colors.grey.shade300))), + padding: const EdgeInsets.all(30), + child: Text(widget.item.description!, + style: TextStyle(fontSize: 15, color: Colors.grey, fontWeight: FontWeight.w500))), + Container(padding: const EdgeInsets.all(30), + color: Colors.grey.shade300, + width: MediaQuery.of(context).size.width / 2, + child: w + ) + ] + ) + ) + ); + } +} \ No newline at end of file diff --git a/lib/widgets/items/item_row.dart b/lib/widgets/items/item_row.dart new file mode 100644 index 0000000..ff91983 --- /dev/null +++ b/lib/widgets/items/item_row.dart @@ -0,0 +1,115 @@ +import 'dart:convert'; +import 'package:flutter/material.dart'; +import 'package:oc_front/models/search.dart'; +import 'package:oc_front/core/models/cart.dart'; +import 'package:oc_front/core/services/router.dart'; + +const List> _empty = []; +// ignore: must_be_immutable +class ItemRowWidget extends StatefulWidget { + bool readOnly = false; + double contextWidth = 0; + AbstractItem item; + List> keys = []; + ItemRowWidget ({ super.key, + required this.contextWidth, this.readOnly = false, required this.item, this.keys = _empty }); + @override ItemRowWidgetState createState() => ItemRowWidgetState(); +} +class ItemRowWidgetState extends State { + @override Widget build(BuildContext context) { + double imageSize = MediaQuery.of(context).size.width != widget.contextWidth ? 0 : 80; + var ratio = MediaQuery.of(context).size.width != widget.contextWidth ? 0.5 : 1; // 2; + var itemWidth = (((widget.contextWidth - imageSize) / 3) - 80) / ratio; + itemWidth = itemWidth > 100 ? 100 : ( itemWidth < 40 ? 40 : itemWidth ); + var endWidth = (itemWidth * ratio) + 80; + Image? image; + if (widget.item.logo != null) { + image = Image.memory(base64Decode(widget.item.logo ?? ""), width: imageSize, height: imageSize); + } + Widget w = Container( + width: widget.contextWidth, + height: 100, + decoration: BoxDecoration( border: Border(bottom: BorderSide(color: Colors.grey.shade300)) ), + child: Row( children: [ + Padding( padding: const EdgeInsets.all(10), + child: image ?? Image.network('https://get-picto.com/wp-content/uploads/2024/01/logo-instagram-png.webp', + height: imageSize, width: imageSize)), + Container( + width: widget.contextWidth - (imageSize + 20) - endWidth, + child: Padding(padding: widget.contextWidth != MediaQuery.of(context).size.width ? + const EdgeInsets.symmetric(horizontal: 10) : const EdgeInsets.symmetric(horizontal: 20), + child: Column(crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, children: [ + Row( children: [ + Container(padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 10), + margin: const EdgeInsets.only(right: 20), + decoration: BoxDecoration( + color: isData(widget.item.topic) ? Colors.blue : + isComputing(widget.item.topic) ? Colors.green : + isDataCenter(widget.item.topic) ? Colors.orange : + isStorage(widget.item.topic) ? Colors.red : Colors.grey, + borderRadius: BorderRadius.circular(4), + ), + child: Text( MediaQuery.of(context).size.width < 600 ? "" : widget.item.type.toString(), + style: const TextStyle(fontSize: 10, color: Colors.white, fontWeight: FontWeight.w600)), + ), + Expanded( child: Text(widget.item.name?.toUpperCase() ?? "", + style: const TextStyle(fontSize: 20, overflow: TextOverflow.ellipsis, fontWeight: FontWeight.w600, color: Color(0xFFF67C0B9))), + ) + ]), + Text( "From ${widget.item.owner ?? "unknown owner"}", + style: TextStyle(fontSize: 14, color: Colors.grey, overflow: TextOverflow.ellipsis)), + Text(widget.item.shortDescription ?? "", style: const TextStyle(fontSize: 12, overflow: TextOverflow.ellipsis)), + ],) + ) + ), + Container( + width: endWidth, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children : [ + InkWell( + mouseCursor: SystemMouseCursors.click, + onTap: () { + setState(() { + if (WorkspaceLocal.hasItem(widget.item)) { WorkspaceLocal.removeItem(widget.item); + } else { WorkspaceLocal.addItem(widget.item); } + }); + for (var key in widget.keys) { key.currentState?.setState(() {}); } + }, + child: Container( + height: 40, + constraints: const BoxConstraints(maxWidth: 80), + width: itemWidth, + decoration: BoxDecoration( + boxShadow: [BoxShadow(color: Colors.grey.shade300, spreadRadius: 1, blurRadius: 1, offset: const Offset(0, 1))], + color: (WorkspaceLocal.hasItem(widget.item) ? Colors.red : const Color.fromRGBO(38, 166, 154, 1)), + borderRadius: BorderRadius.circular(4), + ), + child: Icon(WorkspaceLocal.hasItem(widget.item) ? Icons.remove_shopping_cart : Icons.add_shopping_cart, + color: Colors.white, size: 20 )) + ), + ...(ratio > 1 ? [Padding( padding: const EdgeInsets.only(left: 20), + child: InkWell( + mouseCursor: SystemMouseCursors.click, + onTap: () { }, + child: Container( + height: 40, + constraints: const BoxConstraints(maxWidth: 80, minWidth: 40), + width: itemWidth, + decoration: BoxDecoration( + boxShadow: [BoxShadow(color: Colors.grey.shade300, spreadRadius: 1, blurRadius: 1, offset: const Offset(0, 1))], + color: Colors.grey.shade300, + borderRadius: BorderRadius.circular(4), + ), + child: const Icon(Icons.favorite_border, color: Colors.white, size: 20 )) + ) + )] : []) + ]) + )]), + ); + return widget.readOnly ? w : InkWell( mouseCursor: SystemMouseCursors.click, + onTap: () { AppRouter.zones.last.go(context, { "id" : widget.item.id ?? "" }); }, + child: w ); + } +} \ No newline at end of file diff --git a/lib/widgets/items_details/data_item.dart b/lib/widgets/items_details/data_item.dart new file mode 100644 index 0000000..57c8005 --- /dev/null +++ b/lib/widgets/items_details/data_item.dart @@ -0,0 +1,27 @@ + +import 'package:flutter/material.dart'; +import 'package:oc_front/models/search.dart'; + +class DataItemWidget extends StatefulWidget { + DataItem item; + DataItemWidget ({ super.key, required this.item }); + @override DataItemWidgetState createState() => DataItemWidgetState(); +} +class DataItemWidgetState extends State { + @override Widget build(BuildContext context) { + return Wrap( children: [ + Padding(padding: EdgeInsets.symmetric(vertical: 20, horizontal: 100), + child: Text("type : ${widget.item.dtype ?? "unknown type"}", + style: TextStyle(fontSize: 15, fontWeight: FontWeight.w600))), + Padding(padding: EdgeInsets.symmetric(horizontal: 100, vertical: 20), + child: Text("location : ${widget.item.location ?? "unknown location"}", + style: TextStyle(fontSize: 15, fontWeight: FontWeight.w600))), + Padding(padding: EdgeInsets.symmetric(horizontal: 100, vertical: 20), + child: Text("protocol : ${widget.item.protocol.isEmpty ? "no protocol founded" : widget.item.protocol.join(",")}", + style: TextStyle(fontSize: 15, fontWeight: FontWeight.w600))), + Padding(padding: EdgeInsets.symmetric(horizontal: 100, vertical: 20), + child: Text("ex : ${widget.item.example ?? "no example"}", + style: TextStyle(fontSize: 15, fontWeight: FontWeight.w600))), + ]); + } +} \ No newline at end of file diff --git a/linux/.gitignore b/linux/.gitignore new file mode 100644 index 0000000..d3896c9 --- /dev/null +++ b/linux/.gitignore @@ -0,0 +1 @@ +flutter/ephemeral diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt new file mode 100644 index 0000000..93a702d --- /dev/null +++ b/linux/CMakeLists.txt @@ -0,0 +1,145 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.10) +project(runner LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "oc_front") +# The unique GTK application identifier for this application. See: +# https://wiki.gnome.org/HowDoI/ChooseApplicationID +set(APPLICATION_ID "com.example.oc_front") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(SET CMP0063 NEW) + +# Load bundled libraries from the lib/ directory relative to the binary. +set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") + +# Root filesystem for cross-building. +if(FLUTTER_TARGET_PLATFORM_SYSROOT) + set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) + set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +endif() + +# Define build configuration options. +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") +endif() + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_14) + target_compile_options(${TARGET} PRIVATE -Wall -Werror) + target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") + target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) + +add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") + +# Define the application target. To change its name, change BINARY_NAME above, +# not the value here, or `flutter run` will no longer work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} + "main.cc" + "my_application.cc" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add dependency libraries. Add any application-specific dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter) +target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) + +# Only the install-generated bundle's copy of the executable will launch +# correctly, since the resources must in the right relative locations. To avoid +# people trying to run the unbundled copy, put it in a subdirectory instead of +# the default top-level location. +set_target_properties(${BINARY_NAME} + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" +) + + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# By default, "installing" just makes a relocatable bundle in the build +# directory. +set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +# Start with a clean build bundle directory every time. +install(CODE " + file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") + " COMPONENT Runtime) + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) + install(FILES "${bundled_library}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endforeach(bundled_library) + +# Copy the native assets provided by the build.dart from all packages. +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/") +install(DIRECTORY "${NATIVE_ASSETS_DIR}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") + install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() diff --git a/linux/flutter/CMakeLists.txt b/linux/flutter/CMakeLists.txt new file mode 100644 index 0000000..d5bd016 --- /dev/null +++ b/linux/flutter/CMakeLists.txt @@ -0,0 +1,88 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.10) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. + +# Serves the same purpose as list(TRANSFORM ... PREPEND ...), +# which isn't available in 3.10. +function(list_prepend LIST_NAME PREFIX) + set(NEW_LIST "") + foreach(element ${${LIST_NAME}}) + list(APPEND NEW_LIST "${PREFIX}${element}") + endforeach(element) + set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) +endfunction() + +# === Flutter Library === +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) +pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) +pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) + +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "fl_basic_message_channel.h" + "fl_binary_codec.h" + "fl_binary_messenger.h" + "fl_dart_project.h" + "fl_engine.h" + "fl_json_message_codec.h" + "fl_json_method_codec.h" + "fl_message_codec.h" + "fl_method_call.h" + "fl_method_channel.h" + "fl_method_codec.h" + "fl_method_response.h" + "fl_plugin_registrar.h" + "fl_plugin_registry.h" + "fl_standard_message_codec.h" + "fl_standard_method_codec.h" + "fl_string_codec.h" + "fl_value.h" + "fl_view.h" + "flutter_linux.h" +) +list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") +target_link_libraries(flutter INTERFACE + PkgConfig::GTK + PkgConfig::GLIB + PkgConfig::GIO +) +add_dependencies(flutter flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CMAKE_CURRENT_BINARY_DIR}/_phony_ + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" + ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} +) diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc new file mode 100644 index 0000000..321a26b --- /dev/null +++ b/linux/flutter/generated_plugin_registrant.cc @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + +#include + +void fl_register_plugins(FlPluginRegistry* registry) { + g_autoptr(FlPluginRegistrar) desktop_window_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "DesktopWindowPlugin"); + desktop_window_plugin_register_with_registrar(desktop_window_registrar); +} diff --git a/linux/flutter/generated_plugin_registrant.h b/linux/flutter/generated_plugin_registrant.h new file mode 100644 index 0000000..e0f0a47 --- /dev/null +++ b/linux/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void fl_register_plugins(FlPluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake new file mode 100644 index 0000000..df1c4a0 --- /dev/null +++ b/linux/flutter/generated_plugins.cmake @@ -0,0 +1,24 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST + desktop_window +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin) diff --git a/linux/main.cc b/linux/main.cc new file mode 100644 index 0000000..e7c5c54 --- /dev/null +++ b/linux/main.cc @@ -0,0 +1,6 @@ +#include "my_application.h" + +int main(int argc, char** argv) { + g_autoptr(MyApplication) app = my_application_new(); + return g_application_run(G_APPLICATION(app), argc, argv); +} diff --git a/linux/my_application.cc b/linux/my_application.cc new file mode 100644 index 0000000..d1baaa6 --- /dev/null +++ b/linux/my_application.cc @@ -0,0 +1,124 @@ +#include "my_application.h" + +#include +#ifdef GDK_WINDOWING_X11 +#include +#endif + +#include "flutter/generated_plugin_registrant.h" + +struct _MyApplication { + GtkApplication parent_instance; + char** dart_entrypoint_arguments; +}; + +G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) + +// Implements GApplication::activate. +static void my_application_activate(GApplication* application) { + MyApplication* self = MY_APPLICATION(application); + GtkWindow* window = + GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); + + // Use a header bar when running in GNOME as this is the common style used + // by applications and is the setup most users will be using (e.g. Ubuntu + // desktop). + // If running on X and not using GNOME then just use a traditional title bar + // in case the window manager does more exotic layout, e.g. tiling. + // If running on Wayland assume the header bar will work (may need changing + // if future cases occur). + gboolean use_header_bar = TRUE; +#ifdef GDK_WINDOWING_X11 + GdkScreen* screen = gtk_window_get_screen(window); + if (GDK_IS_X11_SCREEN(screen)) { + const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); + if (g_strcmp0(wm_name, "GNOME Shell") != 0) { + use_header_bar = FALSE; + } + } +#endif + if (use_header_bar) { + GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); + gtk_widget_show(GTK_WIDGET(header_bar)); + gtk_header_bar_set_title(header_bar, "OpenCloud Demo"); + gtk_header_bar_set_show_close_button(header_bar, TRUE); + gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); + } else { + gtk_window_set_title(window, "OpenCloud Demo"); + } + + gtk_window_set_default_size(window, 1280, 720); + gtk_widget_show(GTK_WIDGET(window)); + + g_autoptr(FlDartProject) project = fl_dart_project_new(); + fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); + + FlView* view = fl_view_new(project); + gtk_widget_show(GTK_WIDGET(view)); + gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); + + fl_register_plugins(FL_PLUGIN_REGISTRY(view)); + + gtk_widget_grab_focus(GTK_WIDGET(view)); +} + +// Implements GApplication::local_command_line. +static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { + MyApplication* self = MY_APPLICATION(application); + // Strip out the first argument as it is the binary name. + self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); + + g_autoptr(GError) error = nullptr; + if (!g_application_register(application, nullptr, &error)) { + g_warning("Failed to register: %s", error->message); + *exit_status = 1; + return TRUE; + } + + g_application_activate(application); + *exit_status = 0; + + return TRUE; +} + +// Implements GApplication::startup. +static void my_application_startup(GApplication* application) { + //MyApplication* self = MY_APPLICATION(object); + + // Perform any actions required at application startup. + + G_APPLICATION_CLASS(my_application_parent_class)->startup(application); +} + +// Implements GApplication::shutdown. +static void my_application_shutdown(GApplication* application) { + //MyApplication* self = MY_APPLICATION(object); + + // Perform any actions required at application shutdown. + + G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application); +} + +// Implements GObject::dispose. +static void my_application_dispose(GObject* object) { + MyApplication* self = MY_APPLICATION(object); + g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); + G_OBJECT_CLASS(my_application_parent_class)->dispose(object); +} + +static void my_application_class_init(MyApplicationClass* klass) { + G_APPLICATION_CLASS(klass)->activate = my_application_activate; + G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; + G_APPLICATION_CLASS(klass)->startup = my_application_startup; + G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown; + G_OBJECT_CLASS(klass)->dispose = my_application_dispose; +} + +static void my_application_init(MyApplication* self) {} + +MyApplication* my_application_new() { + return MY_APPLICATION(g_object_new(my_application_get_type(), + "application-id", APPLICATION_ID, + "flags", G_APPLICATION_NON_UNIQUE, + nullptr)); +} diff --git a/linux/my_application.h b/linux/my_application.h new file mode 100644 index 0000000..72271d5 --- /dev/null +++ b/linux/my_application.h @@ -0,0 +1,18 @@ +#ifndef FLUTTER_MY_APPLICATION_H_ +#define FLUTTER_MY_APPLICATION_H_ + +#include + +G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, + GtkApplication) + +/** + * my_application_new: + * + * Creates a new Flutter-based application. + * + * Returns: a new #MyApplication. + */ +MyApplication* my_application_new(); + +#endif // FLUTTER_MY_APPLICATION_H_ diff --git a/macos/.gitignore b/macos/.gitignore new file mode 100644 index 0000000..746adbb --- /dev/null +++ b/macos/.gitignore @@ -0,0 +1,7 @@ +# Flutter-related +**/Flutter/ephemeral/ +**/Pods/ + +# Xcode-related +**/dgph +**/xcuserdata/ diff --git a/macos/Flutter/Flutter-Debug.xcconfig b/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 0000000..c2efd0b --- /dev/null +++ b/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1 @@ +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Flutter/Flutter-Release.xcconfig b/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 0000000..c2efd0b --- /dev/null +++ b/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1 @@ +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift new file mode 100644 index 0000000..9893cc5 --- /dev/null +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -0,0 +1,14 @@ +// +// Generated file. Do not edit. +// + +import FlutterMacOS +import Foundation + +import desktop_window +import shared_preferences_foundation + +func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { + DesktopWindowPlugin.register(with: registry.registrar(forPlugin: "DesktopWindowPlugin")) + SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) +} diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..b5134a4 --- /dev/null +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,705 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC10EC2044A3C60003C045; + remoteInfo = Runner; + }; + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* oc_front.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "oc_front.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 331C80D2294CF70F00263BE5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C80D6294CF71000263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C80D7294CF71000263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + 331C80D6294CF71000263BE5 /* RunnerTests */, + 33CC10EE2044A3C60003C045 /* Products */, + D73912EC22F37F3D000D13A0 /* Frameworks */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* oc_front.app */, + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + D73912EC22F37F3D000D13A0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C80D4294CF70F00263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 331C80D1294CF70F00263BE5 /* Sources */, + 331C80D2294CF70F00263BE5 /* Frameworks */, + 331C80D3294CF70F00263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C80DA294CF71000263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* oc_front.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C80D4294CF70F00263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 33CC10EC2044A3C60003C045; + }; + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 331C80D4294CF70F00263BE5 /* RunnerTests */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C80D3294CF70F00263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C80D1294CF70F00263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC10EC2044A3C60003C045 /* Runner */; + targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; + }; + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 331C80DB294CF71000263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.ocFront.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/oc_front.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/oc_front"; + }; + name = Debug; + }; + 331C80DC294CF71000263BE5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.ocFront.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/oc_front.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/oc_front"; + }; + name = Release; + }; + 331C80DD294CF71000263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.ocFront.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/oc_front.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/oc_front"; + }; + name = Profile; + }; + 338D0CE9231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Profile; + }; + 338D0CEA231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Profile; + }; + 338D0CEB231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 33CC10F92044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 33CC10FA2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 33CC10FC2044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 33CC10FD2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 33CC111C2044C6BA0003C045 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 33CC111D2044C6BA0003C045 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C80DB294CF71000263BE5 /* Debug */, + 331C80DC294CF71000263BE5 /* Release */, + 331C80DD294CF71000263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug */, + 33CC10FA2044A3C60003C045 /* Release */, + 338D0CE9231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug */, + 33CC10FD2044A3C60003C045 /* Release */, + 338D0CEA231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug */, + 33CC111D2044C6BA0003C045 /* Release */, + 338D0CEB231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..afe6b33 --- /dev/null +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/macos/Runner.xcworkspace/contents.xcworkspacedata b/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/macos/Runner/AppDelegate.swift b/macos/Runner/AppDelegate.swift new file mode 100644 index 0000000..d53ef64 --- /dev/null +++ b/macos/Runner/AppDelegate.swift @@ -0,0 +1,9 @@ +import Cocoa +import FlutterMacOS + +@NSApplicationMain +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } +} diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..a2ec33f --- /dev/null +++ b/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "1x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "1x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_1024.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png new file mode 100644 index 0000000..82b6f9d Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png new file mode 100644 index 0000000..13b35eb Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png new file mode 100644 index 0000000..0a3f5fa Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png new file mode 100644 index 0000000..bdb5722 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png new file mode 100644 index 0000000..f083318 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png new file mode 100644 index 0000000..326c0e7 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png new file mode 100644 index 0000000..2f1632c Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png differ diff --git a/macos/Runner/Base.lproj/MainMenu.xib b/macos/Runner/Base.lproj/MainMenu.xib new file mode 100644 index 0000000..80e867a --- /dev/null +++ b/macos/Runner/Base.lproj/MainMenu.xib @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/macos/Runner/Configs/AppInfo.xcconfig b/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 0000000..2bc5e27 --- /dev/null +++ b/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = OpenCloud Demo + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = com.example.ocFront + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2024 com.example. All rights reserved. diff --git a/macos/Runner/Configs/Debug.xcconfig b/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 0000000..36b0fd9 --- /dev/null +++ b/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/macos/Runner/Configs/Release.xcconfig b/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 0000000..dff4f49 --- /dev/null +++ b/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/macos/Runner/Configs/Warnings.xcconfig b/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 0000000..42bcbf4 --- /dev/null +++ b/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements new file mode 100644 index 0000000..dddb8a3 --- /dev/null +++ b/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + + diff --git a/macos/Runner/Info.plist b/macos/Runner/Info.plist new file mode 100644 index 0000000..4789daa --- /dev/null +++ b/macos/Runner/Info.plist @@ -0,0 +1,32 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/macos/Runner/MainFlutterWindow.swift b/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 0000000..3cc05eb --- /dev/null +++ b/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,15 @@ +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } +} diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements new file mode 100644 index 0000000..852fa1a --- /dev/null +++ b/macos/Runner/Release.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/macos/RunnerTests/RunnerTests.swift b/macos/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..5418c9f --- /dev/null +++ b/macos/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import FlutterMacOS +import Cocoa +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/oc_front.iml b/oc_front.iml new file mode 100644 index 0000000..f66303d --- /dev/null +++ b/oc_front.iml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/pubspec.lock b/pubspec.lock new file mode 100644 index 0000000..6c18d4c --- /dev/null +++ b/pubspec.lock @@ -0,0 +1,618 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + alert_banner: + dependency: "direct main" + description: + name: alert_banner + sha256: b290fb6e97c4f18e5f9369b1edeb1f7bea416ae7327fcde15342ad7723b9c7e2 + url: "https://pub.dev" + source: hosted + version: "1.0.1" + args: + dependency: transitive + description: + name: args + sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" + url: "https://pub.dev" + source: hosted + version: "2.5.0" + async: + dependency: transitive + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: transitive + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: transitive + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: transitive + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct main" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 + url: "https://pub.dev" + source: hosted + version: "1.0.8" + dart_earcut: + dependency: transitive + description: + name: dart_earcut + sha256: "41b493147e30a051efb2da1e3acb7f38fe0db60afba24ac1ea5684cee272721e" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + desktop_window: + dependency: "direct main" + description: + name: desktop_window + sha256: "6256fb6feb7b5ec1311c76a3503f89202825bfe92c0458ec5fe7a728ffa216d5" + url: "https://pub.dev" + source: hosted + version: "0.4.0" + dio: + dependency: "direct main" + description: + name: dio + sha256: "77befdddf51050e1635a04d2bcfff230089ce7294e642d00da58cd079c0de0c8" + url: "https://pub.dev" + source: hosted + version: "5.5.0" + dio_web_adapter: + dependency: transitive + description: + name: dio_web_adapter + sha256: "36c5b2d79eb17cdae41e974b7a8284fec631651d2a6f39a8a2ff22327e90aeac" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + ffi: + dependency: transitive + description: + name: ffi + sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + file: + dependency: transitive + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + flutter_map: + dependency: "direct main" + description: + name: flutter_map + sha256: "2ecb34619a4be19df6f40c2f8dce1591675b4eff7a6857bd8f533706977385da" + url: "https://pub.dev" + source: hosted + version: "7.0.2" + flutter_svg: + dependency: "direct main" + description: + name: flutter_svg + sha256: "7b4ca6cf3304575fe9c8ec64813c8d02ee41d2afe60bcfe0678bcb5375d596a2" + url: "https://pub.dev" + source: hosted + version: "2.0.10+1" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + get_it: + dependency: transitive + description: + name: get_it + sha256: d85128a5dae4ea777324730dc65edd9c9f43155c109d5cc0a69cab74139fbac1 + url: "https://pub.dev" + source: hosted + version: "7.7.0" + go_router: + dependency: "direct main" + description: + name: go_router + sha256: cdae1b9c8bd7efadcef6112e81c903662ef2ce105cbd220a04bbb7c3425b5554 + url: "https://pub.dev" + source: hosted + version: "14.2.0" + http: + dependency: transitive + description: + name: http + sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + http_parser: + dependency: transitive + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + injectable: + dependency: "direct main" + description: + name: injectable + sha256: "3c8355a29d11ff28c0311bed754649761f345ef7a13ff66a714380954af51226" + url: "https://pub.dev" + source: hosted + version: "2.4.2" + intl: + dependency: transitive + description: + name: intl + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf + url: "https://pub.dev" + source: hosted + version: "0.19.0" + latlong2: + dependency: "direct main" + description: + name: latlong2 + sha256: "98227922caf49e6056f91b6c56945ea1c7b166f28ffcd5fb8e72fc0b453cc8fe" + url: "https://pub.dev" + source: hosted + version: "0.9.1" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + lints: + dependency: transitive + description: + name: lints + sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 + url: "https://pub.dev" + source: hosted + version: "3.0.0" + lists: + dependency: transitive + description: + name: lists + sha256: "4ca5c19ae4350de036a7e996cdd1ee39c93ac0a2b840f4915459b7d0a7d4ab27" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + logger: + dependency: transitive + description: + name: logger + sha256: af05cc8714f356fd1f3888fb6741cbe9fbe25cdb6eedbab80e1a6db21047d4a4 + url: "https://pub.dev" + source: hosted + version: "2.3.0" + logging: + dependency: transitive + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: transitive + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: transitive + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mgrs_dart: + dependency: transitive + description: + name: mgrs_dart + sha256: fb89ae62f05fa0bb90f70c31fc870bcbcfd516c843fb554452ab3396f78586f7 + url: "https://pub.dev" + source: hosted + version: "2.0.0" + path: + dependency: transitive + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + path_parsing: + dependency: transitive + description: + name: path_parsing + sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf + url: "https://pub.dev" + source: hosted + version: "1.0.1" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 + url: "https://pub.dev" + source: hosted + version: "2.2.1" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + path_provider_windows: + dependency: transitive + description: + name: path_provider_windows + sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170" + url: "https://pub.dev" + source: hosted + version: "2.2.1" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 + url: "https://pub.dev" + source: hosted + version: "6.0.2" + platform: + dependency: transitive + description: + name: platform + sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65" + url: "https://pub.dev" + source: hosted + version: "3.1.5" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" + url: "https://pub.dev" + source: hosted + version: "2.1.8" + polylabel: + dependency: transitive + description: + name: polylabel + sha256: "41b9099afb2aa6c1730bdd8a0fab1400d287694ec7615dd8516935fa3144214b" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + proj4dart: + dependency: transitive + description: + name: proj4dart + sha256: c8a659ac9b6864aa47c171e78d41bbe6f5e1d7bd790a5814249e6b68bc44324e + url: "https://pub.dev" + source: hosted + version: "2.1.0" + shared_preferences: + dependency: "direct main" + description: + name: shared_preferences + sha256: d3bbe5553a986e83980916ded2f0b435ef2e1893dfaa29d5a7a790d0eca12180 + url: "https://pub.dev" + source: hosted + version: "2.2.3" + shared_preferences_android: + dependency: transitive + description: + name: shared_preferences_android + sha256: "1ee8bf911094a1b592de7ab29add6f826a7331fb854273d55918693d5364a1f2" + url: "https://pub.dev" + source: hosted + version: "2.2.2" + shared_preferences_foundation: + dependency: transitive + description: + name: shared_preferences_foundation + sha256: "0a8a893bf4fd1152f93fec03a415d11c27c74454d96e2318a7ac38dd18683ab7" + url: "https://pub.dev" + source: hosted + version: "2.4.0" + shared_preferences_linux: + dependency: transitive + description: + name: shared_preferences_linux + sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + shared_preferences_platform_interface: + dependency: transitive + description: + name: shared_preferences_platform_interface + sha256: "22e2ecac9419b4246d7c22bfbbda589e3acf5c0351137d87dd2939d984d37c3b" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + shared_preferences_web: + dependency: transitive + description: + name: shared_preferences_web + sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" + url: "https://pub.dev" + source: hosted + version: "2.3.0" + shared_preferences_windows: + dependency: transitive + description: + name: shared_preferences_windows + sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + simple_gesture_detector: + dependency: transitive + description: + name: simple_gesture_detector + sha256: ba2cd5af24ff20a0b8d609cec3f40e5b0744d2a71804a2616ae086b9c19d19a3 + url: "https://pub.dev" + source: hosted + version: "0.2.1" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + table_calendar: + dependency: "direct main" + description: + name: table_calendar + sha256: "4ca32b2fc919452c9974abd4c6ea611a63e33b9e4f0b8c38dba3ac1f4a6549d1" + url: "https://pub.dev" + source: hosted + version: "3.1.2" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: transitive + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + unicode: + dependency: transitive + description: + name: unicode + sha256: "0f69e46593d65245774d4f17125c6084d2c20b4e473a983f6e21b7d7762218f1" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + vector_graphics: + dependency: transitive + description: + name: vector_graphics + sha256: "32c3c684e02f9bc0afb0ae0aa653337a2fe022e8ab064bcd7ffda27a74e288e3" + url: "https://pub.dev" + source: hosted + version: "1.1.11+1" + vector_graphics_codec: + dependency: transitive + description: + name: vector_graphics_codec + sha256: c86987475f162fadff579e7320c7ddda04cd2fdeffbe1129227a85d9ac9e03da + url: "https://pub.dev" + source: hosted + version: "1.1.11+1" + vector_graphics_compiler: + dependency: transitive + description: + name: vector_graphics_compiler + sha256: "12faff3f73b1741a36ca7e31b292ddeb629af819ca9efe9953b70bd63fc8cd81" + url: "https://pub.dev" + source: hosted + version: "1.1.11+1" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + web: + dependency: transitive + description: + name: web + sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + url: "https://pub.dev" + source: hosted + version: "0.5.1" + win32: + dependency: transitive + description: + name: win32 + sha256: "0eaf06e3446824099858367950a813472af675116bf63f008a4c2a75ae13e9cb" + url: "https://pub.dev" + source: hosted + version: "5.5.0" + wkt_parser: + dependency: transitive + description: + name: wkt_parser + sha256: "8a555fc60de3116c00aad67891bcab20f81a958e4219cc106e3c037aa3937f13" + url: "https://pub.dev" + source: hosted + version: "2.0.0" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d + url: "https://pub.dev" + source: hosted + version: "1.0.4" + xml: + dependency: transitive + description: + name: xml + sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 + url: "https://pub.dev" + source: hosted + version: "6.5.0" +sdks: + dart: ">=3.3.4 <4.0.0" + flutter: ">=3.19.0" diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..e78a66b --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,104 @@ +name: oc_front +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.3.4 <4.0.0' + +# 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.6 + desktop_window: ^0.4.0 + flutter_svg: ^2.0.10+1 + go_router: ^14.2.0 + shared_preferences: ^2.2.3 + table_calendar: ^3.1.2 + flutter_map: ^7.0.2 + latlong2: ^0.9.1 + dio: ^5.5.0 + alert_banner: ^1.0.1 + injectable: ^2.4.2 + convert: ^3.1.1 + +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: ^3.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 + + assets: + - assets/images/logo.svg + - assets/images/icon.svg + # 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/assets-and-images/#resolution-aware + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # 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/custom-fonts/#from-packages diff --git a/test/widget_test.dart b/test/widget_test.dart new file mode 100644 index 0000000..778b4fa --- /dev/null +++ b/test/widget_test.dart @@ -0,0 +1,30 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility in the flutter_test package. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:oc_front/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +} diff --git a/web/favicon.png b/web/favicon.png new file mode 100644 index 0000000..8aaa46a Binary files /dev/null and b/web/favicon.png differ diff --git a/web/icons/Icon-192.png b/web/icons/Icon-192.png new file mode 100644 index 0000000..b749bfe Binary files /dev/null and b/web/icons/Icon-192.png differ diff --git a/web/icons/Icon-512.png b/web/icons/Icon-512.png new file mode 100644 index 0000000..88cfd48 Binary files /dev/null and b/web/icons/Icon-512.png differ diff --git a/web/icons/Icon-maskable-192.png b/web/icons/Icon-maskable-192.png new file mode 100644 index 0000000..eb9b4d7 Binary files /dev/null and b/web/icons/Icon-maskable-192.png differ diff --git a/web/icons/Icon-maskable-512.png b/web/icons/Icon-maskable-512.png new file mode 100644 index 0000000..d69c566 Binary files /dev/null and b/web/icons/Icon-maskable-512.png differ diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..9aff6c0 --- /dev/null +++ b/web/index.html @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + OpenCloud Demo + + + + + + + + + + diff --git a/web/manifest.json b/web/manifest.json new file mode 100644 index 0000000..b0f7cb6 --- /dev/null +++ b/web/manifest.json @@ -0,0 +1,35 @@ +{ + "name": "oc_front", + "short_name": "oc_front", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + }, + { + "src": "icons/Icon-maskable-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "icons/Icon-maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ] +} diff --git a/windows/.gitignore b/windows/.gitignore new file mode 100644 index 0000000..d492d0d --- /dev/null +++ b/windows/.gitignore @@ -0,0 +1,17 @@ +flutter/ephemeral/ + +# Visual Studio user-specific files. +*.suo +*.user +*.userosscache +*.sln.docstates + +# Visual Studio build-related files. +x64/ +x86/ + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt new file mode 100644 index 0000000..bc5c956 --- /dev/null +++ b/windows/CMakeLists.txt @@ -0,0 +1,108 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.14) +project(oc_front LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "oc_front") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(VERSION 3.14...3.25) + +# Define build configuration option. +get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +if(IS_MULTICONFIG) + set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" + CACHE STRING "" FORCE) +else() + if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") + endif() +endif() +# Define settings for the Profile build mode. +set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") +set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") +set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") +set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") + +# Use Unicode for all projects. +add_definitions(-DUNICODE -D_UNICODE) + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_17) + target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") + target_compile_options(${TARGET} PRIVATE /EHsc) + target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") + target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# Application build; see runner/CMakeLists.txt. +add_subdirectory("runner") + + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# Support files are copied into place next to the executable, so that it can +# run in place. This is done instead of making a separate bundle (as on Linux) +# so that building and running from within Visual Studio will work. +set(BUILD_BUNDLE_DIR "$") +# Make the "install" step default, as it's required to run. +set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +if(PLUGIN_BUNDLED_LIBRARIES) + install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() + +# Copy the native assets provided by the build.dart from all packages. +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/") +install(DIRECTORY "${NATIVE_ASSETS_DIR}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + CONFIGURATIONS Profile;Release + COMPONENT Runtime) diff --git a/windows/flutter/CMakeLists.txt b/windows/flutter/CMakeLists.txt new file mode 100644 index 0000000..903f489 --- /dev/null +++ b/windows/flutter/CMakeLists.txt @@ -0,0 +1,109 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.14) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. +set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") + +# Set fallback configurations for older versions of the flutter tool. +if (NOT DEFINED FLUTTER_TARGET_PLATFORM) + set(FLUTTER_TARGET_PLATFORM "windows-x64") +endif() + +# === Flutter Library === +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "flutter_export.h" + "flutter_windows.h" + "flutter_messenger.h" + "flutter_plugin_registrar.h" + "flutter_texture_registrar.h" +) +list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") +add_dependencies(flutter flutter_assemble) + +# === Wrapper === +list(APPEND CPP_WRAPPER_SOURCES_CORE + "core_implementations.cc" + "standard_codec.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_PLUGIN + "plugin_registrar.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_APP + "flutter_engine.cc" + "flutter_view_controller.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") + +# Wrapper sources needed for a plugin. +add_library(flutter_wrapper_plugin STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} +) +apply_standard_settings(flutter_wrapper_plugin) +set_target_properties(flutter_wrapper_plugin PROPERTIES + POSITION_INDEPENDENT_CODE ON) +set_target_properties(flutter_wrapper_plugin PROPERTIES + CXX_VISIBILITY_PRESET hidden) +target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) +target_include_directories(flutter_wrapper_plugin PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_plugin flutter_assemble) + +# Wrapper sources needed for the runner. +add_library(flutter_wrapper_app STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_APP} +) +apply_standard_settings(flutter_wrapper_app) +target_link_libraries(flutter_wrapper_app PUBLIC flutter) +target_include_directories(flutter_wrapper_app PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_app flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") +set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} + ${PHONY_OUTPUT} + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" + ${FLUTTER_TARGET_PLATFORM} $ + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} +) diff --git a/windows/flutter/generated_plugin_registrant.cc b/windows/flutter/generated_plugin_registrant.cc new file mode 100644 index 0000000..1923f29 --- /dev/null +++ b/windows/flutter/generated_plugin_registrant.cc @@ -0,0 +1,14 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + +#include + +void RegisterPlugins(flutter::PluginRegistry* registry) { + DesktopWindowPluginRegisterWithRegistrar( + registry->GetRegistrarForPlugin("DesktopWindowPlugin")); +} diff --git a/windows/flutter/generated_plugin_registrant.h b/windows/flutter/generated_plugin_registrant.h new file mode 100644 index 0000000..dc139d8 --- /dev/null +++ b/windows/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void RegisterPlugins(flutter::PluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/windows/flutter/generated_plugins.cmake b/windows/flutter/generated_plugins.cmake new file mode 100644 index 0000000..5601eb6 --- /dev/null +++ b/windows/flutter/generated_plugins.cmake @@ -0,0 +1,24 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST + desktop_window +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin) diff --git a/windows/runner/CMakeLists.txt b/windows/runner/CMakeLists.txt new file mode 100644 index 0000000..394917c --- /dev/null +++ b/windows/runner/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.14) +project(runner LANGUAGES CXX) + +# Define the application target. To change its name, change BINARY_NAME in the +# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer +# work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} WIN32 + "flutter_window.cpp" + "main.cpp" + "utils.cpp" + "win32_window.cpp" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" + "Runner.rc" + "runner.exe.manifest" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add preprocessor definitions for the build version. +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") + +# Disable Windows macros that collide with C++ standard library functions. +target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") + +# Add dependency libraries and include directories. Add any application-specific +# dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) +target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) diff --git a/windows/runner/Runner.rc b/windows/runner/Runner.rc new file mode 100644 index 0000000..ec9a5bc --- /dev/null +++ b/windows/runner/Runner.rc @@ -0,0 +1,121 @@ +// Microsoft Visual C++ generated resource script. +// +#pragma code_page(65001) +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_APP_ICON ICON "resources\\app_icon.ico" + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) +#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD +#else +#define VERSION_AS_NUMBER 1,0,0,0 +#endif + +#if defined(FLUTTER_VERSION) +#define VERSION_AS_STRING FLUTTER_VERSION +#else +#define VERSION_AS_STRING "1.0.0" +#endif + +VS_VERSION_INFO VERSIONINFO + FILEVERSION VERSION_AS_NUMBER + PRODUCTVERSION VERSION_AS_NUMBER + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904e4" + BEGIN + VALUE "CompanyName", "com.example" "\0" + VALUE "FileDescription", "oc_front" "\0" + VALUE "FileVersion", VERSION_AS_STRING "\0" + VALUE "InternalName", "oc_front" "\0" + VALUE "LegalCopyright", "Copyright (C) 2024 com.example. All rights reserved." "\0" + VALUE "OriginalFilename", "oc_front.exe" "\0" + VALUE "ProductName", "oc_front" "\0" + VALUE "ProductVersion", VERSION_AS_STRING "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1252 + END +END + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED diff --git a/windows/runner/flutter_window.cpp b/windows/runner/flutter_window.cpp new file mode 100644 index 0000000..955ee30 --- /dev/null +++ b/windows/runner/flutter_window.cpp @@ -0,0 +1,71 @@ +#include "flutter_window.h" + +#include + +#include "flutter/generated_plugin_registrant.h" + +FlutterWindow::FlutterWindow(const flutter::DartProject& project) + : project_(project) {} + +FlutterWindow::~FlutterWindow() {} + +bool FlutterWindow::OnCreate() { + if (!Win32Window::OnCreate()) { + return false; + } + + RECT frame = GetClientArea(); + + // The size here must match the window dimensions to avoid unnecessary surface + // creation / destruction in the startup path. + flutter_controller_ = std::make_unique( + frame.right - frame.left, frame.bottom - frame.top, project_); + // Ensure that basic setup of the controller was successful. + if (!flutter_controller_->engine() || !flutter_controller_->view()) { + return false; + } + RegisterPlugins(flutter_controller_->engine()); + SetChildContent(flutter_controller_->view()->GetNativeWindow()); + + flutter_controller_->engine()->SetNextFrameCallback([&]() { + this->Show(); + }); + + // Flutter can complete the first frame before the "show window" callback is + // registered. The following call ensures a frame is pending to ensure the + // window is shown. It is a no-op if the first frame hasn't completed yet. + flutter_controller_->ForceRedraw(); + + return true; +} + +void FlutterWindow::OnDestroy() { + if (flutter_controller_) { + flutter_controller_ = nullptr; + } + + Win32Window::OnDestroy(); +} + +LRESULT +FlutterWindow::MessageHandler(HWND hwnd, UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + // Give Flutter, including plugins, an opportunity to handle window messages. + if (flutter_controller_) { + std::optional result = + flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, + lparam); + if (result) { + return *result; + } + } + + switch (message) { + case WM_FONTCHANGE: + flutter_controller_->engine()->ReloadSystemFonts(); + break; + } + + return Win32Window::MessageHandler(hwnd, message, wparam, lparam); +} diff --git a/windows/runner/flutter_window.h b/windows/runner/flutter_window.h new file mode 100644 index 0000000..6da0652 --- /dev/null +++ b/windows/runner/flutter_window.h @@ -0,0 +1,33 @@ +#ifndef RUNNER_FLUTTER_WINDOW_H_ +#define RUNNER_FLUTTER_WINDOW_H_ + +#include +#include + +#include + +#include "win32_window.h" + +// A window that does nothing but host a Flutter view. +class FlutterWindow : public Win32Window { + public: + // Creates a new FlutterWindow hosting a Flutter view running |project|. + explicit FlutterWindow(const flutter::DartProject& project); + virtual ~FlutterWindow(); + + protected: + // Win32Window: + bool OnCreate() override; + void OnDestroy() override; + LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, + LPARAM const lparam) noexcept override; + + private: + // The project to run. + flutter::DartProject project_; + + // The Flutter instance hosted by this window. + std::unique_ptr flutter_controller_; +}; + +#endif // RUNNER_FLUTTER_WINDOW_H_ diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp new file mode 100644 index 0000000..7c1a8bd --- /dev/null +++ b/windows/runner/main.cpp @@ -0,0 +1,43 @@ +#include +#include +#include + +#include "flutter_window.h" +#include "utils.h" + +int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, + _In_ wchar_t *command_line, _In_ int show_command) { + // Attach to console when present (e.g., 'flutter run') or create a + // new console when running with a debugger. + if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { + CreateAndAttachConsole(); + } + + // Initialize COM, so that it is available for use in the library and/or + // plugins. + ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); + + flutter::DartProject project(L"data"); + + std::vector command_line_arguments = + GetCommandLineArguments(); + + project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); + + FlutterWindow window(project); + Win32Window::Point origin(10, 10); + Win32Window::Size size(1280, 720); + if (!window.Create(L"oc_front", origin, size)) { + return EXIT_FAILURE; + } + window.SetQuitOnClose(true); + + ::MSG msg; + while (::GetMessage(&msg, nullptr, 0, 0)) { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + } + + ::CoUninitialize(); + return EXIT_SUCCESS; +} diff --git a/windows/runner/resource.h b/windows/runner/resource.h new file mode 100644 index 0000000..66a65d1 --- /dev/null +++ b/windows/runner/resource.h @@ -0,0 +1,16 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Runner.rc +// +#define IDI_APP_ICON 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/windows/runner/resources/app_icon.ico b/windows/runner/resources/app_icon.ico new file mode 100644 index 0000000..c04e20c Binary files /dev/null and b/windows/runner/resources/app_icon.ico differ diff --git a/windows/runner/runner.exe.manifest b/windows/runner/runner.exe.manifest new file mode 100644 index 0000000..a42ea76 --- /dev/null +++ b/windows/runner/runner.exe.manifest @@ -0,0 +1,20 @@ + + + + + PerMonitorV2 + + + + + + + + + + + + + + + diff --git a/windows/runner/utils.cpp b/windows/runner/utils.cpp new file mode 100644 index 0000000..b2b0873 --- /dev/null +++ b/windows/runner/utils.cpp @@ -0,0 +1,65 @@ +#include "utils.h" + +#include +#include +#include +#include + +#include + +void CreateAndAttachConsole() { + if (::AllocConsole()) { + FILE *unused; + if (freopen_s(&unused, "CONOUT$", "w", stdout)) { + _dup2(_fileno(stdout), 1); + } + if (freopen_s(&unused, "CONOUT$", "w", stderr)) { + _dup2(_fileno(stdout), 2); + } + std::ios::sync_with_stdio(); + FlutterDesktopResyncOutputStreams(); + } +} + +std::vector GetCommandLineArguments() { + // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. + int argc; + wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); + if (argv == nullptr) { + return std::vector(); + } + + std::vector command_line_arguments; + + // Skip the first argument as it's the binary name. + for (int i = 1; i < argc; i++) { + command_line_arguments.push_back(Utf8FromUtf16(argv[i])); + } + + ::LocalFree(argv); + + return command_line_arguments; +} + +std::string Utf8FromUtf16(const wchar_t* utf16_string) { + if (utf16_string == nullptr) { + return std::string(); + } + int target_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + -1, nullptr, 0, nullptr, nullptr) + -1; // remove the trailing null character + int input_length = (int)wcslen(utf16_string); + std::string utf8_string; + if (target_length <= 0 || target_length > utf8_string.max_size()) { + return utf8_string; + } + utf8_string.resize(target_length); + int converted_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + input_length, utf8_string.data(), target_length, nullptr, nullptr); + if (converted_length == 0) { + return std::string(); + } + return utf8_string; +} diff --git a/windows/runner/utils.h b/windows/runner/utils.h new file mode 100644 index 0000000..3879d54 --- /dev/null +++ b/windows/runner/utils.h @@ -0,0 +1,19 @@ +#ifndef RUNNER_UTILS_H_ +#define RUNNER_UTILS_H_ + +#include +#include + +// Creates a console for the process, and redirects stdout and stderr to +// it for both the runner and the Flutter library. +void CreateAndAttachConsole(); + +// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string +// encoded in UTF-8. Returns an empty std::string on failure. +std::string Utf8FromUtf16(const wchar_t* utf16_string); + +// Gets the command line arguments passed in as a std::vector, +// encoded in UTF-8. Returns an empty std::vector on failure. +std::vector GetCommandLineArguments(); + +#endif // RUNNER_UTILS_H_ diff --git a/windows/runner/win32_window.cpp b/windows/runner/win32_window.cpp new file mode 100644 index 0000000..60608d0 --- /dev/null +++ b/windows/runner/win32_window.cpp @@ -0,0 +1,288 @@ +#include "win32_window.h" + +#include +#include + +#include "resource.h" + +namespace { + +/// Window attribute that enables dark mode window decorations. +/// +/// Redefined in case the developer's machine has a Windows SDK older than +/// version 10.0.22000.0. +/// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute +#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE +#define DWMWA_USE_IMMERSIVE_DARK_MODE 20 +#endif + +constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; + +/// Registry key for app theme preference. +/// +/// A value of 0 indicates apps should use dark mode. A non-zero or missing +/// value indicates apps should use light mode. +constexpr const wchar_t kGetPreferredBrightnessRegKey[] = + L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"; +constexpr const wchar_t kGetPreferredBrightnessRegValue[] = L"AppsUseLightTheme"; + +// The number of Win32Window objects that currently exist. +static int g_active_window_count = 0; + +using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); + +// Scale helper to convert logical scaler values to physical using passed in +// scale factor +int Scale(int source, double scale_factor) { + return static_cast(source * scale_factor); +} + +// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. +// This API is only needed for PerMonitor V1 awareness mode. +void EnableFullDpiSupportIfAvailable(HWND hwnd) { + HMODULE user32_module = LoadLibraryA("User32.dll"); + if (!user32_module) { + return; + } + auto enable_non_client_dpi_scaling = + reinterpret_cast( + GetProcAddress(user32_module, "EnableNonClientDpiScaling")); + if (enable_non_client_dpi_scaling != nullptr) { + enable_non_client_dpi_scaling(hwnd); + } + FreeLibrary(user32_module); +} + +} // namespace + +// Manages the Win32Window's window class registration. +class WindowClassRegistrar { + public: + ~WindowClassRegistrar() = default; + + // Returns the singleton registrar instance. + static WindowClassRegistrar* GetInstance() { + if (!instance_) { + instance_ = new WindowClassRegistrar(); + } + return instance_; + } + + // Returns the name of the window class, registering the class if it hasn't + // previously been registered. + const wchar_t* GetWindowClass(); + + // Unregisters the window class. Should only be called if there are no + // instances of the window. + void UnregisterWindowClass(); + + private: + WindowClassRegistrar() = default; + + static WindowClassRegistrar* instance_; + + bool class_registered_ = false; +}; + +WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; + +const wchar_t* WindowClassRegistrar::GetWindowClass() { + if (!class_registered_) { + WNDCLASS window_class{}; + window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); + window_class.lpszClassName = kWindowClassName; + window_class.style = CS_HREDRAW | CS_VREDRAW; + window_class.cbClsExtra = 0; + window_class.cbWndExtra = 0; + window_class.hInstance = GetModuleHandle(nullptr); + window_class.hIcon = + LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); + window_class.hbrBackground = 0; + window_class.lpszMenuName = nullptr; + window_class.lpfnWndProc = Win32Window::WndProc; + RegisterClass(&window_class); + class_registered_ = true; + } + return kWindowClassName; +} + +void WindowClassRegistrar::UnregisterWindowClass() { + UnregisterClass(kWindowClassName, nullptr); + class_registered_ = false; +} + +Win32Window::Win32Window() { + ++g_active_window_count; +} + +Win32Window::~Win32Window() { + --g_active_window_count; + Destroy(); +} + +bool Win32Window::Create(const std::wstring& title, + const Point& origin, + const Size& size) { + Destroy(); + + const wchar_t* window_class = + WindowClassRegistrar::GetInstance()->GetWindowClass(); + + const POINT target_point = {static_cast(origin.x), + static_cast(origin.y)}; + HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); + UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); + double scale_factor = dpi / 96.0; + + HWND window = CreateWindow( + window_class, title.c_str(), WS_OVERLAPPEDWINDOW, + Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), + Scale(size.width, scale_factor), Scale(size.height, scale_factor), + nullptr, nullptr, GetModuleHandle(nullptr), this); + + if (!window) { + return false; + } + + UpdateTheme(window); + + return OnCreate(); +} + +bool Win32Window::Show() { + return ShowWindow(window_handle_, SW_SHOWNORMAL); +} + +// static +LRESULT CALLBACK Win32Window::WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + if (message == WM_NCCREATE) { + auto window_struct = reinterpret_cast(lparam); + SetWindowLongPtr(window, GWLP_USERDATA, + reinterpret_cast(window_struct->lpCreateParams)); + + auto that = static_cast(window_struct->lpCreateParams); + EnableFullDpiSupportIfAvailable(window); + that->window_handle_ = window; + } else if (Win32Window* that = GetThisFromHandle(window)) { + return that->MessageHandler(window, message, wparam, lparam); + } + + return DefWindowProc(window, message, wparam, lparam); +} + +LRESULT +Win32Window::MessageHandler(HWND hwnd, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + switch (message) { + case WM_DESTROY: + window_handle_ = nullptr; + Destroy(); + if (quit_on_close_) { + PostQuitMessage(0); + } + return 0; + + case WM_DPICHANGED: { + auto newRectSize = reinterpret_cast(lparam); + LONG newWidth = newRectSize->right - newRectSize->left; + LONG newHeight = newRectSize->bottom - newRectSize->top; + + SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, + newHeight, SWP_NOZORDER | SWP_NOACTIVATE); + + return 0; + } + case WM_SIZE: { + RECT rect = GetClientArea(); + if (child_content_ != nullptr) { + // Size and position the child window. + MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, + rect.bottom - rect.top, TRUE); + } + return 0; + } + + case WM_ACTIVATE: + if (child_content_ != nullptr) { + SetFocus(child_content_); + } + return 0; + + case WM_DWMCOLORIZATIONCOLORCHANGED: + UpdateTheme(hwnd); + return 0; + } + + return DefWindowProc(window_handle_, message, wparam, lparam); +} + +void Win32Window::Destroy() { + OnDestroy(); + + if (window_handle_) { + DestroyWindow(window_handle_); + window_handle_ = nullptr; + } + if (g_active_window_count == 0) { + WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); + } +} + +Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { + return reinterpret_cast( + GetWindowLongPtr(window, GWLP_USERDATA)); +} + +void Win32Window::SetChildContent(HWND content) { + child_content_ = content; + SetParent(content, window_handle_); + RECT frame = GetClientArea(); + + MoveWindow(content, frame.left, frame.top, frame.right - frame.left, + frame.bottom - frame.top, true); + + SetFocus(child_content_); +} + +RECT Win32Window::GetClientArea() { + RECT frame; + GetClientRect(window_handle_, &frame); + return frame; +} + +HWND Win32Window::GetHandle() { + return window_handle_; +} + +void Win32Window::SetQuitOnClose(bool quit_on_close) { + quit_on_close_ = quit_on_close; +} + +bool Win32Window::OnCreate() { + // No-op; provided for subclasses. + return true; +} + +void Win32Window::OnDestroy() { + // No-op; provided for subclasses. +} + +void Win32Window::UpdateTheme(HWND const window) { + DWORD light_mode; + DWORD light_mode_size = sizeof(light_mode); + LSTATUS result = RegGetValue(HKEY_CURRENT_USER, kGetPreferredBrightnessRegKey, + kGetPreferredBrightnessRegValue, + RRF_RT_REG_DWORD, nullptr, &light_mode, + &light_mode_size); + + if (result == ERROR_SUCCESS) { + BOOL enable_dark_mode = light_mode == 0; + DwmSetWindowAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE, + &enable_dark_mode, sizeof(enable_dark_mode)); + } +} diff --git a/windows/runner/win32_window.h b/windows/runner/win32_window.h new file mode 100644 index 0000000..e901dde --- /dev/null +++ b/windows/runner/win32_window.h @@ -0,0 +1,102 @@ +#ifndef RUNNER_WIN32_WINDOW_H_ +#define RUNNER_WIN32_WINDOW_H_ + +#include + +#include +#include +#include + +// A class abstraction for a high DPI-aware Win32 Window. Intended to be +// inherited from by classes that wish to specialize with custom +// rendering and input handling +class Win32Window { + public: + struct Point { + unsigned int x; + unsigned int y; + Point(unsigned int x, unsigned int y) : x(x), y(y) {} + }; + + struct Size { + unsigned int width; + unsigned int height; + Size(unsigned int width, unsigned int height) + : width(width), height(height) {} + }; + + Win32Window(); + virtual ~Win32Window(); + + // Creates a win32 window with |title| that is positioned and sized using + // |origin| and |size|. New windows are created on the default monitor. Window + // sizes are specified to the OS in physical pixels, hence to ensure a + // consistent size this function will scale the inputted width and height as + // as appropriate for the default monitor. The window is invisible until + // |Show| is called. Returns true if the window was created successfully. + bool Create(const std::wstring& title, const Point& origin, const Size& size); + + // Show the current window. Returns true if the window was successfully shown. + bool Show(); + + // Release OS resources associated with window. + void Destroy(); + + // Inserts |content| into the window tree. + void SetChildContent(HWND content); + + // Returns the backing Window handle to enable clients to set icon and other + // window properties. Returns nullptr if the window has been destroyed. + HWND GetHandle(); + + // If true, closing this window will quit the application. + void SetQuitOnClose(bool quit_on_close); + + // Return a RECT representing the bounds of the current client area. + RECT GetClientArea(); + + protected: + // Processes and route salient window messages for mouse handling, + // size change and DPI. Delegates handling of these to member overloads that + // inheriting classes can handle. + virtual LRESULT MessageHandler(HWND window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Called when CreateAndShow is called, allowing subclass window-related + // setup. Subclasses should return false if setup fails. + virtual bool OnCreate(); + + // Called when Destroy is called. + virtual void OnDestroy(); + + private: + friend class WindowClassRegistrar; + + // OS callback called by message pump. Handles the WM_NCCREATE message which + // is passed when the non-client area is being created and enables automatic + // non-client DPI scaling so that the non-client area automatically + // responds to changes in DPI. All other messages are handled by + // MessageHandler. + static LRESULT CALLBACK WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Retrieves a class instance pointer for |window| + static Win32Window* GetThisFromHandle(HWND const window) noexcept; + + // Update the window frame's theme to match the system theme. + static void UpdateTheme(HWND const window); + + bool quit_on_close_ = false; + + // window handle for top level window. + HWND window_handle_ = nullptr; + + // window handle for hosted content. + HWND child_content_ = nullptr; +}; + +#endif // RUNNER_WIN32_WINDOW_H_