Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor updates #2631

Open
wants to merge 113 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
f78afa1
Add renovate.json
renovate[bot] Sep 4, 2023
b53e2c9
Update dependency androidx.sqlite:sqlite-framework to v2.3.1
renovate[bot] Sep 4, 2023
d065a22
Update dependency androidx.lifecycle:lifecycle-runtime-ktx to v2.6.1
renovate[bot] Sep 4, 2023
0854149
Update dependency androidx.activity:activity-compose to v1.7.2
renovate[bot] Sep 4, 2023
5fa8b0c
Update com.squareup.okio
renovate[bot] Sep 4, 2023
31d30a7
Update dependency org.jetbrains.kotlinx:binary-compatibility-validato…
renovate[bot] Sep 4, 2023
7e9ff93
Update androidx.test
renovate[bot] Sep 4, 2023
a8e6286
Update dependency androidx.test.ext:junit to v1.1.5
renovate[bot] Sep 4, 2023
8d2032f
Update dependency org.neo4j:neo4j to v4.4.25
renovate[bot] Sep 4, 2023
660680d
Update dependency androidx.test.espresso:espresso-core to v3.5.1
renovate[bot] Sep 4, 2023
11dfdc0
Update dependency androidx.test:rules to v1.5.0
renovate[bot] Sep 4, 2023
0945ee4
Update dependency androidx.startup:startup-runtime to v1.1.1
renovate[bot] Sep 4, 2023
c2e7a76
Update dependency androidx.lifecycle:lifecycle-viewmodel-compose to v…
renovate[bot] Sep 4, 2023
c8fd96f
Update dependency com.github.ajalt:clikt to v2.8.0
renovate[bot] Sep 4, 2023
aa9c193
Update dependency androidx.test.espresso:espresso-core to v3.5.1
renovate[bot] Sep 4, 2023
521faad
Update actions/stale action to v8
renovate[bot] Sep 4, 2023
7128b15
Update dependency org.robolectric:robolectric to v4.10.3
renovate[bot] Sep 4, 2023
5b95f84
Update dependency mkdocs to v1.5.2
renovate[bot] Sep 4, 2023
dbecc34
Update dependency org.jetbrains.dokka:dokka-gradle-plugin to v1.9.0
renovate[bot] Sep 4, 2023
0b7d524
Update androidXJunit to v1.1.5
renovate[bot] Sep 5, 2023
dcb5c80
Update dependency mkdocs-material to v9.2.8
renovate[bot] Sep 5, 2023
07ce81b
Update dependency gradle to v8.3
renovate[bot] Sep 4, 2023
a88b193
Update workManager to v2.8.1
renovate[bot] Sep 5, 2023
aa5d650
Update dependency org.mockito:mockito-core to v3.12.4
renovate[bot] Sep 4, 2023
0c10b24
Update dependency junit:junit to v4.13.2
renovate[bot] Sep 4, 2023
5777c53
Update dependency androidx.compose.material3:material3 to v1.1.1
renovate[bot] Sep 5, 2023
8cfaf7c
Update dependency com.vanniktech:gradle-maven-publish-plugin to v0.25.3
renovate[bot] Sep 5, 2023
62081c1
AGP 8.1.1
renovate[bot] Sep 6, 2023
5d8cd37
Update dependency org.mockito:mockito-core to v5
renovate[bot] Sep 5, 2023
85683da
Update dependency androidx.core:core-ktx to v1.10.1
renovate[bot] Sep 6, 2023
0546386
Update actions/checkout action to v4
renovate[bot] Sep 6, 2023
905f017
Hilt 2.48
renovate[bot] Sep 6, 2023
7f0858e
Compose 1.5.0
renovate[bot] Sep 6, 2023
c9f04da
Kotlin 1.9.10
renovate[bot] Sep 6, 2023
be9b31a
SQLDelight 2.0.0
renovate[bot] Sep 6, 2023
0eabd65
Update dependency androidx.lifecycle:lifecycle-runtime-ktx to v2.6.2
renovate[bot] Sep 6, 2023
7141fa7
Update compose_version to v1.5.1
renovate[bot] Sep 6, 2023
0bc75fb
Update dependency androidx.lifecycle:lifecycle-viewmodel-compose to v…
renovate[bot] Sep 7, 2023
659abd1
Update dependency androidx.core:core-ktx to v1.12.0
renovate[bot] Sep 7, 2023
5838005
Update dependency mkdocs-material to v9.3.1
renovate[bot] Sep 11, 2023
9194df9
Update dependency mkdocs to v1.5.3
renovate[bot] Sep 18, 2023
4929035
Update dependency mkdocs-material to v9.3.2
renovate[bot] Sep 19, 2023
653ce50
Update dependency org.neo4j:neo4j to v4.4.26
renovate[bot] Sep 20, 2023
564fba3
Update dependency mkdocs-material to v9.4.2
renovate[bot] Sep 25, 2023
5cfbdb0
Update dependency androidx.compose.material3:material3 to v1.1.2
renovate[bot] Sep 20, 2023
6bf03cd
Update compose_version to v1.5.2
renovate[bot] Sep 27, 2023
73d923f
Update dependency com.android.tools.build:gradle to v8.1.2
renovate[bot] Sep 28, 2023
5bc4299
Update dependency mkdocs-material to v9.4.3
renovate[bot] Oct 2, 2023
de912ec
Update dependency com.squareup.okio:okio to v1.17.6
renovate[bot] Oct 2, 2023
4ca638a
Update dependency com.google.dagger:hilt-android to v2.48.1
renovate[bot] Oct 4, 2023
7a0a492
Update dependency androidx.activity:activity-compose to v1.8.0
renovate[bot] Oct 4, 2023
f1b89af
Update compose_version to v1.5.3
renovate[bot] Oct 4, 2023
fd8e7f9
Update dependency gradle to v8.4
renovate[bot] Oct 4, 2023
8d27c99
Update dependency mkdocs-material to v9.4.4
renovate[bot] Oct 5, 2023
fd9dd22
Update dependency mkdocs-material to v9.4.5
renovate[bot] Oct 10, 2023
4380b5d
Update dependency mkdocs-material to v9.4.6
renovate[bot] Oct 14, 2023
ab24418
Update dependency org.jetbrains.dokka:dokka-gradle-plugin to v1.9.10
renovate[bot] Oct 16, 2023
124623c
Update compose_version to v1.5.4
renovate[bot] Oct 18, 2023
4e3f4d9
Update dependency androidx.sqlite:sqlite-framework to v2.4.0
renovate[bot] Oct 18, 2023
bab1218
Update dependency org.mockito:mockito-core to v5.6.0
renovate[bot] Oct 23, 2023
70c17bf
Update dependency mkdocs-material to v9.4.7
renovate[bot] Oct 27, 2023
56b303b
Update dependency org.robolectric:robolectric to v4.11
renovate[bot] Oct 29, 2023
e9e63a8
Update dependency org.robolectric:robolectric to v4.11.1
renovate[bot] Oct 31, 2023
c1d061c
Update dependency org.mockito:mockito-core to v5.7.0
renovate[bot] Nov 3, 2023
29adb24
Update dependency org.neo4j:neo4j to v4.4.27
renovate[bot] Nov 3, 2023
d8838d6
Update dependency mkdocs-material to v9.4.8
renovate[bot] Nov 5, 2023
506dc64
Update dependency com.android.tools.build:gradle to v8.1.3
renovate[bot] Nov 7, 2023
de8414c
Update Kotlin and Compose Compiler
renovate[bot] Nov 7, 2023
df4984e
Update dependency androidx.activity:activity-compose to v1.8.1
renovate[bot] Nov 15, 2023
bbcf1e1
Update dependency mkdocs-material to v9.4.9
renovate[bot] Nov 17, 2023
d5201f5
Update dependency com.android.tools.build:gradle to v8.1.4
renovate[bot] Nov 16, 2023
343ccc8
Update dependency org.neo4j:neo4j to v4.4.28
renovate[bot] Nov 16, 2023
558d319
Update dependency mkdocs-material to v9.4.10
renovate[bot] Nov 19, 2023
b5c8d6a
Update dependency mkdocs-material to v9.4.11
renovate[bot] Nov 23, 2023
610ba84
Update dependency mkdocs-material to v9.4.12
renovate[bot] Nov 24, 2023
c4fe325
Update dependency mkdocs-material to v9.4.13
renovate[bot] Nov 26, 2023
1bf8b27
Update actions/setup-java action to v4
renovate[bot] Nov 29, 2023
8239ad0
Update dependency gradle to v8.5
renovate[bot] Nov 29, 2023
5083752
Update dependency mkdocs-material to v9.4.14
renovate[bot] Nov 26, 2023
0fd00b1
Update dependency com.android.tools.build:gradle to v8.2.0
renovate[bot] Nov 30, 2023
b41b679
Update hilt to v2.49
renovate[bot] Dec 2, 2023
b4aebb4
Update dependency org.mockito:mockito-core to v5.8.0
renovate[bot] Dec 2, 2023
e57ad8d
Update dependency mkdocs-material to v9.5.0
renovate[bot] Dec 7, 2023
67d580d
Update actions/stale action to v9
renovate[bot] Dec 7, 2023
41f9c2a
Update dependency mkdocs-material to v9.5.1
renovate[bot] Dec 8, 2023
8e9ebf6
Update dependency mkdocs-material to v9.5.2
renovate[bot] Dec 11, 2023
8b98ec9
Update dependency androidx.activity:activity-compose to v1.8.2
renovate[bot] Dec 13, 2023
7b7217d
Update actions/upload-artifact action to v4
renovate[bot] Dec 14, 2023
0c8b8c8
Update dependency com.vanniktech:gradle-maven-publish-plugin to v0.26.0
renovate[bot] Dec 19, 2023
a9a0745
Update dependency com.google.dagger:hilt-android-gradle-plugin to v2.50
renovate[bot] Dec 19, 2023
007a4e5
Update dependency mkdocs-material to v9.5.3
renovate[bot] Dec 23, 2023
51a1072
Update dependency org.neo4j:neo4j to v4.4.29
renovate[bot] Dec 21, 2023
84b39f3
Update dependency com.android.tools.build:gradle to v8.2.1
renovate[bot] Jan 3, 2024
8bb566b
Update dependency com.vanniktech:gradle-maven-publish-plugin to v0.27.0
renovate[bot] Jan 6, 2024
7689058
Update dependency androidx.lifecycle:lifecycle-viewmodel-compose to v…
renovate[bot] Jan 10, 2024
41faee4
Update dependency mkdocs-material to v9.5.4
renovate[bot] Jan 15, 2024
e9c9378
Update dependency org.mockito:mockito-core to v5.9.0
renovate[bot] Jan 14, 2024
ce20f5b
Update dependency androidx.lifecycle:lifecycle-runtime-ktx to v2.7.0
renovate[bot] Jan 11, 2024
883b984
Update dependency com.squareup.curtains:curtains to v1.2.5
renovate[bot] Jan 16, 2024
00f50b2
Update actions/cache action to v4
renovate[bot] Jan 17, 2024
56fdf25
Update dependency mkdocs-material to v9.5.7
renovate[bot] Feb 3, 2024
0379178
Update dependency com.android.tools.build:gradle to v8.2.2
renovate[bot] Jan 23, 2024
015fddb
Use gradle/actions/setup-gradle v3
Goooler Feb 4, 2024
8070be1
Enable KVM on base Linux image
Goooler Feb 4, 2024
1349691
Update gradle/wrapper-validation-action action to v2
renovate[bot] Feb 4, 2024
60caa01
Update dependency org.neo4j:neo4j to v4.4.30
renovate[bot] Feb 4, 2024
a2b2ebe
Update compose_version to v1.6.0
renovate[bot] Feb 4, 2024
d24cfde
Update dependency gradle to v8.6
renovate[bot] Feb 4, 2024
d3ad7a8
Update dependency org.mockito:mockito-core to v5.10.0
renovate[bot] Feb 4, 2024
cedbb24
Update workManager to v2.9.0
renovate[bot] Feb 4, 2024
2545920
Update dependency androidx.compose.ui:ui-tooling-preview to v1.6.1
renovate[bot] Feb 7, 2024
e50152c
Update dependency androidx.compose.material3:material3 to v1.2.0
renovate[bot] Feb 7, 2024
fcbfce6
Update dependency mkdocs-material to v9.5.8
renovate[bot] Feb 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 20 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2

checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- uses: gradle/gradle-build-action@v2
- uses: gradle/actions/setup-gradle@v3
- name: Build project
run: ./gradlew build --stacktrace

instrumentation-tests:
runs-on: macos-latest
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
# Allow tests to continue on other devices if they fail on one device.
Expand Down Expand Up @@ -55,14 +55,20 @@ jobs:
# target: aosp_atd
# channel: canary
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
ls /dev/kvm
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- uses: gradle/gradle-build-action@v2
- uses: gradle/actions/setup-gradle@v3
- name: AVD cache
uses: actions/cache@v3
uses: actions/cache@v4
id: avd-cache
with:
path: |
Expand Down Expand Up @@ -94,7 +100,7 @@ jobs:
./gradlew leakcanary:leakcanary-android-core:connectedCheck leakcanary:leakcanary-android:connectedCheck leakcanary:leakcanary-android-instrumentation:connectedCheck --no-build-cache --no-daemon --stacktrace
- name: Upload results
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.api-level }}-${{ matrix.arch }}-instrumentation-test-results
path: |
Expand All @@ -106,12 +112,12 @@ jobs:
needs: [ checks, instrumentation-tests ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- uses: gradle/gradle-build-action@v2
- uses: gradle/actions/setup-gradle@v3
- name: Deploy snapshot
run: ./gradlew publish
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
permissions:
issues: write
steps:
- uses: actions/stale@v5
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {
classpath libs.gradlePlugin.binaryCompatibility
classpath libs.gradlePlugin.keeper
classpath libs.gradlePlugin.sqldelight
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.43.2'
classpath libs.gradlePlugin.hilt
}
}

Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mkdocs==1.4.2
mkdocs-material==9.1.3
mkdocs==1.5.3
mkdocs-material==9.5.8
mkdocs-markdownextradata-plugin==0.2.5
54 changes: 32 additions & 22 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,55 +15,65 @@
[versions]
# We would like to use Kotlin recent language features but keep Kotlin 1.3 library APIs
# The benefit is that depending clients do not have to upgrade to Kotlin 1.4
kotlin = "1.8.21"
kotlin = "1.9.20"
coroutines = "1.7.3"
androidXTest = "1.1.0"
androidXJunit = "1.1.3"
workManager = "2.7.0"
androidXTest = "1.5.0"
androidXJunit = "1.1.5"
workManager = "2.9.0"
composeCompiler = "1.5.4"
hilt = "2.50"
sqldelight = "2.0.0"

