From 7769abc4765348566f36a2556f4e63f6314bb070 Mon Sep 17 00:00:00 2001 From: Henrique A Klein Date: Mon, 29 Jul 2024 16:49:21 -0300 Subject: [PATCH] Feat: Adding writable path parameter to GeniusNode --- cmake/CommonBuildParameters.cmake | 2 ++ src/GeniusSDK.cpp | 6 +++--- src/GeniusSDK.h | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cmake/CommonBuildParameters.cmake b/cmake/CommonBuildParameters.cmake index 2709c15..c134875 100644 --- a/cmake/CommonBuildParameters.cmake +++ b/cmake/CommonBuildParameters.cmake @@ -377,9 +377,11 @@ if(DEFINED ANDROID_ABI) endif() set(SuperGenius_DIR "${SUPERGENIUS_BUILD_DIR}/SuperGenius/lib/cmake/SuperGenius/") +set(GeniusKDF_DIR "${SUPERGENIUS_BUILD_DIR}/SuperGenius/lib/cmake/GeniusKDF/") print("SuperGenius_DIR: ${SuperGenius_DIR}") +find_package(GeniusKDF CONFIG REQUIRED) find_package(SuperGenius CONFIG REQUIRED) include_directories(${SuperGenius_INCLUDE_DIR}) diff --git a/src/GeniusSDK.cpp b/src/GeniusSDK.cpp index 7923d2f..b8a3a11 100644 --- a/src/GeniusSDK.cpp +++ b/src/GeniusSDK.cpp @@ -6,15 +6,15 @@ */ #include "GeniusSDK.h" +#include "account/GeniusNode.hpp" #include std::shared_ptr GeniusNodeInstance; -AccountKey key = "0xfeed"; -DevConfig_st local_config{ "0xdeadbeef", 0.7f }; +DevConfig_st DEV_CONFIG{ "0xdeadbeef", 0.7, 1.0, 0, "writable/path/" }; GNUS_VISIBILITY_DEFAULT GNUS_EXPORT void GeniusSDKInit() { - GeniusNodeInstance = std::make_shared( key, local_config ); + GeniusNodeInstance = std::make_shared( DEV_CONFIG ); } GNUS_VISIBILITY_DEFAULT GNUS_EXPORT void GeniusSDKProcess( const ImagePath_t path, const PayAmount_t amount ) diff --git a/src/GeniusSDK.h b/src/GeniusSDK.h index c3693c5..d33d9d3 100644 --- a/src/GeniusSDK.h +++ b/src/GeniusSDK.h @@ -8,7 +8,6 @@ #define _GENIUSSDK_H #include -#include "account/GeniusNode.hpp" #ifndef GNUS_EXPORT #define GNUS_EXPORT extern "C"