Skip to content

Commit

Permalink
Merge pull request #9 from aminography/develop
Browse files Browse the repository at this point in the history
Removed dependency to threetenbp.
  • Loading branch information
aminography authored Dec 29, 2021
2 parents 12bdbbe + 6d66796 commit 6e5aafe
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 25 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Add the following lines to your `build.gradle` file:

```gradle
dependencies {
implementation 'com.aminography:primecalendar:1.4.1'
implementation 'com.aminography:primecalendar:1.5.0'
}
```

Expand All @@ -39,7 +39,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.aminography</groupId>
<artifactId>primecalendar</artifactId>
<version>1.4.1</version>
<version>1.5.0</version>
</dependency>
</dependencies>
```
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ buildscript {
}

dependencies {
classpath plugin.android.gradle
classpath plugin.jetbrains.kotlin
classpath plugin.jetbrains.dokka
classpath plugin.nexus.publish
Expand Down
1 change: 0 additions & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ compileTestKotlin {
}

dependencies {
implementation dep.threetenbp
testImplementation dep.junit.core
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,4 @@ class HijriCalendar @JvmOverloads constructor(
const val DHU_AL_QADAH = 10
const val DHU_AL_HIJJAH = 11
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package com.aminography.primecalendar.hijri

import com.aminography.primecalendar.common.DateHolder
import com.aminography.primecalendar.hijri.HijriCalendar.Companion.DEFAULT_LOCALE
import org.threeten.bp.LocalDate
import org.threeten.bp.chrono.HijrahDate
import org.threeten.bp.temporal.ChronoField
import java.time.LocalDate
import java.time.chrono.HijrahDate
import java.time.temporal.ChronoField
import java.util.*
import java.util.Calendar.*

Expand Down Expand Up @@ -241,4 +241,4 @@ object HijriCalendarUtils {
return DateHolder(gregorianDate.get(ChronoField.YEAR), gregorianDate.get(ChronoField.MONTH_OF_YEAR) - 1, gregorianDate.get(ChronoField.DAY_OF_MONTH))
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class ExampleUnitTest {
println(persian.longDateString)

val hijri = HijriCalendar()
println(persian.longDateString)
println(hijri.longDateString)

println("${persian < hijri}")
}
Expand Down
7 changes: 2 additions & 5 deletions scripts/versions.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// semantic versioning
def semantic = [
'major': 1,
'minor': 4,
'patch': 1,
'minor': 5,
'patch': 0,
]
ext.libVersion = [
'code': semantic.major * 1000000 + semantic.minor * 1000 + semantic.patch,
Expand All @@ -13,7 +13,4 @@ ext.libVersion = [
ext.versions = [
'javaTarget' : JavaVersion.VERSION_1_8,
'kotlinJvmTarget': '1.8',
'compileSdk' : 31,
'targetSdk' : 31,
'minSdk' : 15,
]
10 changes: 0 additions & 10 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,10 @@ enableFeaturePreview('VERSION_CATALOGS')
dependencyResolutionManagement {
versionCatalogs {
dep {
alias('threetenbp').to('org.threeten:threetenbp:1.4.0')

alias('androidx-appcompat').to('androidx.appcompat:appcompat:1.4.0')
alias('android-material').to('com.google.android.material:material:1.4.0')
bundle('ui', ['androidx-appcompat', 'android-material'])

alias('junit-core').to('junit:junit:4.13.2')
alias('androidx-junit').to('androidx.test.ext:junit:1.1.3')
alias('androidx-espresso').to('androidx.test.espresso:espresso-core:3.4.0')
bundle('androidTest', ['androidx-junit', 'androidx-espresso'])
}

plugin {
alias('android-gradle').to('com.android.tools.build:gradle:7.0.4')
alias('jetbrains-kotlin').to('org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10')
alias('jetbrains-dokka').to('org.jetbrains.dokka:dokka-gradle-plugin:1.5.0')
alias('nexus-publish').to('io.github.gradle-nexus:publish-plugin:1.1.0')
Expand Down

0 comments on commit 6e5aafe

Please sign in to comment.