task.result?.data returning null in HTTP Cloud Function call

I’m calling a Cloud Function from my app with the following code: private fun search(g: String, l: GeoPoint): Task<String> { val data = hashMapOf( “uid” to user.uid, “first_name” to user.first_name, “age” to user.age, “gender” to user.gender, “bio” to user.bio, “img1” to user.img1, “img2” to user.img2, “latitude” to l.latitude.toString(), “longitude” to l.longitude.toString(), “g” to g, “fcmToken”…

Details

Dagger 2 Inject Context in Kotlin Object

I am trying to inject Context using Dagger 2. AppComponent.kt: @Singleton @Component( modules = [ AppModule::class ] ) interface AppComponent { fun context(): Context } AppModule.kt: @Module class AppModule(private val application: Application) { @Provides @Singleton fun providesApplicationContext(): Context = application } MainApp.kt: class MainApp : Application() { lateinit var appComponent: AppComponent override fun onCreate() {…

Details

gitlab-runner can reach docker daemon but fail on executing docker commands, e.g. docker info

please note that I’m running with a little problem here, please read to the end as it’s not a duplicated issue, I tried fixes from almost all of the other issues but nothing worked, Here’s my TOML file: concurrent = 1 check_interval = 0 [session_server] session_timeout = 1800 [[runners]] name = “xxxxxxxxxxx” url = “http://gitlab.example.com/”…

Details

Regex to extract UUID without key value in json

I have below json from which I wants to extract ‘07199fca-b43f-4e58-b0fc-c1e254f34ac0’ values. I got with multiple regex available in regex101 but every time I get all UUID value any way by which I get Unique value that has no json key assign. JSON Syntax: [ [ { “clientId”: 178, “uniqueId”: “5f7f919f-7e0f-4a1e-9a91-89b673896da6”, “displayName”: “Automation Client Test”,…

Details