Skip to content

Commit

Permalink
add missing devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mipapo committed Feb 5, 2025
1 parent 44530c0 commit 7817116
Show file tree
Hide file tree
Showing 11 changed files with 130 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Device/AppleIphone15Plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public function getEnum(): int

public function getName(): string
{
return 'iPhone 14 Plus';
return 'iPhone 15 Plus';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleIphone16.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class AppleIphone16 extends AbstractDevice
{
use AppleDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::APPLE_IPHONE_16;
}

public function getName(): string
{
return 'iPhone 16';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleIphone16Plus.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class AppleIphone16Plus extends AbstractDevice
{
use AppleDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::APPLE_IPHONE_16_PLUS;
}

public function getName(): string
{
return 'iPhone 16 Plus';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleIphone16Pro.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class AppleIphone16Pro extends AbstractDevice
{
use AppleDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::APPLE_IPHONE_16_PRO;
}

public function getName(): string
{
return 'iPhone 16 Pro';
}
}
27 changes: 27 additions & 0 deletions src/Device/AppleIphone16ProMax.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class AppleIphone16ProMax extends AbstractDevice
{
use AppleDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::APPLE_IPHONE_16_PRO_MAX;
}

public function getName(): string
{
return 'iPhone 16 Pro Max';
}
}
5 changes: 5 additions & 0 deletions src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,11 @@ class DeviceProfile extends AbstractEnum
public const GARMIN_INSTINCT_3_AMOLED = 700;
public const HUAMI_AMAZFIT_ACTIVE_2 = 701;
public const SUUNTO_AQUA = 702;
public const APPLE_IPHONE_16 = 703;
public const APPLE_IPHONE_16_PRO = 704;
public const APPLE_IPHONE_16_PRO_MAX = 705;
public const APPLE_IPHONE_16_PLUS = 706;

public static function getSlugs(): array
{
self::generateSlugsArray();
Expand Down
4 changes: 4 additions & 0 deletions src/Distributor/Apple.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ public function getDeviceEnumList(): array
DeviceProfile::APPLE_IPHONE_15_PRO,
DeviceProfile::APPLE_IPHONE_15_PLUS,
DeviceProfile::APPLE_IPHONE_15_PRO_MAX,
DeviceProfile::APPLE_IPHONE_16,
DeviceProfile::APPLE_IPHONE_16_PRO,
DeviceProfile::APPLE_IPHONE_16_PRO_MAX,
DeviceProfile::APPLE_IPHONE_16_PLUS,
];
}
}
2 changes: 1 addition & 1 deletion src/Distributor/Garmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public function getDeviceEnumList(): array
DeviceProfile::GARMIN_ETREX_SOLAR,
DeviceProfile::GARMIN_INSTINCT_E,
DeviceProfile::GARMIN_INSTINCT_3_SOLAR,
DeviceProfile::GARMIN_INSTINCT_3_AMOLED
DeviceProfile::GARMIN_INSTINCT_3_AMOLED,
];
}
}
2 changes: 1 addition & 1 deletion src/Distributor/Huami.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getDeviceEnumList(): array
DeviceProfile::HUAMI_AMAZFIT_G_T_S_2_MINI,
DeviceProfile::HUAMI_AMAZFIT_T_REX_PRO,
DeviceProfile::HUAMI_AMAZFIT_STRATOS_2,
DeviceProfile::HUAMI_AMAZFIT_ACTIVE_2
DeviceProfile::HUAMI_AMAZFIT_ACTIVE_2,
];
}
}
2 changes: 1 addition & 1 deletion src/Distributor/Suunto.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function getDeviceEnumList(): array
DeviceProfile::SUUNTO_5,
DeviceProfile::SUUNTO_RACE,
DeviceProfile::SUUNTO_RACE_S,
DeviceProfile::SUUNTO_AQUA
DeviceProfile::SUUNTO_AQUA,
];
}
}
9 changes: 9 additions & 0 deletions src/Mapping/DevelopmentFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ protected function getMapping()
'iPhone14,8' => DeviceProfile::APPLE_IPHONE_14_PLUS,
'iPhone15,2' => DeviceProfile::APPLE_IPHONE_14_PRO,
'iPhone15,3' => DeviceProfile::APPLE_IPHONE_14_PRO_MAX,
'iPhone15,4' => DeviceProfile::APPLE_IPHONE_15,
'iPhone15,5' => DeviceProfile::APPLE_IPHONE_15_PLUS,
'iPhone16,1' => DeviceProfile::APPLE_IPHONE_15_PRO,
'iPhone16,2' => DeviceProfile::APPLE_IPHONE_15_PRO_MAX,
'iPhone17,1' => DeviceProfile::APPLE_IPHONE_16_PRO,
'iPhone17,2' => DeviceProfile::APPLE_IPHONE_16_PRO_MAX,
'iPhone17,3' => DeviceProfile::APPLE_IPHONE_16,
'iPhone17,4' => DeviceProfile::APPLE_IPHONE_16_PLUS,

'Polar A370' => DeviceProfile::POLAR_A_370,
'Polar M400' => DeviceProfile::POLAR_M_400,
'Polar M430' => DeviceProfile::POLAR_M_430,
Expand Down

0 comments on commit 7817116

Please sign in to comment.