-
Notifications
You must be signed in to change notification settings - Fork 171
/
Copy pathbuild.gradle
56 lines (48 loc) · 1.87 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
apply plugin: 'com.android.application'
def apikeyPropertiesFile = rootProject.file("apikey.properties")
def apikeyProperties = new Properties()
apikeyProperties.load(new FileInputStream(apikeyPropertiesFile))
android {
compileSdkVersion 30
defaultConfig {
applicationId "com.codepath.apps.restclienttemplate"
minSdkVersion 21
targetSdkVersion 30
// Room schemas
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
buildConfigField("String", "CONSUMER_KEY", apikeyProperties['CONSUMER_KEY'])
buildConfigField("String", "CONSUMER_SECRET", apikeyProperties['CONSUMER_SECRET'])
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// Related to https://github.com/scribejava/scribejava/issues/480
// Scribe expects Java 7 or this custom Apache library
lintOptions {
lintConfig rootProject.file('gradle/lint.xml')
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
implementation 'com.codepath.libraries:android-oauth-handler:2.4.0'
implementation 'commons-codec:commons-codec:1.10'
implementation 'androidx.appcompat:appcompat:1.3.0'
// Glide for remote image loading
implementation 'com.github.bumptech.glide:glide:4.11.0'
// Room for simple persistence with an ORM
def room_version = "2.3.0"
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
implementation 'com.facebook.stetho:stetho:1.5.1'
}