forked from mikepenz/Android-Iconics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
150 lines (127 loc) · 5.24 KB
/
Copy pathbuild.gradle
File metadata and controls
150 lines (127 loc) · 5.24 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
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.mikepenz.aboutlibraries.plugin'
/*
* Copyright (c) 2019 Mike Penz
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//wrap with try and catch so the build is working even if the signing stuff is missing
try {
apply from: '../../../signing.gradle'
} catch (final ignored) {
}
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
compileSdkVersion setup.compileSdk
buildToolsVersion setup.buildTools
defaultConfig {
minSdkVersion setup.minSdk
targetSdkVersion setup.targetSdk
versionCode release.versionCode
versionName release.versionName
multiDexEnabled true
setProperty("archivesBaseName", "Android Iconics-v$versionName-c$versionCode")
}
buildTypes {
debug {
applicationIdSuffix = ".debug"
versionNameSuffix = "-DEBUG"
try {
signingConfig signingConfigs.debug
} catch (final ignored) {
}
minifyEnabled false
}
release {
try {
signingConfig signingConfigs.release
} catch (final ignored) {
}
zipAlignEnabled true
minifyEnabled false
}
}
lintOptions {
abortOnError false
}
packagingOptions {
exclude 'META-INF/library-core_release.kotlin_module'
exclude 'META-INF/library_release.kotlin_module'
}
dataBinding {
enabled = true
}
}
dependencies {
implementation 'androidx.multidex:multidex:2.0.1'
implementation "androidx.appcompat:appcompat:${versions.appcompat}"
implementation "com.google.android.material:material:${versions.material}"
implementation "androidx.recyclerview:recyclerview:${versions.recyclerView}"
implementation "androidx.cardview:cardview:${versions.cardview}"
implementation "androidx.core:core-ktx:${versions.ktx.core}"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}"
kapt "com.android.databinding:compiler:3.5.3"
// 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:1.2.1'
// used to fill the RecyclerView with the DrawerItems
// and provides single and multi selection, expandable items
// https://github.com/mikepenz/FastAdapter
implementation 'com.mikepenz:fastadapter:4.1.2'
implementation 'com.mikepenz:fastadapter-extensions-utils:4.1.2'
implementation 'com.mikepenz:fastadapter-extensions-ui:4.1.2'
implementation 'com.mikepenz:fastadapter-extensions-expandable:4.1.2'
// used to generating string fields for icons (sample - test/java/StringFieldGenerator.java)
// https://github.com/zTrap/Android-Iconics-String-Generator
testImplementation 'ru.ztrap.iconics:string-generator:1.0.4'
// used to generate the drawer on the left
// https://github.com/mikepenz/MaterialDrawer
implementation('com.mikepenz:materialdrawer:7.0.0') {
transitive = true
exclude module: "fastadapter"
exclude module: "fastadapter-extensions-expandable"
exclude module: "iconics-core"
}
// used to generate the Open Source section
// https://github.com/mikepenz/AboutLibraries
implementation("com.mikepenz:aboutlibraries:${versions.aboutLibraries}") {
transitive = true
exclude module: "fastadapter"
exclude module: "iconics-core"
}
implementation project(':library-core')
implementation project(':iconics-view-library')
implementation project(':fontawesome-typeface-library')
implementation project(':material-design-iconic-typeface-library')
implementation project(':google-material-typeface-library')
implementation project(':meteocons-typeface-library')
implementation project(':weather-icons-typeface-library')
implementation project(':octicons-typeface-library')
implementation project(':community-material-typeface-library')
implementation project(':entypo-typeface-library')
implementation project(':typeicons-typeface-library')
implementation project(':devicon-typeface-library')
implementation project(':foundation-icons-typeface-library')
implementation project(':ionicons-typeface-library')
implementation project(':pixeden-7-stroke-typeface-library')
implementation project(':material-design-dx-typeface-library')
testImplementation 'junit:junit:4.12'
}