Browse Source

new platform (aurora) is add

master
Марков Сергей Викторович 1 year ago
parent
commit
6189c1cd58
  1. 1
      aurora/CMakeLists.txt
  2. 2
      example/aurora/flutter/generated_plugin_registrant.cpp
  3. 2
      example/aurora/flutter/generated_plugins.cmake
  4. 81
      pubspec.lock
  5. 4
      pubspec.yaml

1
aurora/CMakeLists.txt

@ -33,3 +33,4 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::FlutterEmbedder)
target_include_directories(${PLUGIN_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_compile_definitions(${PLUGIN_NAME} PRIVATE PLUGIN_IMPL)
target_compile_definitions(${PLUGIN_NAME} PUBLIC DART_SHARED_LIB)

2
example/aurora/flutter/generated_plugin_registrant.cpp

@ -5,10 +5,12 @@
// clang-format off
#include <flutter/application.h>
#include <argon2_ffi/argon2_ffi_plugin.h>
#include "generated_plugin_registrant.h"
void RegisterPlugins() {
Application::RegisterPlugins({
std::make_shared<Argon2FfiPlugin>(),
});
}

2
example/aurora/flutter/generated_plugins.cmake

@ -7,6 +7,7 @@ function(add_library TARGET)
_add_library(${TARGET} ${ARGN})
if (
"${TARGET}" MATCHES "^argon2_ffi_platform_plugin$" OR
FALSE
)
add_custom_command(TARGET ${TARGET} POST_BUILD
@ -17,6 +18,7 @@ function(add_library TARGET)
endfunction()
list(APPEND FLUTTER_PLATFORM_PLUGIN_LIST
argon2_ffi
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST

81
pubspec.lock

@ -4,10 +4,9 @@ packages:
argon2_ffi_base:
dependency: "direct main"
description:
name: argon2_ffi_base
sha256: "6e8dcdd6cf7f31287a7f7c9ab1db349b3b0ff8f87866dbb1c2582140f79d60aa"
url: "https://pub.dev"
source: hosted
path: "../argon2_ffi_base"
relative: true
source: path
version: "1.1.1"
async:
dependency: transitive
@ -75,6 +74,27 @@ packages:
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
sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
http_parser:
dependency: transitive
description:
name: http_parser
sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
url: "https://pub.dev"
source: hosted
version: "4.0.2"
logging:
dependency: transitive
description:
@ -107,6 +127,31 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.9.1"
package_info_plus:
dependency: transitive
description:
name: package_info_plus
sha256: "6ff267fcd9d48cb61c8df74a82680e8b82e940231bb5f68356672fde0397334a"
url: "https://pub.dev"
source: hosted
version: "4.1.0"
package_info_plus_aurora:
dependency: transitive
description:
path: "packages/package_info_plus/package_info_plus_aurora"
ref: master
resolved-ref: "8b769b5f6f398dc59d598060de16bd2fd9a67159"
url: "https://gitlab.com/omprussia/flutter/flutter-plugins.git"
source: git
version: "0.0.1"
package_info_plus_platform_interface:
dependency: transitive
description:
name: package_info_plus_platform_interface
sha256: "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6"
url: "https://pub.dev"
source: hosted
version: "2.0.1"
path:
dependency: transitive
description:
@ -115,6 +160,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.8.3"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
sha256: f4f88d4a900933e7267e2b353594774fc0d07fb072b47eedcd5b54e1ea3269f8
url: "https://pub.dev"
source: hosted
version: "2.1.7"
sky_engine:
dependency: transitive
description: flutter
@ -168,6 +221,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.6.0"
typed_data:
dependency: transitive
description:
name: typed_data
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
url: "https://pub.dev"
source: hosted
version: "1.3.2"
vector_math:
dependency: transitive
description:
@ -184,6 +245,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
win32:
dependency: transitive
description:
name: win32
sha256: b0f37db61ba2f2e9b7a78a1caece0052564d1bc70668156cf3a29d676fe4e574
url: "https://pub.dev"
source: hosted
version: "5.1.1"
sdks:
dart: ">=3.1.0-185.0.dev <4.0.0"
flutter: ">=1.10.0"
dart: ">=3.1.0 <4.0.0"
flutter: ">=3.3.0"

4
pubspec.yaml

@ -3,6 +3,7 @@ description: Argon2 implementation by using ffi as flutter plugin. use argon2_ff
homepage: https://github.com/authpass/argon2_ffi
repository: https://github.com/authpass/argon2_ffi
version: 1.0.0+1
publish_to: none
environment:
sdk: '>=2.12.0 <4.0.0'
@ -11,7 +12,8 @@ environment:
dependencies:
flutter:
sdk: flutter
argon2_ffi_base: ^1.1.1
argon2_ffi_base:
path: ../argon2_ffi_base
dev_dependencies:

Loading…
Cancel
Save