plugins {
    id 'com.android.application'
}

android {
    namespace 'com.arm.repro.malig925'
    compileSdk 35

    defaultConfig {
        applicationId 'com.arm.repro.malig925'
        minSdk 29       // API 29+ guarantees Vulkan 1.1; Tab S11 is API 35
        targetSdk 35
        versionCode 1
        versionName '1.0'

        externalNativeBuild {
            cmake {
                abiFilters 'arm64-v8a'
                // SYNC_MODE selects the crashing CPU-side sync primitive.
                // Options: SYNC_WAIT_SEMAPHORES | SYNC_GET_COUNTER |
                //          SYNC_WAIT_FENCES | SYNC_QUEUE_WAIT_IDLE
                arguments '-DSYNC_MODE=SYNC_WAIT_SEMAPHORES'
            }
        }
    }

    externalNativeBuild {
        cmake {
            path 'src/main/cpp/CMakeLists.txt'
            version '3.22.1'
        }
    }

    buildTypes {
        debug {
            debuggable true
            jniDebuggable true
        }
    }
}
