summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--controller.cxx11
m---------larva0
m---------qrtclient0
3 files changed, 6 insertions, 5 deletions
diff --git a/controller.cxx b/controller.cxx
index c4b8ca3..df10b20 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -10,16 +10,17 @@
Controller::Controller(QObject* parent) : QObject{parent}
{
#ifdef ANDROID
- QDir location{QStandardPaths::writableLocation
- (QStandardPaths::AppDataLocation)};
+ QDir location{QStandardPaths::writableLocation(QStandardPaths
+ ::AppDataLocation)};
QString path{location.absolutePath() % "/ca-certificates.crt"};
QFile file{"assets:/certs/ca-certificates.crt"};
file.copy(path);
+#endif
auto client = new RTClient::Client{"https://darapsa.co.id/rt"
- , path.toLatin1().constData()};
-#else
- auto client = new RTClient::Client{"https://darapsa.co.id/rt"};
+#ifdef ANDROID
+ , path.toLatin1().constData()
#endif
+ };
client->moveToThread(&thread);
connect(&thread, &QThread::finished, client, &QObject::deleteLater);
diff --git a/larva b/larva
-Subproject af814b7312868cbfb54ebc994a7996c81d0f967
+Subproject c09d129ea53dfc267a808dd15667453eb9177e5
diff --git a/qrtclient b/qrtclient
-Subproject cb7242bea8ea6ecf0bdb45a2654e3d24d83eb59
+Subproject 5cf059304cbae2b0af4a2a8f5ea6196fc01b158