Проверка работы с ноута, запоминаем ip

This commit is contained in:
Кашин Максим 2023-12-26 11:39:24 +04:00
parent 94a3838c7c
commit 7e9322c283
4 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" /> <output url="file://$PROJECT_DIR$/out" />
</component> </component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project> </project>

View File

@ -96,4 +96,6 @@ dependencies {
androidTestImplementation("androidx.compose.ui:ui-test-junit4") androidTestImplementation("androidx.compose.ui:ui-test-junit4")
debugImplementation("androidx.compose.ui:ui-tooling") debugImplementation("androidx.compose.ui:ui-tooling")
debugImplementation("androidx.compose.ui:ui-test-manifest") debugImplementation("androidx.compose.ui:ui-test-manifest")
//
} }

View File

@ -146,7 +146,10 @@ interface MyServerService {
): RentRemote ): RentRemote
companion object { companion object {
private const val BASE_URL = "http://192.168.0.104:8079/" //Раздача с тлф
private const val BASE_URL = "http://192.168.138.47:8079/"
//Пк дома
/*private const val BASE_URL = "http://192.168.0.104:8079/"*/
//private const val BASE_URL = "http://10.0.2.2:8079/" //private const val BASE_URL = "http://10.0.2.2:8079/"
@Volatile @Volatile

View File

@ -1,7 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<network-security-config> <network-security-config>
<domain-config cleartextTrafficPermitted="true"> <domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">192.168.0.104</domain> <!--Раздача с тлф-->
<domain includeSubdomains="true">192.168.138.47</domain>
<!--Дома пк-->
<!-- <domain includeSubdomains="true">192.168.0.104</domain>-->
<!-- <domain includeSubdomains="true">10.0.2.2</domain>--> <!-- <domain includeSubdomains="true">10.0.2.2</domain>-->
</domain-config> </domain-config>
</network-security-config> </network-security-config>