forked from twitter-archive/twitter-kit-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
113 lines (101 loc) · 3.93 KB
/
build.gradle
File metadata and controls
113 lines (101 loc) · 3.93 KB
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
/*
* Copyright (C) 2015 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
buildscript {
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
// TODO: Remove once sdk-manager-plugin updated in maven or sdk-manager-plugin is replaced.
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'io.fabric.gradle.unity:unity:0.0.1'
classpath 'com.github.JakeWharton:sdk-manager-plugin:220bf7a88a7072df3ed16dc8466fb144f2817070'
classpath 'io.fabric.gradle.weaving:projectOrBinary:0.0.1'
classpath 'io.fabric.gradle.release:kit-release:0.0.4'
}
}
ext {
commonPlugins = new File(projectDir, 'common-plugins.gradle')
internalScript = new File(projectDir, 'internal.gradle')
fabricDir = projectDir.parentFile.parentFile
qualityScript = new File(fabricDir, 'quality.gradle')
deployScript = new File(fabricDir, 'deploy.gradle')
kitsForRelease = [
":tweet-composer": false,
":tweet-ui": false,
":tweet-mopub": false,
":twitter": false,
":twitter-core": false,
":twitter-unity": false
]
}
subprojects { Project subproject ->
apply from: rootProject.internalScript
apply plugin: 'io.fabric.gradle.weaving.projectOrBinary'
repositories {
jcenter()
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
mavenLocal()
}
// We need to do this so that by the time any project registers a dependency, that project
// already have this property.
projectOrBinary {
useProject = kitsForRelease.findAll({it.getValue()}).isEmpty() ||
kitsForRelease.get(subproject.path)
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.10'
}
ext {
enableTestCodeCoverage = true
compileSdkVersion = 23
targetSdkVersion = 22
buildToolsVersion = '23.0.3'
buildNumber = 'dev'
// Fabric
fabric = 'io.fabric.sdk.android:fabric:1.3.+@aar'
fabricTest = 'io.fabric.sdk.android:fabric-test:0.0.+@aar'
digits = 'com.digits.sdk.android:digits:1.7.+@aar'
mopub = 'com.mopub:mopub-sdk:4.6.0@aar'
// Sample App
leakCanary = 'com.squareup.leakcanary:leakcanary-android:1.3.1'
leakCanaryNoOp = 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
appCompat = 'com.android.support:appcompat-v7:22.2.0'
// Tests
spoon = 'com.squareup.spoon:spoon-client:1.3.2'
espresso = 'com.android.support.test.espresso:espresso-core:2.2'
androidTestingSupport = 'com.android.support.test:runner:0.3'
junit = 'junit:junit:4.12'
junitAddons = 'junit-addons:junit-addons:1.4'
robolectric = 'org.robolectric:robolectric:3.0'
mockito = 'org.mockito:mockito-core:1.9.5'
dexmakerMockito = 'com.google.dexmaker:dexmaker-mockito:1.2'
mavenAntTasks = 'org.apache.maven:maven-ant-tasks:2.1.3'
// Other
picasso = 'com.squareup.picasso:picasso:2.5.2'
supportV4 = 'com.android.support:support-v4:22.2.0'
retrofit = 'com.squareup.retrofit:retrofit:1.8.0'
retrofitMock = 'com.squareup.retrofit:retrofit-mock:1.8.0'
gson = 'com.google.code.gson:gson:2.4'
okHttp = 'com.squareup.okhttp:okhttp:2.3.0'
okHttpUrlConnection = 'com.squareup.okhttp:okhttp-urlconnection:2.3.0'
design = 'com.android.support:design:22.2.0'
tweetText = 'com.twitter:twitter-text:1.13.0'
}