Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reformat code to meet other files guidestyle
  • Loading branch information
ouattararomuald committed Sep 2, 2021
commit 93b7a76bc2bc5b8b9637167a5e7e542e1307191c
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
/.idea/.name
/.idea/inspectionProfiles
.DS_Store
/build
/captures
Expand Down
117 changes: 117 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions app/src/main/java/com/codexo/notes/core/DatabaseModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ import javax.inject.Singleton
@InstallIn(SingletonComponent::class)
object DatabaseModule {

@Singleton
@Provides
fun provideDatabase(@ApplicationContext applicationContext: Context): NoteDatabase {
return Room.databaseBuilder(
applicationContext,
NoteDatabase::class.java,
"notes_db"
).fallbackToDestructiveMigration().build()
}
@Singleton
@Provides
fun provideDatabase(@ApplicationContext applicationContext: Context): NoteDatabase {
return Room.databaseBuilder(
applicationContext,
NoteDatabase::class.java,
"notes_db"
).fallbackToDestructiveMigration().build()
}

@Provides
fun provideNoteDao(noteDatabase: NoteDatabase): NoteDao = noteDatabase.noteDao()
@Provides
fun provideNoteDao(noteDatabase: NoteDatabase): NoteDao = noteDatabase.noteDao()
}