Commit Graph

20 Commits

Author SHA1 Message Date
Zoltán Papp e98a704fe5 Replace VPNServiceRepository with ServiceAccessor pattern
VPNServiceRepository created its own service binding which caused conflicts
when unbinding - it would disconnect other components relying on the service.

Now NetworksFragmentViewModel uses ServiceAccessor from MainActivity, which
maintains a single shared service binding across all components.
2025-11-27 21:54:23 +01:00
shuuri-labs 267ace7964 Added 'TV is in beta' message to first install fragment (#113)
* Added 'TV is in beta' message to first install fragment
2025-11-27 13:58:46 +01:00
Zoltan Papp 518b3a5fcb Remove route change notification UI elements (#110)
This restores the intent of PR #105 which removed the route change
notification feature. PR #100 accidentally reintroduced these elements
due to a force push that overwrote PR #105 changes."
2025-11-26 17:44:26 +01:00
shuuri-labs 227979ce15 feat/add-android-tv-support (#100)
* feat/add-android-tv-support

Add android TV support with the following changes:
- Implement new URLOpener interface with updated open method that accepts UserCode
- Add logic to MainActivity.java to detect Android TV, adjust UI and SSO flow accordingly
- Add QRCodeDialog.java to handle QR code/user code display logic
- Updated relevant layout xml files
- Add TV banner icon

---------

Co-authored-by: Ashley Mensah <ashleymensah@Ashleys-MBP.fritz.box>
2025-11-25 16:25:20 +01:00
Zoltan Papp 92627d5ccb Wide screen fixes (#106)
- Fix the background color of the peers view in the light theme.
- Extend the background mask.
- Set a maximum width for the peers button.
- Change the shadow of the peers button in the dark theme.
2025-11-21 21:19:49 +01:00
Zoltan Papp 84b0501598 Remove unnecessary "route changed" notification (#105) 2025-11-21 19:21:49 +01:00
Diego Romar 4ea63dfb28 allow device registration with setup keys (#101) 2025-11-21 18:29:23 +01:00
Diego Romar 79cf6e6a55 allow users to select/deselect network resources (#86) 2025-11-21 14:43:56 +01:00
Diego Romar d277cf686d restart go engine on network change (#97)
* Add network change detector and listeners

* Add network toggle listener to VPNService

* Add unit tests for ConcreteNetworkChangeListener

* Rename NetworkChangeListener to NetworkAvailabilityListener

* Change EngineRunner's Set implementation

From HashSet to ConcurrentHashMap's KeySet,
which is thread-safe.

* Update submodule to the latest tag (v0.59.6)

* Add EngineRestarter to restart the Go engine

* Add LOGTAG to NetworkChangeDetector

* Add some documentation to NetworkToggleListener

* Use EngineRestarter as implementation of NetworkToggleListener

When subscribing to ConcreteNetworkAvailabilityListener

* Replace HashMap usage with ConcurrentHashMap

The availableNetworkTypes HashMap is accessed from network
callback threads without synchronization

* Wrap connectivityManager.unregisterNetworkCallback with try-catch

* Add restart runnable and timeout callback to EngineRestarter

Restart runnable is used as a debouncing mechanism to
prevent concurrent restarts
Timeout callback is to reset the isRestartInProgress flag's
value if the engine takes too long to restart

* Update git submodule reference to latest tag

* Reverse cleanup order on VPNService's onDestroy

Now it disposes of network listener components
before stopping engineRunner

* Ci tests (#99)

Add testing steps for CI

* Remove line break

---------

Co-authored-by: Zoltan Papp <zoltan.pmail@gmail.com>
2025-11-18 18:31:34 -03:00
Diego Romar 6301f77a30 Bring app to foreground after authentication (#85)
* Add onLoginSuccess implementation to CustomTabURLOpener

This will bring the app's main activity to foreground
after successful authentication

* Check isOpened is set to true on 'onLoginSuccess' callback

* Update submodule reference and URL to forked repo

Once the forked repo's PR is approved, it will be
changed back to the original URL

* Update submodule reference and URL back to main
2025-09-18 10:33:32 -03:00
nev-al 62861bf20f fix: (AdvancedFragment.java) save pre-shared key correctly (#79) 2025-09-13 15:58:22 +02:00
Diego Romar 449db69f93 Add force relay connection option (#77)
This adds a new switch control to the advanced settings so that users may opt to force usage of relay when connecting to peers.
It also warns the user that this configuration change will only be applied the next time they connect to the VPN.
2025-09-10 19:21:04 +02:00
Zoltan Papp ba2bb9d4c4 Read signing config from env vars (#76) 2025-08-28 14:40:59 +02:00
sickjuicy f6d3218060 Added Darkmode (#70) 2025-08-14 09:54:31 +02:00
Zoltan Papp 5600c35356 Check binding == null (#63) 2025-07-01 21:02:22 +02:00
Zoltan Papp 86cb38eb7c List networks (#56)
* Add networks view
* Fix route change notification
2025-06-19 15:22:32 +02:00
Viktor Liu 136fbbcdaf Add more advanced settings (#58)
* Add more advanced settings

* Add a separator
2025-06-19 09:25:27 +02:00
Zoltan Papp db153e3d4b Add rosenpass setting 2025-06-18 09:45:38 +02:00
Zoltan Papp 1878192d43 Use firebase in app submodule (#55) 2025-06-06 14:18:39 +02:00
Zoltan Papp f81f81ce6e rewrite client in Java (#54)
Rewrite the client in native Java.

There were no new features added in this change, but that's the first step in moving to a faster development cycle for NetBird client.
2025-06-05 20:37:51 +02:00