diff --git a/packages/battery_plus/battery_plus_aurora/data/preview.png b/packages/battery_plus/battery_plus_aurora/data/preview.png deleted file mode 100644 index 924f871..0000000 Binary files a/packages/battery_plus/battery_plus_aurora/data/preview.png and /dev/null differ diff --git a/packages/battery_plus/battery_plus_aurora/example/.gitignore b/packages/battery_plus/battery_plus_aurora/example/.gitignore deleted file mode 100644 index 3db3823..0000000 --- a/packages/battery_plus/battery_plus_aurora/example/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release - -# Aurora generated -/aurora/flutter diff --git a/packages/battery_plus/battery_plus_aurora/example/README.md b/packages/battery_plus/battery_plus_aurora/example/README.md deleted file mode 100644 index 9110259..0000000 --- a/packages/battery_plus/battery_plus_aurora/example/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# battery_plus_aurora_example - -Demonstrates how to use the battery_plus_aurora plugin. - -## Build - -```shell -# Add an alias if it doesn't already exist -alias flutter-aurora=$HOME/.local/opt/flutter-sdk/bin/flutter -# Get dependencies -flutter-aurora pub get -# Run build -flutter-aurora build aurora --release # [--release|--debug|--profile] -``` - -You can collect, sign, run an example on the device with a script located in the `script/build_example.sh` -More information in `build_example.sh`. - -### Preview example - -![preview.png](../data/preview.png) diff --git a/packages/battery_plus/battery_plus_aurora/example/analysis_options.yaml b/packages/battery_plus/battery_plus_aurora/example/analysis_options.yaml deleted file mode 100644 index 566c597..0000000 --- a/packages/battery_plus/battery_plus_aurora/example/analysis_options.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -include: package:flutter_lints/flutter.yaml diff --git a/packages/battery_plus/battery_plus_aurora/example/aurora/.gitignore b/packages/battery_plus/battery_plus_aurora/example/aurora/.gitignore deleted file mode 100644 index d3896c9..0000000 --- a/packages/battery_plus/battery_plus_aurora/example/aurora/.gitignore +++ /dev/null @@ -1 +0,0 @@ -flutter/ephemeral diff --git a/packages/battery_plus/battery_plus_aurora/example/aurora/CMakeLists.txt b/packages/battery_plus/battery_plus_aurora/example/aurora/CMakeLists.txt deleted file mode 100644 index 048467b..0000000 --- a/packages/battery_plus/battery_plus_aurora/example/aurora/CMakeLists.txt +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -cmake_minimum_required(VERSION 3.10) -project(com.example.battery_plus_aurora_example LANGUAGES CXX) - -include(GNUInstallDirs) - -set(BINARY_NAME ${CMAKE_PROJECT_NAME}) -set(FLUTTER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/flutter) - -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -set(CMAKE_CXX_FLAGS "-Wall -Wextra") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") - -set(CMAKE_SKIP_RPATH OFF) -set(CMAKE_INSTALL_RPATH "\$ORIGIN/../share/${BINARY_NAME}/lib") - -find_package(PkgConfig REQUIRED) -pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder) - -add_executable(${BINARY_NAME} main.cpp ${FLUTTER_DIR}/generated_plugin_registrant.cpp) -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::FlutterEmbedder) -target_include_directories(${BINARY_NAME} PRIVATE ${FLUTTER_DIR}) - -include(flutter/generated_plugins.cmake) - -set(PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/${BINARY_NAME}) -set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/applications) -set(ICONS_INSTALL_ROOT_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor) - -add_custom_command(TARGET ${BINARY_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libflutter-embedder.so - ${PROJECT_BINARY_DIR}/bundle/lib/libflutter-embedder.so) - -install(FILES ${PROJECT_BINARY_DIR}/bundle/icudtl.dat DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/flutter_assets DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/lib DESTINATION ${PACKAGE_INSTALL_DIR}) - -install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES desktop/${BINARY_NAME}.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) - -foreach(ICONS_SIZE 86x86 108x108 128x128 172x172) - install(FILES icons/${ICONS_SIZE}.png - RENAME ${BINARY_NAME}.png - DESTINATION ${ICONS_INSTALL_ROOT_DIR}/${ICONS_SIZE}/apps/) -endforeach(ICONS_SIZE) diff --git a/packages/battery_plus/battery_plus_aurora/example/aurora/desktop/com.example.battery_plus_aurora_example.desktop b/packages/battery_plus/battery_plus_aurora/example/aurora/desktop/com.example.battery_plus_aurora_example.desktop deleted file mode 100644 index a6aeb93..0000000 --- a/packages/battery_plus/battery_plus_aurora/example/aurora/desktop/com.example.battery_plus_aurora_example.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Type=Application -Name=battery_plus_aurora_example -Comment=Demonstrates how to use the battery_plus_aurora plugin. -Icon=com.example.battery_plus_aurora_example -Exec=/usr/bin/com.example.battery_plus_aurora_example -X-Nemo-Application-Type=silica-qt5 - -[X-Application] -Permissions= -OrganizationName=com.example -ApplicationName=battery_plus_aurora_example diff --git a/packages/battery_plus/battery_plus_aurora/example/aurora/icons/108x108.png b/packages/battery_plus/battery_plus_aurora/example/aurora/icons/108x108.png deleted file mode 100644 index 984893d..0000000 Binary files a/packages/battery_plus/battery_plus_aurora/example/aurora/icons/108x108.png and /dev/null differ diff --git a/packages/battery_plus/battery_plus_aurora/example/aurora/icons/128x128.png b/packages/battery_plus/battery_plus_aurora/example/aurora/icons/128x128.png deleted file mode 100644 index 2d552ef..0000000 Binary files a/packages/battery_plus/battery_plus_aurora/example/aurora/icons/128x128.png and /dev/null differ diff --git a/packages/battery_plus/battery_plus_aurora/example/aurora/icons/172x172.png b/packages/battery_plus/battery_plus_aurora/example/aurora/icons/172x172.png deleted file mode 100644 index 9dc271b..0000000 Binary files a/packages/battery_plus/battery_plus_aurora/example/aurora/icons/172x172.png and /dev/null differ diff --git a/packages/battery_plus/battery_plus_aurora/example/aurora/icons/86x86.png b/packages/battery_plus/battery_plus_aurora/example/aurora/icons/86x86.png deleted file mode 100644 index 5923bb1..0000000 Binary files a/packages/battery_plus/battery_plus_aurora/example/aurora/icons/86x86.png and /dev/null differ diff --git a/packages/battery_plus/battery_plus_aurora/example/aurora/main.cpp b/packages/battery_plus/battery_plus_aurora/example/aurora/main.cpp deleted file mode 100644 index 83f2ca8..0000000 --- a/packages/battery_plus/battery_plus_aurora/example/aurora/main.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -#include -#include "generated_plugin_registrant.h" - -int main(int argc, char *argv[]) { - Application::Initialize(argc, argv); - RegisterPlugins(); - Application::Launch(); - return 0; -} diff --git a/packages/battery_plus/battery_plus_aurora/example/aurora/rpm/com.example.battery_plus_aurora_example.spec b/packages/battery_plus/battery_plus_aurora/example/aurora/rpm/com.example.battery_plus_aurora_example.spec deleted file mode 100644 index a06d8f3..0000000 --- a/packages/battery_plus/battery_plus_aurora/example/aurora/rpm/com.example.battery_plus_aurora_example.spec +++ /dev/null @@ -1,31 +0,0 @@ -%global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$ -%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|appmanifest-.+|.+_platform_plugin)\\.so.*$ - -Name: com.example.battery_plus_aurora_example -Summary: Demonstrates how to use the battery_plus_aurora plugin. -Version: 0.1.0 -Release: 1 -License: Proprietary -Source0: %{name}-%{version}.tar.zst - -BuildRequires: cmake -BuildRequires: pkgconfig(flutter-embedder) - -%description -%{summary}. - -%prep -%autosetup - -%build -%cmake -DCMAKE_BUILD_TYPE=%{_flutter_build_type} -%make_build - -%install -%make_install - -%files -%{_bindir}/%{name} -%{_datadir}/%{name}/* -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*/apps/%{name}.png diff --git a/packages/battery_plus/battery_plus_aurora/example/lib/main.dart b/packages/battery_plus/battery_plus_aurora/example/lib/main.dart deleted file mode 100644 index 4d6723f..0000000 --- a/packages/battery_plus/battery_plus_aurora/example/lib/main.dart +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -import 'package:flutter/material.dart'; -import 'dart:async'; - -import 'package:battery_plus/battery_plus.dart'; - -void main() { - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({super.key}); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - final _battery = Battery(); - String? _error; - int? _batteryLevel; - String? _batteryState; - bool? _isInBatterySaveMode; - - @override - void initState() { - super.initState(); - initPlatformState(); - } - - // Platform messages are asynchronous, so we initialize in an async method. - Future initPlatformState() async { - try { - // Get current battery level - final batteryLevel = await _battery.batteryLevel; - // Get current battery state - final batteryState = await _battery.batteryState; - // Check is enable SaveMode - final isInBatterySaveMode = await _battery.isInBatterySaveMode; - - // Be informed when the state (full, charging, discharging) changes - _battery.onBatteryStateChanged.listen((BatteryState state) { - debugPrint(state.toString()); - }); - - setState(() { - _batteryLevel = batteryLevel; - _batteryState = batteryState.name; - _isInBatterySaveMode = isInBatterySaveMode; - }); - } on Exception catch (e) { - setState(() { - _error = e.toString(); - }); - } - } - - @override - Widget build(BuildContext context) { - const textStyleWhite = TextStyle(fontSize: 18, color: Colors.white); - const textStyleTitle = TextStyle(fontSize: 20, color: Colors.black); - const textStylePath = TextStyle(fontSize: 18, color: Colors.black54); - - const spaceMedium = SizedBox(height: 20); - const spaceSmall = SizedBox(height: 10); - - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Example battery_plus'), - ), - body: Stack( - children: [ - // Error message - Visibility( - visible: _error != null, - child: Center( - child: Padding( - padding: const EdgeInsets.all(16), - child: Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.redAccent, - borderRadius: BorderRadius.all(Radius.circular(10.0)), - ), - child: Text( - _error ?? '', - style: textStyleWhite, - ), - ), - ), - ), - ), - // List directories path - Visibility( - visible: _error == null, - child: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.all(16), - child: Center( - child: Column( - children: [ - // Info - Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.green, - borderRadius: - BorderRadius.all(Radius.circular(10.0)), - ), - child: const Text( - 'Demo application demonstration implementation of battery_plus', - style: textStyleWhite, - textAlign: TextAlign.center, - ), - ), - const SizedBox(height: 30), - - const Text( - 'Battery Level', - style: textStyleTitle, - ), - spaceSmall, - Text( - "$_batteryLevel%", - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Battery State', - style: textStyleTitle, - ), - spaceSmall, - Text( - _batteryState.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Is In Battery SaveMode', - style: textStyleTitle, - ), - spaceSmall, - Text( - _isInBatterySaveMode.toString(), - style: textStylePath, - ), - ], - ), - ), - ), - ), - ), - ], - ), - ), - ); - } -} diff --git a/packages/battery_plus/battery_plus_aurora/example/pubspec.lock b/packages/battery_plus/battery_plus_aurora/example/pubspec.lock deleted file mode 100644 index 0c1972b..0000000 --- a/packages/battery_plus/battery_plus_aurora/example/pubspec.lock +++ /dev/null @@ -1,243 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.1" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.9.0" - battery_plus: - dependency: "direct main" - description: - name: battery_plus - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.1" - battery_plus_aurora: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" - battery_plus_platform_interface: - dependency: transitive - description: - name: battery_plus_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.2" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - clock: - dependency: transitive - description: - name: clock - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.16.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - dbus: - dependency: transitive - description: - name: dbus - url: "https://pub.dartlang.org" - source: hosted - version: "0.7.8" - fake_async: - dependency: transitive - description: - name: fake_async - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.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" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.4" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.12" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.5" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.2" - petitparser: - dependency: transitive - description: - name: petitparser - url: "https://pub.dartlang.org" - source: hosted - version: "5.1.0" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.12" - upower: - dependency: transitive - description: - name: upower - url: "https://pub.dartlang.org" - source: hosted - version: "0.7.0" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.2" - xml: - dependency: transitive - description: - name: xml - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.0" -sdks: - dart: ">=2.18.6 <3.0.0" - flutter: ">=3.3.0" diff --git a/packages/battery_plus/battery_plus_aurora/example/pubspec.yaml b/packages/battery_plus/battery_plus_aurora/example/pubspec.yaml deleted file mode 100644 index 42def81..0000000 --- a/packages/battery_plus/battery_plus_aurora/example/pubspec.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -name: battery_plus_aurora_example -description: Demonstrates how to use the battery_plus_aurora plugin. - -publish_to: 'none' - -environment: - sdk: '>=2.18.6 <3.0.0' - -dependencies: - flutter: - sdk: flutter - battery_plus: ^4.0.1 - battery_plus_aurora: - path: ../ - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^2.0.0 - -flutter: - uses-material-design: true diff --git a/packages/device_info_plus/device_info_plus_aurora/data/preview.png b/packages/device_info_plus/device_info_plus_aurora/data/preview.png deleted file mode 100644 index b7d356e..0000000 Binary files a/packages/device_info_plus/device_info_plus_aurora/data/preview.png and /dev/null differ diff --git a/packages/device_info_plus/device_info_plus_aurora/example/.gitignore b/packages/device_info_plus/device_info_plus_aurora/example/.gitignore deleted file mode 100644 index 3db3823..0000000 --- a/packages/device_info_plus/device_info_plus_aurora/example/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release - -# Aurora generated -/aurora/flutter diff --git a/packages/device_info_plus/device_info_plus_aurora/example/README.md b/packages/device_info_plus/device_info_plus_aurora/example/README.md deleted file mode 100644 index ae0d7d1..0000000 --- a/packages/device_info_plus/device_info_plus_aurora/example/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# device_info_plus_aurora - -Demonstrates how to use the device_info_plus plugin. - -## Build - -```shell -# Add an alias if it doesn't already exist -alias flutter-aurora=$HOME/.local/opt/flutter-sdk/bin/flutter -# Get dependencies -flutter-aurora pub get -# Run build -flutter-aurora build aurora --release # [--release|--debug|--profile] -``` - -You can collect, sign, run an example on the device with a script located in the `script/build_example.sh` -More information in `build_example.sh`. - -### Preview example - -![preview.png](../data/preview.png) diff --git a/packages/device_info_plus/device_info_plus_aurora/example/analysis_options.yaml b/packages/device_info_plus/device_info_plus_aurora/example/analysis_options.yaml deleted file mode 100644 index 566c597..0000000 --- a/packages/device_info_plus/device_info_plus_aurora/example/analysis_options.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -include: package:flutter_lints/flutter.yaml diff --git a/packages/device_info_plus/device_info_plus_aurora/example/aurora/.gitignore b/packages/device_info_plus/device_info_plus_aurora/example/aurora/.gitignore deleted file mode 100644 index d3896c9..0000000 --- a/packages/device_info_plus/device_info_plus_aurora/example/aurora/.gitignore +++ /dev/null @@ -1 +0,0 @@ -flutter/ephemeral diff --git a/packages/device_info_plus/device_info_plus_aurora/example/aurora/CMakeLists.txt b/packages/device_info_plus/device_info_plus_aurora/example/aurora/CMakeLists.txt deleted file mode 100644 index ef6d32e..0000000 --- a/packages/device_info_plus/device_info_plus_aurora/example/aurora/CMakeLists.txt +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -cmake_minimum_required(VERSION 3.10) -project(com.example.device_info_plus_aurora_example LANGUAGES CXX) - -include(GNUInstallDirs) - -set(BINARY_NAME ${CMAKE_PROJECT_NAME}) -set(FLUTTER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/flutter) - -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -set(CMAKE_CXX_FLAGS "-Wall -Wextra") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") - -set(CMAKE_SKIP_RPATH OFF) -set(CMAKE_INSTALL_RPATH "\$ORIGIN/../share/${BINARY_NAME}/lib") - -find_package(PkgConfig REQUIRED) -pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder) - -add_executable(${BINARY_NAME} main.cpp ${FLUTTER_DIR}/generated_plugin_registrant.cpp) -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::FlutterEmbedder) -target_include_directories(${BINARY_NAME} PRIVATE ${FLUTTER_DIR}) - -include(flutter/generated_plugins.cmake) - -set(PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/${BINARY_NAME}) -set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/applications) -set(ICONS_INSTALL_ROOT_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor) - -add_custom_command(TARGET ${BINARY_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libflutter-embedder.so - ${PROJECT_BINARY_DIR}/bundle/lib/libflutter-embedder.so) - -install(FILES ${PROJECT_BINARY_DIR}/bundle/icudtl.dat DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/flutter_assets DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/lib DESTINATION ${PACKAGE_INSTALL_DIR}) - -install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES desktop/${BINARY_NAME}.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) - -foreach(ICONS_SIZE 86x86 108x108 128x128 172x172) - install(FILES icons/${ICONS_SIZE}.png - RENAME ${BINARY_NAME}.png - DESTINATION ${ICONS_INSTALL_ROOT_DIR}/${ICONS_SIZE}/apps/) -endforeach(ICONS_SIZE) diff --git a/packages/device_info_plus/device_info_plus_aurora/example/aurora/desktop/com.example.device_info_plus_aurora_example.desktop b/packages/device_info_plus/device_info_plus_aurora/example/aurora/desktop/com.example.device_info_plus_aurora_example.desktop deleted file mode 100644 index 88c8b51..0000000 --- a/packages/device_info_plus/device_info_plus_aurora/example/aurora/desktop/com.example.device_info_plus_aurora_example.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Type=Application -Name=device_info_plus_aurora_example -Comment=Demonstrates how to use the device_info_plus_aurora plugin. -Icon=com.example.device_info_plus_aurora_example -Exec=/usr/bin/com.example.device_info_plus_aurora_example -X-Nemo-Application-Type=silica-qt5 - -[X-Application] -Permissions=DeviceInfo -OrganizationName=com.example -ApplicationName=device_info_plus_aurora_example diff --git a/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/108x108.png b/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/108x108.png deleted file mode 100644 index 984893d..0000000 Binary files a/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/108x108.png and /dev/null differ diff --git a/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/128x128.png b/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/128x128.png deleted file mode 100644 index 2d552ef..0000000 Binary files a/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/128x128.png and /dev/null differ diff --git a/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/172x172.png b/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/172x172.png deleted file mode 100644 index 9dc271b..0000000 Binary files a/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/172x172.png and /dev/null differ diff --git a/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/86x86.png b/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/86x86.png deleted file mode 100644 index 5923bb1..0000000 Binary files a/packages/device_info_plus/device_info_plus_aurora/example/aurora/icons/86x86.png and /dev/null differ diff --git a/packages/device_info_plus/device_info_plus_aurora/example/aurora/main.cpp b/packages/device_info_plus/device_info_plus_aurora/example/aurora/main.cpp deleted file mode 100644 index 83f2ca8..0000000 --- a/packages/device_info_plus/device_info_plus_aurora/example/aurora/main.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -#include -#include "generated_plugin_registrant.h" - -int main(int argc, char *argv[]) { - Application::Initialize(argc, argv); - RegisterPlugins(); - Application::Launch(); - return 0; -} diff --git a/packages/device_info_plus/device_info_plus_aurora/example/aurora/rpm/com.example.device_info_plus_aurora_example.spec b/packages/device_info_plus/device_info_plus_aurora/example/aurora/rpm/com.example.device_info_plus_aurora_example.spec deleted file mode 100644 index 8706033..0000000 --- a/packages/device_info_plus/device_info_plus_aurora/example/aurora/rpm/com.example.device_info_plus_aurora_example.spec +++ /dev/null @@ -1,31 +0,0 @@ -%global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$ -%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|appmanifest-.+|.+_platform_plugin)\\.so.*$ - -Name: com.example.device_info_plus_aurora_example -Summary: Demonstrates how to use the device_info_plus_aurora plugin. -Version: 0.1.0 -Release: 1 -License: Proprietary -Source0: %{name}-%{version}.tar.zst - -BuildRequires: cmake -BuildRequires: pkgconfig(flutter-embedder) - -%description -%{summary}. - -%prep -%autosetup - -%build -%cmake -DCMAKE_BUILD_TYPE=%{_flutter_build_type} -%make_build - -%install -%make_install - -%files -%{_bindir}/%{name} -%{_datadir}/%{name}/* -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*/apps/%{name}.png diff --git a/packages/device_info_plus/device_info_plus_aurora/example/lib/main.dart b/packages/device_info_plus/device_info_plus_aurora/example/lib/main.dart deleted file mode 100644 index 26c9b63..0000000 --- a/packages/device_info_plus/device_info_plus_aurora/example/lib/main.dart +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -import 'package:device_info_plus_aurora/aurora_device_info.dart'; -import 'package:flutter/material.dart'; -import 'dart:async'; - -import 'package:device_info_plus/device_info_plus.dart'; - -void main() { - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({super.key}); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - String? _error; - String? _id; - String? _name; - String? _version; - String? _prettyName; - bool? _hasGNSS; - bool? _hasNFC; - bool? _hasBluetooth; - bool? _hasWlan; - int? _maxCpuClockSpeed; - int? _numberCpuCores; - int? _batteryChargePercentage; - double? _mainCameraResolution; - double? _frontalCameraResolution; - int? _ramTotalSize; - int? _ramFreeSize; - String? _screenResolution; - String? _osVersion; - String? _deviceModel; - Map? _externalStorage; - Map? _internalStorage; - List>? _simCards; - - @override - void initState() { - super.initState(); - initPlatformState(); - } - - // Platform messages are asynchronous, so we initialize in an async method. - Future initPlatformState() async { - final deviceInfoPlugin = DeviceInfoPlugin(); - - try { - final deviceInfo = await deviceInfoPlugin.linuxInfo as AuroraDeviceInfo; - setState(() { - _id = deviceInfo.id; - _name = deviceInfo.name; - _version = deviceInfo.version; - _prettyName = deviceInfo.prettyName; - _hasGNSS = deviceInfo.hasGNSS; - _hasNFC = deviceInfo.hasNFC; - _hasBluetooth = deviceInfo.hasBluetooth; - _hasWlan = deviceInfo.hasWlan; - _maxCpuClockSpeed = deviceInfo.maxCpuClockSpeed; - _numberCpuCores = deviceInfo.numberCpuCores; - _batteryChargePercentage = deviceInfo.batteryChargePercentage; - _mainCameraResolution = deviceInfo.mainCameraResolution; - _frontalCameraResolution = deviceInfo.frontalCameraResolution; - _ramTotalSize = deviceInfo.ramTotalSize; - _ramFreeSize = deviceInfo.ramFreeSize; - _screenResolution = deviceInfo.screenResolution; - _osVersion = deviceInfo.osVersion; - _deviceModel = deviceInfo.deviceModel; - _externalStorage = deviceInfo.externalStorage; - _internalStorage = deviceInfo.internalStorage; - _simCards = deviceInfo.simCards; - }); - } on Exception catch (e) { - setState(() { - _error = e.toString(); - }); - } - } - - @override - Widget build(BuildContext context) { - const textStyleWhite = TextStyle(fontSize: 18, color: Colors.white); - const textStyleTitle = TextStyle(fontSize: 20, color: Colors.black); - const textStylePath = TextStyle(fontSize: 18, color: Colors.black54); - - const spaceMedium = SizedBox(height: 20); - const spaceSmall = SizedBox(height: 10); - - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Example device_info_plus'), - ), - body: Stack( - children: [ - // Error message - Visibility( - visible: _error != null, - child: Center( - child: Padding( - padding: const EdgeInsets.all(16), - child: Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.redAccent, - borderRadius: BorderRadius.all(Radius.circular(10.0)), - ), - child: Text( - _error ?? '', - style: textStyleWhite, - ), - ), - ), - ), - ), - // List directories path - Visibility( - visible: _error == null, - child: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.all(16), - child: Center( - child: Column( - children: [ - // Info - Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.green, - borderRadius: - BorderRadius.all(Radius.circular(10.0)), - ), - child: const Text( - 'Demo application demonstration implementation of device_info_plus', - style: textStyleWhite, - textAlign: TextAlign.center, - ), - ), - const SizedBox(height: 30), - - const Text( - 'ID', - style: textStyleTitle, - ), - spaceSmall, - Text( - _id.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Name', - style: textStyleTitle, - ), - spaceSmall, - Text( - _name.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Version', - style: textStyleTitle, - ), - spaceSmall, - Text( - _version.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Pretty Name', - style: textStyleTitle, - ), - spaceSmall, - Text( - _prettyName.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Has GNSS', - style: textStyleTitle, - ), - spaceSmall, - Text( - _hasGNSS.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Has NFC', - style: textStyleTitle, - ), - spaceSmall, - Text( - _hasNFC.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Has Bluetooth', - style: textStyleTitle, - ), - spaceSmall, - Text( - _hasBluetooth.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Has Wlan', - style: textStyleTitle, - ), - spaceSmall, - Text( - _hasWlan.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Max Cpu Clock Speed', - style: textStyleTitle, - ), - spaceSmall, - Text( - _maxCpuClockSpeed.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Number Cpu Cores', - style: textStyleTitle, - ), - spaceSmall, - Text( - _numberCpuCores.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Battery Charge Percentage', - style: textStyleTitle, - ), - spaceSmall, - Text( - _batteryChargePercentage.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Main Camera Resolution', - style: textStyleTitle, - ), - spaceSmall, - Text( - _mainCameraResolution.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Frontal Camera Resolution', - style: textStyleTitle, - ), - spaceSmall, - Text( - _frontalCameraResolution.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Ram Total Size', - style: textStyleTitle, - ), - spaceSmall, - Text( - _ramTotalSize.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Ram Free Size', - style: textStyleTitle, - ), - spaceSmall, - Text( - _ramFreeSize.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Screen Resolution', - style: textStyleTitle, - ), - spaceSmall, - Text( - _screenResolution.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'OS Version', - style: textStyleTitle, - ), - spaceSmall, - Text( - _osVersion.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Device Model', - style: textStyleTitle, - ), - spaceSmall, - Text( - _deviceModel.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'External Storage Info', - style: textStyleTitle, - ), - spaceSmall, - Text( - _externalStorage.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Internal Storage Info', - style: textStyleTitle, - ), - spaceSmall, - Text( - _internalStorage.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'SIM Cards Info', - style: textStyleTitle, - ), - spaceSmall, - Text( - _simCards.toString(), - style: textStylePath, - ), - ], - ), - ), - ), - ), - ), - ], - ), - ), - ); - } -} diff --git a/packages/device_info_plus/device_info_plus_aurora/example/pubspec.lock b/packages/device_info_plus/device_info_plus_aurora/example/pubspec.lock deleted file mode 100644 index cb95715..0000000 --- a/packages/device_info_plus/device_info_plus_aurora/example/pubspec.lock +++ /dev/null @@ -1,250 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.1" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.9.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - clock: - dependency: transitive - description: - name: clock - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.16.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - dbus: - dependency: transitive - description: - name: dbus - url: "https://pub.dartlang.org" - source: hosted - version: "0.7.8" - device_info_plus: - dependency: "direct main" - description: - name: device_info_plus - url: "https://pub.dartlang.org" - source: hosted - version: "8.2.2" - device_info_plus_aurora: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" - device_info_plus_platform_interface: - dependency: transitive - description: - name: device_info_plus_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "7.0.0" - fake_async: - dependency: transitive - description: - name: fake_async - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - file: - dependency: transitive - description: - name: file - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.4" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.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" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.4" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.12" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.5" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.2" - petitparser: - dependency: transitive - description: - name: petitparser - url: "https://pub.dartlang.org" - source: hosted - version: "5.1.0" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.12" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.2" - win32: - dependency: transitive - description: - name: win32 - url: "https://pub.dartlang.org" - source: hosted - version: "4.1.4" - xml: - dependency: transitive - description: - name: xml - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.0" -sdks: - dart: ">=2.18.6 <3.0.0" - flutter: ">=3.0.0" diff --git a/packages/device_info_plus/device_info_plus_aurora/example/pubspec.yaml b/packages/device_info_plus/device_info_plus_aurora/example/pubspec.yaml deleted file mode 100644 index 58b0ef1..0000000 --- a/packages/device_info_plus/device_info_plus_aurora/example/pubspec.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -name: device_info_plus_aurora_example -description: Demonstrates how to use the device_info_plus_aurora plugin. - -publish_to: 'none' - -environment: - sdk: '>=2.18.6 <3.0.0' - -dependencies: - flutter: - sdk: flutter - device_info_plus: ^8.2.2 - device_info_plus_aurora: - path: ../ - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^2.0.0 - -flutter: - uses-material-design: true diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/data/preview.gif b/packages/flutter_local_notifications/flutter_local_notifications_aurora/data/preview.gif deleted file mode 100644 index f2975bf..0000000 Binary files a/packages/flutter_local_notifications/flutter_local_notifications_aurora/data/preview.gif and /dev/null differ diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/.gitignore b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/.gitignore deleted file mode 100644 index 3db3823..0000000 --- a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release - -# Aurora generated -/aurora/flutter diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/README.md b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/README.md deleted file mode 100644 index e1c48db..0000000 --- a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# flutter_local_notifications_aurora_example - -Demonstrates how to use the flutter_local_notifications_aurora plugin. - -## Build - -```shell -# Add an alias if it doesn't already exist -alias flutter-aurora=$HOME/.local/opt/flutter-sdk/bin/flutter -# Get dependencies -flutter-aurora pub get -# Run build -flutter-aurora build aurora --release # [--release|--debug|--profile] -``` - -You can collect, sign, run an example on the device with a script located in the `script/build_example.sh` -More information in `build_example.sh`. - -### Preview example - -![preview.png](../data/preview.gif) diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/analysis_options.yaml b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/analysis_options.yaml deleted file mode 100644 index 566c597..0000000 --- a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/analysis_options.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -include: package:flutter_lints/flutter.yaml diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/.gitignore b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/.gitignore deleted file mode 100644 index d3896c9..0000000 --- a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/.gitignore +++ /dev/null @@ -1 +0,0 @@ -flutter/ephemeral diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/CMakeLists.txt b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/CMakeLists.txt deleted file mode 100644 index 786144b..0000000 --- a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/CMakeLists.txt +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -cmake_minimum_required(VERSION 3.10) -project(com.example.flutter_local_notifications_aurora_example LANGUAGES CXX) - -include(GNUInstallDirs) - -set(BINARY_NAME ${CMAKE_PROJECT_NAME}) -set(FLUTTER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/flutter) - -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -set(CMAKE_CXX_FLAGS "-Wall -Wextra") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") - -set(CMAKE_SKIP_RPATH OFF) -set(CMAKE_INSTALL_RPATH "\$ORIGIN/../share/${BINARY_NAME}/lib") - -find_package(PkgConfig REQUIRED) -pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder) - -add_executable(${BINARY_NAME} main.cpp ${FLUTTER_DIR}/generated_plugin_registrant.cpp) -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::FlutterEmbedder) -target_include_directories(${BINARY_NAME} PRIVATE ${FLUTTER_DIR}) - -include(flutter/generated_plugins.cmake) - -set(PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/${BINARY_NAME}) -set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/applications) -set(ICONS_INSTALL_ROOT_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor) - -add_custom_command(TARGET ${BINARY_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libflutter-embedder.so - ${PROJECT_BINARY_DIR}/bundle/lib/libflutter-embedder.so) - -install(FILES ${PROJECT_BINARY_DIR}/bundle/icudtl.dat DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/flutter_assets DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/lib DESTINATION ${PACKAGE_INSTALL_DIR}) - -install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES desktop/${BINARY_NAME}.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) - -foreach(ICONS_SIZE 86x86 108x108 128x128 172x172) - install(FILES icons/${ICONS_SIZE}.png - RENAME ${BINARY_NAME}.png - DESTINATION ${ICONS_INSTALL_ROOT_DIR}/${ICONS_SIZE}/apps/) -endforeach(ICONS_SIZE) diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/desktop/com.example.flutter_local_notifications_aurora_example.desktop b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/desktop/com.example.flutter_local_notifications_aurora_example.desktop deleted file mode 100644 index d2a6a7e..0000000 --- a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/desktop/com.example.flutter_local_notifications_aurora_example.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Flutter Notification -Comment=Demonstrates how to use the flutter_local_notifications_aurora plugin. -Icon=com.example.flutter_local_notifications_aurora_example -Exec=/usr/bin/com.example.flutter_local_notifications_aurora_example -X-Nemo-Application-Type=silica-qt5 - -[X-Application] -Permissions= -OrganizationName=com.example -ApplicationName=flutter_local_notifications_aurora_example diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/108x108.png b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/108x108.png deleted file mode 100644 index 984893d..0000000 Binary files a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/108x108.png and /dev/null differ diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/128x128.png b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/128x128.png deleted file mode 100644 index 2d552ef..0000000 Binary files a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/128x128.png and /dev/null differ diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/172x172.png b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/172x172.png deleted file mode 100644 index 9dc271b..0000000 Binary files a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/172x172.png and /dev/null differ diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/86x86.png b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/86x86.png deleted file mode 100644 index 5923bb1..0000000 Binary files a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/icons/86x86.png and /dev/null differ diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/main.cpp b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/main.cpp deleted file mode 100644 index 83f2ca8..0000000 --- a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/main.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -#include -#include "generated_plugin_registrant.h" - -int main(int argc, char *argv[]) { - Application::Initialize(argc, argv); - RegisterPlugins(); - Application::Launch(); - return 0; -} diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/rpm/com.example.flutter_local_notifications_aurora_example.spec b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/rpm/com.example.flutter_local_notifications_aurora_example.spec deleted file mode 100644 index 640103e..0000000 --- a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/aurora/rpm/com.example.flutter_local_notifications_aurora_example.spec +++ /dev/null @@ -1,31 +0,0 @@ -%global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$ -%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|appmanifest-.+|.+_platform_plugin)\\.so.*$ - -Name: com.example.flutter_local_notifications_aurora_example -Summary: Demonstrates how to use the flutter_local_notifications_aurora plugin. -Version: 0.1.0 -Release: 1 -License: Proprietary -Source0: %{name}-%{version}.tar.zst - -BuildRequires: cmake -BuildRequires: pkgconfig(flutter-embedder) - -%description -%{summary}. - -%prep -%autosetup - -%build -%cmake -DCMAKE_BUILD_TYPE=%{_flutter_build_type} -%make_build - -%install -%make_install - -%files -%{_bindir}/%{name} -%{_datadir}/%{name}/* -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*/apps/%{name}.png diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/lib/main.dart b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/lib/main.dart deleted file mode 100644 index c7f8d84..0000000 --- a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/lib/main.dart +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -import 'package:flutter/material.dart'; -import 'dart:async'; - -import 'package:flutter_local_notifications/flutter_local_notifications.dart'; - -void main() { - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({super.key}); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - final notificationID = 1; - final FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = - FlutterLocalNotificationsPlugin(); - - @override - void initState() { - super.initState(); - } - - Future _showNotification() async { - await flutterLocalNotificationsPlugin.show( - notificationID, - "Title notification", - "My long body text notification", - null, - ); - } - - Future _cancelNotification() async { - await flutterLocalNotificationsPlugin.cancel(notificationID); - } - - @override - Widget build(BuildContext context) { - const textStyleWhite = TextStyle(fontSize: 18, color: Colors.white); - const spaceMedium = SizedBox(height: 20); - - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Example flutter_local_notifications'), - ), - body: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.all(16), - child: Center( - child: Column( - children: [ - // Info - Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.green, - borderRadius: BorderRadius.all(Radius.circular(10.0)), - ), - child: const Text( - 'Demo application demonstration implementation of flutter_local_notifications', - style: textStyleWhite, - textAlign: TextAlign.center, - ), - ), - const SizedBox(height: 30), - - ElevatedButton( - onPressed: _showNotification, - child: const Text('Show notification'), - ), - - spaceMedium, - - ElevatedButton( - onPressed: _cancelNotification, - child: const Text('Cancel notification'), - ) - ], - ), - ), - ), - ), - ), - ); - } -} diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/pubspec.lock b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/pubspec.lock deleted file mode 100644 index c932747..0000000 --- a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/pubspec.lock +++ /dev/null @@ -1,327 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.1" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.9.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - clock: - dependency: transitive - description: - name: clock - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.16.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - dbus: - dependency: transitive - description: - name: dbus - url: "https://pub.dartlang.org" - source: hosted - version: "0.7.8" - fake_async: - dependency: transitive - description: - name: fake_async - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - file: - dependency: transitive - description: - name: file - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.4" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - flutter_local_notifications: - dependency: "direct main" - description: - name: flutter_local_notifications - url: "https://pub.dartlang.org" - source: hosted - version: "14.1.1" - flutter_local_notifications_aurora: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" - flutter_local_notifications_linux: - dependency: transitive - description: - name: flutter_local_notifications_linux - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.0+1" - flutter_local_notifications_platform_interface: - dependency: transitive - description: - name: flutter_local_notifications_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "7.0.0+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" - http: - dependency: transitive - description: - name: http - url: "https://pub.dartlang.org" - source: hosted - version: "0.13.5" - http_parser: - dependency: transitive - description: - name: http_parser - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.2" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.4" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.12" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.5" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - package_info_plus: - dependency: transitive - description: - name: package_info_plus - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.2" - package_info_plus_aurora: - dependency: transitive - description: - path: "../../../package_info_plus/package_info_plus_aurora" - relative: true - source: path - version: "0.0.1" - package_info_plus_platform_interface: - dependency: transitive - description: - name: package_info_plus_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.2" - petitparser: - dependency: transitive - description: - name: petitparser - url: "https://pub.dartlang.org" - source: hosted - version: "5.1.0" - platform: - dependency: transitive - description: - name: platform - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - process: - dependency: transitive - description: - name: process - url: "https://pub.dartlang.org" - source: hosted - version: "4.2.4" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.12" - timezone: - dependency: transitive - description: - name: timezone - url: "https://pub.dartlang.org" - source: hosted - version: "0.9.2" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.2" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.2" - win32: - dependency: transitive - description: - name: win32 - url: "https://pub.dartlang.org" - source: hosted - version: "4.1.4" - xdg_directories: - dependency: transitive - description: - name: xdg_directories - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" - xml: - dependency: transitive - description: - name: xml - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.0" -sdks: - dart: ">=2.18.6 <3.0.0" - flutter: ">=3.0.0" diff --git a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/pubspec.yaml b/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/pubspec.yaml deleted file mode 100644 index 0dd0b40..0000000 --- a/packages/flutter_local_notifications/flutter_local_notifications_aurora/example/pubspec.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -name: flutter_local_notifications_aurora_example -description: Demonstrates how to use the flutter_local_notifications_aurora plugin. - -publish_to: 'none' - -environment: - sdk: '>=2.18.6 <3.0.0' - -dependencies: - flutter: - sdk: flutter - flutter_local_notifications: ^14.0.0+2 - flutter_local_notifications_aurora: - path: ../ - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^2.0.0 - -flutter: - uses-material-design: true diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/data/preview.png b/packages/flutter_secure_storage/flutter_secure_storage_aurora/data/preview.png deleted file mode 100644 index 5108a25..0000000 Binary files a/packages/flutter_secure_storage/flutter_secure_storage_aurora/data/preview.png and /dev/null differ diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/.gitignore b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/.gitignore deleted file mode 100644 index 3db3823..0000000 --- a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release - -# Aurora generated -/aurora/flutter diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/README.md b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/README.md deleted file mode 100644 index 2e79332..0000000 --- a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# flutter_secure_storage_aurora_example - -Demonstrates how to use the flutter_secure_storage_aurora plugin. - -## Build - -```shell -# Add an alias if it doesn't already exist -alias flutter-aurora=$HOME/.local/opt/flutter-sdk/bin/flutter -# Get dependencies -flutter-aurora pub get -# Run build -flutter-aurora build aurora --release # [--release|--debug|--profile] -``` - -You can collect, sign, run an example on the device with a script located in the `script/build_example.sh` -More information in `build_example.sh`. - -### Preview example - -![preview.png](../data/preview.png) diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/analysis_options.yaml b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/analysis_options.yaml deleted file mode 100644 index 566c597..0000000 --- a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/analysis_options.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -include: package:flutter_lints/flutter.yaml diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/.gitignore b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/.gitignore deleted file mode 100644 index d3896c9..0000000 --- a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/.gitignore +++ /dev/null @@ -1 +0,0 @@ -flutter/ephemeral diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/CMakeLists.txt b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/CMakeLists.txt deleted file mode 100644 index 44c0ad2..0000000 --- a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/CMakeLists.txt +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -cmake_minimum_required(VERSION 3.10) -project(com.example.flutter_secure_storage_aurora_example LANGUAGES CXX) - -include(GNUInstallDirs) - -set(BINARY_NAME ${CMAKE_PROJECT_NAME}) -set(FLUTTER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/flutter) - -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -set(CMAKE_CXX_FLAGS "-Wall -Wextra") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") - -set(CMAKE_SKIP_RPATH OFF) -set(CMAKE_INSTALL_RPATH "\$ORIGIN/../share/${BINARY_NAME}/lib") - -find_package(PkgConfig REQUIRED) -pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder) - -add_executable(${BINARY_NAME} main.cpp ${FLUTTER_DIR}/generated_plugin_registrant.cpp) -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::FlutterEmbedder) -target_include_directories(${BINARY_NAME} PRIVATE ${FLUTTER_DIR}) - -include(flutter/generated_plugins.cmake) - -set(PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/${BINARY_NAME}) -set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/applications) -set(ICONS_INSTALL_ROOT_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor) - -add_custom_command(TARGET ${BINARY_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libflutter-embedder.so - ${PROJECT_BINARY_DIR}/bundle/lib/libflutter-embedder.so) - -install(FILES ${PROJECT_BINARY_DIR}/bundle/icudtl.dat DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/flutter_assets DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/lib DESTINATION ${PACKAGE_INSTALL_DIR}) - -install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES desktop/${BINARY_NAME}.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) - -foreach(ICONS_SIZE 86x86 108x108 128x128 172x172) - install(FILES icons/${ICONS_SIZE}.png - RENAME ${BINARY_NAME}.png - DESTINATION ${ICONS_INSTALL_ROOT_DIR}/${ICONS_SIZE}/apps/) -endforeach(ICONS_SIZE) diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/desktop/com.example.flutter_secure_storage_aurora_example.desktop b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/desktop/com.example.flutter_secure_storage_aurora_example.desktop deleted file mode 100644 index 6441560..0000000 --- a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/desktop/com.example.flutter_secure_storage_aurora_example.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Type=Application -Name=flutter_secure_storage_aurora_example -Comment=Demonstrates how to use the flutter_secure_storage_aurora plugin. -Icon=com.example.flutter_secure_storage_aurora_example -Exec=/usr/bin/com.example.flutter_secure_storage_aurora_example -X-Nemo-Application-Type=silica-qt5 - -[X-Application] -Permissions= -OrganizationName=com.example -ApplicationName=flutter_secure_storage_aurora_example diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/108x108.png b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/108x108.png deleted file mode 100644 index 984893d..0000000 Binary files a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/108x108.png and /dev/null differ diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/128x128.png b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/128x128.png deleted file mode 100644 index 2d552ef..0000000 Binary files a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/128x128.png and /dev/null differ diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/172x172.png b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/172x172.png deleted file mode 100644 index 9dc271b..0000000 Binary files a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/172x172.png and /dev/null differ diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/86x86.png b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/86x86.png deleted file mode 100644 index 5923bb1..0000000 Binary files a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/icons/86x86.png and /dev/null differ diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/main.cpp b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/main.cpp deleted file mode 100644 index 83f2ca8..0000000 --- a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/main.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -#include -#include "generated_plugin_registrant.h" - -int main(int argc, char *argv[]) { - Application::Initialize(argc, argv); - RegisterPlugins(); - Application::Launch(); - return 0; -} diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/rpm/com.example.flutter_secure_storage_aurora_example.spec b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/rpm/com.example.flutter_secure_storage_aurora_example.spec deleted file mode 100644 index 278fb13..0000000 --- a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/aurora/rpm/com.example.flutter_secure_storage_aurora_example.spec +++ /dev/null @@ -1,31 +0,0 @@ -%global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$ -%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|appmanifest-.+|.+_platform_plugin)\\.so.*$ - -Name: com.example.flutter_secure_storage_aurora_example -Summary: Demonstrates how to use the flutter_secure_storage_aurora plugin. -Version: 0.1.0 -Release: 1 -License: Proprietary -Source0: %{name}-%{version}.tar.zst - -BuildRequires: cmake -BuildRequires: pkgconfig(flutter-embedder) - -%description -%{summary}. - -%prep -%autosetup - -%build -%cmake -DCMAKE_BUILD_TYPE=%{_flutter_build_type} -%make_build - -%install -%make_install - -%files -%{_bindir}/%{name} -%{_datadir}/%{name}/* -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*/apps/%{name}.png diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/lib/main.dart b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/lib/main.dart deleted file mode 100644 index fb7cf59..0000000 --- a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/lib/main.dart +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -import 'package:flutter/material.dart'; -import 'dart:async'; - -import 'package:flutter_secure_storage/flutter_secure_storage.dart'; -import 'package:flutter_secure_storage_aurora/flutter_secure_storage_aurora.dart'; - -void main() { - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({super.key}); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - final _flutterSecureStorage = const FlutterSecureStorage(); - String? _error; - String? _data; - String? _all; - - @override - void initState() { - super.initState(); - initPlatformState(); - } - - Future initPlatformState() async { - try { - // https://pub.dev/packages/encrypt - // Encrypter(AES(key)) - // secure-random --length 16 --base 16 - // You can generate a secret key based on user data, as an example of a hash pincode - FlutterSecureStorageAurora.setSecret('5872747ed1ceda363808efb8b2b18b20'); - - const key = 'my_key'; - const data = 'Something secret'; - - // Write value - await _flutterSecureStorage.write(key: key, value: data); - - // Read value - String? value = await _flutterSecureStorage.read(key: key); - - // Read all values - Map allValues = await _flutterSecureStorage.readAll(); - - setState(() { - _data = value; - _all = allValues.toString(); - }); - } on Exception catch (e) { - setState(() { - _error = e.toString(); - }); - } - } - - @override - Widget build(BuildContext context) { - const textStyleWhite = TextStyle(fontSize: 18, color: Colors.white); - const textStyleTitle = TextStyle(fontSize: 20, color: Colors.black); - const textStylePath = TextStyle(fontSize: 18, color: Colors.black54); - - const spaceMedium = SizedBox(height: 20); - const spaceSmall = SizedBox(height: 10); - - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Example flutter_secure_storage'), - ), - body: Stack( - children: [ - // Error message - Visibility( - visible: _error != null, - child: Center( - child: Padding( - padding: const EdgeInsets.all(16), - child: Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.redAccent, - borderRadius: BorderRadius.all(Radius.circular(10.0)), - ), - child: Text( - _error ?? '', - style: textStyleWhite, - ), - ), - ), - ), - ), - // List directories path - Visibility( - visible: _error == null, - child: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.all(16), - child: Center( - child: Column( - children: [ - // Info - Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.green, - borderRadius: BorderRadius.all(Radius.circular(10.0)), - ), - child: const Text( - 'Demo application demonstration implementation of flutter_secure_storage', - style: textStyleWhite, - textAlign: TextAlign.center, - ), - ), - const SizedBox(height: 30), - - const Text( - 'After write/read secret data', - style: textStyleTitle, - ), - spaceSmall, - Text( - _data.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'All data', - style: textStyleTitle, - ), - spaceSmall, - Text( - _all.toString(), - style: textStylePath, - ), - ], - ), - ), - ), - ), - ), - ], - ), - ), - ); - } -} diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/pubspec.lock b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/pubspec.lock deleted file mode 100644 index 6120664..0000000 --- a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/pubspec.lock +++ /dev/null @@ -1,411 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.1" - asn1lib: - dependency: transitive - description: - name: asn1lib - url: "https://pub.dartlang.org" - source: hosted - version: "1.4.0" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.9.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - clock: - dependency: transitive - description: - name: clock - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.16.0" - convert: - dependency: transitive - description: - name: convert - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.1" - crypto: - dependency: transitive - description: - name: crypto - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.2" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - encrypt: - dependency: transitive - description: - name: encrypt - url: "https://pub.dartlang.org" - source: hosted - version: "5.0.1" - fake_async: - dependency: transitive - description: - name: fake_async - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - file: - dependency: transitive - description: - name: file - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.4" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - flutter_secure_storage: - dependency: "direct main" - description: - name: flutter_secure_storage - url: "https://pub.dartlang.org" - source: hosted - version: "8.0.0" - flutter_secure_storage_aurora: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" - flutter_secure_storage_linux: - dependency: transitive - description: - name: flutter_secure_storage_linux - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.3" - flutter_secure_storage_macos: - dependency: transitive - description: - name: flutter_secure_storage_macos - url: "https://pub.dartlang.org" - source: hosted - version: "3.0.0" - flutter_secure_storage_platform_interface: - dependency: transitive - description: - name: flutter_secure_storage_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" - flutter_secure_storage_web: - dependency: transitive - description: - name: flutter_secure_storage_web - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - flutter_secure_storage_windows: - dependency: transitive - description: - name: flutter_secure_storage_windows - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.0" - 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" - http: - dependency: transitive - description: - name: http - url: "https://pub.dartlang.org" - source: hosted - version: "0.13.5" - http_parser: - dependency: transitive - description: - name: http_parser - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.2" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.4" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.12" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.5" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - package_info_plus: - dependency: transitive - description: - name: package_info_plus - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.2" - package_info_plus_aurora: - dependency: transitive - description: - path: "../../../package_info_plus/package_info_plus_aurora" - relative: true - source: path - version: "0.0.1" - package_info_plus_platform_interface: - dependency: transitive - description: - name: package_info_plus_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.2" - path_provider: - dependency: transitive - description: - name: path_provider - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.15" - path_provider_android: - dependency: transitive - description: - name: path_provider_android - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.27" - path_provider_aurora: - dependency: transitive - description: - path: "../../../path_provider/path_provider_aurora" - relative: true - source: path - version: "0.0.1" - path_provider_foundation: - dependency: transitive - description: - name: path_provider_foundation - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.3" - path_provider_linux: - dependency: transitive - description: - name: path_provider_linux - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.11" - path_provider_platform_interface: - dependency: transitive - description: - name: path_provider_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.6" - path_provider_windows: - dependency: transitive - description: - name: path_provider_windows - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.7" - platform: - dependency: transitive - description: - name: platform - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - pointycastle: - dependency: transitive - description: - name: pointycastle - url: "https://pub.dartlang.org" - source: hosted - version: "3.7.3" - process: - dependency: transitive - description: - name: process - url: "https://pub.dartlang.org" - source: hosted - version: "4.2.4" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.12" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.2" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.2" - win32: - dependency: transitive - description: - name: win32 - url: "https://pub.dartlang.org" - source: hosted - version: "4.1.4" - xdg_directories: - dependency: transitive - description: - name: xdg_directories - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" - xdga_directories: - dependency: transitive - description: - path: "../../../xdga_directories" - relative: true - source: path - version: "0.0.1" -sdks: - dart: ">=2.18.6 <3.0.0" - flutter: ">=3.3.0" diff --git a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/pubspec.yaml b/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/pubspec.yaml deleted file mode 100644 index 50e5e47..0000000 --- a/packages/flutter_secure_storage/flutter_secure_storage_aurora/example/pubspec.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -name: flutter_secure_storage_aurora_example -description: Demonstrates how to use the flutter_secure_storage_aurora plugin. - -publish_to: 'none' - -environment: - sdk: '>=2.18.6 <3.0.0' - -dependencies: - flutter: - sdk: flutter - flutter_secure_storage: ^8.0.0 - flutter_secure_storage_aurora: - path: ../ - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^2.0.0 - -flutter: - uses-material-design: true diff --git a/packages/package_info_plus/package_info_plus_aurora/data/preview.png b/packages/package_info_plus/package_info_plus_aurora/data/preview.png deleted file mode 100644 index e70f4b1..0000000 Binary files a/packages/package_info_plus/package_info_plus_aurora/data/preview.png and /dev/null differ diff --git a/packages/package_info_plus/package_info_plus_aurora/example/.gitignore b/packages/package_info_plus/package_info_plus_aurora/example/.gitignore deleted file mode 100644 index 3db3823..0000000 --- a/packages/package_info_plus/package_info_plus_aurora/example/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release - -# Aurora generated -/aurora/flutter diff --git a/packages/package_info_plus/package_info_plus_aurora/example/README.md b/packages/package_info_plus/package_info_plus_aurora/example/README.md deleted file mode 100644 index c7ef8e1..0000000 --- a/packages/package_info_plus/package_info_plus_aurora/example/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# package_info_plus_aurora_example - -Demonstrates how to use the package_info_plus_aurora plugin. - -## Build - -```shell -# Add an alias if it doesn't already exist -alias flutter-aurora=$HOME/.local/opt/flutter-sdk/bin/flutter -# Get dependencies -flutter-aurora pub get -# Run build -flutter-aurora build aurora --release # [--release|--debug|--profile] -``` - -You can collect, sign, run an example on the device with a script located in the `script/build_example.sh` -More information in `build_example.sh`. - -### Preview example - -![preview.png](../data/preview.png) diff --git a/packages/package_info_plus/package_info_plus_aurora/example/analysis_options.yaml b/packages/package_info_plus/package_info_plus_aurora/example/analysis_options.yaml deleted file mode 100644 index 566c597..0000000 --- a/packages/package_info_plus/package_info_plus_aurora/example/analysis_options.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -include: package:flutter_lints/flutter.yaml diff --git a/packages/package_info_plus/package_info_plus_aurora/example/aurora/.gitignore b/packages/package_info_plus/package_info_plus_aurora/example/aurora/.gitignore deleted file mode 100644 index d3896c9..0000000 --- a/packages/package_info_plus/package_info_plus_aurora/example/aurora/.gitignore +++ /dev/null @@ -1 +0,0 @@ -flutter/ephemeral diff --git a/packages/package_info_plus/package_info_plus_aurora/example/aurora/CMakeLists.txt b/packages/package_info_plus/package_info_plus_aurora/example/aurora/CMakeLists.txt deleted file mode 100644 index c75fffe..0000000 --- a/packages/package_info_plus/package_info_plus_aurora/example/aurora/CMakeLists.txt +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -cmake_minimum_required(VERSION 3.10) -project(com.example.package_info_plus_aurora_example LANGUAGES CXX) - -include(GNUInstallDirs) - -set(BINARY_NAME ${CMAKE_PROJECT_NAME}) -set(FLUTTER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/flutter) - -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -set(CMAKE_CXX_FLAGS "-Wall -Wextra") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") - -set(CMAKE_SKIP_RPATH OFF) -set(CMAKE_INSTALL_RPATH "\$ORIGIN/../share/${BINARY_NAME}/lib") - -find_package(PkgConfig REQUIRED) -pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder) - -add_executable(${BINARY_NAME} main.cpp ${FLUTTER_DIR}/generated_plugin_registrant.cpp) -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::FlutterEmbedder) -target_include_directories(${BINARY_NAME} PRIVATE ${FLUTTER_DIR}) - -include(flutter/generated_plugins.cmake) - -set(PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/${BINARY_NAME}) -set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/applications) -set(ICONS_INSTALL_ROOT_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor) - -add_custom_command(TARGET ${BINARY_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libflutter-embedder.so - ${PROJECT_BINARY_DIR}/bundle/lib/libflutter-embedder.so) - -install(FILES ${PROJECT_BINARY_DIR}/bundle/icudtl.dat DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/flutter_assets DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/lib DESTINATION ${PACKAGE_INSTALL_DIR}) - -install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES desktop/${BINARY_NAME}.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) - -foreach(ICONS_SIZE 86x86 108x108 128x128 172x172) - install(FILES icons/${ICONS_SIZE}.png - RENAME ${BINARY_NAME}.png - DESTINATION ${ICONS_INSTALL_ROOT_DIR}/${ICONS_SIZE}/apps/) -endforeach(ICONS_SIZE) diff --git a/packages/package_info_plus/package_info_plus_aurora/example/aurora/desktop/com.example.package_info_plus_aurora_example.desktop b/packages/package_info_plus/package_info_plus_aurora/example/aurora/desktop/com.example.package_info_plus_aurora_example.desktop deleted file mode 100644 index 1e01856..0000000 --- a/packages/package_info_plus/package_info_plus_aurora/example/aurora/desktop/com.example.package_info_plus_aurora_example.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Example Info Plus -Comment=Demonstrates how to use the package_info_plus_aurora plugin. -Icon=com.example.package_info_plus_aurora_example -Exec=/usr/bin/com.example.package_info_plus_aurora_example -X-Nemo-Application-Type=silica-qt5 - -[X-Application] -Permissions= -OrganizationName=com.example -ApplicationName=package_info_plus_aurora_example diff --git a/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/108x108.png b/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/108x108.png deleted file mode 100644 index 984893d..0000000 Binary files a/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/108x108.png and /dev/null differ diff --git a/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/128x128.png b/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/128x128.png deleted file mode 100644 index 2d552ef..0000000 Binary files a/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/128x128.png and /dev/null differ diff --git a/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/172x172.png b/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/172x172.png deleted file mode 100644 index 9dc271b..0000000 Binary files a/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/172x172.png and /dev/null differ diff --git a/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/86x86.png b/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/86x86.png deleted file mode 100644 index 5923bb1..0000000 Binary files a/packages/package_info_plus/package_info_plus_aurora/example/aurora/icons/86x86.png and /dev/null differ diff --git a/packages/package_info_plus/package_info_plus_aurora/example/aurora/main.cpp b/packages/package_info_plus/package_info_plus_aurora/example/aurora/main.cpp deleted file mode 100644 index 83f2ca8..0000000 --- a/packages/package_info_plus/package_info_plus_aurora/example/aurora/main.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -#include -#include "generated_plugin_registrant.h" - -int main(int argc, char *argv[]) { - Application::Initialize(argc, argv); - RegisterPlugins(); - Application::Launch(); - return 0; -} diff --git a/packages/package_info_plus/package_info_plus_aurora/example/aurora/rpm/com.example.package_info_plus_aurora_example.spec b/packages/package_info_plus/package_info_plus_aurora/example/aurora/rpm/com.example.package_info_plus_aurora_example.spec deleted file mode 100644 index 6a0c214..0000000 --- a/packages/package_info_plus/package_info_plus_aurora/example/aurora/rpm/com.example.package_info_plus_aurora_example.spec +++ /dev/null @@ -1,31 +0,0 @@ -%global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$ -%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|appmanifest-.+|.+_platform_plugin)\\.so.*$ - -Name: com.example.package_info_plus_aurora_example -Summary: Demonstrates how to use the package_info_plus_aurora plugin. -Version: 0.1.0 -Release: 1 -License: Proprietary -Source0: %{name}-%{version}.tar.zst - -BuildRequires: cmake -BuildRequires: pkgconfig(flutter-embedder) - -%description -%{summary}. - -%prep -%autosetup - -%build -%cmake -DCMAKE_BUILD_TYPE=%{_flutter_build_type} -%make_build - -%install -%make_install - -%files -%{_bindir}/%{name} -%{_datadir}/%{name}/* -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*/apps/%{name}.png diff --git a/packages/package_info_plus/package_info_plus_aurora/example/lib/main.dart b/packages/package_info_plus/package_info_plus_aurora/example/lib/main.dart deleted file mode 100644 index 230fa54..0000000 --- a/packages/package_info_plus/package_info_plus_aurora/example/lib/main.dart +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -import 'package:flutter/material.dart'; -import 'dart:async'; - -import 'package:package_info_plus/package_info_plus.dart'; - -void main() { - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({super.key}); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - String? _error; - String? _appName; - String? _packageName; - - @override - void initState() { - super.initState(); - initPlatformState(); - } - - Future initPlatformState() async { - try { - PackageInfo packageInfo = await PackageInfo.fromPlatform(); - - String appName = packageInfo.appName; - String packageName = packageInfo.packageName; - - // Update state variable - setState(() { - _appName = appName; - _packageName = packageName; - }); - } on Exception catch (e) { - setState(() { - _error = e.toString(); - }); - } - } - - @override - Widget build(BuildContext context) { - const textStyleWhite = TextStyle(fontSize: 18, color: Colors.white); - const textStyleTitle = TextStyle(fontSize: 20, color: Colors.black); - const textStylePath = TextStyle(fontSize: 18, color: Colors.black54); - - const spaceMedium = SizedBox(height: 20); - const spaceSmall = SizedBox(height: 10); - - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Example package_info_plus'), - ), - body: Stack( - children: [ - // Error message - Visibility( - visible: _error != null, - child: Center( - child: Padding( - padding: const EdgeInsets.all(16), - child: Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.redAccent, - borderRadius: BorderRadius.all(Radius.circular(10.0)), - ), - child: Text( - _error ?? '', - style: textStyleWhite, - ), - ), - ), - ), - ), - // List directories path - Visibility( - visible: _error == null, - child: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.all(16), - child: Center( - child: Column( - children: [ - // Info - Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.green, - borderRadius: - BorderRadius.all(Radius.circular(10.0)), - ), - child: const Text( - 'Demo application demonstration implementation of package_info_plus', - style: textStyleWhite, - textAlign: TextAlign.center, - ), - ), - const SizedBox(height: 30), - - const Text( - 'Application Name', - style: textStyleTitle, - ), - spaceSmall, - Text( - _appName ?? 'Not found.', - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Package Name', - style: textStyleTitle, - ), - spaceSmall, - Text( - _packageName ?? 'Not found.', - style: textStylePath, - ), - ], - ), - ), - ), - ), - ), - ], - ), - ), - ); - } -} diff --git a/packages/package_info_plus/package_info_plus_aurora/example/pubspec.lock b/packages/package_info_plus/package_info_plus_aurora/example/pubspec.lock deleted file mode 100644 index ae7b03e..0000000 --- a/packages/package_info_plus/package_info_plus_aurora/example/pubspec.lock +++ /dev/null @@ -1,236 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.9.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - clock: - dependency: transitive - description: - name: clock - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.16.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - fake_async: - dependency: transitive - description: - name: fake_async - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.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" - http: - dependency: transitive - description: - name: http - url: "https://pub.dartlang.org" - source: hosted - version: "0.13.5" - http_parser: - dependency: transitive - description: - name: http_parser - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.2" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.4" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.12" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.5" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - package_info_plus: - dependency: "direct main" - description: - name: package_info_plus - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.2" - package_info_plus_aurora: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" - package_info_plus_platform_interface: - dependency: transitive - description: - name: package_info_plus_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.2" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.12" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.2" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.2" - win32: - dependency: transitive - description: - name: win32 - url: "https://pub.dartlang.org" - source: hosted - version: "4.1.4" -sdks: - dart: ">=2.18.6 <3.0.0" - flutter: ">=3.0.0" diff --git a/packages/package_info_plus/package_info_plus_aurora/example/pubspec.yaml b/packages/package_info_plus/package_info_plus_aurora/example/pubspec.yaml deleted file mode 100644 index 33194e6..0000000 --- a/packages/package_info_plus/package_info_plus_aurora/example/pubspec.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -name: package_info_plus_aurora_example -description: Demonstrates how to use the package_info_plus_aurora plugin. - -publish_to: 'none' - -environment: - sdk: '>=2.18.6 <3.0.0' - -dependencies: - flutter: - sdk: flutter - package_info_plus: ^3.1.2 - package_info_plus_aurora: - path: ../ - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^2.0.0 - -flutter: - uses-material-design: true diff --git a/packages/path_provider/path_provider_aurora/data/preview.png b/packages/path_provider/path_provider_aurora/data/preview.png deleted file mode 100644 index 311649c..0000000 Binary files a/packages/path_provider/path_provider_aurora/data/preview.png and /dev/null differ diff --git a/packages/path_provider/path_provider_aurora/example/.gitignore b/packages/path_provider/path_provider_aurora/example/.gitignore deleted file mode 100644 index 3db3823..0000000 --- a/packages/path_provider/path_provider_aurora/example/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release - -# Aurora generated -/aurora/flutter diff --git a/packages/path_provider/path_provider_aurora/example/README.md b/packages/path_provider/path_provider_aurora/example/README.md deleted file mode 100644 index 54caa24..0000000 --- a/packages/path_provider/path_provider_aurora/example/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# path_provider_aurora_example - -Demonstrates how to use the path_provider_aurora plugin. - -## Build - -```shell -# Add an alias if it doesn't already exist -alias flutter-aurora=$HOME/.local/opt/flutter-sdk/bin/flutter -# Get dependencies -flutter-aurora pub get -# Run build -flutter-aurora build aurora --release # [--release|--debug|--profile] -``` - -You can collect, sign, run an example on the device with a script located in the `script/build_example.sh` -More information in `build_example.sh`. - -### Preview example - -![preview.png](../data/preview.png) diff --git a/packages/path_provider/path_provider_aurora/example/analysis_options.yaml b/packages/path_provider/path_provider_aurora/example/analysis_options.yaml deleted file mode 100644 index 566c597..0000000 --- a/packages/path_provider/path_provider_aurora/example/analysis_options.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -include: package:flutter_lints/flutter.yaml diff --git a/packages/path_provider/path_provider_aurora/example/aurora/.gitignore b/packages/path_provider/path_provider_aurora/example/aurora/.gitignore deleted file mode 100644 index d3896c9..0000000 --- a/packages/path_provider/path_provider_aurora/example/aurora/.gitignore +++ /dev/null @@ -1 +0,0 @@ -flutter/ephemeral diff --git a/packages/path_provider/path_provider_aurora/example/aurora/CMakeLists.txt b/packages/path_provider/path_provider_aurora/example/aurora/CMakeLists.txt deleted file mode 100644 index 90a772f..0000000 --- a/packages/path_provider/path_provider_aurora/example/aurora/CMakeLists.txt +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -cmake_minimum_required(VERSION 3.10) -project(com.example.path_provider_aurora_example LANGUAGES CXX) - -include(GNUInstallDirs) - -set(BINARY_NAME ${CMAKE_PROJECT_NAME}) -set(FLUTTER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/flutter) - -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -set(CMAKE_CXX_FLAGS "-Wall -Wextra") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") - -set(CMAKE_SKIP_RPATH OFF) -set(CMAKE_INSTALL_RPATH "\$ORIGIN/../share/${BINARY_NAME}/lib") - -find_package(PkgConfig REQUIRED) -pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder) - -add_executable(${BINARY_NAME} main.cpp ${FLUTTER_DIR}/generated_plugin_registrant.cpp) -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::FlutterEmbedder) -target_include_directories(${BINARY_NAME} PRIVATE ${FLUTTER_DIR}) - -include(flutter/generated_plugins.cmake) - -set(PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/${BINARY_NAME}) -set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/applications) -set(ICONS_INSTALL_ROOT_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor) - -add_custom_command(TARGET ${BINARY_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libflutter-embedder.so - ${PROJECT_BINARY_DIR}/bundle/lib/libflutter-embedder.so) - -install(FILES ${PROJECT_BINARY_DIR}/bundle/icudtl.dat DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/flutter_assets DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/lib DESTINATION ${PACKAGE_INSTALL_DIR}) - -install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES desktop/${BINARY_NAME}.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) - -foreach(ICONS_SIZE 86x86 108x108 128x128 172x172) - install(FILES icons/${ICONS_SIZE}.png - RENAME ${BINARY_NAME}.png - DESTINATION ${ICONS_INSTALL_ROOT_DIR}/${ICONS_SIZE}/apps/) -endforeach(ICONS_SIZE) diff --git a/packages/path_provider/path_provider_aurora/example/aurora/desktop/com.example.path_provider_aurora_example.desktop b/packages/path_provider/path_provider_aurora/example/aurora/desktop/com.example.path_provider_aurora_example.desktop deleted file mode 100644 index 69eeffc..0000000 --- a/packages/path_provider/path_provider_aurora/example/aurora/desktop/com.example.path_provider_aurora_example.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Type=Application -Name=path_provider_aurora_example -Comment=Demonstrates how to use the path_provider_aurora plugin. -Icon=com.example.path_provider_aurora_example -Exec=/usr/bin/com.example.path_provider_aurora_example -X-Nemo-Application-Type=silica-qt5 - -[X-Application] -Permissions=UserDirs -OrganizationName=com.example -ApplicationName=path_provider_aurora_example diff --git a/packages/path_provider/path_provider_aurora/example/aurora/icons/108x108.png b/packages/path_provider/path_provider_aurora/example/aurora/icons/108x108.png deleted file mode 100644 index 984893d..0000000 Binary files a/packages/path_provider/path_provider_aurora/example/aurora/icons/108x108.png and /dev/null differ diff --git a/packages/path_provider/path_provider_aurora/example/aurora/icons/128x128.png b/packages/path_provider/path_provider_aurora/example/aurora/icons/128x128.png deleted file mode 100644 index 2d552ef..0000000 Binary files a/packages/path_provider/path_provider_aurora/example/aurora/icons/128x128.png and /dev/null differ diff --git a/packages/path_provider/path_provider_aurora/example/aurora/icons/172x172.png b/packages/path_provider/path_provider_aurora/example/aurora/icons/172x172.png deleted file mode 100644 index 9dc271b..0000000 Binary files a/packages/path_provider/path_provider_aurora/example/aurora/icons/172x172.png and /dev/null differ diff --git a/packages/path_provider/path_provider_aurora/example/aurora/icons/86x86.png b/packages/path_provider/path_provider_aurora/example/aurora/icons/86x86.png deleted file mode 100644 index 5923bb1..0000000 Binary files a/packages/path_provider/path_provider_aurora/example/aurora/icons/86x86.png and /dev/null differ diff --git a/packages/path_provider/path_provider_aurora/example/aurora/main.cpp b/packages/path_provider/path_provider_aurora/example/aurora/main.cpp deleted file mode 100644 index 83f2ca8..0000000 --- a/packages/path_provider/path_provider_aurora/example/aurora/main.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -#include -#include "generated_plugin_registrant.h" - -int main(int argc, char *argv[]) { - Application::Initialize(argc, argv); - RegisterPlugins(); - Application::Launch(); - return 0; -} diff --git a/packages/path_provider/path_provider_aurora/example/aurora/rpm/com.example.path_provider_aurora_example.spec b/packages/path_provider/path_provider_aurora/example/aurora/rpm/com.example.path_provider_aurora_example.spec deleted file mode 100644 index fb1eaa6..0000000 --- a/packages/path_provider/path_provider_aurora/example/aurora/rpm/com.example.path_provider_aurora_example.spec +++ /dev/null @@ -1,31 +0,0 @@ -%global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$ -%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|appmanifest-.+|.+_platform_plugin)\\.so.*$ - -Name: com.example.path_provider_aurora_example -Summary: Demonstrates how to use the path_provider_aurora plugin. -Version: 0.1.0 -Release: 1 -License: Proprietary -Source0: %{name}-%{version}.tar.zst - -BuildRequires: cmake -BuildRequires: pkgconfig(flutter-embedder) - -%description -%{summary}. - -%prep -%autosetup - -%build -%cmake -DCMAKE_BUILD_TYPE=%{_flutter_build_type} -%make_build - -%install -%make_install - -%files -%{_bindir}/%{name} -%{_datadir}/%{name}/* -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*/apps/%{name}.png diff --git a/packages/path_provider/path_provider_aurora/example/lib/main.dart b/packages/path_provider/path_provider_aurora/example/lib/main.dart deleted file mode 100644 index 014c460..0000000 --- a/packages/path_provider/path_provider_aurora/example/lib/main.dart +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -import 'dart:io'; - -import 'package:flutter/material.dart'; -import 'package:path_provider/path_provider.dart'; -import 'package:path_provider_aurora/path_provider_aurora.dart'; - -void main() { - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({super.key}); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - String? _error; - String? _pathApplicationSupportDirectory; - String? _pathTempDirectory; - String? _pathApplicationDocumentsPath; - String? _pathDownloadsPath; - String? _pathPictures; - String? _pathMusic; - String? _pathMovies; - - @override - void initState() { - super.initState(); - loadPathDirectory(); - } - - /// Asynchronous function receiving directory paths - Future loadPathDirectory() async { - try { - // Get directories - Directory? applicationSupportDirectory = - await getApplicationSupportDirectory(); - Directory? tempDirectory = await getTemporaryDirectory(); - Directory? pathApplicationDocumentsPath = - await getApplicationDocumentsDirectory(); - Directory? pathDownloadsPath = await getDownloadsDirectory(); - List? pathPictures = - await getExternalStorageDirectories(type: StorageDirectory.pictures); - List? pathMusic = - await getExternalStorageDirectories(type: StorageDirectory.music); - List? pathMovies = - await getExternalStorageDirectories(type: StorageDirectory.movies); - - // Update state variable - setState(() { - _pathApplicationSupportDirectory = applicationSupportDirectory.path; - _pathTempDirectory = tempDirectory.path; - _pathApplicationDocumentsPath = pathApplicationDocumentsPath.path; - _pathDownloadsPath = pathDownloadsPath?.path; - _pathPictures = pathPictures?.first.path; - _pathMusic = pathMusic?.first.path; - _pathMovies = pathMovies?.first.path; - }); - } on Exception catch (e) { - setState(() { - _error = e.toString(); - }); - } - } - - @override - Widget build(BuildContext context) { - const textStyleWhite = TextStyle(fontSize: 18, color: Colors.white); - const textStyleTitle = TextStyle(fontSize: 20, color: Colors.black); - const textStylePath = TextStyle(fontSize: 18, color: Colors.black54); - - const spaceMedium = SizedBox(height: 20); - const spaceSmall = SizedBox(height: 10); - - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Example path_provider'), - ), - body: Stack( - children: [ - // Error message - Visibility( - visible: _error != null, - child: Center( - child: Padding( - padding: const EdgeInsets.all(16), - child: Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.redAccent, - borderRadius: BorderRadius.all(Radius.circular(10.0)), - ), - child: Text( - _error ?? '', - style: textStyleWhite, - ), - ), - ), - ), - ), - // List directories path - Visibility( - visible: _error == null, - child: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.all(16), - child: Center( - child: Column( - children: [ - // Info - Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.green, - borderRadius: - BorderRadius.all(Radius.circular(10.0)), - ), - child: const Text( - 'Demo application demonstration implementation of path_provider', - style: textStyleWhite, - textAlign: TextAlign.center, - ), - ), - const SizedBox(height: 30), - - // TempDirectory - const Text( - 'ApplicationSupportDirectory', - style: textStyleTitle, - ), - spaceSmall, - Text( - _pathApplicationSupportDirectory ?? 'Not found.', - style: textStylePath, - ), - - spaceMedium, - // TempDirectory - const Text( - 'TempDirectory', - style: textStyleTitle, - ), - spaceSmall, - Text( - _pathTempDirectory ?? 'Not found.', - style: textStylePath, - ), - spaceMedium, - - // ApplicationDocumentsPath - const Text( - 'ApplicationDocumentsPath', - style: textStyleTitle, - ), - spaceSmall, - Text( - _pathApplicationDocumentsPath ?? 'Not found.', - style: textStylePath, - ), - spaceMedium, - - // DownloadsPath - const Text( - 'DownloadsPath', - style: textStyleTitle, - ), - spaceSmall, - Text( - _pathDownloadsPath ?? 'Not found.', - style: textStylePath, - ), - spaceMedium, - - // Pictures - const Text( - 'Pictures', - style: textStyleTitle, - ), - spaceSmall, - Text( - _pathPictures ?? 'Not found.', - style: textStylePath, - ), - spaceMedium, - - // Music - const Text( - 'Music', - style: textStyleTitle, - ), - spaceSmall, - Text( - _pathMusic ?? 'Not found.', - style: textStylePath, - ), - spaceMedium, - - // Movies - const Text( - 'Movies', - style: textStyleTitle, - ), - spaceSmall, - Text( - _pathMovies ?? 'Not found.', - style: textStylePath, - ), - ], - ), - ), - ), - ), - ), - ], - ), - ), - ); - } -} diff --git a/packages/path_provider/path_provider_aurora/example/pubspec.lock b/packages/path_provider/path_provider_aurora/example/pubspec.lock deleted file mode 100644 index f4fd58e..0000000 --- a/packages/path_provider/path_provider_aurora/example/pubspec.lock +++ /dev/null @@ -1,320 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.9.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - clock: - dependency: transitive - description: - name: clock - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.16.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - fake_async: - dependency: transitive - description: - name: fake_async - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - file: - dependency: transitive - description: - name: file - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.4" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.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" - http: - dependency: transitive - description: - name: http - url: "https://pub.dartlang.org" - source: hosted - version: "0.13.5" - http_parser: - dependency: transitive - description: - name: http_parser - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.2" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.4" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.12" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.5" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - package_info_plus: - dependency: transitive - description: - name: package_info_plus - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.2" - package_info_plus_aurora: - dependency: transitive - description: - path: "../../../package_info_plus/package_info_plus_aurora" - relative: true - source: path - version: "0.0.1" - package_info_plus_platform_interface: - dependency: transitive - description: - name: package_info_plus_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.2" - path_provider: - dependency: "direct main" - description: - name: path_provider - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.15" - path_provider_android: - dependency: transitive - description: - name: path_provider_android - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.27" - path_provider_aurora: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" - path_provider_foundation: - dependency: transitive - description: - name: path_provider_foundation - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.3" - path_provider_linux: - dependency: transitive - description: - name: path_provider_linux - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.11" - path_provider_platform_interface: - dependency: transitive - description: - name: path_provider_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.6" - path_provider_windows: - dependency: transitive - description: - name: path_provider_windows - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.7" - platform: - dependency: transitive - description: - name: platform - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - process: - dependency: transitive - description: - name: process - url: "https://pub.dartlang.org" - source: hosted - version: "4.2.4" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.12" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.2" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.2" - win32: - dependency: transitive - description: - name: win32 - url: "https://pub.dartlang.org" - source: hosted - version: "4.1.4" - xdg_directories: - dependency: transitive - description: - name: xdg_directories - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" - xdga_directories: - dependency: transitive - description: - path: "../../../xdga_directories" - relative: true - source: path - version: "0.0.1" -sdks: - dart: ">=2.18.6 <3.0.0" - flutter: ">=3.3.0" diff --git a/packages/path_provider/path_provider_aurora/example/pubspec.yaml b/packages/path_provider/path_provider_aurora/example/pubspec.yaml deleted file mode 100644 index 648f1ef..0000000 --- a/packages/path_provider/path_provider_aurora/example/pubspec.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -name: path_provider_aurora_example -description: Demonstrates how to use the path_provider_aurora plugin. - -publish_to: 'none' - -environment: - sdk: '>=2.18.6 <3.0.0' - -dependencies: - flutter: - sdk: flutter - path_provider: ^2.0.7 - path_provider_aurora: - path: ../ - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^2.0.0 - -flutter: - uses-material-design: true diff --git a/packages/shared_preferences/shared_preferences_aurora/data/preview.png b/packages/shared_preferences/shared_preferences_aurora/data/preview.png deleted file mode 100644 index c6f0708..0000000 Binary files a/packages/shared_preferences/shared_preferences_aurora/data/preview.png and /dev/null differ diff --git a/packages/shared_preferences/shared_preferences_aurora/example/.gitignore b/packages/shared_preferences/shared_preferences_aurora/example/.gitignore deleted file mode 100644 index 3db3823..0000000 --- a/packages/shared_preferences/shared_preferences_aurora/example/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release - -# Aurora generated -/aurora/flutter diff --git a/packages/shared_preferences/shared_preferences_aurora/example/README.md b/packages/shared_preferences/shared_preferences_aurora/example/README.md deleted file mode 100644 index 7633274..0000000 --- a/packages/shared_preferences/shared_preferences_aurora/example/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# shared_preferences_aurora_example - -Demonstrates how to use the shared_preferences_aurora plugin. - -## Build - -```shell -# Add an alias if it doesn't already exist -alias flutter-aurora=$HOME/.local/opt/flutter-sdk/bin/flutter -# Get dependencies -flutter-aurora pub get -# Run build -flutter-aurora build aurora --release # [--release|--debug|--profile] -``` - -You can collect, sign, run an example on the device with a script located in the `script/build_example.sh` -More information in `build_example.sh`. - -### Preview example - -![preview.png](../data/preview.png) - diff --git a/packages/shared_preferences/shared_preferences_aurora/example/analysis_options.yaml b/packages/shared_preferences/shared_preferences_aurora/example/analysis_options.yaml deleted file mode 100644 index 1c55a5e..0000000 --- a/packages/shared_preferences/shared_preferences_aurora/example/analysis_options.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -include: package:flutter_lints/flutter.yaml \ No newline at end of file diff --git a/packages/shared_preferences/shared_preferences_aurora/example/aurora/.gitignore b/packages/shared_preferences/shared_preferences_aurora/example/aurora/.gitignore deleted file mode 100644 index d3896c9..0000000 --- a/packages/shared_preferences/shared_preferences_aurora/example/aurora/.gitignore +++ /dev/null @@ -1 +0,0 @@ -flutter/ephemeral diff --git a/packages/shared_preferences/shared_preferences_aurora/example/aurora/CMakeLists.txt b/packages/shared_preferences/shared_preferences_aurora/example/aurora/CMakeLists.txt deleted file mode 100644 index 781f9e8..0000000 --- a/packages/shared_preferences/shared_preferences_aurora/example/aurora/CMakeLists.txt +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -cmake_minimum_required(VERSION 3.10) -project(com.example.shared_preferences_aurora_example LANGUAGES CXX) - -include(GNUInstallDirs) - -set(BINARY_NAME ${CMAKE_PROJECT_NAME}) -set(FLUTTER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/flutter) - -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -set(CMAKE_CXX_FLAGS "-Wall -Wextra") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") - -set(CMAKE_SKIP_RPATH OFF) -set(CMAKE_INSTALL_RPATH "\$ORIGIN/../share/${BINARY_NAME}/lib") - -find_package(PkgConfig REQUIRED) -pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder) - -add_executable(${BINARY_NAME} main.cpp ${FLUTTER_DIR}/generated_plugin_registrant.cpp) -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::FlutterEmbedder) -target_include_directories(${BINARY_NAME} PRIVATE ${FLUTTER_DIR}) - -include(flutter/generated_plugins.cmake) - -set(PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/${BINARY_NAME}) -set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/applications) -set(ICONS_INSTALL_ROOT_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor) - -add_custom_command(TARGET ${BINARY_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libflutter-embedder.so - ${PROJECT_BINARY_DIR}/bundle/lib/libflutter-embedder.so) - -install(FILES ${PROJECT_BINARY_DIR}/bundle/icudtl.dat DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/flutter_assets DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/lib DESTINATION ${PACKAGE_INSTALL_DIR}) - -install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES desktop/${BINARY_NAME}.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) - -foreach(ICONS_SIZE 86x86 108x108 128x128 172x172) - install(FILES icons/${ICONS_SIZE}.png - RENAME ${BINARY_NAME}.png - DESTINATION ${ICONS_INSTALL_ROOT_DIR}/${ICONS_SIZE}/apps/) -endforeach(ICONS_SIZE) diff --git a/packages/shared_preferences/shared_preferences_aurora/example/aurora/desktop/com.example.shared_preferences_aurora_example.desktop b/packages/shared_preferences/shared_preferences_aurora/example/aurora/desktop/com.example.shared_preferences_aurora_example.desktop deleted file mode 100644 index ebb83d1..0000000 --- a/packages/shared_preferences/shared_preferences_aurora/example/aurora/desktop/com.example.shared_preferences_aurora_example.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Type=Application -Name=shared_preferences_aurora_example -Comment=Demonstrates how to use the shared_preferences_aurora plugin. -Icon=com.example.shared_preferences_aurora_example -Exec=/usr/bin/com.example.shared_preferences_aurora_example -X-Nemo-Application-Type=silica-qt5 - -[X-Application] -Permissions= -OrganizationName=com.example -ApplicationName=shared_preferences_aurora_example diff --git a/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/108x108.png b/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/108x108.png deleted file mode 100644 index 984893d..0000000 Binary files a/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/108x108.png and /dev/null differ diff --git a/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/128x128.png b/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/128x128.png deleted file mode 100644 index 2d552ef..0000000 Binary files a/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/128x128.png and /dev/null differ diff --git a/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/172x172.png b/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/172x172.png deleted file mode 100644 index 9dc271b..0000000 Binary files a/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/172x172.png and /dev/null differ diff --git a/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/86x86.png b/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/86x86.png deleted file mode 100644 index 5923bb1..0000000 Binary files a/packages/shared_preferences/shared_preferences_aurora/example/aurora/icons/86x86.png and /dev/null differ diff --git a/packages/shared_preferences/shared_preferences_aurora/example/aurora/main.cpp b/packages/shared_preferences/shared_preferences_aurora/example/aurora/main.cpp deleted file mode 100644 index 83f2ca8..0000000 --- a/packages/shared_preferences/shared_preferences_aurora/example/aurora/main.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -#include -#include "generated_plugin_registrant.h" - -int main(int argc, char *argv[]) { - Application::Initialize(argc, argv); - RegisterPlugins(); - Application::Launch(); - return 0; -} diff --git a/packages/shared_preferences/shared_preferences_aurora/example/aurora/rpm/com.example.shared_preferences_aurora_example.spec b/packages/shared_preferences/shared_preferences_aurora/example/aurora/rpm/com.example.shared_preferences_aurora_example.spec deleted file mode 100644 index a05f586..0000000 --- a/packages/shared_preferences/shared_preferences_aurora/example/aurora/rpm/com.example.shared_preferences_aurora_example.spec +++ /dev/null @@ -1,31 +0,0 @@ -%global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$ -%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|appmanifest-.+|.+_platform_plugin)\\.so.*$ - -Name: com.example.shared_preferences_aurora_example -Summary: Demonstrates how to use the shared_preferences_aurora plugin. -Version: 0.1.0 -Release: 1 -License: Proprietary -Source0: %{name}-%{version}.tar.zst - -BuildRequires: cmake -BuildRequires: pkgconfig(flutter-embedder) - -%description -%{summary}. - -%prep -%autosetup - -%build -%cmake -DCMAKE_BUILD_TYPE=%{_flutter_build_type} -%make_build - -%install -%make_install - -%files -%{_bindir}/%{name} -%{_datadir}/%{name}/* -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*/apps/%{name}.png diff --git a/packages/shared_preferences/shared_preferences_aurora/example/lib/main.dart b/packages/shared_preferences/shared_preferences_aurora/example/lib/main.dart deleted file mode 100644 index 2e79433..0000000 --- a/packages/shared_preferences/shared_preferences_aurora/example/lib/main.dart +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -import 'package:flutter/material.dart'; -import 'dart:async'; - -import 'package:flutter/services.dart'; -import 'package:shared_preferences/shared_preferences.dart'; - -void main() { - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({super.key}); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - int? _counter; - bool? _repeat; - double? _decimal; - String? _action; - List? _items; - String? _error; - - @override - void initState() { - super.initState(); - initPlatformState(); - } - - Future initPlatformState() async { - try { - SharedPreferences.setPrefix("my_prefix."); - - final SharedPreferences prefs = await SharedPreferences.getInstance(); - - // Save an integer value to 'counter' key. - await prefs.setInt('counter', 10); - // Save an boolean value to 'repeat' key. - await prefs.setBool('repeat', true); - // Save an double value to 'decimal' key. - await prefs.setDouble('decimal', 1.5); - // Save an String value to 'action' key. - await prefs.setString('action', 'Start'); - // Save an list of strings to 'items' key. - await prefs.setStringList('items', ['Earth', 'Moon', 'Sun']); - - // Try reading data from the 'counter' key. If it doesn't exist, returns null. - final int? counter = prefs.getInt('counter'); - // Try reading data from the 'repeat' key. If it doesn't exist, returns null. - final bool? repeat = prefs.getBool('repeat'); - // Try reading data from the 'decimal' key. If it doesn't exist, returns null. - final double? decimal = prefs.getDouble('decimal'); - // Try reading data from the 'action' key. If it doesn't exist, returns null. - final String? action = prefs.getString('action'); - // Try reading data from the 'items' key. If it doesn't exist, returns null. - final List? items = prefs.getStringList('items'); - - setState(() { - _counter = counter; - _repeat = repeat; - _decimal = decimal; - _action = action; - _items = items; - }); - } on PlatformException { - setState(() { - _error = 'Platform exception'; - }); - } - } - - @override - Widget build(BuildContext context) { - const textStyleWhite = TextStyle(fontSize: 18, color: Colors.white); - const textStyleTitle = TextStyle(fontSize: 20, color: Colors.black); - const textStylePath = TextStyle(fontSize: 18, color: Colors.black54); - - const spaceMedium = SizedBox(height: 20); - const spaceSmall = SizedBox(height: 10); - - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Example shared_preferences'), - ), - body: Stack( - children: [ - // Error message - Visibility( - visible: _error != null, - child: Center( - child: Padding( - padding: const EdgeInsets.all(16), - child: Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.redAccent, - borderRadius: BorderRadius.all(Radius.circular(10.0)), - ), - child: Text( - _error ?? '', - style: textStyleWhite, - ), - ), - ), - ), - ), - // List directories path - Visibility( - visible: _error == null, - child: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.all(16), - child: Center( - child: Column( - children: [ - // Info - Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.green, - borderRadius: - BorderRadius.all(Radius.circular(10.0)), - ), - child: const Text( - 'Demo application demonstration implementation of shared_preferences', - style: textStyleWhite, - textAlign: TextAlign.center, - ), - ), - const SizedBox(height: 30), - - const Text( - 'Counter / int', - style: textStyleTitle, - ), - spaceSmall, - Text( - _counter.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Repeat / bool', - style: textStyleTitle, - ), - spaceSmall, - Text( - _repeat.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Decimal / double', - style: textStyleTitle, - ), - spaceSmall, - Text( - _decimal.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Action / String', - style: textStyleTitle, - ), - spaceSmall, - Text( - _action.toString(), - style: textStylePath, - ), - - spaceMedium, - const Text( - 'Items / String List', - style: textStyleTitle, - ), - spaceSmall, - Text( - _items.toString(), - style: textStylePath, - ), - ], - ), - ), - ), - ), - ), - ], - ), - ), - ); - } -} diff --git a/packages/shared_preferences/shared_preferences_aurora/example/pubspec.lock b/packages/shared_preferences/shared_preferences_aurora/example/pubspec.lock deleted file mode 100644 index 3802ee9..0000000 --- a/packages/shared_preferences/shared_preferences_aurora/example/pubspec.lock +++ /dev/null @@ -1,376 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.9.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - clock: - dependency: transitive - description: - name: clock - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.16.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - fake_async: - dependency: transitive - description: - name: fake_async - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - file: - dependency: transitive - description: - name: file - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.4" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.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" - http: - dependency: transitive - description: - name: http - url: "https://pub.dartlang.org" - source: hosted - version: "0.13.5" - http_parser: - dependency: transitive - description: - name: http_parser - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.2" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.4" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.12" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.5" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - package_info_plus: - dependency: transitive - description: - name: package_info_plus - url: "https://pub.dartlang.org" - source: hosted - version: "4.0.2" - package_info_plus_aurora: - dependency: transitive - description: - path: "../../../package_info_plus/package_info_plus_aurora" - relative: true - source: path - version: "0.0.1" - package_info_plus_platform_interface: - dependency: transitive - description: - name: package_info_plus_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.2" - path_provider: - dependency: transitive - description: - name: path_provider - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.15" - path_provider_android: - dependency: transitive - description: - name: path_provider_android - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.27" - path_provider_aurora: - dependency: transitive - description: - path: "../../../path_provider/path_provider_aurora" - relative: true - source: path - version: "0.0.1" - path_provider_foundation: - dependency: transitive - description: - name: path_provider_foundation - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.3" - path_provider_linux: - dependency: transitive - description: - name: path_provider_linux - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.11" - path_provider_platform_interface: - dependency: transitive - description: - name: path_provider_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.6" - path_provider_windows: - dependency: transitive - description: - name: path_provider_windows - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.7" - platform: - dependency: transitive - description: - name: platform - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.0" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - process: - dependency: transitive - description: - name: process - url: "https://pub.dartlang.org" - source: hosted - version: "4.2.4" - shared_preferences: - dependency: "direct main" - description: - name: shared_preferences - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.2" - shared_preferences_android: - dependency: transitive - description: - name: shared_preferences_android - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - shared_preferences_aurora: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" - shared_preferences_foundation: - dependency: transitive - description: - name: shared_preferences_foundation - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.2" - shared_preferences_linux: - dependency: transitive - description: - name: shared_preferences_linux - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.0" - shared_preferences_platform_interface: - dependency: transitive - description: - name: shared_preferences_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.0" - shared_preferences_web: - dependency: transitive - description: - name: shared_preferences_web - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - shared_preferences_windows: - dependency: transitive - description: - name: shared_preferences_windows - url: "https://pub.dartlang.org" - source: hosted - version: "2.2.0" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.12" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.2" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.2" - win32: - dependency: transitive - description: - name: win32 - url: "https://pub.dartlang.org" - source: hosted - version: "4.1.4" - xdg_directories: - dependency: transitive - description: - name: xdg_directories - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.0" - xdga_directories: - dependency: transitive - description: - path: "../../../xdga_directories" - relative: true - source: path - version: "0.0.1" -sdks: - dart: ">=2.18.6 <3.0.0" - flutter: ">=3.3.0" diff --git a/packages/shared_preferences/shared_preferences_aurora/example/pubspec.yaml b/packages/shared_preferences/shared_preferences_aurora/example/pubspec.yaml deleted file mode 100644 index 17dde92..0000000 --- a/packages/shared_preferences/shared_preferences_aurora/example/pubspec.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -name: shared_preferences_aurora_example -description: Demonstrates how to use the shared_preferences_aurora plugin. - -publish_to: 'none' - -environment: - sdk: '>=2.18.6 <3.0.0' - -dependencies: - flutter: - sdk: flutter - shared_preferences: ^2.1.1 - shared_preferences_aurora: - path: ../ - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^2.0.0 - -flutter: - uses-material-design: true diff --git a/packages/wakelock/wakelock_aurora/data/preview.png b/packages/wakelock/wakelock_aurora/data/preview.png deleted file mode 100644 index 9f6ec78..0000000 Binary files a/packages/wakelock/wakelock_aurora/data/preview.png and /dev/null differ diff --git a/packages/wakelock/wakelock_aurora/example/.gitignore b/packages/wakelock/wakelock_aurora/example/.gitignore deleted file mode 100644 index 3db3823..0000000 --- a/packages/wakelock/wakelock_aurora/example/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release - -# Aurora generated -/aurora/flutter diff --git a/packages/wakelock/wakelock_aurora/example/README.md b/packages/wakelock/wakelock_aurora/example/README.md deleted file mode 100644 index 386ac6c..0000000 --- a/packages/wakelock/wakelock_aurora/example/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# wakelock_aurora_example - -Demonstrates how to use the wakelock_aurora plugin. - -## Build - -```shell -# Add an alias if it doesn't already exist -alias flutter-aurora=$HOME/.local/opt/flutter-sdk/bin/flutter -# Get dependencies -flutter-aurora pub get -# Run build -flutter-aurora build aurora --release # [--release|--debug|--profile] -``` - -You can collect, sign, run an example on the device with a script located in the `script/build_example.sh` -More information in `build_example.sh`. - -### Preview example - -![preview.png](../data/preview.png) diff --git a/packages/wakelock/wakelock_aurora/example/analysis_options.yaml b/packages/wakelock/wakelock_aurora/example/analysis_options.yaml deleted file mode 100644 index 566c597..0000000 --- a/packages/wakelock/wakelock_aurora/example/analysis_options.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -include: package:flutter_lints/flutter.yaml diff --git a/packages/wakelock/wakelock_aurora/example/aurora/.gitignore b/packages/wakelock/wakelock_aurora/example/aurora/.gitignore deleted file mode 100644 index d3896c9..0000000 --- a/packages/wakelock/wakelock_aurora/example/aurora/.gitignore +++ /dev/null @@ -1 +0,0 @@ -flutter/ephemeral diff --git a/packages/wakelock/wakelock_aurora/example/aurora/CMakeLists.txt b/packages/wakelock/wakelock_aurora/example/aurora/CMakeLists.txt deleted file mode 100644 index 4029b94..0000000 --- a/packages/wakelock/wakelock_aurora/example/aurora/CMakeLists.txt +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -cmake_minimum_required(VERSION 3.10) -project(com.example.wakelock_aurora_example LANGUAGES CXX) - -include(GNUInstallDirs) - -set(BINARY_NAME ${CMAKE_PROJECT_NAME}) -set(FLUTTER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/flutter) - -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -set(CMAKE_CXX_FLAGS "-Wall -Wextra") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") - -set(CMAKE_SKIP_RPATH OFF) -set(CMAKE_INSTALL_RPATH "\$ORIGIN/../share/${BINARY_NAME}/lib") - -find_package(PkgConfig REQUIRED) -pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder) - -add_executable(${BINARY_NAME} main.cpp ${FLUTTER_DIR}/generated_plugin_registrant.cpp) -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::FlutterEmbedder) -target_include_directories(${BINARY_NAME} PRIVATE ${FLUTTER_DIR}) - -include(flutter/generated_plugins.cmake) - -set(PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/${BINARY_NAME}) -set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/applications) -set(ICONS_INSTALL_ROOT_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor) - -add_custom_command(TARGET ${BINARY_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libflutter-embedder.so - ${PROJECT_BINARY_DIR}/bundle/lib/libflutter-embedder.so) - -install(FILES ${PROJECT_BINARY_DIR}/bundle/icudtl.dat DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/flutter_assets DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/lib DESTINATION ${PACKAGE_INSTALL_DIR}) - -install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES desktop/${BINARY_NAME}.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) - -foreach(ICONS_SIZE 86x86 108x108 128x128 172x172) - install(FILES icons/${ICONS_SIZE}.png - RENAME ${BINARY_NAME}.png - DESTINATION ${ICONS_INSTALL_ROOT_DIR}/${ICONS_SIZE}/apps/) -endforeach(ICONS_SIZE) diff --git a/packages/wakelock/wakelock_aurora/example/aurora/desktop/com.example.wakelock_aurora_example.desktop b/packages/wakelock/wakelock_aurora/example/aurora/desktop/com.example.wakelock_aurora_example.desktop deleted file mode 100644 index a2f7f06..0000000 --- a/packages/wakelock/wakelock_aurora/example/aurora/desktop/com.example.wakelock_aurora_example.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Type=Application -Name=wakelock_aurora_example -Comment=Demonstrates how to use the wakelock_aurora plugin. -Icon=com.example.wakelock_aurora_example -Exec=/usr/bin/com.example.wakelock_aurora_example -X-Nemo-Application-Type=silica-qt5 - -[X-Application] -Permissions= -OrganizationName=com.example -ApplicationName=wakelock_aurora_example diff --git a/packages/wakelock/wakelock_aurora/example/aurora/icons/108x108.png b/packages/wakelock/wakelock_aurora/example/aurora/icons/108x108.png deleted file mode 100644 index 984893d..0000000 Binary files a/packages/wakelock/wakelock_aurora/example/aurora/icons/108x108.png and /dev/null differ diff --git a/packages/wakelock/wakelock_aurora/example/aurora/icons/128x128.png b/packages/wakelock/wakelock_aurora/example/aurora/icons/128x128.png deleted file mode 100644 index 2d552ef..0000000 Binary files a/packages/wakelock/wakelock_aurora/example/aurora/icons/128x128.png and /dev/null differ diff --git a/packages/wakelock/wakelock_aurora/example/aurora/icons/172x172.png b/packages/wakelock/wakelock_aurora/example/aurora/icons/172x172.png deleted file mode 100644 index 9dc271b..0000000 Binary files a/packages/wakelock/wakelock_aurora/example/aurora/icons/172x172.png and /dev/null differ diff --git a/packages/wakelock/wakelock_aurora/example/aurora/icons/86x86.png b/packages/wakelock/wakelock_aurora/example/aurora/icons/86x86.png deleted file mode 100644 index 5923bb1..0000000 Binary files a/packages/wakelock/wakelock_aurora/example/aurora/icons/86x86.png and /dev/null differ diff --git a/packages/wakelock/wakelock_aurora/example/aurora/main.cpp b/packages/wakelock/wakelock_aurora/example/aurora/main.cpp deleted file mode 100644 index 83f2ca8..0000000 --- a/packages/wakelock/wakelock_aurora/example/aurora/main.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -#include -#include "generated_plugin_registrant.h" - -int main(int argc, char *argv[]) { - Application::Initialize(argc, argv); - RegisterPlugins(); - Application::Launch(); - return 0; -} diff --git a/packages/wakelock/wakelock_aurora/example/aurora/rpm/com.example.wakelock_aurora_example.spec b/packages/wakelock/wakelock_aurora/example/aurora/rpm/com.example.wakelock_aurora_example.spec deleted file mode 100644 index d646922..0000000 --- a/packages/wakelock/wakelock_aurora/example/aurora/rpm/com.example.wakelock_aurora_example.spec +++ /dev/null @@ -1,31 +0,0 @@ -%global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$ -%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|appmanifest-.+|.+_platform_plugin)\\.so.*$ - -Name: com.example.wakelock_aurora_example -Summary: Demonstrates how to use the wakelock_aurora plugin. -Version: 0.1.0 -Release: 1 -License: Proprietary -Source0: %{name}-%{version}.tar.zst - -BuildRequires: cmake -BuildRequires: pkgconfig(flutter-embedder) - -%description -%{summary}. - -%prep -%autosetup - -%build -%cmake -DCMAKE_BUILD_TYPE=%{_flutter_build_type} -%make_build - -%install -%make_install - -%files -%{_bindir}/%{name} -%{_datadir}/%{name}/* -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*/apps/%{name}.png diff --git a/packages/wakelock/wakelock_aurora/example/lib/main.dart b/packages/wakelock/wakelock_aurora/example/lib/main.dart deleted file mode 100644 index 182567e..0000000 --- a/packages/wakelock/wakelock_aurora/example/lib/main.dart +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -import 'dart:async'; -import 'package:flutter/material.dart'; -import 'package:wakelock/wakelock.dart'; - -void main() { - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({super.key}); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - bool _enableWakelock = false; - - @override - void initState() { - super.initState(); - } - - Future _toggleWakelock() async { - final enableWakelock = !(await Wakelock.enabled); - await Wakelock.toggle(enable: enableWakelock); - setState(() { - _enableWakelock = enableWakelock; - }); - } - - @override - Widget build(BuildContext context) { - const textStyleWhite = TextStyle(fontSize: 18, color: Colors.white); - - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Example wakelock'), - ), - body: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.all(16), - child: Center( - child: Column( - children: [ - // Info - Container( - padding: const EdgeInsets.all(20), - decoration: const BoxDecoration( - color: Colors.green, - borderRadius: BorderRadius.all(Radius.circular(10.0)), - ), - child: const Text( - 'Demo application demonstration implementation of wakelock', - style: textStyleWhite, - textAlign: TextAlign.center, - ), - ), - const SizedBox(height: 30), - - ElevatedButton( - onPressed: _toggleWakelock, - child: Text('Toggle wakelock: $_enableWakelock'), - ), - ], - ), - ), - ), - ), - ), - ); - } -} diff --git a/packages/wakelock/wakelock_aurora/example/pubspec.lock b/packages/wakelock/wakelock_aurora/example/pubspec.lock deleted file mode 100644 index 84eb5dd..0000000 --- a/packages/wakelock/wakelock_aurora/example/pubspec.lock +++ /dev/null @@ -1,264 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - args: - dependency: transitive - description: - name: args - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.1" - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.9.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - clock: - dependency: transitive - description: - name: clock - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.16.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - dbus: - dependency: transitive - description: - name: dbus - url: "https://pub.dartlang.org" - source: hosted - version: "0.7.8" - fake_async: - dependency: transitive - description: - name: fake_async - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.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" - js: - dependency: transitive - description: - name: js - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.4" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.12" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.5" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.2" - petitparser: - dependency: transitive - description: - name: petitparser - url: "https://pub.dartlang.org" - source: hosted - version: "5.1.0" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.12" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.2" - wakelock: - dependency: "direct main" - description: - name: wakelock - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.2" - wakelock_aurora: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" - wakelock_macos: - dependency: transitive - description: - name: wakelock_macos - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.0" - wakelock_platform_interface: - dependency: transitive - description: - name: wakelock_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "0.3.0" - wakelock_web: - dependency: transitive - description: - name: wakelock_web - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.0" - wakelock_windows: - dependency: transitive - description: - name: wakelock_windows - url: "https://pub.dartlang.org" - source: hosted - version: "0.2.1" - win32: - dependency: transitive - description: - name: win32 - url: "https://pub.dartlang.org" - source: hosted - version: "3.1.4" - xml: - dependency: transitive - description: - name: xml - url: "https://pub.dartlang.org" - source: hosted - version: "6.1.0" -sdks: - dart: ">=2.18.6 <3.0.0" - flutter: ">=3.0.0" diff --git a/packages/wakelock/wakelock_aurora/example/pubspec.yaml b/packages/wakelock/wakelock_aurora/example/pubspec.yaml deleted file mode 100644 index b4f684b..0000000 --- a/packages/wakelock/wakelock_aurora/example/pubspec.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -name: wakelock_aurora_example -description: Demonstrates how to use the wakelock_aurora plugin. - -publish_to: 'none' - -environment: - sdk: '>=2.18.6 <3.0.0' - -dependencies: - flutter: - sdk: flutter - wakelock: ^0.6.2 - wakelock_aurora: - path: ../ - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^2.0.0 - -flutter: - uses-material-design: true diff --git a/packages/xdga_directories/data/preview.png b/packages/xdga_directories/data/preview.png deleted file mode 100644 index 1fc2f51..0000000 Binary files a/packages/xdga_directories/data/preview.png and /dev/null differ diff --git a/packages/xdga_directories/example/.gitignore b/packages/xdga_directories/example/.gitignore deleted file mode 100644 index 3db3823..0000000 --- a/packages/xdga_directories/example/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release - -# Aurora generated -/aurora/flutter diff --git a/packages/xdga_directories/example/README.md b/packages/xdga_directories/example/README.md deleted file mode 100644 index f407146..0000000 --- a/packages/xdga_directories/example/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# xdga_directories_example - -Demonstrates how to use the xdga_directories plugin. - -## Build - -```shell -# Add an alias if it doesn't already exist -alias flutter-aurora=$HOME/.local/opt/flutter-sdk/bin/flutter -# Get dependencies -flutter-aurora pub get -# Run build -flutter-aurora build aurora --release # [--release|--debug|--profile] -``` - -You can collect, sign, run an example on the device with a script located in the `script/build_example.sh` -More information in `build_example.sh`. - -### Preview example - -![preview.png](../data/preview.png) diff --git a/packages/xdga_directories/example/analysis_options.yaml b/packages/xdga_directories/example/analysis_options.yaml deleted file mode 100644 index 566c597..0000000 --- a/packages/xdga_directories/example/analysis_options.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -include: package:flutter_lints/flutter.yaml diff --git a/packages/xdga_directories/example/aurora/.gitignore b/packages/xdga_directories/example/aurora/.gitignore deleted file mode 100644 index d3896c9..0000000 --- a/packages/xdga_directories/example/aurora/.gitignore +++ /dev/null @@ -1 +0,0 @@ -flutter/ephemeral diff --git a/packages/xdga_directories/example/aurora/CMakeLists.txt b/packages/xdga_directories/example/aurora/CMakeLists.txt deleted file mode 100644 index 0495b62..0000000 --- a/packages/xdga_directories/example/aurora/CMakeLists.txt +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -cmake_minimum_required(VERSION 3.10) -project(com.example.xdga_directories_example LANGUAGES CXX) - -include(GNUInstallDirs) - -set(BINARY_NAME ${CMAKE_PROJECT_NAME}) -set(FLUTTER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/flutter) - -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -set(CMAKE_CXX_FLAGS "-Wall -Wextra") -set(CMAKE_CXX_FLAGS_RELEASE "-O3") - -set(CMAKE_SKIP_RPATH OFF) -set(CMAKE_INSTALL_RPATH "\$ORIGIN/../share/${BINARY_NAME}/lib") - -find_package(PkgConfig REQUIRED) -find_package(Qt5 COMPONENTS Core REQUIRED) -pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder) - -add_executable(${BINARY_NAME} main.cpp ${FLUTTER_DIR}/generated_plugin_registrant.cpp) -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::FlutterEmbedder Qt5::Core) -target_include_directories(${BINARY_NAME} PRIVATE ${FLUTTER_DIR}) - -include(flutter/generated_plugins.cmake) - -set(PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/${BINARY_NAME}) -set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/applications) -set(ICONS_INSTALL_ROOT_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor) - -add_custom_command(TARGET ${BINARY_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libflutter-embedder.so - ${PROJECT_BINARY_DIR}/bundle/lib/libflutter-embedder.so) - -install(FILES ${PROJECT_BINARY_DIR}/bundle/icudtl.dat DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/flutter_assets DESTINATION ${PACKAGE_INSTALL_DIR}) -install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/lib DESTINATION ${PACKAGE_INSTALL_DIR}) - -install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES desktop/${BINARY_NAME}.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) - -foreach(ICONS_SIZE 86x86 108x108 128x128 172x172) - install(FILES icons/${ICONS_SIZE}.png - RENAME ${BINARY_NAME}.png - DESTINATION ${ICONS_INSTALL_ROOT_DIR}/${ICONS_SIZE}/apps/) -endforeach(ICONS_SIZE) diff --git a/packages/xdga_directories/example/aurora/desktop/com.example.xdga_directories_example.desktop b/packages/xdga_directories/example/aurora/desktop/com.example.xdga_directories_example.desktop deleted file mode 100644 index b025d3c..0000000 --- a/packages/xdga_directories/example/aurora/desktop/com.example.xdga_directories_example.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Type=Application -Name=xdga_directories_example -Comment=Demonstrates how to use the xdga_directories plugin. -Icon=com.example.xdga_directories_example -Exec=/usr/bin/com.example.xdga_directories_example -X-Nemo-Application-Type=silica-qt5 - -[X-Application] -Permissions= -OrganizationName=com.example -ApplicationName=xdga_directories_example diff --git a/packages/xdga_directories/example/aurora/icons/108x108.png b/packages/xdga_directories/example/aurora/icons/108x108.png deleted file mode 100644 index 984893d..0000000 Binary files a/packages/xdga_directories/example/aurora/icons/108x108.png and /dev/null differ diff --git a/packages/xdga_directories/example/aurora/icons/128x128.png b/packages/xdga_directories/example/aurora/icons/128x128.png deleted file mode 100644 index 2d552ef..0000000 Binary files a/packages/xdga_directories/example/aurora/icons/128x128.png and /dev/null differ diff --git a/packages/xdga_directories/example/aurora/icons/172x172.png b/packages/xdga_directories/example/aurora/icons/172x172.png deleted file mode 100644 index 9dc271b..0000000 Binary files a/packages/xdga_directories/example/aurora/icons/172x172.png and /dev/null differ diff --git a/packages/xdga_directories/example/aurora/icons/86x86.png b/packages/xdga_directories/example/aurora/icons/86x86.png deleted file mode 100644 index 5923bb1..0000000 Binary files a/packages/xdga_directories/example/aurora/icons/86x86.png and /dev/null differ diff --git a/packages/xdga_directories/example/aurora/main.cpp b/packages/xdga_directories/example/aurora/main.cpp deleted file mode 100644 index 83f2ca8..0000000 --- a/packages/xdga_directories/example/aurora/main.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -#include -#include "generated_plugin_registrant.h" - -int main(int argc, char *argv[]) { - Application::Initialize(argc, argv); - RegisterPlugins(); - Application::Launch(); - return 0; -} diff --git a/packages/xdga_directories/example/aurora/rpm/com.example.xdga_directories_example.spec b/packages/xdga_directories/example/aurora/rpm/com.example.xdga_directories_example.spec deleted file mode 100644 index 36130d1..0000000 --- a/packages/xdga_directories/example/aurora/rpm/com.example.xdga_directories_example.spec +++ /dev/null @@ -1,31 +0,0 @@ -%global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$ -%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|appmanifest-.+|.+_platform_plugin)\\.so.*$ - -Name: com.example.xdga_directories_example -Summary: Demonstrates how to use the xdga_directories plugin. -Version: 0.1.0 -Release: 1 -License: Proprietary -Source0: %{name}-%{version}.tar.zst - -BuildRequires: cmake -BuildRequires: pkgconfig(flutter-embedder) - -%description -%{summary}. - -%prep -%autosetup - -%build -%cmake -DCMAKE_BUILD_TYPE=%{_flutter_build_type} -%make_build - -%install -%make_install - -%files -%{_bindir}/%{name} -%{_datadir}/%{name}/* -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/*/apps/%{name}.png diff --git a/packages/xdga_directories/example/lib/main.dart b/packages/xdga_directories/example/lib/main.dart deleted file mode 100644 index 860ac8a..0000000 --- a/packages/xdga_directories/example/lib/main.dart +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright (c) 2023. Open Mobile Platform LLC. - * License: Proprietary. - */ -import 'package:flutter/material.dart'; -import 'package:xdga_directories/xdga_directories.dart' as xdga; - -void main() { - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({super.key}); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - late String appDataLocation; - late String cacheLocation; - late String documentsLocation; - late String downloadLocation; - late String musicLocation; - late String picturesLocation; - late String genericDataLocation; - late String moviesLocation; - - @override - void initState() { - super.initState(); - // Get paths - appDataLocation = xdga.getAppDataLocation(); - cacheLocation = xdga.getCacheLocation(); - documentsLocation = xdga.getDocumentsLocation(); - downloadLocation = xdga.getDownloadLocation(); - musicLocation = xdga.getMusicLocation(); - picturesLocation = xdga.getPicturesLocation(); - genericDataLocation = xdga.getGenericDataLocation(); - moviesLocation = xdga.getMoviesLocation(); - } - - @override - Widget build(BuildContext context) { - const textStyleWhite = TextStyle(fontSize: 18, color: Colors.white); - const textStyleTitle = TextStyle(fontSize: 20, color: Colors.black); - const textStylePath = TextStyle(fontSize: 18, color: Colors.black54); - - const spaceMedium = SizedBox(height: 16); - const spacerSmall = SizedBox(height: 8); - - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Example xdga_directories'), - ), - body: SingleChildScrollView( - child: Center( - child: Container( - padding: const EdgeInsets.all(10), - child: Column( - children: [ - Container( - decoration: const BoxDecoration( - color: Colors.green, - borderRadius: BorderRadius.all(Radius.circular(10.0)), - ), - child: const Padding( - padding: EdgeInsets.all(20), - child: Text( - 'Demo application demonstration use xdga_directories', - style: textStyleWhite, - ), - ), - ), - const SizedBox(height: 30), - - // getAppDataLocation - const Text( - 'getAppDataLocation()', - style: textStyleTitle, - ), - spacerSmall, - Text( - appDataLocation, - style: textStylePath, - ), - spaceMedium, - - // getCacheLocation - const Text( - 'getCacheLocation()', - style: textStyleTitle, - ), - spacerSmall, - Text( - cacheLocation, - style: textStylePath, - ), - spaceMedium, - - // getDocumentsLocation - const Text( - 'getDocumentsLocation()', - style: textStyleTitle, - ), - spacerSmall, - Text( - documentsLocation, - style: textStylePath, - ), - spaceMedium, - - // getDocumentsLocation - const Text( - 'getDownloadLocation()', - style: textStyleTitle, - ), - spacerSmall, - Text( - downloadLocation, - style: textStylePath, - ), - spaceMedium, - - // getDocumentsLocation - const Text( - 'getMusicLocation()', - style: textStyleTitle, - ), - spacerSmall, - Text( - musicLocation, - style: textStylePath, - ), - spaceMedium, - - // getDocumentsLocation - const Text( - 'getPicturesLocation()', - style: textStyleTitle, - ), - spacerSmall, - Text( - picturesLocation, - style: textStylePath, - ), - spaceMedium, - - // getDocumentsLocation - const Text( - 'getGenericDataLocation()', - style: textStyleTitle, - ), - spacerSmall, - Text( - genericDataLocation, - style: textStylePath, - ), - spaceMedium, - - // getDocumentsLocation - const Text( - 'getMoviesLocation()', - style: textStyleTitle, - ), - spacerSmall, - Text( - moviesLocation, - style: textStylePath, - ), - ], - ), - ), - ), - ), - ), - ); - } -} diff --git a/packages/xdga_directories/example/pubspec.lock b/packages/xdga_directories/example/pubspec.lock deleted file mode 100644 index 4aea8d5..0000000 --- a/packages/xdga_directories/example/pubspec.lock +++ /dev/null @@ -1,182 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - url: "https://pub.dartlang.org" - source: hosted - version: "2.9.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - characters: - dependency: transitive - description: - name: characters - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - clock: - dependency: transitive - description: - name: clock - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.16.0" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.5" - fake_async: - dependency: transitive - description: - name: fake_async - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.2" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - lints: - dependency: transitive - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" - matcher: - dependency: transitive - description: - name: matcher - url: "https://pub.dartlang.org" - source: hosted - version: "0.12.12" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.5" - meta: - dependency: transitive - description: - name: meta - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.0" - path: - dependency: transitive - description: - name: path - url: "https://pub.dartlang.org" - source: hosted - version: "1.8.2" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.4" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - url: "https://pub.dartlang.org" - source: hosted - version: "1.9.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - url: "https://pub.dartlang.org" - source: hosted - version: "1.10.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" - term_glyph: - dependency: transitive - description: - name: term_glyph - url: "https://pub.dartlang.org" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - url: "https://pub.dartlang.org" - source: hosted - version: "0.4.12" - vector_math: - dependency: transitive - description: - name: vector_math - url: "https://pub.dartlang.org" - source: hosted - version: "2.1.2" - xdga_directories: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" -sdks: - dart: ">=2.18.6 <3.0.0" - flutter: ">=3.0.0" diff --git a/packages/xdga_directories/example/pubspec.yaml b/packages/xdga_directories/example/pubspec.yaml deleted file mode 100644 index be27c0e..0000000 --- a/packages/xdga_directories/example/pubspec.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) 2023. Open Mobile Platform LLC. -# License: Proprietary. - -name: xdga_directories_example -description: Demonstrates how to use the xdga_directories plugin. - -publish_to: 'none' - -version: 1.0.0+1 - -environment: - sdk: '>=2.18.6 <3.0.0' - -dependencies: - flutter: - sdk: flutter - xdga_directories: - path: ../ - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^2.0.0 - -flutter: - uses-material-design: true