Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[apollo-normalized-cache] Convert remaining Java classes to Kotlin #2446

Conversation

martinbonnin
Copy link
Contributor

@martinbonnin martinbonnin commented Jul 15, 2020

This is a plain Java -> Kotlin conversion. There should be (almost) no behaviour change (see comments in the diff for more details).

Next steps:

  • use the Kotlin multiplatform plugin
  • move ApolloStore and ApolloStoreOperation to jvmMain. These two classes are based on Executors and AtomicReferences so they will be hard to convert to KMP. I think we can use another API for KMP, based on coroutines.
  • move LruNormalizedCache to jvmMain as well as it depends on com.nytimes.android:cache, which is not KMP
  • when com.dropbox.mobile.store:cache4 becomes KMP (MegaIssue: Cache improvements #2331 (comment)), move everything to commonMain, potentially in another module?

@martinbonnin martinbonnin marked this pull request as draft July 15, 2020 10:03
@martinbonnin
Copy link
Contributor Author

Superseded by #2457 (same commits but using a local branch and not from my fork so that I could merge the dependant PR first)

@martinbonnin martinbonnin deleted the feature-2144/convert-apollo-normalized-cache-to-kotlin branch March 8, 2021 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants