Skip to content

Commit

Permalink
wf_1.2.3 support fr165, fr165m
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbuessow committed Feb 21, 2024
1 parent 33cac7c commit 51c4109
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion GlucoseWatchFace/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
launcherIcon="@Drawables.LauncherIcon"
name="@Strings.AppName"
type="watchface"
version="1.2.2">
version="1.2.3">
<iq:products>
<iq:product id="legacyherocaptainmarvel"/>
<iq:product id="fr55"/>
Expand Down Expand Up @@ -41,6 +41,8 @@
<iq:product id="fenix7spro"/>
<iq:product id="fenix7x"/>
<iq:product id="fenix7xpro"/>
<iq:product id="fr165"/>
<iq:product id="fr165m"/>
<iq:product id="fr245"/>
<iq:product id="fr245m"/>
<iq:product id="fr255"/>
Expand Down
5 changes: 5 additions & 0 deletions GlucoseWatchFace/resources-round-390x390/layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"devices": ["venu"],
"locY": 47,
"addMinuteY": 3
},
{
"devices": ["fr165", "fr165m"],
"locX": 255,
"locY": 55
}
]
}
Expand Down
4 changes: 3 additions & 1 deletion GlucoseWatchFace/source/Time.mc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class Time extends Ui.Drawable {
Drawable.initialize(params);
addMinuteY = Util.ifNull(params.get(:addMinuteY), 0) as Number;

var device = PartNumbers.map[System.getDeviceSettings().partNumber];
var partNumber = System.getDeviceSettings().partNumber;
var device = PartNumbers.map[partNumber];
Log.i(TAG, "looking for override " + partNumber + " " + device);
var overrides = Application.loadResource(Rez.JsonData.timeOverrides) as Dictionary<String, Object>;
var deviceOverrides = overrides["deviceOverrides"] as Array;
for (var i = 0; i < deviceOverrides.size(); i++) {
Expand Down
2 changes: 2 additions & 0 deletions Shared/source/PartNumbers.mc
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,7 @@ module PartNumbers {
"006-B4375-00" => "fenix7pro",
"006-B4376-00" => "fenix7xpro",
"006-B4394-00" => "instinct2x",
"006-B4432-00" => "fr165",
"006-B4433-00" => "fr165m",
};
}}

0 comments on commit 51c4109

Please sign in to comment.