[libraries]
gradlePlugin-android = { module = "com.android.tools.build:gradle", version = "8.0.0" }
gradlePlugin-android = { module = "com.android.tools.build:gradle", version = "8.2.2" }
gradlePlugin-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
gradlePlugin-dokka = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version = "1.8.10" }
gradlePlugin-binaryCompatibility = { module = "org.jetbrains.kotlinx:binary-compatibility-validator", version = "0.13.1" }
gradlePlugin-mavenPublish = { module = "com.vanniktech:gradle-maven-publish-plugin", version = "0.25.2" }
gradlePlugin-dokka = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version = "1.9.10" }
gradlePlugin-binaryCompatibility = { module = "org.jetbrains.kotlinx:binary-compatibility-validator", version = "0.13.2" }
gradlePlugin-mavenPublish = { module = "com.vanniktech:gradle-maven-publish-plugin", version = "0.27.0" }
gradlePlugin-detekt = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version = "1.6.0" }
gradlePlugin-keeper = { module = "com.slack.keeper:keeper", version = "0.7.0" }
gradlePlugin-sqldelight = { module = "app.cash.sqldelight:gradle-plugin", version = "2.0.0-alpha05" }
gradlePlugin-sqldelight = { module = "app.cash.sqldelight:gradle-plugin", version.ref = "sqldelight" }
gradlePlugin-hilt = { module = "com.google.dagger:hilt-android-gradle-plugin", version.ref = "hilt" }

coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }

kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" }

# This isn't strictly used, but allows Renovate to see us using the Compose Compiler artifact
compose-compiler = { module = "androidx.compose.compiler:compiler", version.ref = "composeCompiler" }
# We don't need the latest version of AndroidX (there are no bugs that impact what LeakCanary
# relies on), we're sticking a bit older because most apps will be using a more recent version
# and they'll automatically resolve to higher version without having to necessarily resort to a
# resolution strategy.
androidX-fragment = { module = "androidx.fragment:fragment", version = "1.0.0" }
# Exposed transitively, avoid increasing
androidX-startup = { module = "androidx.startup:startup-runtime", version = "1.0.0" }
androidX-test-core = { module = "androidx.test:core", version = "1.4.0" }
androidX-startup = { module = "androidx.startup:startup-runtime", version = "1.1.1" }
androidX-test-core = { module = "androidx.test:core", version = "1.5.0" }
androidX-test-rules = { module = "androidx.test:rules", version.ref = "androidXTest" }
# Exposed transitively, avoid increasing
androidX-test-runner = { module = "androidx.test:runner", version = "1.4.0" }
androidX-test-orchestrator = { module = "androidx.test:orchestrator", version = "1.4.1" }
androidX-test-espresso = { module = "androidx.test.espresso:espresso-core", version = "3.4.0" }
androidX-test-runner = { module = "androidx.test:runner", version = "1.5.2" }
androidX-test-orchestrator = { module = "androidx.test:orchestrator", version = "1.4.2" }
androidX-test-espresso = { module = "androidx.test.espresso:espresso-core", version = "3.5.1" }
androidX-test-junit = { module = "androidx.test.ext:junit", version.ref = "androidXJunit" }
androidX-test-junitKtx = { module = "androidx.test.ext:junit-ktx", version.ref = "androidXJunit" }
androidX-work-runtime = { module = "androidx.work:work-runtime", version.ref = "workManager" }
androidX-work-multiprocess = { module = "androidx.work:work-multiprocess", version.ref = "workManager" }

