- Notifications
You must be signed in to change notification settings - Fork85
Add support for type adapters#1592
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Draft
clementetb wants to merge32 commits intomainChoose a base branch fromct/type-adapters
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Draft
Changes from1 commit
Commits
Show all changes
32 commits Select commitHold shift + click to select a range
7fa81d6 Adapter singleton and instance adapter discoverability for RealmInstant
clementetbeb98479 Add support for other types
clementetb8c3f941 Use map for instanced adapters
clementetbf64bdf3 Clean up configuration + tests
clementetbb5b6a20 Add some compile tests
clementetb57e8bf3 Enable Realm list tests
clementetb43dd5dc Enable collections
clementetbc53aa14 Disable derived numerical types
clementetb681a73e More tests
clementetbb607f36 Add support for objects
clementetb37bfd02 Add collections support
clementetb9c8ba57 Add type check for unsupported types
clementetbda05877 Add check on type adapter valid realm types
clementetb9b97c13 More testing
clementetbe9fd266 Test with other annotations
clementetb45b1ebe Add compiler tests for using the annotation on type parameters
clementetb4f6cf36 Add type parameter adapter for lists
clementetbad08eb9 Add set and dictionary support
clementetbab53da9 Add more tests
clementetb148c0ac Linting
clementetb058afc7 Fix nullable collections not being processed
clementetb38fe50f Fix expected IR
clementetba7111b1 Remove uses type adapter compile computed property
clementetb6408db1 Add more tests around adapter supported types
clementetb385e369 Linting
clementetb77cdc2e Clean up compiler tests
clementetb3b18d8d Add roundtrip tests
clementetbb4686c0 Add roundtrip for adapted type parameters
clementetbf3b0407 Disable RealmSet tests on TypedAdapter
clementetb4ba7dab Add changelog entry
clementetb3b76bee Add documentation
clementetbfaab0ab Update compiler plugin tests
clementetbFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Add type check for unsupported types
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit9c8ba57ded76cf42dc78af24df9d4242af0ab643
There are no files selected for viewing
80 changes: 65 additions & 15 deletions.../plugin-compiler/src/main/kotlin/io/realm/kotlin/compiler/AccessorModifierIrGeneration.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletionspackages/plugin-compiler/src/main/kotlin/io/realm/kotlin/compiler/Identifiers.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletionspackages/plugin-compiler/src/main/kotlin/io/realm/kotlin/compiler/IrUtils.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions...s/plugin-compiler/src/main/kotlin/io/realm/kotlin/compiler/RealmModelLoweringExtension.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletionspackages/test-base/src/commonMain/kotlin/io/realm/kotlin/test/util/TypeDescriptor.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
87 changes: 72 additions & 15 deletionspackages/test-base/src/jvmTest/kotlin/io/realm/kotlin/test/compiler/TypeAdaptersTests.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.