iosMain.com.paoapps.fifi.api.OSConfigurationFactory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fifi-framework Show documentation
Show all versions of fifi-framework Show documentation
Kotlin Multiplatform Mobile framework for optimal code sharing between iOS and Android.
package com.paoapps.fifi.api
import platform.Foundation.NSProcessInfo
actual class OSConfigurationFactory {
actual fun defaultConfiguration(port: String): OSConfiguration {
return OSConfiguration(
NSProcessInfo.processInfo.environment["LOCAL_IP_ADDRESS"] as? String ?: "127.0.0.1:$port"
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy