生成ResourceTable增加版本判断

Signed-off-by: liduo <liduo29@huawei.com>
This commit is contained in:
liduo
2025-12-05 09:48:10 +08:00
parent d1053a7d1f
commit 74bc14e553
5 changed files with 35 additions and 14 deletions
+5
View File
@@ -71,6 +71,10 @@ public:
{
return newModule_;
}
inline bool isSupportTsHeader() const
{
return tsHeader_;
}
static void SetUseModule()
{
useModule_ = true;
@@ -108,6 +112,7 @@ private:
static bool useModule_;
cJSON *root_;
bool newModule_ = false;
bool tsHeader_ = false;
};
}
}
+2
View File
@@ -57,6 +57,8 @@ static std::set<std::string> g_resourceSet;
static std::set<std::string> g_hapResourceSet;
const static int8_t INVALID_ID = -1;
const static int MIN_SUPPORT_NEW_MODULE_API_VERSION = 60000020;
const static int MIN_SUPPORT_TS_HEADER_API_VERSION = 22;
const static int API_VERSION_DIVISOR = 1000;
enum class IgnoreType {
IGNORE_FILE,