blob: 9ea56e245977d7fd6b1a8b5a11967b0003f4867e (
plain)
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
|
buildscript {
ext.versions = [
kotlin: '1.6.10',
dokka: '1.5.31',
// latest Apache Commons versions that don't require Java 8 (Android 7)
commonsIO: '2.6',
commonsText: '1.3'
]
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${versions.dokka}"
}
}
repositories {
google()
mavenCentral()
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.dokka'
android {
compileSdkVersion 31
buildToolsVersion '30.0.3'
defaultConfig {
minSdkVersion 16 // Android 4.1
targetSdkVersion 31 // Android 12
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
disable 'AllowBackup'
disable 'InvalidPackage'
}
packagingOptions {
exclude 'LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
defaultConfig {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
implementation 'androidx.annotation:annotation:1.3.0'
// noinspection GradleDependency
implementation "commons-io:commons-io:${versions.commonsIO}"
// noinspection GradleDependency
implementation "org.apache.commons:commons-text:${versions.commonsText}"
// ez-vcard to parse/generate vCards
api('com.googlecode.ez-vcard:ez-vcard:0.11.3') {
// hCard functionality not needed
exclude group: 'org.jsoup'
exclude group: 'org.freemarker'
}
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test:rules:1.4.0'
testImplementation 'junit:junit:4.13.2'
}
|