Skip to content
Open
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
24 changes: 14 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
buildscript {
ext {
kotlinVersion = '1.8.0'
androidGradleVersion = '8.0.2'
coroutineVersion = '1.5.1'
kotlinVersion = '2.1.20'
androidGradleVersion = '8.12.0'
coroutineVersion = '1.7.3'

// Google libraries
activityVersion = '1.7.2'
appCompatVersion = '1.6.1'
constraintLayoutVersion = '2.0.4'
materialComponentsVersion = '1.9.0'
fragmentVersion = '1.6.0'
roomVersion = '2.4.3'
roomVersion = '2.7.2'
lifecycleVersion = '2.6.1'
androidXCoreVersion = '2.2.0'
paletteKtxVersion = '1.0.0'
Expand All @@ -20,7 +20,7 @@ buildscript {
gsonVersion = '2.10.1'
okhttpVersion = '4.11.0'
retrofitVersion = '2.9.0'
wireVersion = '4.7.2'
wireVersion = '5.4.0'

// Debug and quality control
binaryCompatibilityValidator = '0.13.2'
Expand All @@ -36,7 +36,7 @@ buildscript {

// Testing
androidxTestCoreVersion = '1.5.0'
junitGradlePluignVersion = '1.9.3.0'
junitGradlePluignVersion = '1.14.0.0'
junitVersion = '5.9.3'
junit4Version = '4.13.2'
mockkVersion = '1.13.5'
Expand Down Expand Up @@ -67,8 +67,12 @@ buildscript {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:$nexusStagingPlugin"
}
}
apply plugin: 'binary-compatibility-validator'
apply plugin: 'io.codearte.nexus-staging'

plugins {
id "org.jetbrains.kotlinx.binary-compatibility-validator" version "$binaryCompatibilityValidator"
id 'io.codearte.nexus-staging' version("$nexusStagingPlugin")
id 'com.google.devtools.ksp' version "2.1.20-1.0.31"
}

apiValidation {
ignoredProjects += ["sample"]
Expand Down Expand Up @@ -102,6 +106,6 @@ task clean(type: Delete) {

ext {
minSdkVersion = 21
targetSdkVersion = 33
compileSdkVersion = 33
targetSdkVersion = 36
compileSdkVersion = 36
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
29 changes: 17 additions & 12 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.devtools.ksp'
apply plugin: 'kotlin-parcelize'

android {
Expand Down Expand Up @@ -76,7 +76,7 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
implementation "androidx.room:room-ktx:$roomVersion"
implementation "androidx.room:room-runtime:$roomVersion"
kapt "androidx.room:room-compiler:$roomVersion"
ksp("androidx.room:room-compiler:$roomVersion")

implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutineVersion"

Expand Down
3 changes: 2 additions & 1 deletion library/src/main/res/layout/chucker_activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar">
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
android:fitsSystemWindows="true">

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
Expand Down
3 changes: 2 additions & 1 deletion library/src/main/res/layout/chucker_activity_transaction.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar">
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
android:fitsSystemWindows="true">

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.chuckerteam.chucker.sample

import android.content.res.Configuration
import android.os.Bundle
import android.os.StrictMode
import android.text.method.LinkMovementMethod
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.WindowCompat
import androidx.lifecycle.lifecycleScope
import com.chuckerteam.chucker.api.Chucker
import com.chuckerteam.chucker.api.ChuckerCollector
Expand Down Expand Up @@ -88,6 +90,13 @@ class MainActivity : AppCompatActivity() {
)
}

override fun onResume() {
super.onResume()
val isLightTheme = resources.configuration.uiMode and
Configuration.UI_MODE_NIGHT_MASK != Configuration.UI_MODE_NIGHT_YES
WindowCompat.getInsetsController(window, window.decorView).isAppearanceLightStatusBars = isLightTheme
}

private fun launchChuckerDirectly() {
// Optionally launch Chucker directly from your own app UI
startActivity(Chucker.getLaunchIntent(this))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chuckerteam.chucker.sample

import android.content.Context
import com.chuckerteam.chucker.api.ChuckerCollector
import com.chuckerteam.chucker.api.ChuckerInterceptor
import com.chuckerteam.chucker.api.ExtendedChuckerCollector
import com.chuckerteam.chucker.api.RetentionManager
Expand Down