https://kotlinlang.org
Join Slack
Do you share the view model in KMP between Android and iOS? or create a view model for each one
a

Ahmed Riyadh

almost 2 years ago
Do you share the view model in KMP between Android and iOS? or create a view model for each one
a
c
+2
  • 4
  • 18
  • 491
Is there any way to wait for a `Mutex` to unlock without acquiring the lock?
k

kevin.cianfarini

about 2 years ago
Is there any way to wait for a
Mutex
to unlock without acquiring the lock?
k
t
+2
  • 4
  • 26
  • 491
Hello guys! Is there an Http Request Inspector for KMP? Currently this libraries are for specific p...
r

raquezha

over 2 years ago
Hello guys! Is there an Http Request Inspector for KMP? Currently this libraries are for specific platforms only, I'm wondering if there's a KMP version Chucker for Android: https://github.com/ChuckerTeam/chucker Wormholy for iOS: https://github.com/pmusolino/Wormholy
➕ 3
r
c
  • 2
  • 1
  • 491
Hello! :wave: I’m facing “implicit dependency” issues while migrating my app to Gradle 8. The `debug...
e

escodro

over 2 years ago
Hello! 👋 I’m facing “implicit dependency” issues while migrating my app to Gradle 8. The
debug
variant is working fine, however, the signed ones are throwing this error:
Reason: Task ':app:deobfuscationArtifactUploadTaskDev' uses this output of task ':app:writeDevAppMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
I tried following the documentation to make them explicit, but it seems like a rabbit hole where I need to add dozens of tasks manually, for each variant.
tasks.withType(DeobfuscationArtifactUploadTask).configureEach {
    dependsOn("writeDevAppMetadata",
            "mergeDevAssets",
            "compileDevArtProfile",
            "processApplicationManifestDevForBundle",
            "compressDevAssets",
            "l8DexDesugarLibDev",
            "bundleDevResources",
            "mergeDevJniLibFolders",
            "mergeDevNativeLibs",
            "collectDevDependencies",
            "extractDevNativeSymbolTables",
            ...
    )
}
Gradle Version - 8.2.1
Android Gradle Plugin - 8.0.2 or 8.1.0
Java version - 11 or 17
Has anyone else faced this issue? Thank you in advance!
e
v
  • 2
  • 6
  • 491
I tried to find out what this means but couldnt find anything, so I ask here: ```Cannot infer a bund...
j

Joel Denke

over 1 year ago
I tried to find out what this means but couldnt find anything, so I ask here:
Cannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: ComposeApp. Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag.
I get this from task
> Task :composeApp:linkReleaseFrameworkIosArm64 FAILED
in any sample project from kmp.jetbrains.com What bundle id should be inserted where? In general I am very very confused by iOS compile errors, almost zero information everytime something fails. Maybe there is some debug flags I can add?
j
c
+2
  • 4
  • 5
  • 490
how to prevent Horizontal pager to load 2 pages. initially it loads 2 pages, on swipe to 3rd or 4th ...
q

Qamar Khan

about 2 years ago
how to prevent Horizontal pager to load 2 pages. initially it loads 2 pages, on swipe to 3rd or 4th item again it loads next page, let say page current visible page is 3 when scroll or swipe i want to just load the 4th page only, not 5th.. is their any way we have.
val numberOfPages = 7
    HorizontalPager(
        state = pagerState,
        modifier = Modifier
            .fillMaxWidth()
            .height(90.dp)
            .padding(top = 12.dp)
    ) { currentPage ->
        Column(
            modifier = Modifier.fillMaxWidth(),
            horizontalAlignment = Alignment.CenterHorizontally
        ) {
            if (currentPageIndex == currentPage) {
                BarChart(
                    modifier = Modifier.fillMaxWidth(),
                    lables = labels,
                    listOfPredicationBarItems =  listOfPredicationBarItems
                )
            }
        }
    }
#compose #compose-android
q
a
  • 2
  • 2
  • 490
Has anyone seen a comparison of Jacoco vs IntelliJ code coverage capabilities? I'm guessing IntelliJ...
p

pajatopmr

over 2 years ago
Has anyone seen a comparison of Jacoco vs IntelliJ code coverage capabilities? I'm guessing IntelliJ is better but it does not work well in a CI/CD environment last time I checked.
p
c
o
  • 3
  • 4
  • 490
Should there be a way to make all interface methods optional to implement? Take `android.text.TextW...
s

Sam Stone

over 2 years ago
Should there be a way to make all interface methods optional to implement? Take
android.text.TextWatcher
. I am not interested in
beforeTextChanged()
and
onTextChanged()
, only
afterTextChanged()
. Should the compiler assume (or can I inform it) that I will implement it like this?
object : TextWatcher {
            override fun beforeTextChanged(...) {}
            override fun onTextChanged(...) {}
            override fun afterTextChanged(...) {
                ...
            }
        }
s
l
+2
  • 4
  • 11
  • 490
I'm trying to use `@Deprecated` with `ReplaceWith`, but it doesn't use all the imports. One of the i...
m

Michal Klimczak

over 2 years ago
I'm trying to use
@Deprecated
with
ReplaceWith
, but it doesn't use all the imports. One of the imports is related to the expression used in ReplaceWith, the other is added for a top level extension function which would retrofit the old deprecated usage. But the other one is not automatically included by IDE, when replacing. Is that by design or am I encountering some bug?
m
a
  • 2
  • 6
  • 490
Are you able to exclude some submodules when running `dokkaHtmlMultiModule`? I have a submodule that...
a

ansman

almost 3 years ago
Are you able to exclude some submodules when running
dokkaHtmlMultiModule
? I have a submodule that publishes a javadoc artifact but I don't want to include it in my unified dokka HTML
a
j
i
  • 3
  • 13
  • 490
Previous133134135Next

kotlinlang

A modern programming language that makes developers happier.

Powered by