Shivam Kanodia
05/23/2023, 10:53 AMCannot find type 'LifecycleRegistry' in scopeShowing All Messages
SwiftCompile normal arm64 Compiling\ LifecycleHolder.swift /Users/shivamkanodia/Downloads/rb-android/android/rdash/rdash/LifecycleHolder.swift (in target 'rdash' from project 'rdash')
/Users/shivamkanodia/Library/Developer/Xcode/DerivedData/rdash-hjfmfxolvdblalgmghhhmonijesf/Index.noindex/DataStore -index-system-modules
/Users/shivamkanodia/Downloads/rb-android/android/rdash/rdash/LifecycleHolder.swift:6:20: error: cannot find type 'LifecycleRegistry' in scope
let lifecycle: LifecycleRegistry
^~~~~~~~~~~~~~~~~
/Users/shivamkanodia/Downloads/rb-android/android/rdash/rdash/LifecycleHolder.swift:9:21: error: cannot find 'LifecycleRegistryKt' in scope
lifecycle = LifecycleRegistryKt.LifecycleRegistry()
^~~~~~~~~~~~~~~~~~~
/Users/shivamkanodia/Downloads/rb-android/android/rdash/rdash/LifecycleHolder.swift:6:20: Cannot find type 'LifecycleRegistry' in scope
/Users/shivamkanodia/Downloads/rb-android/android/rdash/rdash/LifecycleHolder.swift:9:21: Cannot find 'LifecycleRegistryKt' in scope
cocoapods {
summary = "Rdash the Shared Module"
homepage = "Link to the Shared Module homepage"
version = "1.0"
ios.deploymentTarget = "14.1"
podfile = project.file("../rdash/Podfile")
framework {
baseName = "kmm"
isStatic = true
export(ArkIvanov.Decompose.decompose)
export(ArkIvanov.Essenty.lifecycle)
}
}
Arkadii Ivanov
05/23/2023, 11:14 AMLifecycleHolder.swift
file?Shivam Kanodia
05/23/2023, 11:26 AMimport kmm
import SwiftUI
class LifecycleHolder : ObservableObject {
let lifecycle: LifecycleRegistry
init() {
lifecycle = LifecycleRegistryKt.LifecycleRegistry()
lifecycle.onCreate()
}
deinit {
lifecycle.onDestroy()
}
}
const val decompose = "2.0.0-compose-experimental-alpha-02"
const val essenty = "1.1.0"
Arkadii Ivanov
05/23/2023, 11:51 AMShivam Kanodia
05/23/2023, 12:01 PMArkadii Ivanov
05/23/2023, 12:03 PMShivam Kanodia
05/23/2023, 12:04 PMArkadii Ivanov
05/23/2023, 12:06 PMShivam Kanodia
05/23/2023, 12:07 PMArkadii Ivanov
05/23/2023, 12:08 PMShivam Kanodia
05/23/2023, 12:11 PMArkadii Ivanov
05/23/2023, 12:11 PMShivam Kanodia
05/23/2023, 12:12 PMlistOf(
iosX64(), iosArm64(), iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "kmm"
isStatic = true
// freeCompilerArgs += "-Xbinary=bundleId=<http://io.rdash.app|io.rdash.app>"
export(ArkIvanov.Decompose.decompose)
export(ArkIvanov.Essenty.lifecycle)
}
}