Skip to content

Mp ios: Build and run

Jørgen Svennevik Notland requested to merge mp_ios into mp

Problem:

> Task :src:compileKotlinIosSimulatorArm64 FAILED
note: Using Kotlin home directory dist/kotlinc
/Users/jq/dev/wally/src/src/commonMain/kotlin/preferences.kt:3:12: error: Expected property 'PREF_MODE_PRIVATE' has no actual declaration in module <wpw:src> for Native
/Users/jq/dev/wally/src/src/commonMain/kotlin/preferences.kt:22:12: error: Expected function 'getSharedPreferences' has no actual declaration in module <wpw:src> for Native
/Users/jq/dev/wally/src/src/commonMain/kotlin/utils.kt:5:8: error: Unresolved reference: java
/Users/jq/dev/wally/src/src/commonMain/kotlin/utils.kt:6:8: error: Unresolved reference: java
/Users/jq/dev/wally/src/src/commonMain/kotlin/utils.kt:7:8: error: Unresolved reference: java
/Users/jq/dev/wally/src/src/commonMain/kotlin/utils.kt:59:5: error: Unresolved reference: URL
/Users/jq/dev/wally/src/src/commonMain/kotlin/utils.kt:94:17: error: Unresolved reference: Thread
/Users/jq/dev/wally/src/src/commonMain/kotlin/utils.kt:123:17: error: Unresolved reference: Thread
error: Compilation finished with errors

TODO:

  • port URL.queryMap() from java to ktor
  • define PREF_MODE_PRIVATE for iOS
  • Move notInUI and syncNotInUI to androidMain/jvmUtils.kt
  • define getSharedPreferences for ios
  • Build and run for iOS simulator
Edited by Jørgen Svennevik Notland

Merge request reports