A lightweight Android library to convert and handle ad / bs data efficiently, designed for easy integration and minimal setup.
- Simple, plug-and-play Android library
- Lightweight and fast
- No UI dependency
- Works with both local AAR and JitPack
- Kotlin-first API
Add JitPack repository in your settings.gradle.kts:
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven(url = "https://jitpack.io")
}
}Add the dependency:
dependencies {
implementation("com.github.MENT0Z:Ad-Bs-Converter:v1.0.0")
}
import com.mruraza.adbsconverter.adToBs
import com.mruraza.adbsconverter.bsToAd
// here date is YYYY-MM--DD or YYYY/MM/DD in BS
bsToAd(date)
// Converts an AD timestamp, provided as a Long in milliseconds, to BS format and returns Object (day: Int, month: String, year: Int)
adToBs(timeMillis)- Android SDK 21+
- Kotlin
- Android Gradle Plugin 8.5+
- compileSdk = 36
- minSdk = 28
- agp >= 8.9.1