-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
120 lines (103 loc) · 4.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
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
115
116
117
118
119
120
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
compileSdkVersion compile_sdk_version
defaultConfig {
applicationId "com.juancoob.nanodegree.and.vegginner"
minSdkVersion min_sdk_version
targetSdkVersion target_sdk_version
versionCode version_Code
versionName version_Name
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
vegginnerConfig {
storeFile file('STORE_FILE')
storePassword 'STORE_PASSWORD'
keyAlias 'ALIAS'
keyPassword 'KEY_PASSWORD'
}
}
buildTypes {
applicationVariants.all {
buildConfigField "String", "EDAMAM_APP_ID", "\"" + "YOUR_EDAMAM_APP_ID" + "\""
buildConfigField "String", "EDAMAM_APP_KEY", "\"" + "YOUR_EDAMAM_APP_KEY" + "\""
buildConfigField "String", "PLACE_API_KEY", "\"" + "YOUR_PLACE_API_KEY" + "\""
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.vegginnerConfig
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "com.android.support:appcompat-v7:$support_library_version"
implementation "com.android.support:design:$support_library_version"
implementation "com.android.support:recyclerview-v7:$support_library_version"
implementation "com.android.support:cardview-v7:$support_library_version"
implementation "com.android.support:support-media-compat:$support_library_version"
implementation "com.android.support:support-v4:$support_library_version"
implementation "com.android.support.constraint:constraint-layout:$constraint_layout_version"
// ViewModel and LiveData
implementation "android.arch.lifecycle:extensions:$lifecycle_version"
// Room
implementation "android.arch.persistence.room:runtime:$room_version"
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
// Paging
implementation "android.arch.paging:runtime:$paging_version"
// Dagger 2
implementation "com.google.dagger:dagger:$dagger2_version"
implementation "com.google.dagger:dagger-android:$dagger2_version"
implementation "com.google.dagger:dagger-android-support:$dagger2_version"
annotationProcessor "com.google.dagger:dagger-android-processor:$dagger2_version"
annotationProcessor "com.google.dagger:dagger-compiler:$dagger2_version"
// Butterknife
implementation "com.jakewharton:butterknife:$butterknife_version"
annotationProcessor "com.jakewharton:butterknife-compiler:$butterknife_version"
// Picasso
implementation "com.squareup.picasso:picasso:$picasso_version"
implementation "com.android.support:exifinterface:$support_library_version"
// Retrofit and Gson
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp3_logging_interceptor"
// HTML parser library
implementation "org.jsoup:jsoup:$jsoup_version"
// Google maps
implementation "com.google.android.gms:play-services-maps:$play_services_maps_version"
implementation "com.google.android.gms:play-services-location:$play_services_location_version"
// Timber
implementation "com.jakewharton.timber:timber:$timber_version"
// Crashlytics
implementation "com.crashlytics.sdk.android:crashlytics:$crashlytics_version"
// Firebase
implementation "com.google.firebase:firebase-core:$firebase_core_version"
// Tests
testImplementation "junit:junit:$junit_version"
testImplementation "org.hamcrest:hamcrest-library:$hamcrest_library_version"
androidTestImplementation "com.android.support.test:runner:$test_version"
androidTestImplementation "com.android.support.test:rules:$test_version"
androidTestImplementation "com.android.support.test.espresso:espresso-core:$espresso_core_version"
implementation "com.android.support.test.espresso:espresso-idling-resource:$espresso_core_version"
androidTestImplementation "com.android.support.test.espresso:espresso-contrib:$espresso_core_version"
// Robolectric
testImplementation "org.robolectric:robolectric:$robolectric_version"
}
// Dependencies for basic libraries required for the google services
apply plugin: 'com.google.gms.google-services'