forked from RooyeKhat-Media/Emoji
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
114 lines (98 loc) · 3.36 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'com.vanniktech.code.quality.tools'
apply plugin: 'com.vanniktech.android.junit.jacoco'
buildscript {
ext.kotlin_version = '1.1.4-3'
ext.versions = [
espresso: '3.0.1',
testRules: '1.0.1',
]
ext.deps = [
'support': [
'test': [
'espresso': [
'core': "com.android.support.test.espresso:espresso-core:${versions.espresso}",
],
'runner': "com.android.support.test:runner:${versions.testRules}",
'rules': "com.android.support.test:rules:${versions.testRules}",
],
],
'fastLaneScreenGrab': "tools.fastlane:screengrab:1.1.0",
]
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.vanniktech:gradle-code-quality-tools-plugin:0.8.0'
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.9.0'
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
codeQualityTools {
lint {
textReport = true
}
checkstyle {
toolVersion = '8.2'
}
pmd {
toolVersion = '5.8.1'
}
ktlint {
toolVersion = '0.9.2'
}
detekt {
toolVersion = '1.0.0.RC4-3'
}
errorProne {
toolVersion = '2.0.21'
}
}
junitJacoco {
// Don't care about sample and generated modules
ignoreProjects = ['app', 'emoji-ios', 'emoji-google', 'emoji-twitter', 'emoji-one', 'emoji-compat', 'emoji-kotlin']
}
subprojects {
repositories {
jcenter()
google()
mavenCentral()
}
group = GROUP
version = VERSION_NAME
}
ext {
minSdkVersion = 15
compileSdkVersion = 26
targetSdkVersion = 26
buildToolsVersion = '26.0.1'
supportLibraryVersion = '26.1.0'
leakCanaryVersion = '1.5.1'
versionCode = VERSION_CODE
versionName = VERSION_NAME
supportAppCompat = "com.android.support:appcompat-v7:$supportLibraryVersion"
supportV4CoreUi = "com.android.support:support-core-ui:$supportLibraryVersion"
supportV4Compat = "com.android.support:support-compat:$supportLibraryVersion"
supportRecyclerView = "com.android.support:recyclerview-v7:$supportLibraryVersion"
supportCardView = "com.android.support:cardview-v7:$supportLibraryVersion"
supportAnnotations = "com.android.support:support-annotations:$supportLibraryVersion"
supportEmoji = "com.android.support:support-emoji:$supportLibraryVersion"
supportEmojiBundled = "com.android.support:support-emoji-bundled:$supportLibraryVersion"
leakCanaryDebug = "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
leakCanaryRelease = "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
testing = [
junit : 'junit:junit:4.12',
robolectric : 'org.robolectric:robolectric:3.4.2',
mockito : 'org.mockito:mockito-core:2.10.0',
privateConstructor: 'com.pushtorefresh.java-private-constructor-checker:checker:1.2.0',
assertJ : 'org.assertj:assertj-core:3.8.0'
]
javaVersion = JavaVersion.VERSION_1_7
}
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
distributionType = Wrapper.DistributionType.ALL
}