0
0
mirror of https://github.com/Ishan09811/pine.git synced 2025-04-24 08:55:10 +00:00

disable parallel building + fix some more kotlin compilation errors

This commit is contained in:
Ishan09811 2024-07-05 17:11:47 +05:30 committed by GitHub
parent b88bb5150b
commit eac1506611
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -71,7 +71,7 @@ jobs:
CMAKE_C_COMPILER_LAUNCHER: "ccache"
CMAKE_CXX_COMPILER_LAUNCHER: "ccache"
CCACHE_COMPILERCHECK: "string:${{ env.NDK_VERSION }}"
run: ./gradlew --stacktrace --configuration-cache --build-cache --parallel --configure-on-demand assembleFullRelease assembleFullReldebug
run: ./gradlew --stacktrace --configuration-cache --build-cache --configure-on-demand assembleFullRelease assembleFullReldebug
- name: Rename APKs (Signed)
if: env.IS_BUILD_SIGNED == 'true' && env.UPLOAD_ARTIFACTS == 'true'

View File

@ -647,7 +647,7 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
val deviceIds = InputDevice.getDeviceIds()
deviceIds.forEach { deviceId ->
InputDevice.getDevice(deviceId).apply {
InputDevice.getDevice(deviceId)?.apply {
// Verify that the device has gamepad buttons, control sticks, or both.
if (sources and InputDevice.SOURCE_JOYSTICK == InputDevice.SOURCE_JOYSTICK) {
// This device is a game controller.
@ -691,12 +691,12 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
} else {
for (id in InputDevice.getDeviceIds()) {
val device = InputDevice.getDevice(id)
if (device.descriptor == inputManager.controllers[index]!!.rumbleDeviceDescriptor) {
if (device?.descriptor == inputManager.controllers[index]!!.rumbleDeviceDescriptor) {
val vibrator = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
device.vibratorManager.defaultVibrator
device?.vibratorManager!!.defaultVibrator
} else {
@Suppress("DEPRECATION")
device.vibrator!!
device?.vibrator!!
}
vibrators[index] = vibrator
return@let vibrator

View File

@ -10,7 +10,7 @@ org.gradle.jvmargs=-Xmx3g -XX:+UseParallelGC
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
org.gradle.parallel=true
org.gradle.parallel=false
# Enable Gradle Daemon
org.gradle.daemon=true
# AndroidX package structure to make it clearer which packages are bundled with the