fix for master mode

This commit is contained in:
Johan Degraeve 2019-06-06 23:56:59 +02:00
parent bbd4af454d
commit 8f4d7b13e7
3 changed files with 6 additions and 6 deletions

View File

@ -1348,7 +1348,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = net.johandegraeve.beatit;
PRODUCT_BUNDLE_IDENTIFIER = net.johandegraeve.iosxdripreader;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "xdrip/Transmitter/CGMBluetoothTransmitter/G5/G5Messages/xdrip-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@ -1371,7 +1371,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = net.johandegraeve.beatit;
PRODUCT_BUNDLE_IDENTIFIER = net.johandegraeve.iosxdripreader;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "xdrip/Transmitter/CGMBluetoothTransmitter/G5/G5Messages/xdrip-Bridging-Header.h";
SWIFT_VERSION = 4.2;

View File

@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>BeatIt</string>
<string>xDrip</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0.12</string>
<string>2.0.13</string>
<key>CFBundleVersion</key>
<string>2.0.12</string>
<string>2.0.13</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSBluetoothPeripheralUsageDescription</key>

View File

@ -706,7 +706,7 @@ final class RootViewController: UIViewController {
// next action is to start or stop the sensor, can also be omitted depending on type of device - also not applicable for follower mode
if let transmitterType = UserDefaults.standard.transmitterType {
if !transmitterType.canDetectNewSensor() && !UserDefaults.standard.isMaster {
if !transmitterType.canDetectNewSensor() && UserDefaults.standard.isMaster {
// user needs to start and stop the sensor manually
if activeSensor != nil {
listOfActions[Texts_HomeView.stopSensorActionTitle] = {(UIAlertAction) in self.stopSensor()}