Giorgi
07/03/2025, 5:50 PMGiorgi
07/03/2025, 5:51 PMproduct:
type: lib
platforms: [jvm, android ]
repositories:
- <https://jitpack.io>
dependencies:
- $compose.foundation: exported
- $compose.material3: exported
- com.github.shalva97:NewValve:1.5
dependencies@android:
# Compose integration with Android activities
- androidx.activity:activity-compose:1.7.2: exported
- androidx.appcompat:appcompat:1.6.1: exported
settings:
compose:
enabled: true
I would expect functions from the lib to show up in shared module.Giorgi
07/03/2025, 5:53 PMklikh
07/03/2025, 6:19 PMshared/module.yaml
as well?Giorgi
07/04/2025, 7:37 AMmodules:
- android-app
- jvm-app
- shared
utikeev
07/04/2025, 3:55 PM// src/lib.kt
expect fun initNewPipe()
// src@jvm/lib.kt
actual fun initNewPipe() = io.github.shalva97.initNewPipe()
// src@android/lib.kt
actual fun initNewPipe() = io.github.shalva97.initNewPipe()
It's enough to mention dependency in the common block of the module file (as you have it now)—it should be available in the platform source sets.