forked from amahi/android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (59 loc) · 2.04 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
buildscript {
repositories {
mavenCentral()
maven {
url "http://download.crashlytics.com/maven"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
classpath "com.crashlytics.tools.gradle:crashlytics-gradle:1.+"
classpath "com.jakewharton.sdkmanager:gradle-plugin:0.12.+"
}
}
apply plugin: "android-sdk-manager"
apply plugin: "android"
apply plugin: "crashlytics"
android {
compileSdkVersion 19
buildToolsVersion "20"
defaultConfig {
versionName "0.2.1"
versionCode 21
minSdkVersion 14
targetSdkVersion 19
def apiFile = file("api.properties")
def apiProperties = new Properties()
if (apiFile.exists()) {
apiProperties.load(apiFile.newInputStream())
buildConfigField "String", "API_URL_AMAHI", formatStringField(apiProperties["url.amahi"])
buildConfigField "String", "API_URL_PROXY", formatStringField(apiProperties["url.proxy"])
buildConfigField "String", "API_CLIENT_ID", formatStringField(apiProperties["client.id"])
buildConfigField "String", "API_CLIENT_SECRET", formatStringField(apiProperties["client.secret"])
}
}
}
def formatStringField(field) {
return String.format("\"%s\"", field)
}
dependencies {
repositories {
mavenCentral()
mavenLocal()
maven {
url "http://download.crashlytics.com/maven"
}
}
compile "com.android.support:support-v4:20.+"
compile "com.android.support:support-v13:20.+"
compile "com.crashlytics.android:crashlytics:1.+"
compile "com.jakewharton.timber:timber:2.3.+"
compile "com.squareup.dagger:dagger:1.2.+"
compile "com.squareup.okio:okio:1.0.+"
compile "com.squareup.okhttp:okhttp:1.5.+"
compile "com.squareup:otto:1.3.+"
compile "com.squareup.picasso:picasso:2.2.+"
compile "com.squareup.retrofit:retrofit:1.5.+"
compile "org.videolan:libvlc:0.9.+"
provided "com.squareup.dagger:dagger-compiler:1.2.+"
}