Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirWrites committed Apr 28, 2022
1 parent bb1bc95 commit dfdc670
Show file tree
Hide file tree
Showing 22 changed files with 47 additions and 59 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ and to your app `build.gradle`:
###### AndroidX
```groovy
dependencies {
implementation 'com.github.VladimirWrites:Lemniscate:2.0.2'
implementation 'com.github.VladimirWrites:Lemniscate:2.0.4'
}
```

Expand Down
37 changes: 18 additions & 19 deletions buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@

object Versions {
const val kotlin = "1.4.10"
const val kotlin = "1.6.21"

const val android_x = "1.2.0"
const val android_x = "1.4.1"

const val circleindicator = "2.1.4"
const val circleindicator = "2.1.6"

const val junit = "4.13.1"
const val mockito_core = "3.5.15"
const val mockito_kotlin = "2.2.0"
const val truth = "1.1"
const val robolectric = "4.4"
const val junit = "4.13.2"
const val mockito_core = "4.5.1"
const val mockito_kotlin = "4.0.0"
const val truth = "1.1.3"
const val robolectric = "4.7.3"

const val gradle_android = "4.0.2"
const val jacoco = "0.8.6"
const val gradle_android = "7.1.3"
const val jacoco = "0.8.8"

const val min_sdk = 14
const val target_sdk = 29
const val compile_sdk = 29
const val build_tools = "29.0.3"
const val target_sdk = 31
const val compile_sdk = 31

const val lemniscate_version_code = 203
const val lemniscate_version_name = "2.0.3"
const val lemniscate_version_code = 204
const val lemniscate_version_name = "2.0.4"

const val sample_version_code = 132
const val sample_version_name = "1.3.2"
const val sample_version_code = 133
const val sample_version_name = "1.3.3"
}

