vishal G
03/07/2022, 6:56 AMAditya Kurkure
03/07/2022, 3:05 PM(UIBackgroundFetchResult) -> void
from swift to Kotlin?
Currently the method I have written in kotlin expects a (UIKUIBackgroundFetchResult) -> void
when called from swift.Vivek Modi
03/07/2022, 10:02 PMiosX64(),iosArm64() and iosSimulatorArm64()
in kmm gradle file. Can someone explain ?mittapalli hareesh
03/08/2022, 6:04 AMbrabo-hi
03/08/2022, 6:54 AMKamil Matuła
03/08/2022, 8:22 AMpackForXcode
to embedAndSignAppleFrameworkForXcode
in xcode build phase. (regarding to this article: https://blog.jetbrains.com/kotlin/2021/07/multiplatform-gradle-plugin-improved-for-connecting-kmm-modules/)
shared (KMM) module compiles correctly, but code autocompletion stops to work… anyone know how to resolve this problem?Andrew O Hart
03/08/2022, 12:07 PMbrabo-hi
03/08/2022, 7:11 PMandroidMain
shared project, how can we get access to
BuildConfig.APPLICATION_ID
BuildConfig.VERSION_CODE
BuildConfig.VERSION_NAME
Vivek Modi
03/08/2022, 11:22 PMscreen record▾
Conrad Kramer
03/09/2022, 1:29 AM.def
file reference anywhere?mittapalli hareesh
03/09/2022, 8:16 AMJonas Frid
03/09/2022, 9:26 AMAndrew O Hart
03/09/2022, 10:16 AMnikhil kumar
03/09/2022, 11:21 AMOrhan Tozan
03/09/2022, 2:25 PMMatti MK
03/09/2022, 2:59 PM./gradlew :shared:podInstall
on command line (both terminal and Android Studio)
Execution failed for task ':shared:podInstall'.
> 'pod install' command failed with code 1.
Error message:
Please, check that podfile contains following lines in header:
source '<https://cdn.cocoapods.org>'
Please, check that each target depended on shared contains following dependencies:
Running pod install
from terminal in iOS project folder works well. locale
on both Android Studio & terminal output LANG="en_US.UTF-8"
. cocoapods (1.11.2)
and cocoapods-generate (2.2.2)
versions seem to be fine. Android Studio version is 2020.3.1
and Xcode 13.2.1
.
Any tips on fixing the issue?darkmoon_uk
03/10/2022, 2:58 AMnikhil kumar
03/10/2022, 9:32 AMvishal G
03/10/2022, 10:38 AMAndrew O Hart
03/10/2022, 4:37 PMnikhil kumar
03/11/2022, 11:32 AMMartin Rajniak
03/11/2022, 3:42 PMsuspend
function).
But this is not possible if I understand correctly:
Calling Kotlin suspend functions from Swift/Objective-C is currently supported only on main threadI am using Kotlin 1.6.10, Coroutines 1.6.0 (without
native-mt
) and new experimental memory model.
Is the current practice to leave threading to multi-platform code or am I missing something?Marko Novakovic
03/14/2022, 2:19 PMIgor Milakovic
03/14/2022, 6:25 PM./gradlew :shared:allTests
does not run Android tests. That's not that big of a deal, since ./gradlew :shared:check
does run both. But the problem is that running any of those repeatedly doesn't fail any longer when iOS tests fail. Luckily, can be fixed by adding :shared:clean
before :shared:check
but then it doesn't proceed with Android tests after iOS fails... And so on, haha.
So yeah, how do you people run your tests, what is the magic command/configuration? 🙂 Thanks!Jose Garcia
03/15/2022, 10:06 AMAndroid
view on the file explorer panel?wasyl
03/15/2022, 3:42 PMjvm
(not android) target to not allow APIs from java 8, is it possible? There’s jvmTarget
configuration but it relates only to bytecode as far as I see.
Context: the jvm artifact is consumed by an Android app and we’d like to avoid desugaring, so we want to forbid using Java 8 APIs (like java.time
) in the jvmMain
source set.Martin Rajniak
03/15/2022, 6:29 PMembedAndSignAppleFrameworkForXcode
at least that is what I think is happening here)
> Task :embedAndSignAppleFrameworkForXcode FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':embedAndSignAppleFrameworkForXcode' (type 'Copy').
- Type 'org.gradle.api.tasks.Copy' property 'sign' doesn't have a configured value.
Reason: This property isn't marked as optional and no value has been configured.
Possible solutions:
1. Assign a value to 'sign'.
2. Mark property 'sign' as optional.
Please refer to <https://docs.gradle.org/7.2/userguide/validation_problems.html#value_not_set> for more details about this problem.
ptsiogas
03/16/2022, 9:23 AMsourceSets {
val commonMain by getting {
dependencies {
api ("com.myLib:feature:$myFeatureVersion")
}
}
val androidMain by getting {
dependencies {
api ("com.myLib:feature-android:$myFeatureVersion")
}
}
val iOSMain by getting {
dependencies {
api ("com.myLib:feature-ios:$myFeatureVersion")
}
}
}
nikhil kumar
03/16/2022, 9:34 AMThomas Kranzer
03/16/2022, 11:42 AMThomas Kranzer
03/16/2022, 11:42 AMMartin Rajniak
03/16/2022, 1:51 PM