All Downloads are FREE. Search and download functionalities are using the official Maven repository.

iosMain.com.paoapps.fifi.api.OSConfigurationFactory.kt Maven / Gradle / Ivy

Go to download

Kotlin Multiplatform Mobile framework for optimal code sharing between iOS and Android.

There is a newer version: 0.0.31
Show newest version
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