Skip to content

Commit 073bd21

Browse files
committed
v1.0.2 make plugin compatible with Android Studio
1 parent f210507 commit 073bd21

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

ideaplugin/build.gradle.kts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import org.jetbrains.compose.compose
2+
fun properties(key: String) = project.findProperty(key).toString()
3+
24

35
plugins {
46
id("org.jetbrains.intellij") version "1.3.0"
@@ -9,7 +11,7 @@ plugins {
911
}
1012

1113
group = "de.jensklingenberg"
12-
version = "1.0.1"
14+
version = "1.0.2"
1315

1416
repositories {
1517
mavenCentral()
@@ -25,7 +27,7 @@ dependencies {
2527

2628
// See https://github.com/JetBrains/gradle-intellij-plugin/
2729
intellij {
28-
version.set("2021.2")
30+
version.set(properties("platformVersion"))
2931
}
3032

3133
tasks{
@@ -37,5 +39,12 @@ tasks{
3739
kotlinOptions.jvmTarget = "11"
3840
}
3941

42+
patchPluginXml {
43+
version.set(properties("pluginVersion"))
44+
sinceBuild.set(properties("pluginSinceBuild"))
45+
untilBuild.set(properties("pluginUntilBuild"))
46+
47+
48+
}
4049
}
4150

ideaplugin/gradle.properties

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
kotlin.code.style=official
2+
kotlin.version=1.6.10
3+
compose.version=1.0.1-rc2
4+
platformVersion = 2021.2.3
5+
6+
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
7+
# for insight into build numbers and IntelliJ Platform versions.
8+
pluginSinceBuild = 203
9+
pluginUntilBuild = 213.*
10+
pluginVersion = 1.0.2

ideaplugin/src/main/kotlin/de/jensklingenberg/htmltocfw/ideaplugin/ConvertHtmlAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class ConvertHtmlAction : DumbAwareAction() {
5959
Surface(modifier = Modifier.fillMaxSize()) {
6060
Column {
6161
val textState = remember { mutableStateOf(TextFieldValue()) }
62-
Text("Drop your HTML into the textfield and press generate")
62+
Text("Paste your HTML into the textfield and press generate")
6363
TextField(
6464
value = textState.value,
6565
onValueChange = { textState.value = it }

0 commit comments

Comments
 (0)