egorand
06/09/2019, 2:01 AMJavaExec
task’s classpath
to the JVM variant of a multiplatform library? here’s an example:
configurations {
cli
}
dependencies {
cli "com.example:a-multiplatform-library:1.0"
}
tasks.register("myTask", JavaExec) {
classpath = configurations.cli
main = "com.example.Main"
}
egorand
06/09/2019, 2:03 AMmyTask
fails with the following output:Marc Knaup
06/10/2019, 5:30 PMError:Module 'client-ui-model_iosArm64Main' production: java.lang.IllegalStateException:already marked as dirty: old is cross compiled: false, new is cross compiled: true…/client/submodules/ui-model/sources/ios/utility/DateTimeFormatter.ios.kt
Arkadii Ivanov
06/10/2019, 8:47 PMtylerwilson
06/12/2019, 8:03 PMBhattachar
06/12/2019, 9:16 PMBhattachar
06/12/2019, 9:16 PMcafonsomota
06/14/2019, 8:50 PMUncaught Error: Error loading module ‘app’. Its dependency ‘ktor-client-core’ was not found. Please, check whether ‘ktor-client-core’ is loaded prior to ‘app’.
louiscad
06/15/2019, 3:56 PMRainer Schlonvoigt
06/20/2019, 8:02 AMRainer Schlonvoigt
06/20/2019, 8:03 AMthis::class.simpleName.toString()
worked and now it crashes because it requires 'kotlin-reflect.jar'Rainer Schlonvoigt
06/20/2019, 8:05 AMspand
06/20/2019, 8:19 AMsimpleName
ought to be there on both jvm and js. Not sure about native:
http://tiny.cc/nr4j8yJan Stoltman
06/21/2019, 8:51 AMandroid {
// android block filled with defaultConfig, buildTypes and sourceSets settings
}
targets {
fromPreset(presets.android, 'android')
}
targets['android'].compilations.create('sm_name')
But I keep getting an error: Cause: lateinit property androidVariant has not been initialized
Any ideas on what might be causing it?coletz
06/22/2019, 2:37 PMlibCommon
which has all the models and business logic for the 3 platforms, libMobile
which adds the persistance only for android/ios and then the app
module with the code specific for every platform. The js app will have project(':libCommon')
, while the android/ios apps will have project(':libMobile')
, and libMobile will have project(':libCommon')
. Is there any better approach? Thanks everyone 🙏
(ps: I'm not even sure this will work, that's just what I'm thinking about before beginning a simple project)spierce7
06/22/2019, 3:08 PMcapitalthree
06/23/2019, 10:46 AMMatej Drobnič
06/23/2019, 4:35 PMimplementation project(path: ":multiplatform-project", configuration: "jvmDefault")
, but it appears that dependency resolution breaks when I try to add both projects into same gradle projectdarkmoon_uk
06/24/2019, 11:24 AMpardom
06/24/2019, 8:46 PMkpgalligan
06/24/2019, 10:32 PMpardom
06/25/2019, 1:08 AMkieran
06/26/2019, 3:41 AMjw
06/26/2019, 3:42 AMkieran
06/26/2019, 3:46 AMkieran
06/26/2019, 3:47 AMthevery
06/26/2019, 7:11 PMSergioedcigreja
06/28/2019, 10:08 AMhttps://files.slack.com/files-pri/T09229ZC6-FKMURN490/image.png▾
https://files.slack.com/files-pri/T09229ZC6-FKMV6MUKV/image.png▾
egorand
06/29/2019, 8:40 PMcommonMain
, hence there’s no main/wire-tests.klib
artifact, is there any way to configure the MPP to ignore this?GauthierPLM
07/01/2019, 3:25 AM