Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.serialization) apply false
Comment thread
itachi1706 marked this conversation as resolved.
alias(libs.plugins.sonarqube)
}
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
Expand Down
5 changes: 1 addition & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
[versions]
# Hold off AGP 9 due to https://community.sonarsource.com/t/working-towards-the-support-of-android-gradle-plugin-9/177015/6
androidLibrary = "8.13.2"
androidLibrary = "9.2.0"
appcompat = "1.7.1"
coreKtx = "1.18.0"
espressoCore = "3.7.0"
junit = "1.3.0"
junitVersion = "4.13.2"
kotlinAndroid = "2.3.21"
kotlinSerialization = "2.3.21"
kotlinxSerializationJson = "1.11.0"
kotlinxCoroutines = "1.10.2"
Expand All @@ -33,7 +31,6 @@ volley = { module = "com.android.volley:volley", version.ref = "volley" }

[plugins]
android-library = { id = "com.android.library", version.ref = "androidLibrary" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlinAndroid" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlinSerialization" }
Comment thread
itachi1706 marked this conversation as resolved.
sonarqube = { id = "org.sonarqube", version.ref = "sonarqube" }

3 changes: 1 addition & 2 deletions helperlib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.serialization)
Comment thread
itachi1706 marked this conversation as resolved.
}

Expand All @@ -11,7 +10,7 @@

android {
namespace = "com.itachi1706.helperlib"
compileSdk = 36

Check warning on line 13 in helperlib/build.gradle.kts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

A newer version of `compileSdk` than 36 is available: 37

See more on https://sonarcloud.io/project/issues?id=itachi1706_AndroidHelperLib&issues=AZ330oyxa2vPcHDF91kX&open=AZ330oyxa2vPcHDF91kX&pullRequest=327

defaultConfig {
minSdk = 19
Expand Down Expand Up @@ -77,5 +76,5 @@
implementation(libs.volley)
}

// Apply the publish.gradle file
// Apply publishing with publish.gradle file
apply(from = "./publish.gradle")
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.itachi1706.helperlib.concurrent

import kotlin.test.Test
import org.junit.Test
import kotlin.test.assertEquals

class ConstantsTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.test.resetMain
import kotlinx.coroutines.test.setMain
import org.junit.After
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.junit.MockitoJUnitRunner
import org.mockito.kotlin.spy
import kotlin.test.AfterTest
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith

Expand All @@ -23,14 +23,14 @@ class CoroutineAsyncTaskTest {
private val testDispatcher = Dispatchers.Unconfined

@OptIn(ExperimentalCoroutinesApi::class)
@BeforeTest
@Before
fun setup() {
Dispatchers.setMain(testDispatcher)
task = spy(TestCoroutineAsyncTask())
}

@OptIn(ExperimentalCoroutinesApi::class)
@AfterTest
@After
fun tearDown() {
Dispatchers.resetMain()
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.itachi1706.helperlib.exceptions

import kotlin.test.Test
import org.junit.Test
import kotlin.test.assertEquals
import kotlin.test.assertNull

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.itachi1706.helperlib.helpers

import com.itachi1706.helperlib.interfaces.LogHandler
import org.junit.Test
import org.mockito.kotlin.mock
import org.mockito.kotlin.verify
import kotlin.test.Test
import kotlin.test.assertEquals

class LogHelperTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.itachi1706.helperlib.helpers

import kotlin.test.Test
import org.junit.Test
import kotlin.test.assertEquals

class ValidationHelperTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonPrimitive
import kotlinx.serialization.json.buildJsonObject
import kotlinx.serialization.json.put
import kotlin.test.Test
import org.junit.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.test.assertNotNull
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.itachi1706.helperlib.objects

import com.android.volley.Request
import kotlin.test.Test
import org.junit.Test
import kotlin.test.assertEquals

class HttpRequestTest {
Expand Down