Skip to content

Commit

Permalink
Feat: Adding writable path parameter to GeniusNode
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueaklein committed Jul 29, 2024
1 parent ad44ac3 commit 7769abc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cmake/CommonBuildParameters.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down
6 changes: 3 additions & 3 deletions src/GeniusSDK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
*/

#include "GeniusSDK.h"
#include "account/GeniusNode.hpp"
#include <memory>

std::shared_ptr<sgns::GeniusNode> 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<sgns::GeniusNode>( key, local_config );
GeniusNodeInstance = std::make_shared<sgns::GeniusNode>( DEV_CONFIG );
}

GNUS_VISIBILITY_DEFAULT GNUS_EXPORT void GeniusSDKProcess( const ImagePath_t path, const PayAmount_t amount )
Expand Down
1 change: 0 additions & 1 deletion src/GeniusSDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define _GENIUSSDK_H

#include <memory>
#include "account/GeniusNode.hpp"

#ifndef GNUS_EXPORT
#define GNUS_EXPORT extern "C"
Expand Down

0 comments on commit 7769abc

Please sign in to comment.