xiaobailong24
07/25/2022, 10:01 AMAndy Wu
07/25/2022, 1:20 PMcommonTest
, trying to make the connection to the service. I then run the test from AS, choosing Android
as the target. However, I simply cannot make it work:
If I use localhost
as the destination host, I get a connection rejection error.
Then I thought maybe this is running from Android emulator, so I use 10.0.2.2
. This gives me Operation timed out
error.
So, what is the right way to connect to a service on the host OS from KMM test targeting Android?darkmoon_uk
07/25/2022, 1:43 PMbuild.gradle.kts
)Alejandro Rios
07/25/2022, 4:12 PMFrancis Mariano
07/25/2022, 6:59 PMdbreskvar
07/26/2022, 4:52 AMDavide Giuseppe Farella
07/26/2022, 12:15 PMapp
plain JVM module + Android ( depends on third
)
2. second
multiplatform without Android ( depends on third
)
3. third
multiplatform + Android module ( depends on fourth
)
4. fourth
fourth
is supposed to contain Android-only source code, so how should I set it up? Should it be multiplatform + Android or JVM only + Android?
I tried some stuff, but I have
(xxx) Could not resolve project :fourth
Required by:
project (yyy)*Replace (xxx) with 😒econd:sourceSet and :third:sourceSet and (yyy) with :third and :second > :third
eygraber
07/26/2022, 2:37 PMvararg String
is there any way to have that use a variadic function instead of KotlinArray
on iOS?
I imagine no because the vararg is an array, but I'm wondering if anyone has any ideas.
My iOS team doesn't want to use KotlinArray
so I'm providing a Set<String>
overload for them, but it's not ideal.Raymond Chan
07/26/2022, 5:12 PMrkeazor
07/26/2022, 8:56 PMPriyanshu Jain
07/27/2022, 5:15 AMBUILD FAILED in 5s
Command PhaseScriptExecution failed with a nonzero exit code
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Run\ Script /Users/priyanshujain/AndroidStudioProjects/Test/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Script-7555FFB5242A651A00829871.sh (in target 'iosApp' from project 'iosApp')
(1 failure)
Can anyone help me with this? Thanks 🙂abu naser
07/27/2022, 6:58 AMSam
07/27/2022, 11:22 AMIan Alexander
07/27/2022, 4:06 PMjvmMain
of shared code - with the idea being I want to write E2E tests which use the object graph in shared with Fakes attached. We currently have annotations on all constructors which are real annotations in JVM & Fakeannotations in iOS.
jvmMain
actual typealias MakeInjectable = javax.inject.Inject
commonMain
class LogInViewModel @MakeInjectable constructor() { ... }
The problem is, none of the generated dagger code is created - is there something simple I'm missing? Or is this even possible?
shared/build.gradle
plugins {
kotlin("multiplatform")
...
kotlin("kapt")
}
...
val jvmTest by getting {
dependencies {
...
implementation(AndroidLibrary.dagger)
compileOnly(AndroidLibrary.daggerCompiler)
}
}
Jilles van Gurp
07/27/2022, 7:19 PMAli Khaleqi Yekta
07/28/2022, 5:45 AM1.7.10
, but the latest version uses 1.7.0
. Is there a way to achieve this?
I heard about setting the compiler version for Jetpack Compose, I don't know if it is applicable to JB Compose.Mikhail
07/28/2022, 8:11 AMjessewilson
07/28/2022, 2:25 PM~/Library/Developer/CoreSimulator/Devices/C641A553-AA3D-4FAD-4AE-8BDD0E346C5D/data
.
Anyone know of a way to recover the project directory when running a test in a simulator?Landry Norris
07/28/2022, 2:35 PMCaused by: com.intellij.openapi.externalSystem.model.LocationAwareExternalSystemException: Could not find :kotlin-native-prebuilt-linux-aarch64:1.7.0.
Searched in the following locations:
- <https://download.jetbrains.com/kotlin/native/builds/releases/1.7.0/linux-aarch64/kotlin-native-prebuilt-linux-aarch64-1.7.0.tar.gz>
Is there a good way to tell Qodana to ignore K/N, or even better, some way to use Qodana for K/N?xxfast
07/28/2022, 11:52 PMimport_orphan_source_sets=false
similar to PeopleInSpace but i'm getting spammed with lots of these
[sync warning] Source set "androidAndroidTestRelease" is not compiled with any compilation. This source set is not imported in the IDE.
[sync warning] Source set "androidTestFixtures" is not compiled with any compilation. This source set is not imported in the IDE.
[sync warning] Source set "androidTestFixturesDebug" is not compiled with any compilation. This source set is not imported in the IDE.
when i do a sync. Builds just fine but wondering if anyone encountered this? 🤔Martin Rajniak
07/29/2022, 9:55 AMTask 'embedAndSignAppleFrameworkForXcode' not found in project ':ipInfo'.
Currently it works perfectly on local machines but fails on CI.
But I am experiencing this issue every now and then and would like to learn some tricks how to get to the bottom of the issue.
Any ideas?Michal Klimczak
07/29/2022, 1:04 PMDominaezzz
07/29/2022, 8:10 PMfabianhjr
07/30/2022, 1:36 AMalmibe
07/31/2022, 6:45 PMtasks.named<JavaExec>("run") {
dependsOn(tasks.named<Jar>("jvmJar"))
classpath(tasks.named<Jar>("jvmJar"))
}
Now the simple app works when I do gradle run
, but when I depend on code from other sub-projects that are just common code when I run the application I get java.lang.NoClassDefFoundError
exceptions for the classes from the common sub-projects. (gradle check
runs fine btw)
I’m assuming this is an issue with how I have the application plugin setup, but I’m not sure what changes need to be made.xxfast
08/01/2022, 1:29 AMCoreSimulator.framework was changed while the process was running. This is not a supported configuration and can occur if <http://Xcode.app|Xcode.app> was updated while the process was running. Service version (802.6.1) does not match expected service version (802.6).
eygraber
08/01/2022, 12:41 PMDzmitry Petrushenka
08/01/2022, 4:25 PMAnamika Trivedi
08/01/2022, 7:33 PMkpgalligan
08/01/2022, 10:01 PMkpgalligan
08/01/2022, 10:01 PM