Skip to content

Commit 8ae1eb5

Browse files
committed
Update other dependencies
1 parent 111b574 commit 8ae1eb5

File tree

10 files changed

+48
-20
lines changed

10 files changed

+48
-20
lines changed

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
plugins {
4-
id("com.github.ben-manes.versions") version "0.39.0"
4+
id("com.github.ben-manes.versions") version "0.44.0"
55
}
66

77
buildscript {
@@ -20,8 +20,8 @@ buildscript {
2020
classpath("com.google.android.gms:oss-licenses-plugin:0.10.6")
2121
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.2")
2222
classpath("com.google.gms:google-services:4.3.14")
23-
classpath("com.vanniktech:gradle-maven-publish-plugin:0.21.0")
24-
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.7.10")
23+
classpath("com.vanniktech:gradle-maven-publish-plugin:0.22.0")
24+
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.7.20")
2525
classpath("org.mozilla.rust-android-gradle:plugin:0.9.3")
2626
}
2727
}

buildSrc/src/main/kotlin/Helpers.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ fun Project.setupCore() {
6868
warning += "RestrictedApi"
6969
disable += "UseAppTint"
7070
}
71-
ndkVersion = "21.4.7075529"
71+
ndkVersion = "25.1.8937393"
7272
}
73-
dependencies.add("coreLibraryDesugaring", "com.android.tools:desugar_jdk_libs:1.1.6")
73+
dependencies.add("coreLibraryDesugaring", "com.android.tools:desugar_jdk_libs:2.0.0")
7474
}
7575

7676
private val abiCodes = mapOf("armeabi-v7a" to 1, "arm64-v8a" to 2, "x86" to 3, "x86_64" to 4)

core/src/main/rust/linker-wrapper.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,26 @@ def win2posix(path):
2525

2626
args = [rustcc, os.environ['RUST_ANDROID_GRADLE_CC_LINK_ARG']] + sys.argv[1:]
2727

28+
def update_in_place(arglist):
29+
# The `gcc` library is not included starting from NDK version 23.
30+
# Work around by using `unwind` replacement.
31+
ndk_major_version = os.environ["CARGO_NDK_MAJOR_VERSION"]
32+
if ndk_major_version.isdigit():
33+
if 23 <= int(ndk_major_version):
34+
for i, arg in enumerate(arglist):
35+
if arg.startswith("-lgcc"):
36+
# This is one way to preserve line endings.
37+
arglist[i] = "-lunwind" + arg[len("-lgcc") :]
38+
39+
40+
update_in_place(args)
41+
42+
for arg in args:
43+
if arg.startswith("@"):
44+
fileargs = open(arg[1:], "r").read().splitlines(keepends=True)
45+
update_in_place(fileargs)
46+
open(arg[1:], "w").write("".join(fileargs))
47+
2848
linkargfileName = ''
2949
if (sys.platform == 'msys' or sys.platform == 'cygwin') and len(''.join(args)) > 8191:
3050
import codecs
@@ -48,7 +68,7 @@ def posix2win(path):
4868

4969

5070
# This only appears when the subprocess call fails, but it's helpful then.
51-
printable_cmd = ' '.join(pipes.quote(arg) for arg in args)
71+
printable_cmd = " ".join(pipes.quote(arg) for arg in args)
5272
print(printable_cmd)
5373

5474
code = subprocess.call(args)

gradle/wrapper/gradle-wrapper.jar

1.19 KB
Binary file not shown.

gradlew

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ set -- \
205205
org.gradle.wrapper.GradleWrapperMain \
206206
"$@"
207207

208+
# Stop when "xargs" is not available.
209+
if ! command -v xargs >/dev/null 2>&1
210+
then
211+
die "xargs is not available"
212+
fi
213+
208214
# Use "xargs" to parse quoted args.
209215
#
210216
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

gradlew.bat

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@rem limitations under the License.
1515
@rem
1616

17-
@if "%DEBUG%" == "" @echo off
17+
@if "%DEBUG%"=="" @echo off
1818
@rem ##########################################################################
1919
@rem
2020
@rem Gradle startup script for Windows
@@ -25,7 +25,7 @@
2525
if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
28-
if "%DIRNAME%" == "" set DIRNAME=.
28+
if "%DIRNAME%"=="" set DIRNAME=.
2929
set APP_BASE_NAME=%~n0
3030
set APP_HOME=%DIRNAME%
3131

@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
4040

4141
set JAVA_EXE=java.exe
4242
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto execute
43+
if %ERRORLEVEL% equ 0 goto execute
4444

4545
echo.
4646
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
7575

7676
:end
7777
@rem End local scope for the variables with windows NT shell
78-
if "%ERRORLEVEL%"=="0" goto mainEnd
78+
if %ERRORLEVEL% equ 0 goto mainEnd
7979

8080
:fail
8181
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
8282
rem the _cmd.exe /c_ return code!
83-
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84-
exit /b 1
83+
set EXIT_CODE=%ERRORLEVEL%
84+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
85+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
86+
exit /b %EXIT_CODE%
8587

8688
:mainEnd
8789
if "%OS%"=="Windows_NT" endlocal

mobile/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ android {
1515
}
1616

1717
dependencies {
18-
val cameraxVersion = "1.1.0"
18+
val cameraxVersion = "1.2.0"
1919

20-
implementation("androidx.browser:browser:1.4.0")
20+
implementation("androidx.browser:browser:1.5.0-alpha02")
2121
implementation("androidx.camera:camera-camera2:$cameraxVersion")
2222
implementation("androidx.camera:camera-lifecycle:$cameraxVersion")
2323
implementation("androidx.camera:camera-view:$cameraxVersion")

plugin/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ android {
1414

1515
dependencies {
1616
api(kotlin("stdlib-jdk8"))
17-
api("androidx.core:core-ktx:1.9.0")
18-
api("androidx.fragment:fragment-ktx:1.5.5")
19-
api("com.google.android.material:material:1.7.0")
17+
api("androidx.core:core-ktx:1.7.0")
18+
api("androidx.fragment:fragment-ktx:1.4.1")
19+
api("com.google.android.material:material:1.6.0")
2020
}

repositories.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rootProject.extra.apply {
2-
set("androidPlugin", "com.android.tools.build:gradle:7.3.1")
3-
set("kotlinVersion", "1.7.10")
2+
set("androidPlugin", "com.android.tools.build:gradle:7.4.0-rc01")
3+
set("kotlinVersion", "1.7.22")
44
}
55

66
repositories {

0 commit comments

Comments
 (0)