androidSupport = { module = "com.android.support:support-v4", version = "28.0.0" }
assertjCore = { module = "org.assertj:assertj-core", version = "3.9.1" }
clikt = { module = "com.github.ajalt:clikt", version = "2.3.0" }
neo4j = { module = "org.neo4j:neo4j", version = "4.4.6" }
curtains = { module = "com.squareup.curtains:curtains", version = "1.2.4" }
clikt = { module = "com.github.ajalt:clikt", version = "2.8.0" }
neo4j = { module = "org.neo4j:neo4j", version = "4.4.30" }
curtains = { module = "com.squareup.curtains:curtains", version = "1.2.5" }
jline = { module = "jline:jline", version = "2.14.6" }
junit = { module = "junit:junit", version = "4.12" }
junit = { module = "junit:junit", version = "4.13.2" }
kotlinStatistics = { module = "org.nield:kotlin-statistics", version = "1.2.1" }
mockito = { module = "org.mockito:mockito-core", version = "3.5.10" }
mockito = { module = "org.mockito:mockito-core", version = "5.10.0" }
mockitoKotlin = { module = "com.nhaarman.mockitokotlin2:mockito-kotlin", version = "2.2.0" }
robolectric = { module = "org.robolectric:robolectric", version = "4.0-alpha-3" }
okio2 = { module = "com.squareup.okio:okio", version = "2.2.2" }
okio1 = { module = "com.squareup.okio:okio", version = "1.14.0" }
robolectric = { module = "org.robolectric:robolectric", version = "4.11.1" }
okio2 = { module = "com.squareup.okio:okio", version = "2.10.0" }
okio1 = { module = "com.squareup.okio:okio", version = "1.17.6" }
hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hilt" }
hilt-compiler = { module = "com.google.dagger:hilt-compiler", version.ref = "hilt" }
sqldelight-android-driver = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }
sqldelight-coroutines-extensions = { module = "app.cash.sqldelight:coroutines-extensions", version.ref = "sqldelight" }
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
41 changes: 28 additions & 13 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand All @@ -80,13 +80,11 @@ do
esac
done

APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

