Skip to content

Commit

Permalink
feat: Align the library with DataStore version using BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd committed May 9, 2024
1 parent 024c20a commit b9ac7bd
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## [Unreleased]

### Added

- Enforce version alignment between the library and DataStore using BOM (#45)

### Housekeeping

- Publication migrated to [com.vanniktech:gradle-maven-publish-plugin](https://github.com/vanniktech/gradle-maven-publish-plugin)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import com.redmadrobot.build.dsl.kotlinCompile
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import internal.java
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
id("org.jetbrains.kotlinx.binary-compatibility-validator")
Expand All @@ -16,6 +16,10 @@ java {
targetCompatibility = JavaVersion.VERSION_11
}

dependencies {
"api"(platform(project(":encrypted-datastore-bom")))
}

apiValidation {
ignoredPackages.add("io.github.osipxd.datastore.encrypted.internal")
nonPublicMarkers.add("androidx.annotation.RestrictTo")
Expand Down
19 changes: 19 additions & 0 deletions encrypted-datastore-bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
plugins {
`java-platform`
convention.publish
}

description = "Encryted DataStore BOM"

dependencies {
constraints {
api(projects.encryptedDatastore)
api(projects.encryptedDatastorePreferences)
api(projects.securityCryptoDatastore)
api(projects.securityCryptoDatastorePreferences)
api(libs.androidx.datastore)
api(libs.androidx.datastore.core)
api(libs.androidx.datastore.preferences)
api(libs.androidx.datastore.preferences.core)
}
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencyResolutionManagement {
}

include(
"encrypted-datastore-bom",
"encrypted-datastore",
"encrypted-datastore-preferences",
"security-crypto-datastore",
Expand Down

0 comments on commit b9ac7bd

Please sign in to comment.