Shabinder Singh
09/21/2021, 4:21 PMsuspend fun saveResponse( // WORKING & Recognizable
uid: String,
transaction: Transaction,
response: JournalingResponseModel
): Result<Transaction>
suspend fun Transaction.saveResponse( // Not being Recognized in another Extension Function
uid: String,
response: JournalingResponseModel
): Result<Transaction>
Shabinder Singh
09/22/2021, 9:19 AMTower Guidev2
09/22/2021, 12:04 PMJitendra Kumar
09/22/2021, 1:51 PMimport java.io.File
please ?
My environment :
./gradlew -version
------------------------------------------------------------
Gradle 7.0.2
------------------------------------------------------------
Build time: 2021-05-14 12:02:31 UTC
Revision: 1ef1b260d39daacbf9357f9d8594a8a743e2152e
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 11.0.12 (Oracle Corporation 11.0.12+8-LTS-237)
OS: Mac OS X 11.5 x86_64
Aman Kapoor
09/22/2021, 3:12 PMJungIn Choi
09/23/2021, 6:41 AMdiagnose ANR in production app, and send an alert with slack bot
?Christoffer Niska
09/23/2021, 8:09 AMCarsten Hagemann
09/23/2021, 11:25 AMjvmToolchain
in my android project, but it doesn't seem to work at all. I have tried to include it, but it just gave errors that it couldn't find the command (in gradle speek). Did anyone here made it work?maniya anklesh
09/24/2021, 4:56 AMMilan Vadhel
09/24/2021, 10:38 AMSlackbot
09/24/2021, 11:20 AMRoy Owor
09/24/2021, 5:37 PMvar myString = "1234567"
val myListOfStrings = listOf(myString)
Johnny
09/25/2021, 12:39 AMSharedPreferences.Editor.()
I get the extension function is accepting a lambda with input SharedPreferences.Editor.()
but what does .()
mean?
private fun SharedPreferences.edit(func: SharedPreferences.Editor.() -> Unit) {
val editor = edit() // 1
editor.func() // 2
editor.apply() // 3
}
This is the code that uses the extension function
val sharedPref = requireActivity().getPreferences(Context.MODE_PRIVATE)
sharedPref.edit {
putBoolean("hello", true)
}
Somesh
09/25/2021, 9:11 AMKetan Khunti
09/25/2021, 3:29 PMLilly
09/25/2021, 10:06 PMval value: UInt = 137
println("Value: ${value / 10F}") // Does not work
I can't find any hint how to the division. The result should be 13.7Johnjake Talledo
09/26/2021, 6:04 PManti pattern architecture
with coroutines or clean architecture
? As my concern on using clean arch is that it will add another layer, classes, callbacks and observable/collector. Also I am using paging3 library adding another layer might not be a good idea.jean pokou
09/26/2021, 6:34 PMHovhannes
09/27/2021, 6:09 AMadjpd
09/27/2021, 9:00 AMBijon Desai
09/27/2021, 4:55 PMval isFord: Boolean
get() = carType == CarType.FORD
vs:
val isFord = carType == CarType.FORD
Ink
09/28/2021, 8:08 AMenum class ItemCategory {
ACCOUNT,
CARD,
OTHER,
INVESTMENTS,
LOAN
}
and then:
items = itemList.sortedBy { it.category.name }.groupBy { it.category }
Brian Stokes
09/28/2021, 2:39 PMSusheel
09/28/2021, 4:10 PMMatthew Laser
09/28/2021, 7:22 PMandodeki
09/29/2021, 5:33 AMTin Tran
09/29/2021, 7:30 AMinappropriate blocking method call
warning. Does anyone know why?
CoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).launch {
try {
network.socketFactory.createSocket().use {
it.connect(InetSocketAddress("8.8.8.8",53),1500)
validNetworks.add(network)
checkNetwork()
}
}
catch (e:Exception){
Timber.e(e)
}
}
Matthew Laser
09/29/2021, 3:55 PMandroid
or android library plugins (just via the dependencies
gradle block)? trying to do something with the android lib with KSP and running into troubleRajput Art Studio
09/29/2021, 3:55 PMMilan Vadhel
09/30/2021, 7:12 AMMilan Vadhel
09/30/2021, 7:12 AMMinhaj
09/30/2021, 7:15 AMMilan Vadhel
09/30/2021, 7:22 AMZun
09/30/2021, 11:01 AMMilan Vadhel
09/30/2021, 11:28 AMIgor Brishkoski
09/30/2021, 1:39 PMMilan Vadhel
10/01/2021, 4:50 AM