Skip to content

Commit 6d3cc42

Browse files
committed
enable configuration cache
1 parent 2e93c49 commit 6d3cc42

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/android-master.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141

4242
- name: Setup Gradle
4343
uses: gradle/actions/setup-gradle@v4
44+
with:
45+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4446

4547
- name: Build APK
4648
run: ./gradlew spotlessCheck assembleRelease --stacktrace

gradle.properties

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
1-
# Project-wide Gradle settings.
2-
# IDE (e.g. Android Studio) users:
3-
# Gradle settings configured through the IDE *will override*
4-
# any settings specified in this file.
5-
# For more details on how to configure your build environment visit
6-
# http://www.gradle.org/docs/current/userguide/build_environment.html
7-
# Specifies the JVM arguments used for the daemon process.
8-
# The setting is particularly useful for tweaking memory settings.
91
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10-
# When configured, Gradle will run in incubating parallel mode.
11-
# This option should only be used with decoupled projects. More details, visit
12-
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13-
# org.gradle.parallel=true
14-
# AndroidX package structure to make it clearer which packages are bundled with the
15-
# Android operating system, and which are packaged with your app"s APK
16-
# https://developer.android.com/topic/libraries/support-library/androidx-rn
2+
org.gradle.parallel=true
3+
org.gradle.caching=true
4+
org.gradle.configuration-cache=true
5+
org.gradle.configuration-cache.parallel=true
6+
177
android.useAndroidX=true
18-
# Kotlin code style for this project: "official" or "obsolete":
8+
199
kotlin.code.style=official

0 commit comments

Comments
 (0)