Skip to content

Commit 6dd56cb

Browse files
Kylmakallegithub-actions[bot]
authored andcommitted
HOTFIX Revert maps android gradle.properties #4901 (#4903)
GitOrigin-RevId: 6bb83946e089076067604efd6ff6e75983fa8625
1 parent 7e988b6 commit 6dd56cb

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

gradle.properties

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,30 @@ TEST_APP_VERSION_NAME=0.1.0
99
# any settings specified in this file.
1010
# For more details on how to configure your build environment visit
1111
# http://www.gradle.org/docs/current/userguide/build_environment.html
12+
1213
# Specifies the JVM arguments used for the daemon process.
1314
# The setting is particularly useful for tweaking memory settings.
14-
org.gradle.jvmargs=-Xmx12g -XX:MaxPermSize=1024m -XX:+UseParallelGC
15+
# Ensure important default jvmargs aren't overwritten. See https://github.com/gradle/gradle/issues/19750
16+
#
17+
# For more information about how Gradle memory options were chosen:
18+
# - Metaspace See https://www.jasonpearson.dev/metaspace-in-jvm-builds/
19+
# - SoftRefLRUPolicyMSPerMB would default to 1000 which with a 4gb heap translates to ~51 minutes.
20+
# A value of 1 means ~4 seconds before SoftRefs can be collected, which means its realistic to
21+
# collect them as needed during a build that should take seconds to minutes.
22+
# - CodeCache normally defaults to a very small size. Increasing it from platform defaults of 32-48m
23+
# because of how many classes can be loaded into memory and then cached as native compiled code
24+
# for a small speed boost.
25+
# - Increased stack size (Xss) fixes StackOverFlow during javadoc generation
26+
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=1 -XX:ReservedCodeCacheSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xmx16g -Xms4g -Xss4m
27+
28+
# For more information about how Kotlin Daemon memory options were chosen:
29+
# - Kotlin JVM args only inherit Xmx, ReservedCodeCache, and MaxMetaspace. Since we are specifying
30+
# other args we need to specify all of them here.
31+
# - We're using the Kotlin Gradle Plugin's default value for ReservedCodeCacheSize, if we do not then
32+
# the Gradle JVM arg value for ReservedCodeCacheSize will be used.
33+
kotlin.daemon.jvmargs=-Dfile.encoding=UTF-8 -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=1 -XX:ReservedCodeCacheSize=320m -XX:+HeapDumpOnOutOfMemoryError -Xmx16g -Xms4g
34+
35+
1536
# When configured, Gradle will run in incubating parallel mode.
1637
# This option should only be used with decoupled projects. More details, visit
1738
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
@@ -20,16 +41,15 @@ org.gradle.jvmargs=-Xmx12g -XX:MaxPermSize=1024m -XX:+UseParallelGC
2041
# Android operating system, and which are packaged with your app's APK
2142
# https://developer.android.com/topic/libraries/support-library/androidx-rn
2243
android.useAndroidX=true
23-
# Automatically convert third-party libraries to use AndroidX
24-
android.enableJetifier=false
2544
# Kotlin code style for this project: "official" or "obsolete":
2645
kotlin.code.style=official
27-
# Work around Jetifier can't handle multi-release jars
28-
# https://github.com/bcgit/bc-java/issues/762
29-
# https://issuetracker.google.com/issues/172784894
30-
# android.jetifier.blacklist=bcprov-jdk15on
31-
android.jetifier.ignorelist=bcprov-jdk15on
3246
# Internal build flag to build from source.
3347
buildFromSource=false
3448
# Disable ksp incremental feature due to ksp bug in https://github.com/google/ksp/issues/1280
35-
ksp.incremental=false
49+
ksp.incremental=false
50+
51+
android.nonTransitiveRClass=false
52+
#android.nonFinalResIds=false
53+
54+
# Enable caching between builds.
55+
org.gradle.caching=true

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ exampleCompileSdkVersion = "34"
1515

1616
# Plugins
1717
pluginJacoco = "0.8.12"
18-
pluginGradle = "7.4.2"
18+
pluginGradle = "8.10.1"
1919
pluginLicense = "0.9.0"
2020
pluginMapboxAccessToken = "0.4.0"
2121
pluginMapboxSdkRegistry = "1.3.3"
2222
pluginMapboxSdkVersions = "1.1.3"
23-
pluginMapboxNdk = "0.1.0"
23+
pluginMapboxNdk = "0.2.0"
2424
pluginTaskTree = "2.1.0"
2525
pluginPlayPublisher = "3.7.0"
2626
pluginGradleVersions = "0.42.0"
@@ -64,7 +64,7 @@ googleCarAppLibrary = "1.2.0"
6464
kotlinCoroutines = "1.6.1"
6565
junit = "4.13.2"
6666
mockk = "1.13.5"
67-
robolectric = "4.9.2"
67+
robolectric = "4.10.3"
6868
robolectricEgl = "gl1.1-android-2.1_r1"
6969
lint = "30.4.2"
7070
hamcrest = "2.1"

0 commit comments

Comments
 (0)