Saadat Sayem
10/10/2024, 8:50 AMapollo-v4 (4.0.1)
as per the documentation but encountered that I wasn't able to call .normalizedCache()
from the ApolloClient.Builder()
method. Have anyone faced the same issue so far?
Reference:
ApolloClient.Builder()
.serverUrl(SERVER_URL)
// Add headers for authentication
.addHttpHeader(
HEADER_AUTHORIZATION,
"$HEADER_AUTHORIZATION_BEARER ${BuildConfig.GITHUB_OAUTH_KEY}"
)
.normalizedCache(memoryFirstThenSqlCacheFactory)
.build()
goku
10/10/2024, 9:35 AMSaadat Sayem
10/11/2024, 1:47 AMFetchPolicy
is also missing from my end as well. Do you get normalizedCache(...)
with apollo-v4.0.1
?goku
10/11/2024, 2:20 AMnormalized-cache
dependency yes. They are all in the same Extensions filegoku
10/11/2024, 2:21 AMimplementation("com.apollographql.apollo:apollo-normalized-cache:4.0.1")
Saadat Sayem
10/11/2024, 2:24 AMapollo-runtime = { module = "com.apollographql.apollo:apollo-runtime", version.ref = "apollo" }
apollo-normalized-cache-sqlite = { module = "com.apollographql.apollo:apollo-normalized-cache-sqlite", version.ref = "apollo" }
apollo-normalized-cache = { module = "com.apollographql.apollo:apollo-normalized-cache", version.ref = "apollo" }
As a matter of fact I can use the same using version 4.0.0. 😅