-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathbuild.gradle
More file actions
89 lines (73 loc) · 2.54 KB
/
build.gradle
File metadata and controls
89 lines (73 loc) · 2.54 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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
compileSdk 34
namespace 'com.iterable.iterableapi.ui'
defaultConfig {
minSdkVersion 21
targetSdkVersion 34
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled = true
}
buildFeatures {
buildConfig true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
publishing {
multipleVariants {
allVariants()
withJavadocJar()
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
enableAndroidTestCoverage true
}
}
}
dependencies {
api project(':iterableapi')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation "com.github.bumptech.glide:glide:4.16.0"
implementation 'com.google.android.material:material:1.12.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
androidTestImplementation 'androidx.test:runner:1.6.2'
androidTestImplementation 'androidx.test:rules:1.6.1'
}
ext {
libraryName = 'iterableapi-ui'
libraryVersion = '3.5.11'
}
if (hasProperty("mavenPublishEnabled")) {
apply from: '../maven-push.gradle'
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
exclude '**/*.kt'
}
// A hack to import the classpath and BuildConfig into the javadoc task
android.libraryVariants.configureEach { variant ->
javadoc.doFirst {
javadoc.classpath += files(variant.javaCompileProvider.get().classpath.files)
javadoc.classpath += files("build/generated/source/r/${variant.flavorName}/${variant.buildType.name}")
javadoc.classpath += files("build/generated/source/buildConfig/${variant.flavorName}/${variant.buildType.name}")
}
}