Has someone tried to generate fat framework of KMP...
# multiplatform
r
Has someone tried to generate fat framework of KMP module in a native Android App project 1. We have integrated KMP module in our main native app 2. While assembling the module. im getting error I have attached the error in thread
Copy code
Compilation failed: Exception during generating code for following declaration:
Inside: FILE fqName:com.penpencil.kmmclasses.ui.composable fileName:/Users/rohitchoudhary/AndroidStudioProjects/penpencil-android-app/classesKmmModule/src/commonMain/kotlin/com/penpencil/kmmclasses/ui/composable/AllClassAnimatedMarkCompleteButton.kt
Inside: FUN name:AllClassAnimatedMarkCompleteButton visibility:public modality:FINAL <> (videoItemModel:com.penpencil.kmmclasses.domain.model.VideoItemModel, onMarkAsCompleteClicked:kotlin.Function0<kotlin.Unit>, $composer:androidx.compose.runtime.Composer?, $changed:<http://kotlin.Int|kotlin.Int>) returnType:kotlin.Unit
Inside: FILE fqName:androidx.compose.foundation.layout fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/Box.kt
Inside: FILE fqName:androidx.compose.ui.layout fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/layout/Layout.kt
Inside: FILE fqName:androidx.compose.runtime fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/Composables.kt
Inside: FILE fqName:androidx.compose.foundation.layout fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/Box.kt
// FILE: AllClassAnimatedMarkCompleteButton.kt
// path: /Users/rohitchoudhary/AndroidStudioProjects/penpencil-android-app/classesKmmModule/src/commonMain/kotlin/com/penpencil/kmmclasses/ui/composable/AllClassAnimatedMarkCompleteButton.kt
package com.penpencil.kmmclasses.ui.composable

@EagerInitialization
@SharedImmutable
private /* static final field */ val $KPROPERTY0: KLocalDelegatedPropertyImpl<R> = error("") /* ERROR: unsupported element type: IrConstantObjectImpl */

@EagerInitialization
@SharedImmutable
private /* static final field */ val $KPROPERTY1: KLocalDelegatedPropertyImpl<R> = error("") /* ERROR: unsupported element type: IrConstantObjectImpl */

@EagerInitialization
@SharedImmutable
private /* static final field */ val $KPROPERTY2: KLocalDelegatedPropertyImpl<R> = error("") /* ERROR: unsupported element type: IrConstantObjectImpl */

@Composable
@HiddenFromObjC
fun AllClassAnimatedMarkCompleteButton(videoItemModel: VideoItemModel, onMarkAsCompleteClicked: Function0<Unit>, /* var */ $composer: Composer?, $changed: Int) {
  var $composer: Composer? = $composer
  $composer = $composer.startRestartGroup(key = -936772728)
  var $dirty: Int = $changed
  // COMPOSITE {
  val showText$delegate: MutableState<Boolean> = { // BLOCK
    // COMPOSITE {
    // }
    // COMPOSITE {
    // }
    { // BLOCK
      $composer.startReplaceGroup(key = 539640345)
      val tmp0_group: MutableState<Boolean> = { // RETURNABLE BLOCK
        { // INLINED FUNCTION BLOCK
          // COMPOSITE {
          val this: Composer = { // BLOCK
            $composer
          }
          val invalid: Boolean = { // BLOCK
            false
          }
          // }
          return { // RETURNABLE BLOCK
            { // INLINED FUNCTION BLOCK
              // COMPOSITE {
              val this: Any? = { // BLOCK
                this.rememberedValue()
              }
              // }
              { // RETURNABLE BLOCK
                { // INLINED FUNCTION BLOCK
                  return theUnitInstance()
                }
              }
              return { // RETURNABLE BLOCK
                { // INLINED FUNCTION BLOCK
                  // COMPOSITE {
                  val it: Any? = { // BLOCK
                    this
                  }
                  // }
                  return when {
                    when {
                      invalid -> true
                      true -> EQEQEQ(arg0 = it, arg1 = <get-$companion>().<get-Empty>())
                    } -> { // BLOCK
                      val value: Any? = { // RETURNABLE BLOCK
                        { // INLINED FUNCTION BLOCK
                          return mutableStateOf$default<Boolean>(value = error("") /* ERROR: unsupported element type: IrConstantPrimitiveImpl */
, policy = // COMPOSITE {
                          null.reinterpret<Nothing?, SnapshotMutationPolicy<T>?>()
                          // }, $mask0 = 2) /*as MutableState<Boolean> */ /*as Any? */
                        }
                      }
                      this.updateRememberedValue(value = value)
                      value
                    }
                    true -> it
                  }
                }
              }
            }
          } as Any? /*as MutableState<Boolean> */
        }
      }
      $composer.endReplaceGroup()
      tmp0_group
    }
  }
r
hi @Chrimaeon My. issue is that IOS framework is not being generated with native integration. I think you have attached
Copy code
Update on the Name of Kotlin Multiplatform
c
Yes because you wrote KMM in your initial question before editing ;-)
r
okay my bad..
😅 1