forked from Nilzor/build-variant-matrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (67 loc) · 2.32 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
buildscript {
repositories {
mavenCentral()
jcenter()
maven { url 'https://www.jetbrains.com/intellij-repository/releases' }
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.8.0'
id 'org.jetbrains.intellij' version '1.0'
}
group 'com.nilsenlabs.flavormatrix'
version '1.1.0'
// Any developer must change this to his/her installation folder
// of Android Studio of the targetIdeVersion for which to build for
// When updating, update 4 source JAR dependencies manually to get
// the dev environment class resolution correctly:
// Project Settings > Modules
// plugins\properties\lib\platform-images.jar
// plugin\sproperties\lib\properties.jar
// plugins\smali\lib\smali.jar
def localStudioPath = 'C:/coding/android-studio-2022.1.1.19'
//def localStudioPath = 'C:/Programfiler/android/Android Studio'
// Below: Electric Eel patch 1 . ALWAYS UPDATE PLUGIN.XML AS WELL
def targetIdeVersion = "221.6008.13"
// Build #IC-213.6777.52, built on January 28, 2022
// The other machine: 'c:/Program Files/Android/Android Studio 4.1 RC3'
intellij {
// Uncomment the two lines below and remove "localPath" if you want to build for a different version than the one locally installed
// version = targetIdeVersion
// type = 'IC' // Community edition
plugins = ['android']
localPath = localStudioPath
// since-build and until-build is configured in plugin.xml.
// Update whenever rebuilt for later IDEA version.
updateSinceUntilBuild = false
}
patchPluginXml {
changeNotes = """
<ul>
<li>1.1.0 Support for Android Studio Electric Eel</li>
<li>1.0.0 Support for Android Studio Chipmunk (RC2+)</li>
<li>0.7.0 Support for Android studio Arctic Fox 2020.3.1</li>
<li>0.6.0 Support for Android 4.2</li>
</ul>
"""
}
runIde {
def dirObj = project.getLayout().getProjectDirectory().dir(localStudioPath)
ideDir.set(dirObj)
}
instrumentCode {
compilerVersion = targetIdeVersion
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://www.jetbrains.com/intellij-repository/releases' }
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
testCompile "org.mockito:mockito-core:2.+"
}
//publishPlugin {
// token project.properties['jetbrains.publish.token']
//}