dimsuz
05/07/2020, 4:33 PMinterface Props {
fun payload(): Flow<MyPayload>
}
Last time I tried it there were problems a) with the fact that Flow<T> is a generic type b) no Flow accessible in Kotlin/Native.
If not, what's the best thing I could do to get something similar working?Janelle Fullen
05/07/2020, 5:31 PMwingchi
05/07/2020, 8:36 PMCould not initialize class com.apollographql.apollo.compiler.parser.Schema
Anyone run into something similar before?michaelsims
05/08/2020, 5:41 PMbuild.sh
that is included, or if I follow the steps in README.md
the result is the same. Attempting to build the shared Kotlin library fails during the gradle task cinteropAFNetworkingIOS
:
> Task :cinteropAFNetworkingIOS
e: /Users/me/AndroidStudioProjects/cocoapods/kotlin-library/build/classes/kotlin/iOS/main/kotlin-library-cinterop-AFNetworking.klib-build/kotlin/cocoapods/AFNetworking/AFNetworking.kt: (71, 23): Unresolved reference: UIAxis
e: /Users/me/AndroidStudioProjects/cocoapods/kotlin-library/build/classes/kotlin/iOS/main/kotlin-library-cinterop-AFNetworking.klib-build/kotlin/cocoapods/AFNetworking/AFNetworking.kt: (1988, 78): Unresolved reference: UIAxis
e: /Users/me/AndroidStudioProjects/cocoapods/kotlin-library/build/classes/kotlin/iOS/main/kotlin-library-cinterop-AFNetworking.klib-build/kotlin/cocoapods/AFNetworking/AFNetworking.kt: (2077, 70): Unresolved reference: UIAxis
I'm using CocoaPods 1.9.1, Java 1.8.0_77, Xcode 11.4.1 on OS X 10.15.4savrov
05/10/2020, 3:50 PMsavrov
05/10/2020, 4:38 PM:config
has a dependency on :utils
and buring build phase this dependency fails on Cannot choose between the following variants of project :utils:....
.
I think that the reason is in defining targets in build.gradle
files (every module have the same):
jvm('backend')
jvm('android')
So compiler does not know what to do. Neither me. =( If you have some thoughts or ideas how to solve this, please share, thank youandrewreitz
05/11/2020, 1:33 AMLuka
05/11/2020, 8:05 AMcurioustechizen
05/11/2020, 1:08 PMshared.release.xcconfig
is generated; I don't see shared.debug.xcconfig
Has anybody faced this problem before? How do I get XCode to generate .xcconfig
for all targets?jdiaz
05/11/2020, 7:27 PMexpect
class in JVM with a property path
and the extending class has a method getPath()
? (I'm talking about File
class).
I'm trying something like actual class MyFile extends <http://java.io|java.io>.File
and MyFile has a property path
.edenman
05/11/2020, 7:44 PMElizabeth Mezias
05/11/2020, 8:58 PMMustafa
05/12/2020, 1:16 PMJanelle Fullen
05/12/2020, 8:56 PMAndrei Marshalov
05/13/2020, 8:11 AMmaven-publish
to publish my multiplatphorm library to maven
repo. My publishing config looks like:
project.afterEvaluate {
publishing {
publications {
create<MavenPublication>("maven") {
groupId = projectGroup
artifactId = projectArtifactName
version = "${android.defaultConfig.versionName}"
tasks.getByName("bundle${buildType.capitalize()}Aar").outputs.files.forEach {
artifact(it)
}
}
}
repositories {
mavenLocal()
}
}
}
As a result of publishing i get several modules:
└── repository
└── com
└── example
├── lib-ios
│ ├── 1.0.0
├── lib-iossim
│ ├── 1.0.0
├── lib-macos
│ ├── 1.0.0
├── lib-metadata
│ ├── 1.0.0
└── lib
├── 1.0.0
After that i use this library in Android app as:
dependencies {
implementation("com.example:lib:1.0.0")
}
So it looks like i need to publish to maven
only Android part of my library, since i use carthage
to publish iOS part.
How can i skip all target except Android for my publication?mbonnin
05/13/2020, 2:31 PMBuildType
attribute ? Something like only publish the release
variant and only expose that to consumers ?
Right now, when a user declares a custom BuildType
in app/build.gradle.kts
, variant matching doesn't find the android lib and fallbacks to the JVMJoey
05/14/2020, 6:28 AMvanniktech
05/14/2020, 12:45 PMNSLocalizedString
within the ios target from a KMP project?Derek Ellis
05/15/2020, 1:08 AMedenman
05/15/2020, 1:56 AMticker
, the import won’t resolve (import kotlinx.coroutines.channels.ticker
)….i know it’s marked obselete but seems like it should still work for now, right?Elka
05/15/2020, 4:17 AMWITH
clause in SQLDelight? I tried to write one but it is not working
WITH removed_user AS (SELECT * FROM user WHERE isRemoved = 1);
Rostislav Utrobin
05/15/2020, 5:10 AMJoakimForslund
05/15/2020, 8:06 AMval iosx64 = iosX64("iosX64")
with the error message:
org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.iosX64(Ljava/lang/String;)Lorg/jetbrains/kotlin/gradle/plugin/mpp/KotlinNativeTargetWithSimulatorTests;
I can't figure it outbsimmons
05/15/2020, 2:47 PMtaso
05/16/2020, 7:13 AMSam
05/16/2020, 11:46 AMA
there which doesn't target any specific end-platform itself, but is acting as a "common" library which can be added into another multiplatform module B
. Module A
would make use of another multiplatform libs (stdlib, coroutines and sqldelight). It's the module B
that will target Android
and iOS
. It seems it can't be done using kotlin-multiplatform
plugin as a tooling.
1. Am I right?
2. Is there another tooling/plugin available that will allow me to configure such a "common" module?Elka
05/17/2020, 3:08 PMpo print(firstName)
Chetan Sachdeva
05/18/2020, 9:17 AMJolas
05/19/2020, 11:45 AMMustafa
05/19/2020, 4:15 PMMustafa
05/19/2020, 4:15 PMSam
05/19/2020, 7:11 PMChuck Greb
05/19/2020, 10:13 PMMustafa
05/20/2020, 12:38 PMSam
05/20/2020, 12:43 PMMustafa
05/20/2020, 12:45 PMSam
05/20/2020, 1:41 PM