Lukáš Kúšik
12/14/2022, 10:18 AMVidmantas Kerbelis
12/14/2022, 10:59 AM.kt
files reference to the specific location.
With another I get a massive .swift
file mapping generated which does not directly jump to the .kt
file. (Not sure why though)
-
So, something’s up with how you’ve set up the project probably. (Also try Gradle -> Reload All Gradle Projects)Lukáš Kúšik
12/14/2022, 11:10 AMCollection contains no element matching the predicate.
error, but that might be a problem 😄Vidmantas Kerbelis
12/14/2022, 11:18 AMLukáš Kúšik
12/14/2022, 11:19 AMplugins {
kotlin("multiplatform")
id("com.android.application")
}
group = "me.user"
version = "1.0-SNAPSHOT"
repositories {
google()
jcenter()
}
kotlin {
android()
sourceSets {
val androidMain by getting {
dependencies {
implementation(project(":shared"))
implementation("com.google.android.material:material:1.5.0")
implementation("androidx.appcompat:appcompat:1.4.1")
implementation("androidx.constraintlayout:constraintlayout:2.1.3")
}
}
}
}
android {
compileSdkVersion(31)
defaultConfig {
applicationId = "me.user.androidApp"
minSdkVersion(24)
targetSdkVersion(31)
versionCode = 1
versionName = "1.0"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
}
}
}
Vidmantas Kerbelis
12/14/2022, 11:20 AMiosApp
? iosApp
should not need any build.gradle 🤔Lukáš Kúšik
12/14/2022, 11:21 AMVidmantas Kerbelis
12/14/2022, 11:21 AMshared/build.gradle.kts
, should look something like:
kotlin {
android()
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "shared"
isStatic = false
}
}
sourceSets {
...
}
}
Lukáš Kúšik
12/14/2022, 11:25 AMCollection contains no element matching the predicate.
I guess I'll create an issue on YouTrackVidmantas Kerbelis
12/14/2022, 11:34 AMNew Project -> Kotlin Multiplatform Mobile: Gradle
,
I created a new project using this on my machine and actually… It works just fine 🤔
AppCode 2022.2.5,
Kotlin Multiplatform Mobile for AppCode Plugin used to generate the project 222.4459.24Vidmantas Kerbelis
12/14/2022, 11:35 AMLukáš Kúšik
12/14/2022, 11:35 AMVidmantas Kerbelis
12/14/2022, 11:35 AMjava version “11.0.12” 2021-07-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.12+8-LTS-237)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.12+8-LTS-237, mixed mode)
Vidmantas Kerbelis
12/14/2022, 11:37 AMVidmantas Kerbelis
12/14/2022, 11:38 AMLukáš Kúšik
12/14/2022, 11:39 AMCiaran Sloan
12/14/2022, 12:47 PMLukáš Kúšik
12/14/2022, 7:30 PMmbonnin
12/14/2022, 7:34 PMCiaran Sloan
12/14/2022, 7:35 PMLukáš Kúšik
12/15/2022, 7:54 AMLukáš Kúšik
01/17/2023, 11:52 AM