2. Updated LiveData and MutableLiveData in an existing ViewModel and ViewBinders (i.e using the .ld method to convert moko livedata to android live data)
3. Moved the ViewModel from the android app package to the KMM commonMain sub-module.
--- ISSUE
- Before moving the ViewModel to commonMain
<com.google.android.material.textfield.TextInputEditText
...
android:text="@={viewModel.emailIdLiveData.ld()}" // <- works fine
...
</com.google.android.material.textfield.TextInputLayout>
- After moving the ViewModel to commonMain
<com.google.android.material.textfield.TextInputEditText
...
android:text="@={viewModel.emailIdLiveData.ld()}" // <- error - ld identifier not found
...
</com.google.android.material.textfield.TextInputLayout>
Any clue or suggestion to solve this would be highly appreciated.
Hi,
Doing the following steps:
installed Moko-MvvM, adding following dependencies in KMM shared sub-project:
}
<com.google.android.material.textfield.TextInputEditText ... android:text="@={viewModel.emailIdLiveData.ld()}" // <- works fine ... </com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputEditText ... android:text="@={viewModel.emailIdLiveData.ld()}" // <- error - ld identifier not found ... </com.google.android.material.textfield.TextInputLayout>