Skip to content

Commit

Permalink
Merge pull request #21 from Hinaser/v1.0.0
Browse files Browse the repository at this point in the history
V1.0.0
  • Loading branch information
Hinaser committed Sep 29, 2021
2 parents cc2eeb8 + 71dc06c commit 152e14e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [1.0.0]
### Deprecated
- Dropped support for IDE version <= 203.* due to scheduled API removal.
If you are using old IDE, please try to install gfm-advanced@0.0.9.

## [0.0.9]
### Changed
- Set maximum compatible IDE version to 211.*.
Expand Down Expand Up @@ -48,6 +53,7 @@
### Fixed
- Fixed an issue where offline parser did not properly parse and render some gfm syntax.

[1.0.0]: https://github.com/Hinaser/gfm-advanced/compare/v0.0.9...v1.0.0
[0.0.9]: https://github.com/Hinaser/gfm-advanced/compare/v0.0.8...v0.0.9
[0.0.8]: https://github.com/Hinaser/gfm-advanced/compare/v0.0.7...v0.0.8
[0.0.7]: https://github.com/Hinaser/gfm-advanced/compare/v0.0.6...v0.0.7
Expand Down
9 changes: 4 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
apply plugin: 'org.jetbrains.changelog'

group 'com.github.hinaser'
version '0.0.9'
version '1.0.0'

repositories {
mavenCentral()
Expand All @@ -27,13 +27,12 @@ dependencies {
// For debugging purpose, I recommend to also download correspond source file here.
// https://github.com/JetBrains/intellij-community/tags
intellij {
version '211.6693.111'
// version '203.8084.24'
// version '202.8194.7'
version '212.5080.55'
// version '211.6693.111'
updateSinceUntilBuild false
}
patchPluginXml {
changeNotes({ changelog.getLatest().toHTML() })
sinceBuild '202.6109'
}
publishPlugin {
token = System.getenv("ORG_GRADLE_PROJECT_intellijPublishToken")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.hinaser.gfma.browser;

import com.intellij.openapi.Disposable;
import com.intellij.ui.jcef.JBCefBrowserBase;
import com.intellij.ui.jcef.JBCefBrowser;
import com.intellij.ui.jcef.JBCefJSQuery;
import com.intellij.ui.jcef.JBCefJSQuery.Response;
Expand All @@ -25,9 +26,7 @@ public class ChromiumBrowser implements IBrowser, Disposable {

public ChromiumBrowser() {
browser = new JBCefBrowser();
// To support older version, I intentionally use deprecated method here.
// If replaced to non-deprecated method, it eventually drops support on idea version <= 202.*.
jsQuery = JBCefJSQuery.create(browser);
jsQuery = JBCefJSQuery.create((JBCefBrowserBase)browser);
isReadyToExecuteJavaScript = false;
addLoadHandler();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import com.intellij.openapi.Disposable;
import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.components.State;
import com.intellij.openapi.components.Storage;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.util.Disposer;
import org.jdom.Element;
import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -40,7 +40,7 @@ public class ApplicationSettingsService implements PersistentStateComponent<Elem
private Date rateLimitReset = null;

public static ApplicationSettingsService getInstance() {
return ServiceManager.getService(ApplicationSettingsService.class);
return ApplicationManager.getApplication().getService(ApplicationSettingsService.class);
}

public void setUseGitHubMarkdownAPI(boolean useGitHubMarkdownAPI) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>GfmA</name>
<vendor email="rindo.hinase@gmail.com" url="https://github.com/Hinaser">Hinaser</vendor>

<idea-version since-build="202.6109" until-build="211.*" />
<idea-version since-build="211.6693.111" />

<description><![CDATA[
<p>Yet another GFM(GitHub Flavored Markdown) Preview plugin for intellij platform</p>
Expand Down

0 comments on commit 152e14e

Please sign in to comment.