-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
ios: minimal set of changes for iOS app to work #9619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
OK I now managed to actually add the history properly. This now shows a ton of commits (historical changes by Simon Pickup which do not all end up in this branch). The final set of changes ('files changed') however is quite small. Let me know if something else is preferred. |
calmh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the notes below, seems fine to me.
|
Some formatting to fix it seems in setpriority_noop, as well as a test: |
|
The tests fail due to auto-generted mocks that need regenerating due to the newly exported method: |
### Purpose Wrap access to Model for users that use the syncthing Go package. See discussion: #9619 (review) ### Testing It works with the iOS app. Other than that, there are no current users of this API (to my knowledge) as Model was only exposed recently form the iOS app.
* main: (46 commits) build: use Go 1.23, require minimum 1.22 (syncthing#9651) gui, man, authors: Update docs, translations, and contributors lib/fs: Put the caseFS as the outermost layer (syncthing#9648) gui: Add Irish (ga) translation template (syncthing#9646) gui, man, authors: Update docs, translations, and contributors lib/syncthing: Add wrapper for access to model (syncthing#9627) cli: Remove `go-shlex` dependency (syncthing#9644) lib/sha256: Remove it (syncthing#9643) build: Update dependencies (syncthing#9640) Chmod -x non-executable files (fixes syncthing#9629) (syncthing#9630) gui, man, authors: Update docs, translations, and contributors all: minimal set of changes for iOS app (syncthing#9619) gui, man, authors: Update docs, translations, and contributors gui, man, authors: Update docs, translations, and contributors etc: Remove restart on suspend systemd service (ref syncthing#8448) (syncthing#9611) gui, man, authors: Update docs, translations, and contributors lib/fs: Add missing locks to fakeFile methods (fixes syncthing#9499) (syncthing#9603) lib/api: Increase test request timeout (fixes syncthing#9455) (syncthing#9602) gui, man, authors: Update docs, translations, and contributors lib/ignore: Remove unused patterns in cache (syncthing#9601) ...
Purpose
This PR contains the set of changes needed to make Syncthing work on iOS for my iOS app for Syncthing.
Most changes originate from the Mobius Sync fork. I have removed the changes from their fork that are not strictly needed for my app (i.e. their changes to the GUI and command line utilities, for instance) and squashed it all in a single commit.
In summary, the changes are:
RequestGlobalandPullerProgresspublic symbolsI would very much appreciate these changes to be (eventually) merged to mainline syncthing, as this would allow my iOS app to track the mainline source code directly and removes the need (for me at least) for maintaining a separate fork. Perhaps the Mobius folks can also benefit from this (although as noted this branch does not contain their changes to e.g. the GUI).
Testing
This branch has been tested with the iOS app and appears to work fine. The full set of MobiusSync changes has been used before with success.
Screenshots
n/a
Documentation
There should be no visible changes for users due to this set of changes.
Authorship
The AUTHORS file contains changes to add my name and Simon Pickup (@sjpickup), who as authored the Mobius changes. Due to the squashing of the changes, his commits and hence his name have disappeared from commit metadata (I couldn't figure out a way to preserve the history correctly here in Git...)