Skip to content

Commit

Permalink
[build] Enable Gradle build cache (#91) [skip_post]
Browse files Browse the repository at this point in the history
* [build] Use cache in build

* [build] Enable the Gradle Build Cache
  • Loading branch information
lightsummer233 authored Sep 15, 2024
1 parent 327bdd2 commit 09aa495
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
distribution: 'adopt'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Checkout Secret
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -80,7 +83,7 @@ jobs:
path: |
app/build/outputs/apk/GitHub/release/*x86*.apk
!app/build/outputs/apk/GitHub/release/*x86_64*.apk
compression-level: 9
compression-level: 9

# Upload apk (universal)
- name: Upload Pre-Release Apk (universal)
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/skyd/anivu/ext/VibratorExt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ fun Vibrator.tickVibrate(duration: Long = 35) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
vibrate(VibrationEffect.createOneShot(duration, VibrationEffect.EFFECT_TICK))
} else {
@Suppress("DEPRECATION")
vibrate(duration)
}
}
6 changes: 5 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
# Gradle
org.gradle.caching=true
org.gradle.configureondemand=true
org.gradle.configuration-cache=true

0 comments on commit 09aa495

Please sign in to comment.