object Deps {
const val kotlin_stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${Versions.kotlin}"
const val kotlin_stdlib = "org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlin}"

const val appcompat = "androidx.appcompat:appcompat:${Versions.android_x}"

const val circleindicator = "me.relex:circleindicator:${Versions.circleindicator}"

const val junit = "junit:junit:${Versions.junit}"
const val mockito_core = "org.mockito:mockito-core:${Versions.mockito_core}"
const val mockito_kotlin = "com.nhaarman.mockitokotlin2:mockito-kotlin:${Versions.mockito_kotlin}"
const val mockito_kotlin = "org.mockito.kotlin:mockito-kotlin:${Versions.mockito_kotlin}"
const val truth = "com.google.truth:truth:${Versions.truth}"
const val robolectric = "org.robolectric:robolectric:${Versions.robolectric}"

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
15 changes: 9 additions & 6 deletions lemniscate/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jacoco {

android {
compileSdkVersion Versions.compile_sdk
buildToolsVersion Versions.build_tools

defaultConfig {
minSdkVersion Versions.min_sdk
Expand Down Expand Up @@ -44,9 +43,15 @@ android {
task jacocoDebugReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) {

reports {
csv.enabled = false
xml.enabled = true
html.enabled = true
csv {
enabled true
}
xml {
enabled true
}
html {
enabled true
}
}

def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
Expand All @@ -63,8 +68,6 @@ task jacocoDebugReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) {
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')

implementation Deps.appcompat
implementation Deps.kotlin_stdlib

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.vlad1m1r.lemniscate

import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.mock
import com.vlad1m1r.lemniscate.testutils.TestConstants
import com.vlad1m1r.lemniscate.testutils.isPeriodic
import com.vlad1m1r.lemniscate.testutils.setupDefaultMock
import org.junit.Before
import org.junit.Test
import org.mockito.kotlin.mock
import kotlin.math.PI

class BernoullisBowProgressViewTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.vlad1m1r.lemniscate

import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.mock
import org.mockito.kotlin.mock
import com.vlad1m1r.lemniscate.testutils.TestConstants
import com.vlad1m1r.lemniscate.testutils.isPeriodic
import com.vlad1m1r.lemniscate.testutils.setupDefaultMock
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.vlad1m1r.lemniscate

import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.mock
import com.vlad1m1r.lemniscate.testutils.TestConstants
import com.vlad1m1r.lemniscate.testutils.isPeriodic
import com.vlad1m1r.lemniscate.testutils.setupDefaultMock
import org.junit.Before
import org.junit.Test
import org.mockito.kotlin.mock
import kotlin.math.PI

class BernoullisSharpProgressViewTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.vlad1m1r.lemniscate

import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.mock
import org.mockito.kotlin.mock
import com.vlad1m1r.lemniscate.testutils.TestConstants
import com.vlad1m1r.lemniscate.testutils.isPeriodic
import com.vlad1m1r.lemniscate.testutils.setupDefaultMock
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.vlad1m1r.lemniscate.base

import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.*
import org.mockito.kotlin.*
import com.vlad1m1r.lemniscate.base.models.*
import com.vlad1m1r.lemniscate.base.settings.AnimationSettings
import com.vlad1m1r.lemniscate.base.settings.CurveSettings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ package com.vlad1m1r.lemniscate.base

import android.view.View
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.doCallRealMethod
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.whenever
import org.mockito.kotlin.*
import org.junit.Before
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.vlad1m1r.lemniscate.base.models

import android.graphics.Path
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.*
import org.mockito.kotlin.*
import com.vlad1m1r.lemniscate.base.settings.CurveSettings
import org.junit.Test
import org.mockito.Mockito.inOrder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.vlad1m1r.lemniscate.base.settings

import android.graphics.Paint
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.mock
import org.mockito.kotlin.mock
import com.vlad1m1r.lemniscate.base.models.LineLength
import org.junit.Assert.assertEquals
import org.junit.Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.vlad1m1r.lemniscate.funny
import android.os.Build
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.mock
import org.mockito.kotlin.mock
import com.vlad1m1r.lemniscate.testutils.TestConstants
import com.vlad1m1r.lemniscate.testutils.isPeriodic
import com.vlad1m1r.lemniscate.testutils.setupDefaultMock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.vlad1m1r.lemniscate.funny
import android.os.Build
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.mock
import org.mockito.kotlin.mock
import com.vlad1m1r.lemniscate.testutils.TestConstants
import com.vlad1m1r.lemniscate.testutils.isPeriodic
import com.vlad1m1r.lemniscate.testutils.setupDefaultMock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.vlad1m1r.lemniscate.other
import android.os.Build
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.mock
import org.mockito.kotlin.mock
import com.vlad1m1r.lemniscate.testutils.TestConstants
import com.vlad1m1r.lemniscate.testutils.isPeriodic
import com.vlad1m1r.lemniscate.testutils.setupDefaultMock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package com.vlad1m1r.lemniscate.roulette
import android.os.Build
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.doCallRealMethod
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.whenever
import org.mockito.kotlin.*
import com.vlad1m1r.lemniscate.testutils.TestConstants.DELTA
import com.vlad1m1r.lemniscate.testutils.isPeriodic
import com.vlad1m1r.lemniscate.testutils.setupDefaultMock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package com.vlad1m1r.lemniscate.roulette
import android.os.Build
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.doCallRealMethod
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.whenever
import org.mockito.kotlin.*
import com.vlad1m1r.lemniscate.testutils.TestConstants.DELTA
import com.vlad1m1r.lemniscate.testutils.isPeriodic
import com.vlad1m1r.lemniscate.testutils.setupDefaultMock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package com.vlad1m1r.lemniscate.roulette.scribble
import android.os.Build
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.doCallRealMethod
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.whenever
import org.mockito.kotlin.*
import com.vlad1m1r.lemniscate.testutils.TestConstants.DELTA
import com.vlad1m1r.lemniscate.testutils.isPeriodic
import com.vlad1m1r.lemniscate.testutils.setupDefaultMock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package com.vlad1m1r.lemniscate.roulette.scribble
import android.os.Build
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.doCallRealMethod
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.whenever
import org.mockito.kotlin.*
import com.vlad1m1r.lemniscate.testutils.TestConstants.DELTA
import com.vlad1m1r.lemniscate.testutils.isPeriodic
import com.vlad1m1r.lemniscate.testutils.setupDefaultMock
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package com.vlad1m1r.lemniscate.testutils

import com.google.common.truth.Truth
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.doCallRealMethod
import com.nhaarman.mockitokotlin2.whenever
import org.mockito.kotlin.*
import com.vlad1m1r.lemniscate.base.BaseCurveProgressView
import com.vlad1m1r.lemniscate.roulette.BaseRouletteProgressView

Expand Down
2 changes: 0 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion Versions.compile_sdk
buildToolsVersion Versions.build_tools

defaultConfig {
applicationId "com.vlad1m1r.lemniscate.sample"
Expand All @@ -22,7 +21,6 @@ android {
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation Deps.appcompat
implementation Deps.circleindicator
implementation Deps.kotlin_stdlib
Expand Down
3 changes: 2 additions & 1 deletion sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity">
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
Expand Down

0 comments on commit dfdc670

Please sign in to comment.