/
build.gradle
54 lines (47 loc) 路 1.52 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
String lookupProperty(Project project, String gradlePropName, String envVarName) {
return project.hasProperty(gradlePropName) ? project.property(gradlePropName) : System.getenv()[envVarName]
}
Object[] versionInfo = screengrabVersion(rootProject.file('version.properties'))
String versionNameString = versionInfo[0] as String
int versionCodeInt = versionInfo[1] as int
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.novoda:bintray-release:0.3.4'
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
versionCode versionCodeInt
versionName versionNameString
minSdkVersion 8
}
buildTypes {
release {
minifyEnabled false
}
}
}
publish {
userOrg = 'fastlane'
repoName = 'fastlane'
groupId = 'tools.fastlane'
artifactId = 'screengrab'
publishVersion = versionNameString
website = 'https://github.com/fastlane/screengrab'
bintrayUser = lookupProperty(project, 'bintrayUser', 'BINTRAY_USER')
bintrayKey = lookupProperty(project, 'bintrayKey', 'BINTRAY_KEY')
}
dependencies {
compile "com.android.support:support-annotations:23.1.1"
compile 'com.android.support.test:runner:0.4.1'
compile 'com.android.support.test:rules:0.4.1'
compile 'com.android.support.test.espresso:espresso-core:2.2.1'
compile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
}