-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Remove context from shareImage * Delete getCachedImageUri * Extract image loading from EditViewModel file * Move all state to EditingState * Clarify Serialization in ImageDefaults * Fix Share
- Loading branch information
Showing
36 changed files
with
357 additions
and
329 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
6 changes: 3 additions & 3 deletions
6
...builders/arkretouch/edition/EditModule.kt → ...v/arkbuilders/arkretouch/di/EditModule.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
5 changes: 2 additions & 3 deletions
5
...uilders/arkretouch/common/CommonModule.kt → ...ders/arkretouch/di/common/CommonModule.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
2 changes: 1 addition & 1 deletion
2
...ders/arkretouch/common/InjectionModule.kt → ...s/arkretouch/di/common/InjectionModule.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
2 changes: 1 addition & 1 deletion
2
...mmon/dispatchers/CoroutinesDispatchers.kt → ...mmon/dispatchers/CoroutinesDispatchers.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
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
9 changes: 9 additions & 0 deletions
9
app/src/main/java/dev/arkbuilders/arkretouch/editing/manager/EditingMode.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,9 @@ | ||
package dev.arkbuilders.arkretouch.editing.manager | ||
|
||
enum class EditingMode { | ||
IDLE, | ||
CROP, | ||
RESIZE, | ||
ROTATE, | ||
ZOOM | ||
} |
2 changes: 1 addition & 1 deletion
2
...ders/arkretouch/edition/model/DrawPath.kt → ...ders/arkretouch/editing/model/DrawPath.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
26 changes: 26 additions & 0 deletions
26
app/src/main/java/dev/arkbuilders/arkretouch/editing/model/EditingState.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,26 @@ | ||
package dev.arkbuilders.arkretouch.editing.model | ||
|
||
import androidx.compose.ui.graphics.Color | ||
|
||
data class EditingState( | ||
val strokeSliderExpanded: Boolean = false, | ||
val strokeWidth: Float = 5f, | ||
val menusVisible: Boolean = true, | ||
val showSavePathDialog: Boolean = false, | ||
val showExitDialog: Boolean = false, | ||
val showMoreOptionsPopup: Boolean = false, | ||
val imageSaved: Boolean = false, | ||
val isSavingImage: Boolean = false, | ||
val showEyeDropperHint: Boolean = false, | ||
val showConfirmClearDialog: Boolean = false, | ||
val isLoaded: Boolean = false, | ||
val exitConfirmed: Boolean = false, | ||
val bottomButtonsScrollIsAtStart: Boolean = false, | ||
val bottomButtonsScrollIsAtEnd: Boolean = false, | ||
val usedColors: List<Color> = listOf() | ||
) { | ||
|
||
companion object { | ||
val DEFAULT = EditingState() | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...kretouch/edition/model/ImageViewParams.kt → ...kretouch/editing/model/ImageViewParams.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
2 changes: 1 addition & 1 deletion
2
...ers/arkretouch/edition/model/Operation.kt → ...ers/arkretouch/editing/model/Operation.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
2 changes: 1 addition & 1 deletion
2
...uch/edition/repository/FilesRepository.kt → ...uch/editing/repository/FilesRepository.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
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
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
6 changes: 3 additions & 3 deletions
6
...kretouch/edition/ui/crop/CropOperation.kt → ...kretouch/editing/ui/crop/CropOperation.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
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.