Skip to content

Commit

Permalink
fix localhost access
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsv committed Jan 23, 2024
1 parent b2e4ab5 commit 1141e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object HttpModule {
@BaseURL
@Provides
@Singleton
fun provideBaseURL() = "http://localhost:3000"
fun provideBaseURL() = "http://10.0.2.2:3000"

@Provides
@Singleton
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">localhost</domain>
<domain includeSubdomains="true">10.0.2.2</domain>
</domain-config>
</network-security-config>

0 comments on commit 1141e1f

Please sign in to comment.