-
Notifications
You must be signed in to change notification settings - Fork 182
/
build.gradle
106 lines (87 loc) · 3.26 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
apply plugin: 'com.android.application'
//apply plugin: 'com.squareup.sqldelight'
apply plugin: 'kotlin-android'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId 'com.pushtorefresh.storio.sample'
minSdkVersion 15
targetSdkVersion rootProject.ext.compileSdkVersion
versionCode 1
versionName '1.0'
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
signingConfigs {
sample {
storeFile file('keystore.jks')
storePassword 'sample'
keyAlias 'sample'
keyPassword 'sample'
}
}
buildTypes {
debug {
signingConfig signingConfigs.sample
matchingFallbacks = ['release']
}
release {
signingConfig signingConfigs.sample
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
disable 'InvalidPackage' // Dagger
disable 'GoogleAppIndexingWarning'
}
packagingOptions {
exclude 'LICENSE.txt' // multiple libs have this file -> cause build error
exclude 'META-INF/proguard/androidx-annotations.pro'
}
}
// Ensure the no-op dependency is always used in JVM tests.
configurations.all { config ->
if (config.name.contains('UnitTest')) {
config.resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.squareup.leakcanary' && details.requested.name == 'leakcanary-android') {
details.useTarget(group: details.requested.group, name: 'leakcanary-android-no-op', version: details.requested.version)
}
}
}
}
//
//sqldelight {
// packageName = "com.pushtorefresh.storio.sample"
// sourceSet = files("src/main/sqldelight")
// schemaOutputDirectory = file("src/main/sqldelight/databases")
//}
dependencies {
implementation libraries.storIOSQLite
implementation libraries.storIOContentResolver
implementation libraries.storIOSQLiteAnnotations
annotationProcessor libraries.storIOSQLiteAnnotationsProcessor
implementation libraries.storIOContentResolverAnnotations
annotationProcessor libraries.storIOContentResolverAnnotationsProcessor
implementation libraries.dagger
annotationProcessor libraries.daggerCompiler
implementation libraries.javaxInject
implementation libraries.javaxAnnotationApi
implementation libraries.rxJava2
implementation libraries.rxAndroid2
implementation libraries.appCompat
implementation libraries.recyclerView
implementation libraries.timber
implementation libraries.butterKnife
annotationProcessor libraries.butterKnife
// Waiting for https://github.com/square/sqldelight/issues/1005
// implementation libraries.sqlDelight
compileOnly libraries.autoParcel
annotationProcessor libraries.autoParcelProcessor
debugImplementation libraries.leakCanary
releaseImplementation libraries.leakCanaryNoOp
testImplementation libraries.junit
testImplementation libraries.assertJ
testImplementation libraries.robolectric
testImplementation libraries.leakCanaryNoOp
testAnnotationProcessor libraries.butterKnife
}