# US 2026/0064404 A1 · Method, apparatus, device and medium for switching code data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0064404 A1
- Document ID: US20260064404A1
- Status: Published application
- Kind: A1
- Application number: 18/932,917
- Filed: 2024-10-31
- Published: 2026-03-05
- Earliest claimed: 2024-08-29
- Applicants: Lemon Inc.; Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Pengwen Jiao; Yilei Wang
- Web page: https://patentgrep.com/patent/US20260064404A1

## CPC

- G06F 8/70: Software maintenance or management
- G06F 8/10: Requirements analysis; Specification techniques
- G06F 8/53: Decompilation; Disassembly
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, an apparatus, a device, and a medium for switching code data are provided. Description data of a project is obtained, the description data describing an association relationship between code data of a plurality of modules in the project and the project, and a reference mode of code data of a module in the plurality of modules comprising at least any of: a binary mode and a source code mode. In response to determining that the reference mode of first code data of a first module in the plurality of modules is switched from the binary mode to the source code mode, second configuration data of the first module is generated based on first configuration data of the first module. The description data of the project is updated with the second configuration data. Development efficiency is improved without the need to synchronize code data of the entire project.

## Claims

### Claim 1

A method for switching code data, comprising:
obtaining description data of a project, the description data describing an association relationship between code data of a plurality of modules in the project and the project, and a reference mode of code data of a module in the plurality of modules comprising at least one of: a binary mode and a source code mode;
in response to determining that a reference mode of first code data of a first module in the plurality of modules is switched from the binary mode to the source code mode, generating second configuration data of the first module based on first configuration data of the first module; and
updating the description data of the project with the second configuration data.

### Claim 2 (depends on 1)

The method of claim 1, wherein generating the second configuration data comprises:
extracting metadata of the first module from the first configuration data, the metadata comprising at least any of: a dependency relationship with the first code data, an asset directory, a source code directory, a resource directory, and a root directory; and
generating the second configuration data based on the metadata.

### Claim 3 (depends on 1)

The method of claim 1, wherein updating the description data of the project comprises:
replacing the first configuration data with the second configuration data to update the association relationship.

### Claim 4 (depends on 3)

The method of claim 3, wherein updating the association relationship comprises:
determining, from the description data of the project, a portion corresponding to the first configuration data; and
replacing the portion based on the second configuration data.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining a second module in the plurality of modules based on the association relationship; and
in response to determining that there is an association relationship between second code data of the second module and the first code data of the first module, updating second configuration data of the second module with the second configuration data.

### Claim 6 (depends on 5)

The method of claim 5, wherein updating the second configuration data of the second module with the second configuration data comprises:
determining, in an order item node in the second configuration data, a portion corresponding to the first configuration data; and
replacing the portion based on the second configuration data.

### Claim 7 (depends on 6)

The method of claim 6, further comprising at least any of:
in response to determining that the reference mode of the second code data for the first code data is the binary mode, setting the reference mode for the first code data as the binary mode; and
in response to determining that the reference mode of the second code data for the first code data is the source code mode, setting the reference mode for the first code data as the source code mode.

### Claim 8 (depends on 2)

The method of claim 2, further comprising:
in response to receiving an update request for the first code data in the source code mode, generating third code data in the source code mode; and
updating the metadata based on the third code data in the source code mode.

### Claim 9 (depends on 8)

The method of claim 8, further comprising: determining the second configuration data based on the updated metadata.

### Claim 10 (depends on 8)

The method of claim 8, further comprising: generating fourth code data in the binary mode in response to receiving a construction request for the third code data.

### Claim 11

An electronic device, comprising:
at least one processing unit; and
at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform a method for switching code data, the method comprising:
obtaining description data of a project, the description data describing an association relationship between code data of a plurality of modules in the project and the project, and a reference mode of code data of a module in the plurality of modules comprising at least one of: a binary mode and a source code mode;
in response to determining that a reference mode of first code data of a first module in the plurality of modules is switched from the binary mode to the source code mode, generating second configuration data of the first module based on first configuration data of the first module; and
updating the description data of the project with the second configuration data.

### Claim 12 (depends on 11)

The device of claim 11, wherein generating the second configuration data comprises:
extracting metadata of the first module from the first configuration data, the metadata comprising at least any of: a dependency relationship with the first code data, an asset directory, a source code directory, a resource directory, and a root directory; and
generating the second configuration data based on the metadata.

### Claim 13 (depends on 11)

The device of claim 11, wherein updating the description data of the project comprises: replacing the first configuration data with the second configuration data to update the association relationship.

### Claim 14 (depends on 13)

The device of claim 13, wherein updating the association relationship comprises:
determining, from the description data of the project, a portion corresponding to the first configuration data; and
replacing the portion based on the second configuration data.

### Claim 15 (depends on 11)

The device of claim 11, wherein the method further comprises:
determining a second module in the plurality of modules based on the association relationship; and
in response to determining that there is an association relationship between second code data of the second module and the first code data of the first module, updating second configuration data of the second module with the second configuration data.

### Claim 16 (depends on 15)

The device of claim 15, wherein updating the second configuration data of the second module with the second configuration data comprises:
determining, in an order item node in the second configuration data, a portion corresponding to the first configuration data; and
replacing the portion based on the second configuration data.

### Claim 17 (depends on 16)

The device of claim 16, wherein the method further comprises at least any of:
in response to determining that the reference mode of the second code data for the first code data is the binary mode, setting the reference mode for the first code data as the binary mode; and
in response to determining that the reference mode of the second code data for the first code data is the source code mode, setting the reference mode for the first code data as the source code mode.

### Claim 18 (depends on 12)

The device of claim 12, wherein the method further comprises:
in response to receiving an update request for the first code data in the source code mode, generating third code data in the source code mode; and
updating the metadata based on the third code data in the source code mode.

### Claim 19 (depends on 18)

The device of claim 18, wherein the method further comprises at least any of:
determining the second configuration data based on the updated metadata; and
generating fourth code data in the binary mode in response to receiving a construction request for the third code data.

### Claim 20

A non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to implement a method for switching code data, the method comprising:
obtaining description data of a project, the description data describing an association relationship between code data of a plurality of modules in the project and the project, and a reference mode of code data of a module in the plurality of modules comprising at least one of: a binary mode and a source code mode;
in response to determining that a reference mode of first code data of a first module in the plurality of modules is switched from the binary mode to the source code mode, generating second configuration data of the first module based on first configuration data of the first module; and
updating the description data of the project with the second configuration data.
