Andy Gibel
10/31/2019, 6:22 PMSylvain Patenaude
10/31/2019, 8:47 PMTony
11/01/2019, 1:05 PMkpgalligan
11/01/2019, 3:13 PMbod
11/01/2019, 7:29 PM// Create a Version.kt file and add it to the source set
task generateSources {
def outputDir = file("$buildDir/generated/source/kotlin")
outputs.dir outputDir
doFirst {
def outputWithPackageDir = new File(outputDir, "com/example/mylib")
outputWithPackageDir.mkdirs()
new File(outputWithPackageDir, "Version.kt").write("package com.example.mylib\ninternal const val VERSION = \"$project.version\"")
}
}
compileKotlin.dependsOn generateSources
compileKotlin.source += generateSources.outputs.files
But that doesn't work in my multiplatform module. I've tried to replace compileKotlin
by compileKotlinCommon
but doesn't work either.
Ideas?sngrekov
11/02/2019, 3:12 PMAlexander Minyaev
11/03/2019, 5:14 AMJérôme Gully
11/03/2019, 1:53 PMDmitri Sh
11/03/2019, 6:22 PMhallvard
11/03/2019, 9:41 PMDuplicate JVM class name
error from gradle when trying to build (and if I move my extension function to a file that has no expect
functions, everything is hunky dory).Konstantin Petrukhnov
11/04/2019, 6:58 AMkpgalligan
11/04/2019, 10:22 AMbod
11/04/2019, 4:17 PMimport name_of_my_lib
gives "No such module". Any idea?Tony
11/04/2019, 4:50 PMKris Wong
11/04/2019, 5:09 PMbod
11/05/2019, 10:27 AMsuspend
functions seem to be not visible from swift. I suppose this is a known limitation? Is there an official documentation about this?Sylvain Patenaude
11/05/2019, 2:27 PMSylvain Patenaude
11/05/2019, 4:22 PMframework()
}
}
Edit: If I use framework('MySDK')
, I get a gradle error Key debugFramework is missing in the map.
.etolstoy
11/05/2019, 4:27 PMxcodeproj
in your mobile MPP projects? We’re interested in three questions:
1. What changes in xcodeproj
you make on an ad hoc basis?
2. What changes you make regularly on a daily or weekly basis?
3. Are there any cases when you have to duplicate some settings both in gradle file and in xcodeproj
?
Thanks a lot in advance ❤️Sylvain Patenaude
11/05/2019, 7:31 PMrootProject.name = 'MySDK'
include 'MySDK'
enableFeaturePreview('GRADLE_METADATA')
It's based on examples, but I'm struggling to fully grasp what the rootProject.name implies (what are its effects?). Same thing for the include statement. Any documention on this somewhere?James
11/06/2019, 6:59 AMnrobi
11/06/2019, 7:12 AMFrank Feng
11/06/2019, 11:50 AMTony
11/06/2019, 7:56 PMJérôme Gully
11/06/2019, 8:06 PMJan Stoltman
11/07/2019, 10:40 AMmagnumrocha
11/07/2019, 2:06 PMKonstantin Petrukhnov
11/07/2019, 2:36 PMNikita Khlebushkin
11/07/2019, 3:31 PMNikita Khlebushkin
11/07/2019, 4:08 PMNikita Khlebushkin
11/07/2019, 4:08 PMSam
11/07/2019, 4:28 PMNSCoding
is the ObjC version of Codable
.Nikita Khlebushkin
11/07/2019, 7:17 PMSam
11/07/2019, 7:33 PMextension MyKotlinClass: Codable {}
The compiler may not be able to generate the actual code, in which case you'll need to add the methods encode(to encoder: Encoder)
and init(from decoder: Decoder)
Nikita Khlebushkin
11/07/2019, 8:11 PMDmitri Sh
11/08/2019, 1:22 AMNikita Khlebushkin
11/08/2019, 8:33 AMDmitri Sh
11/09/2019, 5:19 AMsvyatoslav.scherbina
11/11/2019, 9:11 AM