Skip to content

Commit

Permalink
Merge pull request #62 from QuasarApp/package_version_system
Browse files Browse the repository at this point in the history
Added versions into packages.
  • Loading branch information
EndrII authored May 28, 2023
2 parents 64cdc99 + 12e1165 commit 5c2657d
Show file tree
Hide file tree
Showing 49 changed files with 928 additions and 158 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (DEFINED TARGET_PLATFORM_TOOLCHAIN)
endif()

updateGitVars()
set(HEART_VERSION 1.2.${GIT_COMMIT_COUNT}.${GIT_COMMIT_HASH})
set(HEART_VERSION 1.3.${GIT_COMMIT_COUNT}.${GIT_COMMIT_HASH})

if (ANDROID OR IOS)
option(HEART_TESTS "Enable or disable tests of the heart library" OFF)
Expand Down
4 changes: 3 additions & 1 deletion HeartTests/tst_testprotockol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <bigdatatest.h>
#include <ecdsaauthtest.h>
#include <upgradedatabasetest.h>
#include <multiversiontest.h>

#define TestCase(name, testClass) \
void name() { \
Expand All @@ -39,6 +40,8 @@ private slots:
#endif

TestCase(upgradeDataBaseTest, UpgradeDataBaseTest)
TestCase(multiVersionTest, MultiVersionTest)


// END TEST CASES

Expand Down Expand Up @@ -67,7 +70,6 @@ testProtockol::testProtockol() {
}

testProtockol::~testProtockol() {
_app->exit(0);
delete _app;
}

Expand Down
8 changes: 5 additions & 3 deletions HeartTests/units/bigdatatest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define LOCAL_TEST_PORT TEST_PORT + 4

class BigPackage: public QH::PKG::AbstractData {
QH_PACKAGE(BigPackage, "BigPackage")
QH_PACKAGE("BigPackage")

public:
BigPackage(){
Expand All @@ -22,13 +22,15 @@ class BigPackage: public QH::PKG::AbstractData {

// StreamBase interface
protected:
QDataStream &fromStream(QDataStream &stream) override{
QDataStream &fromStream(QDataStream &stream) override {

stream >> data;

return stream;
};

QDataStream &toStream(QDataStream &stream) const override{
QDataStream &toStream(QDataStream &stream) const override {

stream << data;

return stream;
Expand Down
Loading

0 comments on commit 5c2657d

Please sign in to comment.