11package com.cycode.plugin
22
3+ import com.cycode.plugin.utils.getPluginVersion
34import com.intellij.openapi.application.PathManager
45import com.intellij.openapi.util.SystemInfo
56
@@ -16,12 +17,17 @@ private fun getDefaultCliPath(): String {
1617 return " ${Consts .PLUGIN_PATH } /cycode"
1718}
1819
20+ private fun getSentryReleaseVersion (): String {
21+ val appName = CycodeBundle .message(" appName" )
22+ val version = getPluginVersion()
23+ return " $appName @${version} "
24+ }
1925
2026class Consts {
2127 companion object {
2228 val PLUGIN_PATH = PathManager .getPluginsPath() + " /cycode-intellij-platform-plugin"
2329 val DEFAULT_CLI_PATH = getDefaultCliPath()
24- const val REQUIRED_CLI_VERSION = " 1.10.1 "
30+ const val REQUIRED_CLI_VERSION = " 1.10.3 "
2531
2632 const val CLI_GITHUB_ORG = " cycodehq"
2733 const val CLI_GITHUB_REPO = " cycode-cli"
@@ -30,5 +36,11 @@ class Consts {
3036
3137 const val PLUGIN_AUTO_SAVE_FLUSH_INITIAL_DELAY_SEC = 0L
3238 const val PLUGIN_AUTO_SAVE_FLUSH_DELAY_SEC = 5L
39+
40+ const val SENTRY_DSN = " https://0f0524e8d03a4283702a10ed4b6e03d0@o1026942.ingest.us.sentry.io/4507543885774848"
41+ const val SENTRY_DEBUG = false
42+ val SENTRY_RELEASE = getSentryReleaseVersion()
43+ const val SENTRY_SAMPLE_RATE = 1.0
44+ const val SENTRY_SEND_DEFAULT_PII = false
3345 }
3446}
0 commit comments