-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SVG generating * Fix gradle build and deprecated APIs * Move local texts to string resource file * Add extended fab * Generalize file listing function * Fix extra line feed in text content Co-authored-by: Tuan Nguyen <[email protected]>
- Loading branch information
1 parent
3cc5a08
commit 8b876e6
Showing
41 changed files
with
1,370 additions
and
435 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
12 changes: 0 additions & 12 deletions
12
app/src/main/java/dev/arkbuilders/arkmemo/data/ResourceMeta.kt
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
app/src/main/java/dev/arkbuilders/arkmemo/data/repositories/TextNotesRepo.kt
This file was deleted.
Oops, something went wrong.
144 changes: 0 additions & 144 deletions
144
app/src/main/java/dev/arkbuilders/arkmemo/data/repositories/TextNotesRepoImpl.kt
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
app/src/main/java/dev/arkbuilders/arkmemo/di/CoroutinesModule.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package dev.arkbuilders.arkmemo.di | ||
|
||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import kotlinx.coroutines.CoroutineDispatcher | ||
import kotlinx.coroutines.Dispatchers | ||
import javax.inject.Named | ||
import javax.inject.Singleton | ||
|
||
@InstallIn(SingletonComponent::class) | ||
@Module | ||
object CoroutinesModule { | ||
|
||
@Named(IO_DISPATCHER) | ||
@Singleton | ||
@Provides | ||
fun provideDispatcher(): CoroutineDispatcher = Dispatchers.IO | ||
} | ||
|
||
const val IO_DISPATCHER = "iODispatcher" |
33 changes: 33 additions & 0 deletions
33
app/src/main/java/dev/arkbuilders/arkmemo/di/PropertiesStorageModule.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package dev.arkbuilders.arkmemo.di | ||
|
||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import dev.arkbuilders.arklib.user.properties.PropertiesStorageRepo | ||
import kotlinx.coroutines.CoroutineDispatcher | ||
import kotlinx.coroutines.CoroutineScope | ||
import javax.inject.Named | ||
import javax.inject.Singleton | ||
|
||
@InstallIn(SingletonComponent::class) | ||
@Module | ||
object PropertiesStorageModule { | ||
|
||
@Singleton | ||
@Provides | ||
@Named(STORAGE_SCOPE) | ||
fun storageScope( | ||
@Named(IO_DISPATCHER) dispatcher: CoroutineDispatcher | ||
): CoroutineScope = CoroutineScope(dispatcher) | ||
|
||
@Singleton | ||
@Provides | ||
fun propertiesStorageRepo( | ||
@Named(STORAGE_SCOPE) storageScope: CoroutineScope | ||
): PropertiesStorageRepo { | ||
return PropertiesStorageRepo(storageScope) | ||
} | ||
|
||
const val STORAGE_SCOPE = "storageScope" | ||
} |
This file contains 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
Oops, something went wrong.