Skip to content

Commit

Permalink
Various cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
emericg committed Jan 27, 2024
1 parent cd79f74 commit f0add5a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions assets/assets.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
<file>icons_material/duotone-format_size-24px.svg</file>
<file>icons_material/duotone-date_range-24px.svg</file>
<file>icons_material/duotone-date_clear-24px.svg</file>
<file>icons_material/duotone-info-24px.svg</file>
<file>icons_material/duotone-insert_chart-24px.svg</file>
<file>icons_material/duotone-launch-24px.svg</file>
<file>icons_material/duotone-local_drink-24px.svg</file>
Expand Down
2 changes: 2 additions & 0 deletions assets/ios/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
<string>WatchFlower connects to Bluetooth Low Energy sensors.</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>WatchFlower connects to Bluetooth Low Energy sensors.</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>UILaunchStoryboardName</key>
<string>AppLaunchScreen</string>
<key>UISupportedInterfaceOrientations</key>
Expand Down
2 changes: 2 additions & 0 deletions src/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class Device: public QObject
Q_PROPERTY(bool isLight READ isLight NOTIFY sensorUpdated)
Q_PROPERTY(bool isBeacon READ isBeacon NOTIFY sensorUpdated)
Q_PROPERTY(bool isRemote READ isRemote NOTIFY sensorUpdated)
Q_PROPERTY(bool isPBP READ isPBP NOTIFY sensorUpdated)
Q_PROPERTY(bool isPGP READ isPGP NOTIFY sensorUpdated)

Q_PROPERTY(bool hasBluetoothConnection READ hasBluetoothConnection CONSTANT)
Expand Down Expand Up @@ -280,6 +281,7 @@ class Device: public QObject
bool isLight() const { return (m_deviceType == DeviceUtils::DEVICE_LIGHT); }
bool isBeacon() const { return (m_deviceType == DeviceUtils::DEVICE_BEACON); }
bool isRemote() const { return (m_deviceType == DeviceUtils::DEVICE_REMOTE); }
bool isPBP() const { return (m_deviceType == DeviceUtils::DEVICE_PBP); }
bool isPGP() const { return (m_deviceType == DeviceUtils::DEVICE_PGP); }

virtual bool hasRealTime() const { return (m_deviceCapabilities & DeviceUtils::DEVICE_REALTIME); }
Expand Down
8 changes: 5 additions & 3 deletions src/thirdparty/MobileSharing/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.20)

project(MobileSharing LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

################################################################################

Expand All @@ -23,7 +25,7 @@ set(CORE_SOURCES
SharingUtils.cpp SharingUtils.h)

# OS specific sources & dependencies
if(ANDROID)
if (ANDROID)
if(QT_DEFAULT_MAJOR_VERSION EQUAL 6)
set(PLATFORM_SOURCES
SharingUtils_android_qt6.cpp
Expand All @@ -39,7 +41,7 @@ if(ANDROID)
set(PLATFORM_LIBRARIES Qt::AndroidExtras)
endif()

elseif(IOS)
elseif (IOS)
find_package(Qt${QT_DEFAULT_MAJOR_VERSION} REQUIRED COMPONENTS Quick)
set(PLATFORM_LIBRARIES Qt::Quick)
set(PLATFORM_SOURCES
Expand Down
4 changes: 2 additions & 2 deletions src/thirdparty/MobileSharing/MobileSharing.pri
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ android {
ios {
LIBS += -framework UIKit

OBJECTIVE_SOURCES += $${PWD}/SharingUtils_ios.mm \
$${PWD}/docviewcontroller_ios.mm
SOURCES += $${PWD}/SharingUtils_ios.mm \
$${PWD}/docviewcontroller_ios.mm

HEADERS += $${PWD}/SharingUtils_ios.h \
$${PWD}/docviewcontroller_ios.h
Expand Down
2 changes: 1 addition & 1 deletion src/thirdparty/MobileUI/MobileUI.pri
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ android {
}
} else: ios {
LIBS += -framework UIKit
OBJECTIVE_SOURCES += $${PWD}/MobileUI_ios.mm
SOURCES += $${PWD}/MobileUI_ios.mm
} else {
SOURCES += $${PWD}/MobileUI_dummy.cpp
}

0 comments on commit f0add5a

Please sign in to comment.