APP_NAME="Gradle"
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down Expand Up @@ -133,22 +131,29 @@ location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi

# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -193,18 +198,28 @@ if "$cygwin" || "$msys" ; then
done
fi

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ class RemoteLeakCanaryWorkerService : RemoteWorkerService() {
// No real app context for you, sorry!
override fun getApplicationContext() = this

override fun getWorkManagerConfiguration() = Configuration.Builder()
// If the default package name is not set, WorkManager will cancel all runnables
// when initialized as it can't tell that it's not running in the main process.
// This would lead to an extra round trip where the canceling reaches the main process
// which then cancels the remote job and reschedules it and then only the work gets done.
.setDefaultProcessName(packageName)
.build()
override val workManagerConfiguration: Configuration
get() = Configuration.Builder()
// If the default package name is not set, WorkManager will cancel all runnables
// when initialized as it can't tell that it's not running in the main process.
// This would lead to an extra round trip where the canceling reaches the main process
// which then cancels the remote job and reschedules it and then only the work gets done.
.setDefaultProcessName(packageName)
.build()
}

private val fakeAppContext by lazy {
Expand Down
7 changes: 5 additions & 2 deletions leakcanary/leakcanary-app-aidl/api/leakcanary-app-aidl.api
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
public abstract interface class org/leakcanary/internal/LeakUiApp : android/os/IInterface {
public static final field DESCRIPTOR Ljava/lang/String;
public abstract fun sendHeapAnalysis (Lorg/leakcanary/internal/ParcelableHeapAnalysis;Landroid/net/Uri;)V
}

Expand All @@ -12,9 +13,11 @@ public abstract class org/leakcanary/internal/LeakUiApp$Stub : android/os/Binder
public fun <init> ()V
public fun asBinder ()Landroid/os/IBinder;
public static fun asInterface (Landroid/os/IBinder;)Lorg/leakcanary/internal/LeakUiApp;
public static fun getDefaultImpl ()Lorg/leakcanary/internal/LeakUiApp;
public fun onTransact (ILandroid/os/Parcel;Landroid/os/Parcel;I)Z
public static fun setDefaultImpl (Lorg/leakcanary/internal/LeakUiApp;)Z
}

public class org/leakcanary/internal/LeakUiApp$_Parcel {
public fun <init> ()V
}

public final class org/leakcanary/internal/ParcelableHeapAnalysis : android/os/Parcelable {
Expand Down
29 changes: 14 additions & 15 deletions leakcanary/leakcanary-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

ext {
compose_version = '1.4.3'
compose_version = '1.6.1'
}

def gitSha() {
Expand Down Expand Up @@ -62,7 +62,7 @@ android {
}

composeOptions {
kotlinCompilerExtensionVersion '1.4.7'
kotlinCompilerExtensionVersion libs.versions.composeCompiler.get()
}

packagingOptions {
Expand All @@ -74,29 +74,28 @@ android {

dependencies {
implementation projects.leakcanary.leakcanaryAppAidl
// TODO Move these to ./gradle/libs/versions/toml
implementation "app.cash.sqldelight:android-driver:2.0.0-alpha05"
implementation "app.cash.sqldelight:coroutines-extensions:2.0.0-alpha05"
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1'
implementation 'androidx.activity:activity-compose:1.5.1'
implementation libs.sqldelight.android.driver
implementation libs.sqldelight.coroutines.extensions
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0'
implementation 'androidx.activity:activity-compose:1.8.2'
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation 'androidx.compose.material3:material3:1.0.0-beta02'
implementation 'androidx.sqlite:sqlite-framework:2.2.0'
implementation 'androidx.compose.material3:material3:1.2.0'
implementation 'androidx.sqlite:sqlite-framework:2.4.0'
implementation 'me.saket.extendedspans:extendedspans:1.3.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
// TODO Split out what's included in debug vs the subset for release
implementation projects.leakcanary.leakcanaryAndroid
implementation 'com.google.dagger:hilt-android:2.43.2'
implementation libs.hilt.android
implementation libs.okio2
kapt 'com.google.dagger:hilt-compiler:2.43.2'
kapt libs.hilt.compiler
}

kapt {
Expand Down