Skip to content

Commit

Permalink
update to FIT SDK version 21.54
Browse files Browse the repository at this point in the history
  • Loading branch information
sportlog committed Jul 20, 2021
1 parent 47d07c5 commit 216566a
Show file tree
Hide file tree
Showing 257 changed files with 4,599 additions and 4,280 deletions.
13 changes: 12 additions & 1 deletion config/MessageGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
*/
class MessageGenerator
{
/**
* FIT-SDK Version
*/
const FIT_SDK_VERSION = '21.54';
const MESSAGE_START = "Mesg newMesg = new Mesg(";
const FIELD_START = "newMesg.SetField(new Field(";
const MESSAGE_END = "return newMesg";
Expand All @@ -40,6 +44,13 @@ class MessageGenerator
// act as classname.
const RENAMED_TYPES = ['Switch' => 'FitSwitch'];

/**
* Creates the Profile-Types (/profile/types)
*
* @param string $fileInput
* @param string $outputPath
* @return void
*/
public function writeTypes(string $fileInput, string $outputPath): void
{
$handle = fopen($fileInput, "r");
Expand Down Expand Up @@ -321,7 +332,7 @@ private function createFile(): PhpFile
->addComment("@license MIT License")
->addComment("")
->addComment("****WARNING**** This file is auto-generated! Do NOT edit.")
->addComment("Profile Version = 21.40Release");
->addComment(sprintf('Profile Version = %sRelease', self::FIT_SDK_VERSION));

return $factory;
}
Expand Down
Loading

0 comments on commit 216566a

Please sign in to comment.