File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
kotlin.code.style =official
2
2
3
3
# IU, IC, PC, PY, WS...
4
+ # IC for AndroidStudio
4
5
ideType =IC
5
6
7
+ # In order to run Android Studion instead of Intellij Community,
8
+ # specify the path to your Android Studio installation
9
+ //androidStudioPath =D:/AS2021
10
+
6
11
pythonCommunityPluginVersion =222.4167.37
7
12
# Version numbers: https://plugins.jetbrains.com/plugin/631-python/versions
8
13
pythonUltimatePluginVersion =222.4167.37
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ val pythonUltimatePluginVersion: String? by rootProject
8
8
val sootCommitHash: String? by rootProject
9
9
val kryoVersion: String? by rootProject
10
10
val semVer: String? by rootProject
11
+ val androidStudioPath: String? by rootProject
12
+
13
+ // https://plugins.jetbrains.com/docs/intellij/android-studio.html#configuring-the-plugin-pluginxml-file
14
+ val ideTypeOrAndroidStudio = if (androidStudioPath == null ) ideType else " IC"
11
15
12
16
plugins {
13
17
id(" org.jetbrains.intellij" ) version " 1.7.0"
@@ -17,11 +21,13 @@ intellij {
17
21
18
22
val androidPlugins = listOf (" org.jetbrains.android" )
19
23
20
- val jvmPlugins = listOf (
24
+ val jvmPlugins = mutableListOf (
21
25
" java" ,
22
26
" org.jetbrains.kotlin:222-1.7.20-release-201-IJ4167.29"
23
27
)
24
28
29
+ androidStudioPath?.let { jvmPlugins + = androidPlugins }
30
+
25
31
val pythonCommunityPlugins = listOf (
26
32
" PythonCore:${pythonCommunityPluginVersion} "
27
33
)
@@ -45,7 +51,7 @@ intellij {
45
51
)
46
52
47
53
version.set(" 222.4167.29" )
48
- type.set(ideType )
54
+ type.set(ideTypeOrAndroidStudio )
49
55
}
50
56
51
57
tasks {
@@ -64,6 +70,7 @@ tasks {
64
70
65
71
runIde {
66
72
jvmArgs(" -Xmx2048m" )
73
+ androidStudioPath?.let { ideDir.set(file(it)) }
67
74
}
68
75
69
76
patchPluginXml {
You can’t perform that action at this time.
0 commit comments