Kamil Kalisz
08/06/2021, 3:54 PMfun createHttpClient(): HttpClient {
var token: String? = "" // <- frozen
CoroutineScope(Dispatchers.Main).launch {
token = Firebase.auth.currentUser?.getIdToken(false)
Firebase.auth.idTokenChanged.collect { user ->
token = user?.getIdToken(false)
}
}
val client = HttpClient {
install(TokenFeature) {
tokenHeaderName = "Authorization"
tokenProvider = object : TokenFeature.TokenProvider {
override fun getToken(): String{
return "Bearer $token" <- frozen
}
}
}
}
return client
}
Vadzim Filipovich
08/09/2021, 8:01 PMZhiqiang Bian
08/15/2021, 6:40 PMactivity
holds a fragment
, and I would like to invoke a method of the activity viewmodel
in one of the fragment
.
private val viewModel: lISTViewModel by activityViewModels()
-----------
There is a getViewModel
function in ViewModelFactory
, but I don’t know how to use it.😒miling_face_with_tear:
-----------
I can simply do activity.viewmodel
in the fragment, so probably sharedViewModel
is unnecessary.Michal Harakal
08/25/2021, 2:16 PMkotlinx.datetime.LocalDate
could be taken by default. Of course there is no deal to do date conversion during DTO=>domain mapping. Any thoughts on this ?dbaelz
09/06/2021, 1:06 PMCaused by: java.lang.ClassNotFoundException: com.android.build.api.dsl.AndroidSourceSet
)xxfast
10/03/2021, 1:18 AMThomas Skovsgaard
10/11/2021, 7:27 PMText(MR.strings().btn_login_skip_login.desc().localized())
preview crashes, if I remove it preview works again. When I run the app the correct shared localised text is displayed.deviant
10/22/2021, 10:50 AMviewModel
helper factory available only for android projects. so we use the factory
extension temporarily. but it recreates viewModel each time.Phil Saul
12/06/2021, 11:03 AMNacho Ruiz Martin
01/04/2022, 7:04 PMbundle with identifier X not found
and including the Framework in Building Phases's Copy Bundle Resources doesn't fix it.
Any tip? Thanks! 🙇Róbert Nagy
01/17/2022, 10:05 AMiosSimulatorArm64
Francis Mariano
01/25/2022, 5:36 PMgeorgi
02/05/2022, 11:12 PMptsiogas
02/07/2022, 9:27 AMSK
03/08/2022, 2:08 PMArtem Bezlyubchenko
03/17/2022, 10:51 AM:mpp-library:feature:auth#build.gradle.kts
Also I added
cocoaPods {
pod("Auth0")
}
to :mpp-library:feature:auth#build.gradle.kts
.
I tried to add pod 'Auth0', '~> 1.39'
to Podfile as well.
I did a pod install
and trying to run the build. The error I receive is ld: framework not found Auth0
Lucas Schiavini
03/21/2022, 7:34 PMSK
03/22/2022, 8:43 PMSean Proctor
03/28/2022, 12:12 PMrrva
05/09/2022, 12:17 PMromainbsl
05/13/2022, 6:57 AMFrancesco Bonnì
05/13/2022, 1:11 PMjeran
05/30/2022, 8:40 PM// 0 on android in english will be other
the strings we’re hoping to achieve are:
x == 0 -> “Just now”
x == 1 -> “1 hour ago”
x > 1 -> “x hours ago”
how can we achieve this if android doesn’t match zero properly?
https://github.com/icerockdev/moko-resources/blob/a4759a4439a492b6b8a6f7fa631be7cf[…]library/src/commonMain/kotlin/com/icerockdev/library/Testing.ktkevin.cianfarini
06/23/2022, 6:30 PMMarkRS
06/29/2022, 3:29 PMMarkRS
06/30/2022, 8:56 AMCan't process keys which equals their value
which is very disappointing as it's very natural to give such names to keys. Is this a hard thing to change?
(PS - It should read "which equal their value")MarkRS
07/11/2022, 9:39 AMJose Carlos Hernandez
08/11/2022, 11:39 PMkswift
integration and can’t compile on iOS getting this error
error: cannot find 'LoginViewModelActionKs' in scope
let actionKs = LoginViewModelActionKs(action)
could you please help me? (I add detail on thread)Sean Proctor
08/16/2022, 9:35 PMRóbert Nagy
08/31/2022, 11:32 AMcommon.h
generates the MR
fileRóbert Nagy
08/31/2022, 11:32 AMcommon.h
generates the MR
file