Skip to content

iOS and Android native code reuse? #24

Answered by cipolleschi
grahammendick asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @grahammendick!

We are about to migrate to the community the repo you linked, which we updated with the Android side of things just today.
As you will see, for Android the proposed approach is to have two different sourceset which instanciate and use a common implementation.

So, to answer your question, you still have to create different files, but with a bit of engineering, you can keep using your Android code for both the Old and the New Architecture.

Let me know if I can help you with anything else!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@grahammendick
Comment options

grahammendick Apr 5, 2022
Collaborator Author

@cortinico
Comment options

@grahammendick
Comment options

grahammendick Apr 7, 2022
Collaborator Author

Answer selected by grahammendick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants