Resource synchronization method, device and equipment between application programs

By analyzing and processing resource information between applications and using data tables to quickly match and synchronize, the cumbersome problem of resource synchronization in the existing technology is solved, and efficiency and effect are improved.

CN119066040APending Publication Date: 2024-12-03BEIJING LEWO INFINITE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411033801.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the prior art, the resource synchronization process between applications is cumbersome and inefficient, which affects the synchronization effect.

Method used

By analyzing instruction information, obtaining and processing resource information in resource files, updating resource files, and syncing them to the target application, using data tables to quickly retrieve and match resources, and improving synchronization efficiency.

Benefits of technology

It realizes convenient synchronization of resources between different applications, improves resource synchronization efficiency and effect, reduces manual intervention, and improves synchronization accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119066040A_ABST
    Figure CN119066040A_ABST
Patent Text Reader

Abstract

The invention provides a resource synchronization method, device and equipment between application programs, and the method comprises the steps: responding to monitored instruction information, and obtaining file information from the instruction information through analysis, and the file information is used for describing a resource file of a first application program; processing a first resource in the resource file according to the instruction information to obtain a second resource and operation result information; first resource information corresponding to the file information is obtained, and the first resource information is obtained by processing a first resource in the resource file; the first resource information is updated according to the operation result information, second resource information is obtained, and the second resource information is used for synchronizing a second resource in the resource file to the second application program. The technical problems that in the prior art, the resource synchronization process between different application programs is tedious, efficiency is not high, and the synchronization effect is affected are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic devices, and in particular to a method, apparatus and device for synchronizing resources between application programs. Background Art

[0002] In some application scenarios, it may be necessary to synchronize resources between one application and another application, that is, multiple applications may share the same resources, such as images and / or multi-language resources. Multi-language resources refer to resources used to implement application localization, which may include key-value pair collections and interface text. Multi-language resources enable the correct text content to be displayed in applications in different language environments.

[0003] In the related art, resources are usually shared between different applications by copying and pasting, which makes the resource synchronization process between different applications more complicated and inefficient, affecting the synchronization effect. Summary of the invention

[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0005] To this end, the present disclosure proposes a method, device, electronic device, computer-readable storage medium and computer program product for synchronizing resources between applications, so as to conveniently synchronize resources between different applications and improve the efficiency and effect of resource synchronization.

[0006] The first aspect of the present disclosure proposes a method for synchronizing resources between applications, including: in response to monitoring instruction information, parsing the instruction information to obtain file information, wherein the file information is used to describe a resource file of a first application; processing a first resource in the resource file according to the instruction information to obtain a second resource and operation result information; acquiring first resource information corresponding to the file information, wherein the first resource information is obtained by processing the first resource in the resource file; and updating the first resource information according to the operation result information to obtain second resource information, wherein the second resource information is used to synchronize the second resource in the resource file to the second application.

[0007] In some embodiments of the present disclosure, the first resource and the second resource respectively include at least one of the following: a picture of the first application and / or a multi-language resource.

[0008] In some embodiments of the present disclosure, obtaining first resource information corresponding to the file information includes:

[0009] Acquire a data table, wherein the data table includes a plurality of candidate information and candidate resource information corresponding to each candidate information;

[0010] Determine candidate information matching the file information from the plurality of candidate information;

[0011] The candidate resource information corresponding to the matched candidate information is used as the first resource information.

[0012] In some embodiments of the present disclosure, the data table further includes: candidate resources corresponding to each candidate information; wherein, before processing the first resource in the resource file according to the instruction information to obtain the second resource and the operation result information, the method further includes:

[0013] The candidate resource corresponding to the matched candidate information is used as the first resource.

[0014] In some embodiments of the present disclosure, the data table is constructed based on the following method:

[0015] Acquire multiple candidate files, wherein the candidate files have corresponding candidate information, and each candidate file contains candidate resources;

[0016] Model the candidate resources and obtain the candidate resource information;

[0017] Generate multiple candidate information and candidate resource information corresponding to each candidate information, and construct a data table.

[0018] In some embodiments of the present disclosure, the first resource information and the second resource information respectively include at least one of the following: file name, file format, file size, last modification time, file path, and file reference count value.

[0019] The second aspect of the present disclosure proposes a resource synchronization device between applications, including: a parsing module, used to respond to monitoring instruction information, parse the instruction information to obtain file information, wherein the file information is used to describe the resource file of a first application; a processing module, used to process the first resource in the resource file according to the instruction information to obtain a second resource and operation result information; an acquisition module, used to obtain first resource information corresponding to the file information, wherein the first resource information is obtained by processing the first resource in the resource file; and an update module, used to update the first resource information according to the operation result information to obtain second resource information, wherein the second resource information is used to synchronize the second resource in the resource file to the second application.

[0020] In some embodiments of the present disclosure, the first resource and the second resource respectively include at least one of the following: a picture of the first application and / or a multi-language resource.

[0021] In some embodiments of the present disclosure, the acquisition module is specifically used to:

[0022] Acquire a data table, wherein the data table includes a plurality of candidate information and candidate resource information corresponding to each candidate information;

[0023] Determine candidate information matching the file information from the plurality of candidate information;

[0024] The candidate resource information corresponding to the matched candidate information is used as the first resource information.

[0025] In some embodiments of the present disclosure, the data table also includes: candidate resources corresponding to each candidate information; wherein the processing module is also used to process the first resource in the resource file according to the instruction information to obtain the second resource and operation result information, and then use the candidate resource corresponding to the matching candidate information as the first resource.

[0026] In some embodiments of the present disclosure, the data table is constructed based on the following method:

[0027] Acquire multiple candidate files, wherein the candidate files have corresponding candidate information, and each candidate file contains candidate resources;

[0028] Model the candidate resources and obtain the candidate resource information;

[0029] Generate multiple candidate information and candidate resource information corresponding to each candidate information, and construct a data table.

[0030] In some embodiments of the present disclosure, the first resource information and the second resource information respectively include at least one of the following: file name, file format, file size, last modification time, file path, and file reference count value.

[0031] The third aspect embodiment of the present disclosure proposes an electronic device, including: a processor, and a memory communicatively connected to the processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the resource synchronization method between applications proposed in the first aspect embodiment of the present disclosure.

[0032] The fourth aspect embodiment of the present disclosure proposes a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the resource synchronization method between applications proposed in the first aspect embodiment of the present disclosure.

[0033] The fifth aspect of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the resource synchronization method between applications provided by the first aspect of the present disclosure.

[0034] The resource synchronization method, device, electronic device, computer-readable storage medium and computer program product provided by the present disclosure obtain file information from the instruction information in response to monitoring instruction information, wherein the file information is used to describe the resource file of the first application, and the first resource in the resource file is processed according to the instruction information to obtain the second resource and operation result information, and the first resource information corresponding to the file information is obtained, wherein the first resource information is obtained by processing the first resource in the resource file, and the first resource information is updated according to the operation result information to obtain the second resource information, wherein the second resource information is used to synchronize the second resource in the resource file to the second application. Convenient synchronization of resources between different applications is achieved, and the efficiency and effect of resource synchronization are improved.

[0035] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0037] Figure 1 is a flow chart showing a method for synchronizing resources between applications according to an exemplary embodiment;

[0038] Figure 2 is a flow chart of a method for synchronizing resources between applications according to another exemplary embodiment;

[0039] Figure 3 is a structural diagram of a resource synchronization device between applications according to an exemplary embodiment;

[0040] Figure 4 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0041] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0043] The resource synchronization method, device and equipment between applications provided by the embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0044] Figure 1 This is a flowchart of a resource synchronization method between applications according to an exemplary embodiment. The resource synchronization method between applications can be applied to an APP (application) end, and the APP end can achieve a network connection with a server end. The APP can be installed in a user's electronic device, for example, it can be an APP that can achieve any function. The resource synchronization method between applications can also be applied to a server end, and the server end can support resource synchronization between different applications.

[0045] The resource synchronization method between applications in the embodiment of the present disclosure can be specifically applied to a first application, where the first application is the application whose resources are to be synchronized, and the resources of the first application can be synchronized to the second application quickly and efficiently.

[0046] In the embodiments of the present disclosure, the resource may be, for example, a picture and / or a multi-language resource. The resource may also be a resource in any other possible form, such as an audio resource, a voice resource, and the like.

[0047] like Figure 1 As shown, the resource synchronization method between applications may include the following steps:

[0048] In step S101, in response to monitoring instruction information, file information is parsed from the instruction information, wherein the file information is used to describe a resource file of the first application.

[0049] The instruction information is used to modify, update, and perform other operations on the resources in the first application. The resources in the first application may be referred to as first resources. The first resources may be, for example, included in a resource file of the first application, which is not limited.

[0050] The file information may specifically include, for example, the type and name of the resource file to be processed.

[0051] In some embodiments, a functional interface for monitoring instruction information can be provided. If instruction information is monitored based on the functional interface, the instruction information can be parsed to obtain file information from the instruction information. The file information can be used to index the first resource information. The first resource information can be obtained by scanning the first resource in advance, and there is no limitation on this.

[0052] In step S102, the first resource in the resource file is processed according to the instruction information to obtain the second resource and operation result information.

[0053] In response to monitoring the instruction information, after parsing the instruction information to obtain the file information, the first resource in the resource file can be processed according to the instruction information to obtain the second resource and operation result information.

[0054] The second resource refers to a resource obtained by processing the first resource. The operation result information is used to describe the operation process of the first resource, such as the type of operation (eg, modification, addition, deletion), the time of the operation, and so on.

[0055] In some embodiments, if the processing of a first resource in a resource file is monitored, a second resource obtained by processing the first resource and operation result information can be dynamically obtained, and then the second resource can be assisted in being synchronized to a second application based on the operation result information, so as to achieve that after the first resource of the first application is operated and the second resource is obtained, the second resource obtained by the operation is updated to the second application in a timely manner.

[0056] In some embodiments, the first resource and the second resource respectively include at least one of the following: images and / or multi-language resources of the first application. In other words, the first resource and the second resource are both resources of the first application, the first resource is a resource before processing, and the second resource is a resource obtained after processing the first resource.

[0057] In step S103, first resource information corresponding to the file information is obtained, wherein the first resource information is obtained by processing the first resource in the resource file.

[0058] After the first resource in the resource file is processed according to the instruction information and the second resource and operation result information are obtained, the first resource information corresponding to the file information can be obtained. The first resource information can be specifically used to describe the first resource and can be obtained by data modeling the first resource. In some embodiments, the first resource information can be used to describe the complete first resource. The first resource information can be the file name, file format, file size, last modification time, file path, file reference count value and other information of the first resource, and there is no limitation on this.

[0059] In step S104, the first resource information is updated according to the operation result information to obtain second resource information, wherein the second resource information is used to synchronize the second resource in the resource file to the second application.

[0060] After obtaining the first resource information corresponding to the file information, the first resource information can be updated based on the operation result information to obtain second resource information, which can be specifically used to describe the second resource. The second resource information can assist in synchronizing the second resource in the resource file to the second application.

[0061] For example, if the operation result information is used to modify the first resource, then updating the first resource information according to the operation result information may be to determine the time when the first resource was modified, and to modify the "last modification time" in the first resource based on the time when the first resource was modified, and there is no limitation on this.

[0062] In some embodiments, the first application can directly save the second resource information to a data table on the background server, which can be accessed by the second application. The first application can share the updated data table to the background server of the second application through the background server, and the background server of the second application can push the updated data table to the second application.

[0063] In some other embodiments, the updated second resource information may also be synchronized to the second application based on commands such as copying and moving files, and there is no limitation on this.

[0064] In this embodiment, in response to monitoring instruction information, file information is parsed from the instruction information, wherein the file information is used to describe the resource file of the first application, and the first resource in the resource file is processed according to the instruction information to obtain the second resource and operation result information, and the first resource information corresponding to the file information is obtained, wherein the first resource information is obtained by processing the first resource in the resource file, and the first resource information is updated according to the operation result information to obtain the second resource information, wherein the second resource information is used to synchronize the second resource in the resource file to the second application. Convenient synchronization of resources between different applications is achieved, and the efficiency and effect of resource synchronization are improved.

[0065] Figure 2It is a flowchart of a resource synchronization method between applications according to another exemplary embodiment. The resource synchronization method between applications can be applied to an APP (application) side, and the APP side can achieve a network connection with a server side. The APP can be installed in a user's electronic device, for example, it can be an APP that can achieve any function. The resource synchronization method between applications can also be applied to a server side, and the server side can support resource synchronization between different applications.

[0066] like Figure 2 As shown, the resource synchronization method between applications may include the following steps:

[0067] In step S201, in response to monitoring instruction information, file information is parsed from the instruction information, wherein the file information is used to describe a resource file of the first application.

[0068] In step S202, the first resource in the resource file is processed according to the instruction information to obtain the second resource and operation result information.

[0069] For the description of step S202-step S202, please refer to the above embodiment for details, which will not be repeated here.

[0070] In step S203, a data table is obtained, wherein the data table includes a plurality of candidate information and candidate resource information corresponding to each candidate information.

[0071] In some embodiments, the data table is constructed based on the following method: obtaining multiple candidate files, wherein the candidate files have corresponding candidate information, each candidate file contains a candidate resource, modeling the candidate resource to obtain candidate resource information, and generating multiple candidate information and candidate resource information corresponding to each candidate information, and constructing the data table. Thus, the first resource information can be quickly retrieved based on the data table, thereby improving the efficiency and effect of resource synchronization.

[0072] In step S204, candidate information matching the file information is determined from the plurality of candidate information.

[0073] In some embodiments, candidate information in the data table that is identical to the file information may be used as matching candidate information, or candidate information in the data table that has a similarity with the file information greater than a threshold may be used as matching candidate information, without limitation.

[0074] The above-mentioned candidate information can be data modeling of each resource file within the first application (an optional example of a candidate file, and the information describing the candidate file can be called candidate information), mainly including attributes such as file name, file format, file size, last modification time, file path, file reference count, etc. (an optional example of candidate resource information), saving the aforementioned various attributes into a data table, and saving the data table.

[0075] In step S205, the candidate resource information corresponding to the matched candidate information is used as the first resource information, wherein the first resource information is obtained by processing the first resource in the resource file.

[0076] During the application process, the first resource in the resource file can be processed according to the instruction information to obtain the second resource and operation result information, and then the first resource information in the data table can be synchronized and updated in a timely manner, supporting the subsequent rapid synchronization of the second resource obtained by processing the first resource to the second application.

[0077] In step S206, the first resource information is updated according to the operation result information to obtain second resource information, wherein the second resource information is used to synchronize the second resource in the resource file to the second application.

[0078] For the description of step S206, please refer to the above embodiment, which will not be repeated here.

[0079] In this embodiment, in response to monitoring instruction information, file information is parsed from the instruction information, wherein the file information is used to describe the resource file of the first application, and the first resource in the resource file is processed according to the instruction information to obtain the second resource and operation result information, and the first resource information corresponding to the file information is obtained, wherein the first resource information is obtained by processing the first resource in the resource file, and the first resource information is updated according to the operation result information to obtain the second resource information, wherein the second resource information is used to synchronize the second resource in the resource file to the second application. Convenient synchronization of resources between different applications is achieved, and the efficiency and effect of resource synchronization are improved. Multiple candidate files are obtained, wherein the candidate files have corresponding candidate information, and each candidate file contains candidate resources, the candidate resources are modeled, the candidate resource information is obtained, and multiple candidate information and candidate resource information corresponding to each candidate information are generated, and a data table is constructed. Therefore, the first resource information can be quickly retrieved based on the data table support, and the efficiency and effect of resource synchronization are improved.

[0080] In some embodiments of the present disclosure, the data table also includes: candidate resources corresponding to each candidate information; wherein, before the first resource in the resource file is processed according to the instruction information to obtain the second resource and the operation result information, the candidate resource corresponding to the matching candidate information can also be used as the first resource. This supports improving the acquisition efficiency of the first resource.

[0081] The candidate resources in the data table may be obtained by scanning resources in a resource file (an optional example of a candidate file) in advance, and there is no limitation to this.

[0082] The above embodiment may be described as follows (taking the application program as app for example):

[0083] Step 1: Perform data modeling on the resource files in the app, mainly including attributes such as file name, file format, file size, last modification time, file path, file reference count, etc. (an optional example of the above resource information), create a database table and save it.

[0084] Step 2: Use shell or python script to scan the image resources in the .xcassets folder and the multi-language resources in .strings in the app, and update the scan results to the database.

[0085] Step 3: Use a shell or Python script to scan all .m, .xib, .storyboard and other files in the app, match the resource file names, and update the reference count field.

[0086] Step 4: Monitor git commits (commits that depend on git modifications). When a resource file is found to be modified, deleted, added, referenced, etc., update the corresponding resource information in the database.

[0087] Step 5: Get the resource files that are no longer used in the current project by retrieving the resource files with a reference count of 0 in the database.

[0088] Step 6: Use the rm command to batch delete useless resource files.

[0089] Step 7: Synchronize resource files between specified apps through commands such as copying and moving files.

[0090] For example, automatically retrieve and delete unused images and multi-language resources: Step 1: Enter the app source code address, run the initialization script, and generate a database file (only once, the database file can be an optional example of the above data table). Step 2: Automatically retrieve resource files with a reference count of 0. Step 3: Batch delete resource files that are no longer used.

[0091] For another example, synchronizing resource files between different apps: Step 1: Enter the app source code address, run the initialization script, and generate a database file (only once, the database file can be an optional example of the above data table). Step 2: For resource files with the same name, select different strategies, such as directly overwriting or selecting the most recently modified. Step 3: Synchronize resource files.

[0092] In the disclosed embodiment, it is possible to automatically scan and delete useless resource files, reduce the size of the app package, and save developers' working time in this regard. By synchronizing resource files between different applications, the tedious and repetitive work is handed over to the machine to complete, which not only improves accuracy but also reduces labor costs.

[0093] Figure 3 The diagram is a structural diagram of a device for synchronizing resources between applications according to an exemplary embodiment.

[0094] like Figure 3 The resource synchronization device 30 between the applications comprises:

[0095] The parsing module 301 is used to parse the instruction information to obtain file information in response to monitoring the instruction information, wherein the file information is used to describe the resource file of the first application.

[0096] The processing module 302 is used to process the first resource in the resource file according to the instruction information to obtain the second resource and operation result information.

[0097] The acquisition module 303 is used to acquire first resource information corresponding to the file information, wherein the first resource information is obtained by processing the first resource in the resource file.

[0098] The updating module 304 is used to update the first resource information according to the operation result information to obtain the second resource information, wherein the second resource information is used to synchronize the second resource in the resource file to the second application.

[0099] It should be noted that the above explanation of the embodiment of the method for synchronizing resources between applications is also applicable to the device for synchronizing resources between applications in this embodiment, and will not be repeated here.

[0100] In this embodiment, in response to monitoring instruction information, file information is parsed from the instruction information, wherein the file information is used to describe the resource file of the first application, and the first resource in the resource file is processed according to the instruction information to obtain the second resource and operation result information, and the first resource information corresponding to the file information is obtained, wherein the first resource information is obtained by processing the first resource in the resource file, and the first resource information is updated according to the operation result information to obtain the second resource information, wherein the second resource information is used to synchronize the second resource in the resource file to the second application. Convenient synchronization of resources between different applications is achieved, and the efficiency and effect of resource synchronization are improved.

[0101] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0102] Figure 4 A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device 400 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0103] like Figure 4 As shown, the electronic device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0104] Multiple components in the electronic device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0105] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as a resource synchronization method between applications. For example, in some embodiments, the resource synchronization method between applications may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the resource synchronization method between applications described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform a resource synchronization method between applications in any other appropriate manner (e.g., by means of firmware).

[0106] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0107] The program code of the computer program product for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0108] In the context of the present disclosure, a storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A storage medium may be a machine-readable signal medium or a machine-readable storage medium. Storage media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples of storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0109] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0110] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0111] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0112] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0113] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for synchronizing resources between applications, characterized in that: The method comprises the following steps: In response to monitoring the instruction information, parsing the instruction information to obtain file information, wherein the file information is used to describe a resource file of the first application; Processing the first resource in the resource file according to the instruction information to obtain the second resource and operation result information; Acquire first resource information corresponding to the file information, wherein the first resource information is obtained by processing a first resource in the resource file; and The first resource information is updated according to the operation result information to obtain second resource information, wherein the second resource information is used to synchronize the second resource in the resource file to the second application.

2. The method according to claim 1, characterized in that: The first resource and the second resource respectively include at least one of the following: pictures and / or multi-language resources of the first application.

3. The method according to claim 1, characterized in that: The acquiring the first resource information corresponding to the file information includes: Acquire a data table, wherein the data table includes a plurality of candidate information and candidate resource information corresponding to each candidate information; Determining candidate information matching the file information from the plurality of candidate information; The candidate resource information corresponding to the matched candidate information is used as the first resource information.

4. The method according to claim 3, characterized in that The data table also includes: candidate resources corresponding to each candidate information; wherein, before the first resource in the resource file is processed according to the instruction information to obtain the second resource and operation result information, the method also includes: The candidate resource corresponding to the matching candidate information is used as the first resource.

5. The method according to claim 3, characterized in that: The data table is constructed based on the following method: Acquire multiple candidate files, wherein the candidate files have corresponding candidate information, and each of the candidate files contains candidate resources; Modeling the candidate resources to obtain candidate resource information; Generate a plurality of candidate information and candidate resource information corresponding to each candidate information, and construct the data table.

6. The method according to claim 1, characterized in that The first resource information and the second resource information respectively include at least one of the following: file name, file format, file size, last modification time, file path, and file reference count value.

7. A resource synchronization device between applications, characterized in that: The device comprises: A parsing module, configured to parse the instruction information to obtain file information in response to monitoring the instruction information, wherein the file information is used to describe a resource file of the first application; A processing module, used for processing the first resource in the resource file according to the instruction information to obtain the second resource and operation result information; an acquisition module, configured to acquire first resource information corresponding to the file information, wherein the first resource information is obtained by processing a first resource in the resource file; and An updating module is used to update the first resource information according to the operation result information to obtain second resource information, wherein the second resource information is used to synchronize the second resource in the resource file to the second application.

8. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the resource synchronization method between applications as described in any one of claims 1 to 6.

9. A storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the resource synchronization method between applications as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for synchronizing resources between application programs according to any one of claims 1 to 6 is implemented.