Sean
12/10/2020, 3:08 AMPaul Woitaschek
12/10/2020, 8:03 AMCFBundleVersion
is always 1
.
How can I set this value?Alfred Lopez
12/10/2020, 1:08 PMHalil Ozercan
12/10/2020, 1:18 PMhttps
endpoint and it fails on MacOS app with
kotlin.IllegalStateException: TLS sessions are not supported on Native platform
Animesh Sahu
12/10/2020, 2:01 PMDiving into Kotlin Multiplatform▾
Daniele B
12/10/2020, 2:42 PMjean
12/10/2020, 3:05 PMimport cocoapods.Mixpanel.Mixpanel
actual class MixpanelFactory {
actual fun createTracker(): Tracker {
val actualMixpanel = Mixpanel("", mapOf<Any?, Any>(), 0)
return object : Tracker {
override fun sendEvent(event: Event) {
actualMixpanel.track(event.name, event.asMap() as Map<Any?, Any>)
}
}
}
}
I did add the npm dependency for the js target and tried something like this, to not avail :
@JsModule("mixpanel-browser")
external val mixpanel: Mixpanel
actual class MixpanelFactory {
actual fun createTracker(): Tracker {
val actualMixpanel = Mixpanel("")
return object : Tracker {
override fun sendEvent(event: Event) {
actualMixpanel.track(event.name, event.asMap())
}
}
}
}
// js code to use
var mixpanel = require('mixpanel-browser');
mixpanel.init("YOUR_TOKEN");
mixpanel.track("Sign up");
Alfred Lopez
12/10/2020, 3:26 PMJames Sherlock
12/10/2020, 3:31 PMld: framework not found FirebaseFirestore
(as part of the linkReleaseFrameworkIosArm64 step)
We're hoping to try and completely remove Pods but it looks like the KMM project can't build without it?
Any guidance appreciated 🙏 Thank youElyes Ben Salah
12/10/2020, 4:19 PMDaniele B
12/10/2020, 4:59 PMSrSouza
12/10/2020, 7:39 PMEduard Mayer
12/11/2020, 2:41 PMios {
binaries {
framework {
embedBitcode("bitcode")
}
}
}
to my build.gradle.kts, i get the following error:
* Where:
Build file '/Users/me/projects/shared-sdk/build.gradle.kts' line: 73
* What went wrong:
Cannot create binary debugFramework: binary with such a name already exists
which points exactly to the above snippet.
Did anybody encounter the same? As soon as i remove it, it works, but i can't archive the ios app to throw it at AppStore Connect, because the bitcode is missing.
The full build.gradle.kts
and error log is attached here at this gist:
https://gist.github.com/vsxed/3987c535cf98160a7a48b852fb9e4c64jean
12/11/2020, 4:53 PMcocoapods {
...
// only for ios target
pod("Mixpanel")
// only for tvos
pod("Mixpanel/tvOS")
}
I saw it’s possible to add a cocoapods in each target block, but that means a lot of redundant codeJavier
12/11/2020, 7:09 PMAmritansh
12/11/2020, 8:35 PMDuplicate class kotlinx.coroutines.AbstractCoroutine found in modules jetified-kotlinx-coroutines-core-1.3.5.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.5) and jetified-kotlinx-coroutines-core-jvm-1.3.9-native-mt-2.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9-native-mt-2
My android app uses following versions
const val coroutines_core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.5"
const val coroutines_android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.5"
const val coroutines_test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.5"
But my KMM library uses 1.3.9-native-mt-2
Any idea how can I resolve this?bod
12/12/2020, 4:23 PMimplementation("group", "artifact", version)
instead of implementation("group:artifact:$version")
? I could write a small fun for this of course but first checking if I'm not missing something that already exist?bod
12/12/2020, 6:15 PMandroid { kotlinOptions {
in kts (it works in regular gradle). And I need this to set jvmTarget
to 1.8. It says Unresolved reference kotlinOptions
. I verified that this syntax does work on non multiplatform android build files, with kts.Arkangel
12/12/2020, 9:21 PMandylamax
12/14/2020, 9:09 AMMikołaj Kąkol
12/14/2020, 9:42 AMshared
module that depend on (almost) all other modules. When building UniversalFramework
it's headers doesn't contain classes from submodules unless exposed in shared API. Any idea how to make all classes visible to iOS?Azur Haljeta
12/14/2020, 9:45 AMAlfred Lopez
12/14/2020, 3:35 PMarnis71
12/14/2020, 6:31 PMios()
target? I’ve found that imports for cocoapods dependencies in iosMain
do not work. Only if i specify iosArm64()
or iosX64()
target it starts working. Is it supposed to be like this? If so how can I use cocoapods dependencies for all ios targets at once?Amritansh
12/14/2020, 9:52 PMIncompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'
I am getting No matching variant when I try to add my KMM library to my android app via maven local repository.
I have added id("com.android.library")
at the top of plugin list and also added
kotlin {
android {
publishLibraryVariants("release", "debug")
}
}
I have also specified matching fall back for debug in my library's build.gradle
buildTypes {
getByName("release") {
isMinifyEnabled = false
}
getByName("debug"){
matchingFallbacks.add("release")
}
}
Any help will be appreciatedJeff Tycz
12/15/2020, 2:30 AMtravis
12/15/2020, 9:16 AM0.1.0
Features:
• :kotlin: multiplatform, currently supports :android: , :javascript: and macOS targets, with additional targets planned in the future
• Simple/unified :coroutine: Coroutines-powered API
• Persistent characteristic observations (Flow
remains active across reconnects)
• Demo/sample app
Feedback and 🐛 bug reports are appreciated/welcome.Alfred Lopez
12/15/2020, 12:40 PMShan
12/16/2020, 4:24 AMsources.jar
is not being generated for the kotlinMultiplatform
publishing target; was this change intentional does anyone know? I can still acquire a source jar with the metadataSourcesJar
and append it to my common publishing task, but not sure if this is a bug or intended.Eirik Vale Aase
12/16/2020, 12:25 PMEirik Vale Aase
12/16/2020, 12:25 PMmbonnin
12/16/2020, 12:35 PMEirik Vale Aase
12/16/2020, 12:54 PMmbonnin
12/16/2020, 12:56 PMEirik Vale Aase
12/16/2020, 12:57 PMBenjamin Charais
12/16/2020, 7:27 PM