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

Create Room DB to use as merged data source #244

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Iannnr
Copy link
Collaborator

@Iannnr Iannnr commented Jan 11, 2025

Summary of changes:

  1. Introduce Room DB into the project (the Android only version for now)
  2. Setup room database, daos, entities etc
  3. Minimal models right now which have their own IDs just joined on japanese title name
  4. Currently hardcodes AniList request to Anime for now because
  5. Created a new module because search has enough self contained functionality now to justify

Tested changes:

No functional code just yet, will replace SearchViewModel when more is hooked up

@Iannnr Iannnr marked this pull request as draft January 11, 2025 04:35
}

configurations.implementation {
exclude(group = "com.intellij", module = "annotations")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Room introduces duplicate annotation classes as something else, couldn't figure out what else, so just exclude in the model that introduced room :)


dependencies {
implementation(projects.api.anilist)
implementation(projects.api.mal)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will remove this from :app after this repository does everything it needs to

Comment on lines +41 to +42
implementation(libs.hilt.android)
ksp(libs.hilt.android.compiler)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should probably become a convention plugin at this point

klass = SearchDatabase::class.java,
name = "search"
)
.fallbackToDestructiveMigration()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ain't dealing with migrations with this project, that's too much effort

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.

1 participant