Skip to content

Commit

Permalink
Merge pull request #1706 from google/remove-napier
Browse files Browse the repository at this point in the history
[All] Remove napier
  • Loading branch information
bentrengrove authored Aug 23, 2023
2 parents 71f3756 + 7b34402 commit 3810fe1
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 21 deletions.
3 changes: 1 addition & 2 deletions adaptive/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ dependencies {
api(libs.compose.foundation.foundation)
api(libs.compose.ui.ui)
api(libs.androidx.window)

implementation(libs.napier)

implementation(libs.kotlin.coroutines.android)
implementation(libs.compose.ui.util)

Expand Down
2 changes: 0 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ androidx-navigation-testing = { module = "androidx.navigation:navigation-testing

mdc = "com.google.android.material:material:1.8.0"

napier = "io.github.aakira:napier:1.4.1"

androidx-test-core = "androidx.test:core-ktx:1.5.0-alpha02"
androidx-test-runner = "androidx.test:runner:1.5.0-alpha04"
androidx-test-rules = { module = "androidx.test:rules", version.ref = "androidxtest" }
Expand Down
1 change: 0 additions & 1 deletion pager/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ dependencies {
api(libs.compose.foundation.foundation)
api(libs.snapper)

implementation(libs.napier)
implementation(libs.kotlin.coroutines.android)

// ======================
Expand Down
11 changes: 0 additions & 11 deletions pager/src/main/java/com/google/accompanist/pager/PagerState.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ import androidx.compose.runtime.saveable.Saver
import androidx.compose.runtime.saveable.listSaver
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import io.github.aakira.napier.DebugAntilog
import io.github.aakira.napier.Napier
import kotlin.math.abs
import kotlin.math.absoluteValue
import kotlin.math.roundToInt
Expand Down Expand Up @@ -149,9 +147,6 @@ public class PagerState(
internal set(value) {
if (value != _currentPage) {
_currentPage = value
if (DebugLog) {
Napier.d(message = "Current page changed: $_currentPage")
}
}
}

Expand Down Expand Up @@ -379,11 +374,5 @@ public class PagerState(
)
}
)

init {
if (DebugLog) {
Napier.base(DebugAntilog(defaultTag = "Pager"))
}
}
}
}
1 change: 0 additions & 1 deletion permissions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ dependencies {
implementation(libs.androidx.activity.compose)
implementation(libs.compose.foundation.foundation)
implementation(libs.kotlin.coroutines.android)
implementation(libs.napier)

lintChecks(project(":permissions-lint"))
lintPublish(project(":permissions-lint"))
Expand Down
2 changes: 1 addition & 1 deletion placeholder-material/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ metalava {
dependencies {
implementation(libs.compose.material.material)
api(project(":placeholder"))
implementation(libs.napier)

implementation(libs.kotlin.coroutines.android)

// ======================
Expand Down
1 change: 0 additions & 1 deletion placeholder-material3/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ metalava {
dependencies {
implementation(libs.compose.material3.material3)
api(project(":placeholder"))
implementation(libs.napier)
implementation(libs.kotlin.coroutines.android)

// ======================
Expand Down
1 change: 0 additions & 1 deletion placeholder/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ metalava {
dependencies {
implementation(libs.compose.foundation.foundation)
implementation(libs.compose.ui.util)
implementation(libs.napier)
implementation(libs.kotlin.coroutines.android)

// ======================
Expand Down
1 change: 0 additions & 1 deletion testharness/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ dependencies {
implementation(libs.compose.foundation.foundation)
implementation(libs.androidx.core)
testImplementation(libs.androidx.core)
implementation(libs.napier)
implementation(libs.kotlin.coroutines.android)

// ======================
Expand Down

0 comments on commit 3810fe1

Please sign in to comment.