Colton Idle
02/16/2022, 1:49 AMRequest.Builder()\ .cacheControl(new CacheControl.Builder().noCache().build())\
but I'm not sure how to best incorp that with retrofitjw
02/16/2022, 1:54 AMjw
02/16/2022, 1:55 AMColton Idle
02/16/2022, 2:00 AMLandry Norris
02/24/2022, 10:54 PMUnresolved reference: okio
Unresolved reference: FileSystem
in a project using okio. The file it points to consists only of the following
import okio.FileSystem
actual val fs: FileSystem = FileSystem.SYSTEM
This works fine for linuxX64, but fails for macosArm64. Is macosArm64 not supported by okio 3.0.0?jessewilson
02/25/2022, 2:02 AMdimsuz
02/25/2022, 6:06 PM@MergeSubcomponent
which has few @Overrides
from contributed ComponentInterfaces, in stub .java
files there's an error that this overrides nothing. And in the end-user kotlin code I see an IDE error. But it compiles.
I guess this is due to some kotlin plugin magic?dave08
02/27/2022, 4:56 PMAppComponentAnvilModule.kt
is there but it's just an empty file... but there are files under the hint
folder...eygraber
03/02/2022, 12:03 AMFatal Exception: java.lang.NullPointerException
at curtains.internal.WindowCallbackWrapper$Companion.getJetpackWrapped(WindowCallbackWrapper.java:112)
at curtains.internal.WindowCallbackWrapper$Companion.unwrap(WindowCallbackWrapper.java:154)
at curtains.WindowsKt.getWrappedCallback(Windows.kt:233)
at leakcanary.RootViewWatcher$listener$1.onRootViewAdded(RootViewWatcher.kt:46)
at curtains.OnRootViewAddedListener$DefaultImpls.onRootViewsChanged(OnRootViewAddedListener.java:38)
at leakcanary.RootViewWatcher$listener$1.onRootViewsChanged(RootViewWatcher.kt:43)
at curtains.internal.RootViewsSpy$delegatingViewList$1.add(RootViewsSpy.java:25)
at curtains.internal.RootViewsSpy$delegatingViewList$1.add(RootViewsSpy.java:23)
at curtains.internal.RootViewsSpy$delegatingViewList$1.add$bridge(RootViewsSpy.java:0)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:393)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:133)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4843)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:54)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Paul Woitaschek
03/02/2022, 2:29 PMjw
03/02/2022, 2:38 PMColton Idle
03/08/2022, 9:17 PMinit {
viewModelScope.launch {
myState.queryText.debounce(250).collectLatest {
search(it)
}
}
}
private suspend fun search(term: String) {
val result = service.searchApiCall(term)
...
I'm trying to manually verify that service.searchApiCall is actually cancelled. I'm looking at the requests through charles proxy but it doesn't seem to cancel there. I'm assuming that a cancellation on retrofit can't actually cancel the in flight request right? My networking inexperience is kinda failing me here, but would appreciate any pointers to make sure that Im cancelling correctly.jw
03/08/2022, 9:36 PMjw
03/08/2022, 9:37 PMyschimke
03/08/2022, 10:30 PMColton Idle
03/09/2022, 3:58 AMyschimke
03/09/2022, 6:57 AMyschimke
03/09/2022, 10:38 AMSean Proctor
03/10/2022, 10:53 AMTableA(id: String, children: List<TableB>)
One option is to have a useless subquery that depends on table B in the select on table A.Colton Idle
03/11/2022, 1:22 AMCache
with Coil 2.0..."jw
03/11/2022, 2:09 AMjw
03/11/2022, 2:10 AMjw
03/11/2022, 2:11 AMimmutable
which means you don't gain much from the full HTTP caching specjw
03/11/2022, 2:19 AMyschimke
03/11/2022, 6:30 AMyschimke
03/11/2022, 6:31 AMyschimke
03/11/2022, 6:33 AMColin White
03/12/2022, 1:01 AMImageDecoder
and MediaMetadataRetriever
👀). Also there were feature requests to have direct access to the image data on disk.Colton Idle
03/12/2022, 3:53 AMimmutable
" and "seems like they're simply ignoring HTTP cache headers entirely and assuming everything can be cached forever. not sure that's a smart idea." seem at odds with each other? Or are you basically saying jake that images should be immutable, but its not a good idea (for an image loading library) to assume that every image will be?Colton Idle
03/12/2022, 3:59 AMCache-Control: max-age=31536000
So I think using coil 2.0 won't really do any harm. but yeah. ive always tried to leave caching to the http client and just thought this was an interesting callout that coil was moving away from it.