Skip to content

Commit

Permalink
Simplified modules
Browse files Browse the repository at this point in the history
Signed-off-by: Arnau Mora Gras <[email protected]>
  • Loading branch information
ArnyminerZ committed Oct 21, 2024
1 parent 5439c1f commit 1c4473a
Show file tree
Hide file tree
Showing 106 changed files with 111 additions and 118 deletions.
103 changes: 100 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,105 @@
plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.dokka) apply false
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.dokka)
`maven-publish`
}

group = "at.bitfire"
version = System.getenv("GIT_COMMIT")

android {
namespace = "at.bitfire.vcard4android"

compileSdk = 34

defaultConfig {
minSdk = 23 // Android 6

aarMetadata {
minCompileSdk = 29
}
}

compileOptions {
isCoreLibraryDesugaringEnabled = true
}
kotlin {
jvmToolchain(21)
}

buildTypes {
release {
isMinifyEnabled = false
}
}

packaging {
resources {
excludes += listOf("LICENSE", "META-INF/LICENSE.txt", "META-INF/NOTICE.txt")
}
}

lint {
disable += listOf("AllowBackup", "InvalidPackage")
}

defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

@Suppress("UnstableApiUsage")
testOptions {
managedDevices {
localDevices {
create("virtual") {
device = "Pixel 3"
apiLevel = 33
systemImageSource = "aosp-atd"
}
}
}
}

publishing {
// Configure publish variant
singleVariant("release") {
withSourcesJar()
}
}
}

publishing {
// Configure publishing data
publications {
register("release", MavenPublication::class.java) {
groupId = "com.github.bitfireAT"
artifactId = "vcard4android"
version = System.getenv("GIT_COMMIT")

afterEvaluate {
from(components["release"])
}
}
}
}

dependencies {
implementation(libs.kotlin.stdlib)
coreLibraryDesugaring(libs.desugar)

implementation(libs.androidx.annotation)
implementation(libs.guava)

// ez-vcard to parse/generate vCards
api(libs.ezvcard) { // requires Java 8
// hCard functionality not needed
exclude(group = "org.jsoup")
exclude(group = "org.freemarker")
}

androidTestImplementation(libs.androidx.test.rules)
androidTestImplementation(libs.androidx.test.runner)

testImplementation(libs.junit)
}
102 changes: 0 additions & 102 deletions lib/build.gradle.kts

This file was deleted.

2 changes: 0 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ dependencyResolutionManagement {
}

rootProject.name = "vcard4android"
include (":lib")
project(":lib").name = "vcard4android"
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
BEGIN:VCARD
VERSION:4.0
PRODID:+//IDN bitfire.at//DAVdroid/1.3.4.1-ose vcard4android ez-vcard/0.10.
0
REV;VALUE=timestamp:2016-11-19T17:44:22.057Z
UID:2e4f2d8d8a
FN:Name Name
N:Name;Name;;;
TEL;TYPE=fax:+49000000
TEL;TYPE=voice:+49000000
END:VCARD
BEGIN:VCARD
VERSION:4.0
PRODID:+//IDN bitfire.at//DAVdroid/1.3.4.1-ose vcard4android ez-vcard/0.10.
0
REV;VALUE=timestamp:2016-11-19T17:44:22.057Z
UID:2e4f2d8d8a
FN:Name Name
N:Name;Name;;;
TEL;TYPE=fax:+49000000
TEL;TYPE=voice:+49000000
END:VCARD
File renamed without changes.

0 comments on commit 1c4473a

Please sign in to comment.