Skip to content

Commit

Permalink
Update app preferences keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mahozad committed Jun 13, 2024
1 parent 9ac5d63 commit 5eb825b
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/main/kotlin/ir/mahozad/cutcon/model/Prefereces.kt
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
package ir.mahozad.cutcon.model

import ir.mahozad.cutcon.BuildConfig

object PreferenceKeys {
const val PREF_THEME = "theme"
const val PREF_LANGUAGE = "language"
const val PREF_CALENDAR = "calendar"
const val PREF_ASPECT_RATIO = "aspect-ratio"
const val PREF_FINISH_SOUND = "finish-sound"
const val PREF_INTERLACED_FIX = "interlaced-fix"
const val PREF_SCREENSHOT_SOUND = "screenshot-sound"
const val PREF_LAST_OPEN_DIRECTORY = "last-open-directory"
const val PREF_LAST_SAVE_DIRECTORY = "last-save-directory"
const val PREF_LAST_SHOWN_CHANGELOG_VERSION = "last-shown-changelog-version"
// The app name has been added as prefix because other apps with same keys will conflict with these
const val PREF_THEME = "${BuildConfig.APP_NAME}-theme"
const val PREF_LANGUAGE = "${BuildConfig.APP_NAME}-language"
const val PREF_CALENDAR = "${BuildConfig.APP_NAME}-calendar"
const val PREF_ASPECT_RATIO = "${BuildConfig.APP_NAME}-aspect-ratio"
const val PREF_FINISH_SOUND = "${BuildConfig.APP_NAME}-finish-sound"
const val PREF_INTERLACED_FIX = "${BuildConfig.APP_NAME}-interlaced-fix"
const val PREF_SCREENSHOT_SOUND = "${BuildConfig.APP_NAME}-screenshot-sound"
const val PREF_LAST_OPEN_DIRECTORY = "${BuildConfig.APP_NAME}-last-open-directory"
const val PREF_LAST_SAVE_DIRECTORY = "${BuildConfig.APP_NAME}-last-save-directory"
const val PREF_LAST_SHOWN_CHANGELOG_VERSION = "${BuildConfig.APP_NAME}-last-shown-changelog-version"
}

0 comments on commit 5eb825b

Please sign in to comment.