forked from facebook/litho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (72 loc) · 2.94 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:${GRADLE_BINTRAY_PLUGIN_VERSION}"
classpath "com.github.dcendents:android-maven-gradle-plugin:${ANDROID_MAVEN_GRADLE_PLUGIN_VERSION}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
subprojects {
repositories {
jcenter()
}
}
ext {
minSdkVersion = 15
targetSdkVersion = 25
compileSdkVersion = 25
buildToolsVersion = '25.0.2'
sourceCompatibilityVersion = JavaVersion.VERSION_1_7
targetCompatibilityVersion = JavaVersion.VERSION_1_7
}
ext.deps = [
// Android support
supportAnnotations : 'com.android.support:support-annotations:25.3.1',
supportAppCompat : 'com.android.support:appcompat-v7:25.3.1',
supportCoreUi : 'com.android.support:support-core-ui:25.3.1',
supportRecyclerView: 'com.android.support:recyclerview-v7:25.3.1',
// First-party
fresco : 'com.facebook.fresco:fresco:1.2.0',
soloader : 'com.facebook.soloader:soloader:0.2.0',
textlayoutbuilder : 'com.facebook.fbui.textlayoutbuilder:textlayoutbuilder:1.1.0',
stetho : 'com.facebook.stetho:stetho:1.5.0',
yoga : 'com.facebook.yoga:yoga:1.5.1-SNAPSHOT',
// Annotations
jsr305 : 'com.google.code.findbugs:jsr305:3.0.1',
inferAnnotations : 'com.facebook.infer.annotation:infer-annotation:0.10.0.2',
// Debugging and testing
guava : 'com.google.guava:guava:20.0',
robolectric : 'org.robolectric:robolectric:3.0',
junit : 'junit:junit:4.12',
powermockReflect : 'org.powermock:powermock-reflect:1.5.6',
powermockMockito : 'org.powermock:powermock-api-mockito:1.5.6',
powermockJunit : 'org.powermock:powermock-module-junit4-rule:1.5.6',
powermockXstream : 'org.powermock:powermock-classloading-xstream:1.5.6',
mockitoCore : 'org.mockito:mockito-core:1.9.5',
assertjCore : 'org.assertj:assertj-core:2.6.0',
compileTesting : 'com.google.testing.compile:compile-testing:0.10',
// Processor
javapoet : 'com.squareup:javapoet:1.8.0',
]
// This should hopefully only serve as a temporary measure until
// we have a proper Gradle setup for Yoga and JNI.
task copyYogaLibs(type: Copy, dependsOn: ':yoga:buckBuild') {
from 'buck-out/gen/lib/fbjni/jni#default,shared/'
from 'buck-out/gen/lib/yogajni/jni#default,shared/'
include '*.so'
include '*.dylib'
include '*.dll'
into "$buildDir/jniLibs"
}
afterEvaluate {
tasks.withType(Test) {
dependsOn copyYogaLibs
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}