-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for MARQ (Gen 2) Athlete / Adventurer / Captain / Golfer/…
… Aviator, D2 Mach 1, Edge Explore 2, epix PRO Gen2 42mm, epix PRO Gen2 47mm, epix PRO Gen2 51mm, fenix 6 Pro System 5 Preview, fenix 7 PRO, fenix 7S PRO, fenix Co-Authored-By: Chuanyi <26034018+Likenttt@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
332 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,105 @@ | ||
<?xml version="1.0"?> | ||
<!-- This is a generated file. It is highly recommended that you DO NOT edit this file. --> | ||
<iq:manifest xmlns:iq="http://www.garmin.com/xml/connectiq" version="3"> | ||
<iq:application entry="GRunApp" id="330ea7d24e114df0bebf05b1dcb74788" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="datafield" version="1.0.0"> | ||
<iq:products> | ||
<iq:product id="approachs62"/> | ||
<iq:product id="d2air"/> | ||
<iq:product id="d2airx10"/> | ||
<iq:product id="d2charlie"/> | ||
<iq:product id="d2delta"/> | ||
<iq:product id="d2deltapx"/> | ||
<iq:product id="d2deltas"/> | ||
<iq:product id="descentmk1"/> | ||
<iq:product id="descentmk2"/> | ||
<iq:product id="descentmk2s"/> | ||
<iq:product id="edge1030"/> | ||
<iq:product id="edge1030bontrager"/> | ||
<iq:product id="edge1030plus"/> | ||
<iq:product id="edge130"/> | ||
<iq:product id="edge130plus"/> | ||
<iq:product id="edge520plus"/> | ||
<iq:product id="edge530"/> | ||
<iq:product id="edge820"/> | ||
<iq:product id="edge830"/> | ||
<iq:product id="edgeexplore"/> | ||
<iq:product id="enduro"/> | ||
<iq:product id="epix2"/> | ||
<iq:product id="fenix5"/> | ||
<iq:product id="fenix5plus"/> | ||
<iq:product id="fenix5s"/> | ||
<iq:product id="fenix5splus"/> | ||
<iq:product id="fenix5x"/> | ||
<iq:product id="fenix5xplus"/> | ||
<iq:product id="fenix6"/> | ||
<iq:product id="fenix6pro"/> | ||
<iq:product id="fenix6s"/> | ||
<iq:product id="fenix6spro"/> | ||
<iq:product id="fenix6xpro"/> | ||
<iq:product id="fenix7"/> | ||
<iq:product id="fenix7s"/> | ||
<iq:product id="fenix7x"/> | ||
<iq:product id="fenixchronos"/> | ||
<iq:product id="fr245"/> | ||
<iq:product id="fr245m"/> | ||
<iq:product id="fr255"/> | ||
<iq:product id="fr255m"/> | ||
<iq:product id="fr255s"/> | ||
<iq:product id="fr255sm"/> | ||
<iq:product id="fr55"/> | ||
<iq:product id="fr645"/> | ||
<iq:product id="fr645m"/> | ||
<iq:product id="fr745"/> | ||
<iq:product id="fr935"/> | ||
<iq:product id="fr945"/> | ||
<iq:product id="fr945lte"/> | ||
<iq:product id="fr955"/> | ||
<iq:product id="legacyherocaptainmarvel"/> | ||
<iq:product id="legacyherofirstavenger"/> | ||
<iq:product id="legacysagadarthvader"/> | ||
<iq:product id="legacysagarey"/> | ||
<iq:product id="marqadventurer"/> | ||
<iq:product id="marqathlete"/> | ||
<iq:product id="marqaviator"/> | ||
<iq:product id="marqcaptain"/> | ||
<iq:product id="marqcommander"/> | ||
<iq:product id="marqdriver"/> | ||
<iq:product id="marqexpedition"/> | ||
<iq:product id="marqgolfer"/> | ||
<iq:product id="oregon7xx"/> | ||
<iq:product id="rino7xx"/> | ||
<iq:product id="venu"/> | ||
<iq:product id="venu2"/> | ||
<iq:product id="venu2plus"/> | ||
<iq:product id="venu2s"/> | ||
<iq:product id="venud"/> | ||
<iq:product id="vivoactive3"/> | ||
<iq:product id="vivoactive3d"/> | ||
<iq:product id="vivoactive3m"/> | ||
<iq:product id="vivoactive3mlte"/> | ||
<iq:product id="vivoactive4"/> | ||
<iq:product id="vivoactive4s"/> | ||
</iq:products> | ||
<iq:permissions> | ||
<iq:uses-permission id="Positioning"/> | ||
<iq:uses-permission id="UserProfile"/> | ||
</iq:permissions> | ||
<iq:languages> | ||
<iq:language>eng</iq:language> | ||
</iq:languages> | ||
<iq:barrels/> | ||
</iq:application> | ||
</iq:manifest> | ||
<!-- This is a generated file. It is highly recommended that you DO NOT edit this file. --><iq:manifest xmlns:iq="http://www.garmin.com/xml/connectiq" version="3"> | ||
<iq:application entry="GRunApp" id="330ea7d24e114df0bebf05b1dcb74788" launcherIcon="@Drawables.LauncherIcon" minSdkVersion="3.0.0" name="@Strings.AppName" type="datafield" version="1.0.0"> | ||
<iq:products> | ||
<iq:product id="approachs62"/> | ||
<iq:product id="d2air"/> | ||
<iq:product id="d2airx10"/> | ||
<iq:product id="d2charlie"/> | ||
<iq:product id="d2delta"/> | ||
<iq:product id="d2deltapx"/> | ||
<iq:product id="d2deltas"/> | ||
<iq:product id="d2mach1"/> | ||
<iq:product id="descentg1"/> | ||
<iq:product id="descentmk1"/> | ||
<iq:product id="descentmk2"/> | ||
<iq:product id="descentmk2s"/> | ||
<iq:product id="edge1030"/> | ||
<iq:product id="edge1030bontrager"/> | ||
<iq:product id="edge1030plus"/> | ||
<iq:product id="edge130"/> | ||
<iq:product id="edge130plus"/> | ||
<iq:product id="edge520plus"/> | ||
<iq:product id="edge530"/> | ||
<iq:product id="edge820"/> | ||
<iq:product id="edge830"/> | ||
<iq:product id="edgeexplore"/> | ||
<iq:product id="edgeexplore2"/> | ||
<iq:product id="enduro"/> | ||
<iq:product id="epix2"/> | ||
<iq:product id="epix2pro42mm"/> | ||
<iq:product id="epix2pro47mm"/> | ||
<iq:product id="epix2pro51mm"/> | ||
<iq:product id="fenix5"/> | ||
<iq:product id="fenix5plus"/> | ||
<iq:product id="fenix5s"/> | ||
<iq:product id="fenix5splus"/> | ||
<iq:product id="fenix5x"/> | ||
<iq:product id="fenix5xplus"/> | ||
<iq:product id="fenix6"/> | ||
<iq:product id="fenix6pro"/> | ||
<iq:product id="fenix6prosystem5preview"/> | ||
<iq:product id="fenix6s"/> | ||
<iq:product id="fenix6spro"/> | ||
<iq:product id="fenix6xpro"/> | ||
<iq:product id="fenix7"/> | ||
<iq:product id="fenix7pro"/> | ||
<iq:product id="fenix7s"/> | ||
<iq:product id="fenix7spro"/> | ||
<iq:product id="fenix7x"/> | ||
<iq:product id="fenix7xpro"/> | ||
<iq:product id="fenixchronos"/> | ||
<iq:product id="fr245"/> | ||
<iq:product id="fr245m"/> | ||
<iq:product id="fr255"/> | ||
<iq:product id="fr255m"/> | ||
<iq:product id="fr255s"/> | ||
<iq:product id="fr255sm"/> | ||
<iq:product id="fr265"/> | ||
<iq:product id="fr265s"/> | ||
<iq:product id="fr55"/> | ||
<iq:product id="fr645"/> | ||
<iq:product id="fr645m"/> | ||
<iq:product id="fr745"/> | ||
<iq:product id="fr935"/> | ||
<iq:product id="fr945"/> | ||
<iq:product id="fr945lte"/> | ||
<iq:product id="fr955"/> | ||
<iq:product id="fr965"/> | ||
<iq:product id="legacyherocaptainmarvel"/> | ||
<iq:product id="legacyherofirstavenger"/> | ||
<iq:product id="legacysagadarthvader"/> | ||
<iq:product id="legacysagarey"/> | ||
<iq:product id="marq2"/> | ||
<iq:product id="marq2aviator"/> | ||
<iq:product id="marqadventurer"/> | ||
<iq:product id="marqathlete"/> | ||
<iq:product id="marqaviator"/> | ||
<iq:product id="marqcaptain"/> | ||
<iq:product id="marqcommander"/> | ||
<iq:product id="marqdriver"/> | ||
<iq:product id="marqexpedition"/> | ||
<iq:product id="marqgolfer"/> | ||
<iq:product id="oregon7xx"/> | ||
<iq:product id="rino7xx"/> | ||
<iq:product id="venu"/> | ||
<iq:product id="venu2"/> | ||
<iq:product id="venu2plus"/> | ||
<iq:product id="venu2s"/> | ||
<iq:product id="venud"/> | ||
<iq:product id="vivoactive3"/> | ||
<iq:product id="vivoactive3d"/> | ||
<iq:product id="vivoactive3m"/> | ||
<iq:product id="vivoactive3mlte"/> | ||
<iq:product id="vivoactive4"/> | ||
<iq:product id="vivoactive4s"/> | ||
</iq:products> | ||
<iq:permissions> | ||
<iq:uses-permission id="Positioning"/> | ||
<iq:uses-permission id="UserProfile"/> | ||
</iq:permissions> | ||
<iq:languages> | ||
<iq:language>eng</iq:language> | ||
</iq:languages> | ||
<iq:barrels/> | ||
</iq:application> | ||
</iq:manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using Toybox.Application; | ||
using Toybox.Graphics; | ||
|
||
|
||
class GRunApp extends Application.AppBase | ||
{ | ||
protected var gRunView; | ||
|
||
function initialize() | ||
{ | ||
//System.println("Garmin Fr265s (High Memory)"); | ||
AppBase.initialize(); | ||
gRunView = new GRunView(); | ||
} | ||
|
||
|
||
public static function getTextDimensions(dc, value, font) | ||
{ | ||
var textDimensions = dc.getTextDimensions(value, font); | ||
|
||
var yFactor = 1.65; | ||
if (font > 5) { yFactor = 1.75; } | ||
if (font < 2) { yFactor = 1.4; } | ||
textDimensions[1] = textDimensions[1] - (yFactor * dc.getFontDescent(font)) + 2; | ||
|
||
return textDimensions; | ||
} | ||
|
||
|
||
public static function getYOffset(font) | ||
{ | ||
var yOffset = 1; | ||
if (font == 0) { yOffset = -1; } | ||
|
||
return yOffset; | ||
} | ||
|
||
|
||
function onSettingsChanged() | ||
{ | ||
AppBase.onSettingsChanged(); | ||
gRunView.initializeUserData(); | ||
} | ||
|
||
|
||
function getInitialView() | ||
{ | ||
return [ gRunView ]; | ||
} | ||
} |
Oops, something went wrong.