einar
09/26/2019, 1:06 PMNo enum constant org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType.PREPROD
. (Im using cocoapods)Sylvain Patenaude
09/26/2019, 1:45 PMadam-mcneilly
09/26/2019, 3:25 PMexpect
values in the MPP and then typealias it to the real thing? I got that idea from seeing how this post handled parcelize: <https://aakira.app/blog/2019/04/kotlin-mpp-android-parcelable-en/>
Justin
09/26/2019, 5:01 PM*.json
files into kotlin strings. My project targets JVM, JS, and iOS.
My approach was to create a common:
expect fun readFileToString(file: String) : String?
And then implement actuals in each target.
I have iOS and JVM working, but am not sure of the best way to implement the actual
in JS.
Here’s my JVM `actual`:
import java.io.File
actual fun readFileToString(file: String) : String? {
return File(file).readText(Charsets.UTF_8)
}
Anyone done something like this?
I assume I’ll use fs.fileReadSync:
but I’m not sure what I need to import to access that method?Big Chungus
09/27/2019, 7:04 AMSebastian Sellmair [JB]
09/27/2019, 11:57 AMKris Wong
09/27/2019, 1:53 PMKris Wong
09/27/2019, 5:11 PMartifactoryPublish.dependsOn assembleRelease
causes "Could not get unknown property 'assembleRelease' for root project 'FeatureModule' of type org.gradle.api.Project." this is a standard Android task. anyone know why it can't be found?kpgalligan
09/27/2019, 7:09 PMJustin
09/27/2019, 7:42 PMrusshwolf
09/29/2019, 2:48 AMfair_enough
09/29/2019, 10:30 AMbin/sh -c /Users/userxyz/Library/Developer/Xcode/DerivedData/KotlinIOS-bffkgcwzeqsxgugngfheqfvlzlki/Build/Intermediates.noindex/KotlinIOS.build/Debug-iphonesimulator/KotlinIOS.build/Script-47729E7122F480EB00B9B36B.sh
./gradlew: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
I understand it can't find gradle wrapper. I have project in /projectroot/ and iOS project in /projectroot/native/KotlinIOS
Some quick fix or hint?ribesg
09/29/2019, 12:49 PMXavier Lian
09/29/2019, 4:35 PMclass MyClass(val myParam: String = "default string")
{
fun printStuff()
{
println(myParam)
}
}
iOS:
let myClass = MyClass() //Compiler error: init() is unavailable
Justin
09/29/2019, 9:12 PMannotation class RunCount(val count: Int)
open class Testable
...and...
@RunCount(3)
class TestA: Testable { ... }
With an instance, like:
val testA = TestA()
how can I figure out which annotations it has?
For example, I tried this:
if (testA is RunCount) ...
But that doesn’t work. Any ideas?Big Chungus
09/30/2019, 5:56 AMNikky
09/30/2019, 6:55 AM@Test
on global functions ?Big Chungus
09/30/2019, 3:21 PMMiguel Fermin
10/01/2019, 2:05 AMktor
, I followed a tutorial that how to make a GET, but I feel like I'm missing something fundamental for the POST.
This is the error I'm getting: kotlin.String cannot be cast to io.ktor.client.call.HttpClientCall
any ideas or tutorial I could follow. Thanks in advance!prgrm-me
10/01/2019, 9:17 AMUnresolved reference
to various packages, like coroutines, ktor, serialization. Everything looks divine in build.gradle, dependencies are correct for each platform. Why it happens, and how to completely resolve it?Lou Morda
10/01/2019, 6:35 PMFranGSierra
10/02/2019, 11:26 AMFirebaseCore.h
is correctly generated but I need the reference of FirebaseCore/FIRLogger.h
aswell to allow my swift code to call my sharedModule methods.
Im getting this trace when the task app:cinteropLibraryNameIos
is called
Exception in thread "main" java.lang.Error: /Users/minuscorp/Documents/kotlin-native-poc/iosApp/Pods/FirebaseCore/Firebase/Core/Public/FIRConfiguration.h:19:9: fatal error: 'FirebaseCore/FIRLoggerLevel.h' file not found
Alistair Sykes
10/02/2019, 1:31 PMxcrun simctl spawn
command. I started getting an error when launching emulators - domain=com.apple.CoreSimulator.SimError, code=165
xcrun simctl spawn
after XCode 11 doesn’t run in standalone mode by default. To fix you need to add --standalone
option. This option was available since XCode 6 so should be safe to add now wherever needed. But you will only start to see this issue after upgrading to XCode 11.spierce7
10/02/2019, 7:22 PMSystem.currentTimeMillis()
. I can’t find it anywhere though. How do I do this?spierce7
10/02/2019, 8:31 PMyshrsmz
10/03/2019, 4:02 AMBig Chungus
10/03/2019, 8:29 AMassertTrue(false)
still does not fail my test runs with ./gradlew check
. Any suggestions on how to resolve this?Konstantin Petrukhnov
10/03/2019, 9:17 AMJan Stoltman
10/03/2019, 9:27 AMBig Chungus
10/03/2019, 3:03 PMBig Chungus
10/03/2019, 3:03 PMlouiscad
10/03/2019, 3:34 PMBig Chungus
10/03/2019, 3:35 PMnapperley
10/04/2019, 2:37 AMBig Chungus
10/04/2019, 5:08 AM