Skip to content
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

Allow use of a non-HTTPS localhost OBA server #1123

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

aaronbrethorst
Copy link
Member

I want to be able to use a locally-hosted OBA server with the OBA Android app, just like I can with the OBA iOS app. Previously, this was prevented by two issues: 1. the regex check for determining if a server was valid, and 2. the network security config policy.

This commit alters both, first by allowing valid localhost URLs and second by modifying the network security config policy.

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Apply the AndroidStyle.xml style template to your code in Android Studio.

  • Run the unit tests with gradlew connectedObaGoogleDebugAndroidTest to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them for the initial submission of the pull request. When addressing comments on a pull request, please push a new commit per comment when possible (reviewers will squash and merge using GitHub merge tool)

I want to be able to use a locally-hosted OBA server with the OBA Android app, just like I can with the OBA iOS app. Previously, this was prevented by two issues: 1. the regex check for determining if a server was valid, and 2. the network security config policy.

This commit alters both, first by allowing valid localhost URLs and second by modifying the network security config policy.
@aaronbrethorst aaronbrethorst merged commit 8d55412 into main Feb 26, 2024
2 checks passed
@aaronbrethorst aaronbrethorst deleted the localhost-development branch February 26, 2024 06:43
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.

1 participant