From cedbf0f2e32f002ee2200a54edae245f06b9036c Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Tue, 8 Oct 2024 03:30:50 +0100 Subject: [PATCH] FBT: Don't auto-update API version (must follow OFW) --nobuild --- scripts/fbt/sdk/cache.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/fbt/sdk/cache.py b/scripts/fbt/sdk/cache.py index e3d93a319..c6962e2cb 100644 --- a/scripts/fbt/sdk/cache.py +++ b/scripts/fbt/sdk/cache.py @@ -99,7 +99,8 @@ class SdkCache: return ApiEntryState.DISABLED elif entry in self.new_entries: if isinstance(entry, SdkVersion): - return ApiEntryState.VERSION_PENDING + # return ApiEntryState.VERSION_PENDING + return ApiEntryState.APPROVED return ApiEntryState.PENDING else: return ApiEntryState.APPROVED @@ -118,10 +119,10 @@ class SdkCache: if self._load_version_only: raise Exception("Only SDK version was loaded, cannot save") - if self.version_action == VersionBump.MINOR: - self.version = SdkVersion(self.version.major, self.version.minor + 1) - elif self.version_action == VersionBump.MAJOR: - self.version = SdkVersion(self.version.major + 1, 0) + # if self.version_action == VersionBump.MINOR: + # self.version = SdkVersion(self.version.major, self.version.minor + 1) + # elif self.version_action == VersionBump.MAJOR: + # self.version = SdkVersion(self.version.major + 1, 0) if self._have_pending_entries(): self.new_entries.add(self.version)