forked from mikepenz/FastAdapter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
182 lines (155 loc) · 6.72 KB
/
Copy pathbuild.gradle
File metadata and controls
182 lines (155 loc) · 6.72 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'realm-android'
//wrap with try and catch so the build is working even if the signing stuff is missing
try {
apply from: '../../../signing.gradle'
} catch (ex) {
}
android {
compileSdkVersion setup.compileSdk
buildToolsVersion setup.buildTools
defaultConfig {
minSdkVersion setup.minSdk
targetSdkVersion setup.targetSdk
versionCode release.versionCode
versionName release.versionName
multiDexEnabled true
setProperty("archivesBaseName", "FastAdapter-v$versionName-c$versionCode")
}
buildTypes {
debug {
versionNameSuffix "-DEBUG"
try {
signingConfig signingConfigs.debug
} catch (ex) {
}
minifyEnabled false
}
release {
try {
signingConfig signingConfigs.release
} catch (ex) {
}
zipAlignEnabled true
minifyEnabled false
}
}
lintOptions {
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/library-core_release.kotlin_module'
exclude 'META-INF/library_release.kotlin_module'
}
}
kapt {
generateStubs = true
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}"
implementation 'com.android.support:multidex:1.0.3'
implementation project(':library-core')
implementation project(':library-extensions-diff')
implementation project(':library-extensions-drag')
implementation project(':library-extensions-expandable')
implementation project(':library-extensions-scroll')
implementation project(':library-extensions-swipe')
implementation project(':library-extensions-ui')
implementation project(':library-extensions-utils')
implementation project(':library-extensions-paged')
implementation "androidx.appcompat:appcompat:${versions.appcompat}"
implementation "androidx.recyclerview:recyclerview:${versions.recyclerView}"
implementation "androidx.cardview:cardview:${versions.cardview}"
implementation "com.google.android.material:material:${versions.material}"
// view binding lib?
implementation 'com.android.support:support-annotations:28.0.0'
// used to base on some backwards compatible themes
// contains util classes to support various android versions, and clean up code
// comes with the awesome "Holder"-Pattern
// https://github.com/mikepenz/Materialize
implementation "com.mikepenz:materialize:${versions.materialize}"
// used to provide out of the box icon font support. simplifies development,
// and provides scalable icons. the core is very very light
// https://github.com/mikepenz/Android-Iconics
implementation "com.mikepenz:iconics-core:${versions.iconics}"
implementation "com.mikepenz:iconics-views:${versions.iconics}"
//used to generate the drawer on the left
//https://github.com/mikepenz/MaterialDrawer
implementation("com.mikepenz:materialdrawer:${versions.materialdrawer}") {
transitive = true
exclude group: "com.mikepenz"
}
//used to provide different itemAnimators for the RecyclerView
//https://github.com/mikepenz/ItemAnimators
implementation 'com.mikepenz:itemanimators:1.1.0'
//used to generate the Open Source section
//https://github.com/mikepenz/AboutLibraries
implementation("com.mikepenz:aboutlibraries:${versions.aboutlib}") {
transitive = true
exclude group: "com.mikepenz"
}
//used to display the icons in the drawer
//https://github.com/mikepenz/Android-Iconics
implementation 'com.mikepenz:material-design-iconic-typeface:2.2.0.6-kotlin@aar'
implementation 'com.mikepenz:community-material-typeface:3.5.95.1-kotlin@aar'
implementation 'com.mikepenz:google-material-typeface:3.0.1.4.original-kotlin@aar'
implementation 'com.mikepenz:fontawesome-typeface:5.9.0.0-kotlin@aar'
//Used for the StickyHeaderSample
//https://github.com/timehop/sticky-headers-recyclerview
//original dependency: implementation 'com.timehop.stickyheadersrecyclerview:library:0.4.3@aar'
//customized version to allow minimal header animation
implementation 'com.mikepenz.thirdparty:stickyheadersrecyclerview:0.5.1-SNAPSHOT@aar'
//Used to provide the FastScrollBar
//https://github.com/krimin-killr21/MaterialScrollBar
implementation 'com.github.turing-tech:MaterialScrollBar:13.3.2'
//https://github.com/JakeWharton/butterknife
implementation 'com.jakewharton:butterknife:10.2.0'
kapt 'com.jakewharton:butterknife-compiler:10.2.0'
//used to load the images in the ImageListSample
//https://github.com/bumptech/glide
implementation 'com.github.bumptech.glide:glide:3.8.0'
//Used to provide the drag selection like google photos
implementation 'com.github.MFlisar:DragSelectRecyclerView:0.2'
//mopub sdk to showcase the usage of the mopub adapter
implementation('com.mopub:mopub-sdk:4.11.0@aar') {
transitive = true
exclude group: "com.google.android.exoplayer"
}
implementation('com.mopub:mopub-sdk-native-static:4.11.0@aar') {
transitive = true
exclude group: "com.google.android.exoplayer"
}
//Used to async operations
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.13'
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
implementation "android.arch.persistence.room:runtime:${versions.room}"
kapt "android.arch.persistence.room:compiler:${versions.room}"
implementation "android.arch.lifecycle:extensions:${versions.lifecycle}"
configurations.all {
resolutionStrategy.force "com.mikepenz:materialize:${versions.materialize}"
resolutionStrategy.force "com.mikepenz:iconics-core:${versions.iconics}"
resolutionStrategy.force "com.mikepenz:iconics-views:${versions.iconics}"
resolutionStrategy.force "com.mikepenz:aboutlibraries:${versions.aboutlib}"
resolutionStrategy.force "androidx.appcompat:appcompat:${versions.appcompat}"
resolutionStrategy.force "androidx.recyclerview:recyclerview:${versions.recyclerView}"
resolutionStrategy.force "androidx.cardview:cardview:${versions.cardview}"
resolutionStrategy.force "com.google.android.material:material:${versions.material}"
}
}
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "io.realm:realm-gradle-plugin:6.0.0"
}
}