Skip to content

Commit 93b7a76

Browse files
Reformat code to meet other files guidestyle
1 parent 324b7a7 commit 93b7a76

File tree

4 files changed

+135
-11
lines changed

4 files changed

+135
-11
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
/.idea/workspace.xml
88
/.idea/navEditor.xml
99
/.idea/assetWizardSettings.xml
10+
/.idea/.name
11+
/.idea/inspectionProfiles
1012
.DS_Store
1113
/build
1214
/captures

.idea/codeStyles/Project.xml

Lines changed: 117 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/codexo/notes/core/DatabaseModule.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ import javax.inject.Singleton
1515
@InstallIn(SingletonComponent::class)
1616
object DatabaseModule {
1717

18-
@Singleton
19-
@Provides
20-
fun provideDatabase(@ApplicationContext applicationContext: Context): NoteDatabase {
21-
return Room.databaseBuilder(
22-
applicationContext,
23-
NoteDatabase::class.java,
24-
"notes_db"
25-
).fallbackToDestructiveMigration().build()
26-
}
18+
@Singleton
19+
@Provides
20+
fun provideDatabase(@ApplicationContext applicationContext: Context): NoteDatabase {
21+
return Room.databaseBuilder(
22+
applicationContext,
23+
NoteDatabase::class.java,
24+
"notes_db"
25+
).fallbackToDestructiveMigration().build()
26+
}
2727

28-
@Provides
29-
fun provideNoteDao(noteDatabase: NoteDatabase): NoteDao = noteDatabase.noteDao()
28+
@Provides
29+
fun provideNoteDao(noteDatabase: NoteDatabase): NoteDao = noteDatabase.noteDao()
3030
}

0 commit comments

Comments
 (0)