Skip to content

Commit

Permalink
πŸ”– Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteVermouth committed Jul 31, 2021
1 parent ae7277b commit 81d34e1
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.12.0

- Fixed API compatibility

## 1.11.5

- Support IntelliJ 2021.2 EAP
Expand Down
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ tasks {

val description = """
<div>
<p>Dracula Theme for JetBrains IDEs</p>
<p>Dracula Theme for JetBrains</p>
<br />
<p>
<img
Expand Down Expand Up @@ -82,6 +82,12 @@ tasks {
be aesthetically pleasing while keeping you focused.
</p>
<p><a href="https://gumroad.com/a/477820019">Get it now</a></p>
<h2>Licence</h2>
<p>
<a href="https://raw.githubusercontent.com/dracula/jetbrains/master/LICENSE"
>MIT Licence</a
>
</p>
</div>
""".trimIndent()

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ org.gradle.caching=true
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
pluginGroup=com.draculatheme
pluginName=Dracula Theme
pluginVersion=1.11.5
pluginVersion=1.12.0
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild=203
pluginUntilBuild=212.*
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
# See https://jb.gg/intellij-platform-builds-list for available build versions.
pluginVerifierIdeVersions=203.6682.168, 211.6693.111
pluginVerifierIdeVersions=203.6682.168, 211.6693.111, 212.4746.92
# Plugin Build Platform
platformType=IC
platformVersion=2020.3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.draculatheme.jetbrains.activities

import com.draculatheme.jetbrains.DraculaMeta
import com.draculatheme.jetbrains.notifications.DraculaNotifications
import com.draculatheme.jetbrains.notifications.DraculaNotification
import com.draculatheme.jetbrains.settings.DraculaSettings
import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
Expand All @@ -12,12 +12,12 @@ class DraculaStartupActivity : StartupActivity, DumbAware {
val settings = DraculaSettings.instance
if (settings.version.isEmpty()) {
settings.version = DraculaMeta.currentVersion
DraculaNotifications.notifyFirstlyDownloaded(project)
DraculaNotification.notifyFirstlyDownloaded(project)
return
}
if (DraculaMeta.currentVersion != settings.version) {
settings.version = DraculaMeta.currentVersion
DraculaNotifications.notifyReleaseNote(project)
DraculaNotification.notifyReleaseNote(project)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,38 @@ import com.intellij.openapi.project.Project
import com.intellij.openapi.util.IconLoader
import org.intellij.lang.annotations.Language

object DraculaNotifications {
object DraculaNotification {

@Language("HTML")
private val whatsNew = """
<ul>
<li>Support IntelliJ 2021.2 EAP</li>
<li>Fixed API compatibility</li>
</ul>
""".trimIndent()

@Language("HTML")
private val linkMessage = """
<p>Thank you for choosing Dracula.</p>
<br>
<p>
<a href="https://github.com/dracula/jetbrains/blob/master/CHANGELOG.md">Changelog</a> |
<a href="https://gumroad.com/a/477820019">Dracula PRO</a> |
<a href="https://github.com/dracula/jetbrains">Star Repository</a>
<a href="https://github.com/dracula/jetbrains">Repository</a>
</p>
""".trimIndent()

@Language("HTML")
private val releaseNote = """
<div>
<h3>What's New</h3>
$whatsNew
<p>Thank you for choosing Dracula.</p>
<br>
$linkMessage
<h3>What's New?</h3>
<div>$whatsNew</div>
<div>$linkMessage</div>
</div>
""".trimIndent()

@Language("HTML")
private val welcomeMessage = """
<div>
<p>Thank you for choosing Dracula.</p>
<br>
$linkMessage
</div>
""".trimIndent()
Expand All @@ -65,7 +63,7 @@ object DraculaNotifications {
}

fun notifyFirstlyDownloaded(project: Project) {
val title = "Dracula Theme v${DraculaMeta.currentVersion} installed"
val title = "Dracula Theme is installed"
val notification =
NotificationGroupManager.getInstance().getNotificationGroup(notificationGroupId).createNotification(
title,
Expand Down

0 comments on commit 81d34e1

Please sign in to comment.