Skip to content

Add fake watch setting and improve FakeLibPebble#226

Open
jmsunseri wants to merge 7 commits into
coredevices:masterfrom
jmsunseri:jmsunseri/feat/timeout-slider-improvements
Open

Add fake watch setting and improve FakeLibPebble#226
jmsunseri wants to merge 7 commits into
coredevices:masterfrom
jmsunseri:jmsunseri/feat/timeout-slider-improvements

Conversation

@jmsunseri
Copy link
Copy Markdown

@jmsunseri jmsunseri commented May 31, 2026

Allow selecting a fake watch type from debug settings to use FakeLibPebble instead of a real Bluetooth connection. Simplify FakeLibPebble by removing random data generation and adding displayName to WatchHardwarePlatform.

image image image image

Allow selecting a fake watch type from debug settings to use
FakeLibPebble instead of a real Bluetooth connection. Simplify
FakeLibPebble by removing random data generation and adding
displayName to WatchHardwarePlatform.
@jmsunseri
Copy link
Copy Markdown
Author

cc @ericmigi

@sjp4
Copy link
Copy Markdown
Member

sjp4 commented May 31, 2026

Why do you want this?

@jmsunseri
Copy link
Copy Markdown
Author

Why do you want this?

I was working on a feature that required access to the settings of a watch but I was having a lot of difficulty connecting a watch to a google phone emulator and this seemed like a very simple work around so that you could access and test features that required a connected watch without the watch really being there.

@jmsunseri
Copy link
Copy Markdown
Author

@sjp4 is there anything blocking this from going forward? i've got several things i'd like to work on and improve and this would make it so much easier to work on these things?

jmsunseri added 6 commits June 2, 2026 10:39
Use `binds` to register additional types directly on the LibPebble
singleton instead of defining separate singleites with manual casts.

For LibPebble3 resolution, replace the unsafe cast with a safe `as?`
cast and provide a clearer error message when fake watches are in use.
Move add, remove, and set active fake watch operations out of
WatchSettingsScreen and into CoreConfigHolder extension functions.
Also add a transform-based update method to CoreConfigHolder.
Simplifies the consumer hardware filter in WatchSettingsScreen
and fixes FakeLibPebble to filter by ID and watchface type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants