Skip to content

Feat/support android dev ips#75

Merged
moodyjmz merged 6 commits into
mainfrom
feat/support-android-dev-ips
Apr 22, 2026
Merged

Feat/support android dev ips#75
moodyjmz merged 6 commits into
mainfrom
feat/support-android-dev-ips

Conversation

@moodyjmz

@moodyjmz moodyjmz commented Apr 17, 2026

Copy link
Copy Markdown
Member

Closes #74

Testing on desktop browsers is fine. Testing on Mac + simulated iPhone is also fine. As is iPhone in Nextcloud App.

However, Android is not fine. Android maps 10.0.2.2 to localhost, this doesn't work.

We have to do two things

  1. Ensure 10.0.2.2 is allowed

  2. Set the DocumentServerUrl to something accessible on the local net as it gets set to the OO iframe

Impl:

  1. add Android dev IP to trusted and ensure that config doesn't overwrite this. (also removes a previous value there that was being overwritten)

2) As we need the actual IP, get this and also introduce a way to keep this updated - when networks change without having to pull docker all down etc - as part of make local this happens, and also adds make refresh to allow quick updates if needed. Made nicer approach using make mobile - one time docker update, then it is there

This way, everything works :)

Testing

Inside DocumentServer/develop:

docker down -v - This is remove existing EO so, you might want to do this on a version you aren't dev'ing on. One time thing.

make local - runs as normal

make mobile - uses localhost for desktop, but will also work for Android devices simulated via Android Studio (can use the IP make mobile provides, or 10.0.2.2 - the one Android Studio maps to localhost)

Switch between the two to your heart's content. Testing as appropriate.

Android maps to 10,0.2.2 needs trusting, trusted had docker incrementally assigned ip - removed 🔥. Changed the occ trusted order

Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
@moodyjmz moodyjmz self-assigned this Apr 17, 2026
@moodyjmz moodyjmz added build Build process related changes docker labels Apr 17, 2026
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
@moodyjmz moodyjmz marked this pull request as draft April 17, 2026 13:31
@moodyjmz moodyjmz marked this pull request as ready for review April 20, 2026 12:45
@moodyjmz moodyjmz marked this pull request as draft April 20, 2026 13:18
@moodyjmz moodyjmz marked this pull request as draft April 20, 2026 13:18
@moodyjmz

Copy link
Copy Markdown
Member Author

switched back to draft to test more - cache... need to stress test it

@moodyjmz

Copy link
Copy Markdown
Member Author

ah, it is the IP rotation, so behaving as expected, however I have a little think

@moodyjmz moodyjmz marked this pull request as ready for review April 20, 2026 13:42
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
@moodyjmz moodyjmz marked this pull request as draft April 21, 2026 06:26
@moodyjmz

Copy link
Copy Markdown
Member Author

Switching to draft as I don't like the make local changing. These changes should be independent of that.

Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
@moodyjmz moodyjmz marked this pull request as ready for review April 21, 2026 13:02
@moodyjmz moodyjmz merged commit e1a5441 into main Apr 22, 2026
8 checks passed
mosa-riel pushed a commit to mosacloud/eurooffice that referenced this pull request Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Build process related changes docker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Android local dev IP + more

2 participants