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

V3 bundles #5

Merged
merged 8 commits into from
Feb 20, 2016
Merged

V3 bundles #5

merged 8 commits into from
Feb 20, 2016

Conversation

brookpatten
Copy link
Collaborator

This PR contains everything I've done in "Core" for the last year or so. Sorry for the huge list, but it would take forever to split everything out in to separate PRs. I will break things out smaller for future changes. Included is processing for firmware v3 bundles (including folder structure, manifest, resource files etc), AppMessage (send/receive), App installation & launching on firmware v3, (as well as installation and launching on v2, but that's obsolete now).

There were a few pre-existing build issues in the wpf library, due to a missing file, I attempted to replace it. There are also some preexisting build issues in windows universal. It could just be that I'm using a newer visual studio than they were created with, I'm not sure.

I also started breaking things out into separate classes rather than having everything inside Pebble. I was thinking long term it might be a good goal to have this lib mimic the structure of libpebble2, that way as changes occur there it should be relatively straightforward to do corresponding changes on PebbleSharp.

Once Mono releases 4.33+ and dbus-sharp accepts the file descriptor PR I will push the mono/bluez changes as well. For the time being though they wouldn't build without some hacky weirdness.

@brookpatten
Copy link
Collaborator Author

I believe this should resolve issues #1, #2, and #4


Command = command;
//if (command == Command)
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove braces to reduce nesting. If the if-statement is not necessary, remove its comment as well.

@Keboo
Copy link
Owner

Keboo commented Feb 18, 2016

@brookpatten this is really nice work, and I really appreciate the PR.

One general comment, it appears that there are quite a bit of white space issues in the PR (things indented where they shouldn't be and vice verse). I would suggest trying to clean those up simply ot make the code more readable.

I have attached several suggestions to the PR. I saw no major issues, so these comments really are suggestions.

You have all been given contributor access to the repo, once you have reviewed my comments feel free to merge this PR. :shipit:

@brookpatten
Copy link
Collaborator Author

Good points all, I will make those changes and push it again. I knew there was going to be some carnage due to the size of the merge and how much time I spent just fiddling with things trying to get stuff working.

I need to double check, but I believe in libpebble2 blobdb and install services are specified such that you're really not supposed to have more than 1 instance, I assume because the pebble only keeps track of 1 "token" at a time, so perhaps I need to rethink those a bit, possibly at a future date.

@brookpatten
Copy link
Collaborator Author

I think that's everything, let me know if you're OK with it and I'll merge it. I have a few more changes in mind but I'll do them in the normal fashion as individual atomic PRs.

@Keboo
Copy link
Owner

Keboo commented Feb 20, 2016

Go ahead and merge it.

brookpatten added a commit that referenced this pull request Feb 20, 2016
Add Support for firmware v3 app installation, app messaging, and bundle processing.  PR #5.  Should resolve issues #2 and #4 .
@brookpatten brookpatten merged commit bb6a7f6 into master Feb 20, 2016
@Keboo Keboo deleted the v3-bundles branch February 22, 2016 19:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants