diff --git a/.github/workflows/pre_release.yml b/.github/workflows/pre_release.yml index 3bbea611..5cd4c0de 100644 --- a/.github/workflows/pre_release.yml +++ b/.github/workflows/pre_release.yml @@ -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: @@ -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) diff --git a/app/src/main/java/com/skyd/anivu/ext/VibratorExt.kt b/app/src/main/java/com/skyd/anivu/ext/VibratorExt.kt index 0bceb78d..cd24c136 100644 --- a/app/src/main/java/com/skyd/anivu/ext/VibratorExt.kt +++ b/app/src/main/java/com/skyd/anivu/ext/VibratorExt.kt @@ -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) } } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 3c5031eb..eada2e34 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 \ No newline at end of file +android.nonTransitiveRClass=true +# Gradle +org.gradle.caching=true +org.gradle.configureondemand=true +org.gradle.configuration-cache=true \ No newline at end of file