Skip to content

Commit

Permalink
Update all dependencies
Browse files Browse the repository at this point in the history
For now, we temporarily disable dex optimizations because AGP 8.2 and
newer miscompile MediaCodecEncoder.encode(), causing a byte code
verification exception to be thrown when recording a call.

Upstream bug report: https://issuetracker.google.com/issues/334275655

Signed-off-by: Andrew Gunnerson <[email protected]>
  • Loading branch information
chenxiaolong committed Apr 16, 2024
1 parent cd14c13 commit b40c6af
Show file tree
Hide file tree
Showing 7 changed files with 820 additions and 784 deletions.
6 changes: 5 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ android {

isMinifyEnabled = true
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
// Optimizations currently result in a miscompilation of MediaCodecEncoder.encode()
// with AGP 8.2.x and newer. Until this is fixed, let's disable optimizations entirely.
//
// Upstream bug report: https://issuetracker.google.com/issues/334275655
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")

signingConfig = signingConfigs.getByName("release")
}
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/com/chiller3/bcr/RecorderTileService.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.chiller3.bcr

import android.annotation.SuppressLint
import android.app.PendingIntent
import android.content.Intent
import android.content.SharedPreferences
Expand Down Expand Up @@ -33,6 +34,7 @@ class RecorderTileService : TileService(), SharedPreferences.OnSharedPreferenceC
prefs.unregisterOnSharedPreferenceChangeListener(this)
}

@SuppressLint("StartActivityAndCollapseDeprecated")
override fun onClick() {
super.onClick()

Expand Down
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[versions]
android-gradle-plugin = "8.1.3"
android-gradle-plugin = "8.3.2"
androidx-activity = "1.8.2"
androidx-appcompat = "1.6.1"
androidx-core = "1.12.0"
androidx-documentfile = "1.0.1"
androidx-fragment = "1.6.2"
androidx-preference = "1.2.1"
jgit = "6.7.0.202309050840-r"
json = "20231013"
kotlin = "1.9.20"
kudzu = "5.1.0"
jgit = "6.9.0.202403050737-r"
json = "20240303"
kotlin = "1.9.23"
kudzu = "5.2.0"
material = "1.11.0"
test-junit = "4.13.2"

Expand Down
1,562 changes: 796 additions & 766 deletions gradle/verification-metadata.xml

Large diffs are not rendered by default.

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=9631d53cf3e74bfa726893aee1f8994fee4e060c401335946dba2156f440f24c
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionSha256Sum=544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
20 changes: 10 additions & 10 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand All @@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand Down

0 comments on commit b40c6af

Please sign in to comment.