From 1fc57907b0a7020713794a0e4be32a91631a6c93 Mon Sep 17 00:00:00 2001 From: qiuguohua Date: Mon, 16 Dec 2024 17:11:00 +0800 Subject: [PATCH] Fix issues with adpf --- native/CMakeLists.txt | 2 +- native/cocos/platform/android/adpf_manager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/native/CMakeLists.txt b/native/CMakeLists.txt index 8b1c9fd2c83..aeee3884be4 100644 --- a/native/CMakeLists.txt +++ b/native/CMakeLists.txt @@ -3173,7 +3173,7 @@ function(cc_apply_definations target) $<$:SCRIPT_ENGINE_TYPE=5> $<$:SCRIPT_ENGINE_TYPE=6> $<$,$>:CC_DEBUG=1> - $,CC_USE_APDF=1,CC_USE_APDF=0> + $,CC_USE_ADPF=1,CC_USE_ADPF=0> $,CC_USE_GOOGLE_BILLING=1,CC_USE_GOOGLE_BILLING=0> ) endfunction() diff --git a/native/cocos/platform/android/adpf_manager.h b/native/cocos/platform/android/adpf_manager.h index 7ba133aad8b..712d76d84a0 100644 --- a/native/cocos/platform/android/adpf_manager.h +++ b/native/cocos/platform/android/adpf_manager.h @@ -16,7 +16,7 @@ #pragma once -#if CC_PLATFORM == CC_PLATFORM_ANDROID && __ANDROID_API__ >= 30 +#if CC_PLATFORM == CC_PLATFORM_ANDROID && __ANDROID_API__ >= 30 && CC_USE_ADPF #include #include #include