Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
Big update:
Browse files Browse the repository at this point in the history
- App actually builds
- Added support for devices vivoactive 3, 3 Mercedez-Benz Edition, 3 Music, 3 Music LTE, 4, 4s
  • Loading branch information
ggoraa committed Apr 12, 2021
1 parent b2051bc commit 8ef3a0f
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 9 deletions.
3 changes: 1 addition & 2 deletions manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
<iq:product id="fenix6spro"/>
<iq:product id="fenix6xpro"/>
<iq:product id="fenixchronos"/>
<!-- <iq:product id="vivoactive3"/>
<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:product id="vivoactive_hr"/> -->
</iq:products>
<iq:permissions>
<iq:uses-permission id="Communications"/>
Expand Down
3 changes: 3 additions & 0 deletions resources-vivoactive3/drawables/drawables.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<drawables>
<bitmap id="LauncherIcon" filename="launcher_icon.png" />
</drawables>
Binary file added resources-vivoactive3/drawables/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources-vivoactive3d/drawables/drawables.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<drawables>
<bitmap id="LauncherIcon" filename="launcher_icon.png" />
</drawables>
Binary file added resources-vivoactive3d/drawables/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources-vivoactive3m/drawables/drawables.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<drawables>
<bitmap id="LauncherIcon" filename="launcher_icon.png" />
</drawables>
Binary file added resources-vivoactive3m/drawables/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources-vivoactive3mlte/drawables/drawables.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<drawables>
<bitmap id="LauncherIcon" filename="launcher_icon.png" />
</drawables>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources-vivoactive4/drawables/drawables.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<drawables>
<bitmap id="LauncherIcon" filename="launcher_icon.png" />
</drawables>
Binary file added resources-vivoactive4/drawables/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources-vivoactive4s/drawables/drawables.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<drawables>
<bitmap id="LauncherIcon" filename="launcher_icon.png" />
</drawables>
Binary file added resources-vivoactive4s/drawables/launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 3 additions & 7 deletions source/view/homeView/HomeView.mc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class HomeView extends WatchUi.View {

// Update the view
function onUpdate(dc) {
// First ubdate label drawables
// Update label drawables
cDrawables[:TimeDate].setText( // Update time
System.getClockTime().hour.format("%d") +
":" +
Expand All @@ -58,17 +58,13 @@ class HomeView extends WatchUi.View {
cDrawables[:BatteryNumber].setText(Lang.format("$1$%", [WheelData.BatteryPercentage]));
cDrawables[:TemperatureNumber].setText(Lang.format("$1$°", [WheelData.Temperature]));
cDrawables[:BottomSubtitle].setText(WheelData.BottomSubtitleText);
var currentSpeed;
var currentSpeed = 0;
if (WheelData.CurrentSpeed < 10) {
currentSpeed = WheelData.CurrentSpeed;
} else {
currentSpeed = WheelData.CurrentSpeed / 10;
}
cDrawables[:SpeedNumber].setText(currentSpeed);
// And then arc drawables
cDrawables[:SpeedArc].setText(WheelData.CurrentSpeed);
cDrawables[:BatteryArc].setText(WheelData.BatteryPercentage);
cDrawables[:TemperatureArc].setText(WheelData.Temperature);
cDrawables[:SpeedNumber].setText(currentSpeed.toString());

// Call the parent onUpdate function to redraw the layout
View.onUpdate(dc);
Expand Down

0 comments on commit 8ef3a0f

Please sign in to comment.