-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add existing data skip for partial backup restore
- Loading branch information
Showing
14 changed files
with
679 additions
and
299 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
499 changes: 499 additions & 0 deletions
499
...main/java/com/example/util/simpletimetracker/data_local/resolver/BackupPartialRepoImpl.kt
Large diffs are not rendered by default.
Oops, something went wrong.
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
15 changes: 15 additions & 0 deletions
15
domain/src/main/java/com/example/util/simpletimetracker/domain/resolver/BackupPartialRepo.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,15 @@ | ||
package com.example.util.simpletimetracker.domain.resolver | ||
|
||
import com.example.util.simpletimetracker.domain.model.BackupOptionsData | ||
import com.example.util.simpletimetracker.domain.model.PartialBackupRestoreData | ||
|
||
interface BackupPartialRepo { | ||
|
||
suspend fun partialRestoreBackupFile( | ||
params: BackupOptionsData.Custom, | ||
): ResultCode | ||
|
||
suspend fun readBackupFile( | ||
uriString: String, | ||
): Pair<ResultCode, PartialBackupRestoreData?> | ||
} |
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.