Resource package generation and parsing method and device
Through the resource package generation method written without code, the visual platform and Lua scripting language are used to solve the problem of time-consuming and costly page generation in the existing technology, and the cross-platform layout consistency and user experience improvement are achieved.
Patent Information
- Application Number
- CN202010201554.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-20
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2040-03-20
AI Technical Summary
The existing cross-platform mobile application development framework requires programming development when generating pages, which is time-consuming and costly, has poor user experience, and is complex in integration and use.
Provides a method for generating and parsing resource packages. Through the visual resource package generation platform, it does not require code writing, and uses the layout editor and expression editor to set control properties, combines Yoga layout technology and Lua scripting language to perform data simulation tests and previews. Generate and parse resource packages.
It reduces the cost of coding development and learning, improves the accuracy and practicality of resource packages, provides a good user experience, and ensures the consistency of layout effects of different platforms.
Smart Images

Figure CN113495730B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for generating and parsing a resource package. Background Art
[0002] Currently, there are many cross-platform mobile application development frameworks, such as React Native and NativeScript. These development frameworks use Web skills for mobile terminal development and display pages by mapping platform native controls, that is, using system built-in controls to display pages. Among them, React Native is a cross-platform mobile application development framework that was open-sourced by Facebook in April 2015, and NativeScript is an open-source framework that uses JavaScript to build cross-platform native mobile applications.
[0003] When developing an application, it is necessary to develop a resource package corresponding to the application based on the system environment and language environment in which the application runs. Developers develop a variety of resource packages so that users can download the corresponding resource packages according to actual needs and implement the functions of the application when using the application. In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: when generating a page, the above-mentioned technical means have the defects of requiring programming development, taking a long time and having a relatively high development cost, and the integration and use are relatively complicated, and the user experience is not good. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method and device for generating and parsing a resource package, which can directly generate a resource package without writing code, thereby reducing coding development costs, reducing learning costs, improving practicality, and bringing a good experience to users.
[0005] To achieve the above objective, according to a first aspect of an embodiment of the present invention, a method for generating a resource package is provided.
[0006] A method for generating a resource package in an embodiment of the present invention is applied to a generating end, comprising: receiving a resource package generation request, and determining a target control corresponding to the resource package to be generated according to the generation request; obtaining preset attribute information from the generation request, and setting the attributes of the target control according to the preset attribute information; obtaining operation data corresponding to the setting, and generating the resource package to be generated according to the operation data.
[0007] Optionally, the preset attribute information includes: preset basic attribute information and preset dynamic attribute information; and setting the attributes of the target control according to the preset attribute information includes: according to the preset basic attribute information, presetting the target control using a layout editor, and setting the basic attributes of the target control based on Yoga layout technology; according to the preset dynamic attribute information, using an expression editor and combining with Lua scripting language to set the dynamic attributes of the target control.
[0008] Optionally, after setting the dynamic properties of the target control, the generation method further comprises: using a simulation previewer to perform a data simulation test on the target control.
[0009] Optionally, after setting the basic properties of the target control and / or setting the dynamic properties of the target control, the generation method further includes: using a simulation previewer to perform a simulation preview on the target control; and adjusting the layout of the target control using the layout editor based on the simulation preview result.
[0010] Optionally, generating the resource package to be generated according to the operation data includes: using a resource processor to convert the operation data into a file in a preset format; determining that the file in the preset format is the resource package to be generated, and storing the resource package to be generated in a resource package library.
[0011] To achieve the above objective, according to a second aspect of an embodiment of the present invention, a method for parsing a resource package is provided.
[0012] A resource package parsing method according to an embodiment of the present invention is applied to a parsing end, and includes: receiving a page display request, obtaining business data corresponding to the display request, and determining a resource package to be parsed corresponding to the display request; obtaining the resource package to be parsed from a resource package library using a target software development toolkit corresponding to the resource package to be parsed; and parsing the resource package to be parsed using the target software development toolkit according to the business data to obtain a target view.
[0013] Optionally, the resource package to be parsed is generated according to the method for generating a resource package described in any of the above embodiments.
[0014] Optionally, the target software development kit is used to parse the resource package to be parsed according to the business data to obtain a target view, including: using the model processing module of the target software development kit to generate a target data model corresponding to the resource package to be parsed according to the layout described by the resource package to be parsed; rendering the target data model based on the target data model to obtain a visualization view corresponding to the target data model; using the data processing module of the target software development kit to set data for the visualization view according to the business data and a pre-created Lua instance corresponding to the resource package to be parsed to obtain the target view.
[0015] Optionally, determining the resource package to be parsed corresponding to the display request includes: obtaining identification information of the resource package to be parsed according to the display request; judging whether the display request includes version information of the resource package to be parsed; if so, determining the resource package to be parsed according to the identification information and the version information; if not, obtaining the latest version information of the resource package to be parsed using the identification information, and then determining the resource package to be parsed according to the identification information and the latest version information.
[0016] Optionally, the obtaining the resource package to be parsed from a resource package library by using a target software development kit corresponding to the resource package to be parsed includes: when the display request includes the version information, using a resource package processing module of the target software development kit to download the resource package to be parsed from the resource package library according to the identification information and the version information; and when the display request does not include the version information, using the resource package processing module to download the resource package to be parsed from the resource package library according to the identification information and the latest version information.
[0017] Optionally, after parsing the resource package to be parsed using the target software development kit according to the business data to obtain a target view, the parsing method further includes: generating a page to be displayed according to the target view and the business data, and displaying the page to be displayed.
[0018] Optionally, before acquiring the resource package to be parsed from a resource package library using a target software development toolkit corresponding to the resource package to be parsed, the parsing method further comprises: integrating the target software development toolkit.
[0019] To achieve the above objective, according to a third aspect of an embodiment of the present invention, a device for generating a resource package is provided.
[0020] A resource package generation device according to an embodiment of the present invention is arranged at a generation end, and includes: a first determination module, used to receive a resource package generation request, and determine a target control corresponding to the resource package to be generated according to the generation request; a setting module, used to obtain preset attribute information from the generation request, and set the attribute of the target control according to the preset attribute information; a generation module, used to obtain operation data corresponding to the setting, and generate the resource package to be generated according to the operation data.
[0021] Optionally, the preset attribute information includes: preset basic attribute information and preset dynamic attribute information; and the setting module is also used to: preset the target control according to the preset basic attribute information using a layout editor, and set the basic attributes of the target control based on Yoga layout technology; set the dynamic attributes of the target control according to the preset dynamic attribute information using an expression editor in combination with the Lua scripting language.
[0022] Optionally, the setting module is further used to: utilize a simulation previewer to perform a data simulation test on the target control.
[0023] Optionally, the setting module is further used to: use a simulation previewer to perform a simulation preview on the target control; and use the layout editor to adjust the layout of the target control according to the simulation preview result.
[0024] Optionally, the generating module is further used to: utilize a resource processor to convert the operating data into a file in a preset format; determine that the file in the preset format is the resource package to be generated, and store the resource package to be generated in a resource package library.
[0025] To achieve the above objective, according to a fourth aspect of an embodiment of the present invention, a device for parsing a resource package is provided.
[0026] A resource package parsing device according to an embodiment of the present invention is arranged at a parsing end, and includes: a second determination module, used to receive a page display request, obtain business data corresponding to the display request, and determine a resource package to be parsed corresponding to the display request; an acquisition module, used to obtain the resource package to be parsed from a resource package library using a target software development toolkit corresponding to the resource package to be parsed; and a parsing module, used to parse the resource package to be parsed using the target software development toolkit according to the business data to obtain a target view.
[0027] Optionally, the resource package to be parsed is generated according to the method for generating a resource package described in any of the above embodiments.
[0028] Optionally, the parsing module is also used to: utilize the model processing module of the target software development toolkit to generate a target data model corresponding to the resource package to be parsed according to the layout described by the resource package to be parsed; render the target data model based on the target data model to obtain a visualization view corresponding to the target data model; utilize the data processing module of the target software development toolkit to set data for the visualization view according to the business data and a pre-created Lua instance corresponding to the resource package to be parsed to obtain the target view.
[0029] Optionally, the second determination module is further used to: obtain identification information of the resource package to be parsed according to the display request; determine whether the display request includes version information of the resource package to be parsed; if so, determine the resource package to be parsed according to the identification information and the version information; if not, use the identification information to obtain the latest version information of the resource package to be parsed, and then determine the resource package to be parsed according to the identification information and the latest version information.
[0030] Optionally, the acquisition module is also used to: when the display request includes the version information, utilize the resource package processing module of the target software development kit to download the resource package to be parsed from the resource package library according to the identification information and the version information; when the display request does not include the version information, utilize the resource package processing module to download the resource package to be parsed from the resource package library according to the identification information and the latest version information.
[0031] Optionally, the parsing module is further used to: generate a page to be displayed according to the target view and the business data, and display the page to be displayed.
[0032] Optionally, the parsing end further includes: an integration module, used for integrating the target software development kit.
[0033] To achieve the above objective, according to a fifth aspect of an embodiment of the present invention, an electronic device is provided.
[0034] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the resource package generation and parsing method according to the embodiment of the present invention.
[0035] To achieve the above objective, according to a sixth aspect of an embodiment of the present invention, a computer-readable medium is provided.
[0036] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, the method for generating and parsing a resource package according to an embodiment of the present invention is implemented.
[0037] An embodiment of the above invention has the following advantages or beneficial effects: the method for generating a resource package in the embodiment of the present invention can directly generate a resource package without writing code, which can reduce the coding development cost while also reducing the learning cost, improving practicality, and bringing a good experience to users. The cross-platform layout library Yoga is used in the embodiment of the present invention to ensure that the layout effects of different platforms are consistent, and the Lua scripting language is combined for dynamic attribute editing, which has the characteristics of lightweight, low performance overhead, and cross-platform. In addition, the embodiment of the present invention has a data simulation test and a simulation preview part, which can improve the accuracy and practicality of the resource package and bring a better user experience to users.
[0038] Furthermore, the resource package parsing method of the embodiment of the present invention corresponds to the resource package generation method of the embodiment of the present invention, and can parse the resource package generated by the visualization resource package generation platform and display the parsing result on the application page.
[0039] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0041] Figure 1 is a schematic diagram of the main steps of a method for generating a resource package according to an embodiment of the present invention;
[0042] Figure 2 is a schematic diagram of the structure of a visualization resource package generation platform according to an embodiment of the present invention;
[0043] Figure 3 is a schematic diagram of using a layout editor to set basic properties according to an embodiment of the present invention;
[0044] Figure 4 is a schematic diagram of the main process of a method for generating a resource package according to an embodiment of the present invention;
[0045] Figure 5 is a schematic diagram of the main steps of a method for parsing a resource package according to an embodiment of the present invention;
[0046] Figure 6 is a schematic diagram of the structure of a software development kit according to an embodiment of the present invention;
[0047] Figure 7is a schematic diagram of the main process of a method for parsing a resource package according to an embodiment of the present invention;
[0048] Figure 8 is a schematic diagram of main modules of a device for generating a resource package according to an embodiment of the present invention;
[0049] Fig. 9 is a schematic diagram of main modules of a resource package parsing device according to an embodiment of the present invention;
[0050] Fig.10 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0051] Fig.11 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0053] In the existing technology, most of the methods for developing applications using a cross-platform mobile development framework use Web technology for mobile terminal development, and display pages by mapping the platform's native controls. For example, for the Android platform, when you want to display a text, you can use the TextView control provided by Android (i.e., a component used to display a string, which is an area for displaying a piece of text on a mobile terminal). Controls refer to the encapsulation of data and methods. Controls can have their own properties and methods, where properties are simple accessors to control data, and methods are some simple and visible functions of controls, the control creation process, and then the use of controls.
[0054] However, when a page needs to be built quickly, such as when a user opens the homepage of an application, the existing technology has the disadvantages of requiring programming and taking a long time. In addition, the existing technology is a heavyweight solution, which requires a certain learning cost. The development language used is Javascript, while mobile native development generally uses the development language Java or Objective-c, so it cannot be reused by the original developer. In addition, the heavyweight solution has a wide range of application scenarios, and the corresponding API (Application Program Interface, which is a calling interface left by the operating system to the application. The application calls the operating system's API to make the operating system execute the application's commands) is also large, consuming more resources, and having a large impact on the performance of the application.
[0055] In order to solve the above problems, an embodiment of the present invention provides a method for generating a resource package, which can quickly generate a resource package, reduce coding costs, be simple to operate, and improve user experience. An embodiment of the present invention also provides a method for parsing a resource package, which corresponds to the method for generating a resource package in the embodiment of the present invention and can parse the generated resource package. For ease of understanding, the relationship between a resource package, a software development kit, and an application is provided. When developing an application, the application integrates a software development kit (Software Development Kit, referred to as SDK, i.e., a collection of development tools used by some software engineers to establish application software for specific software packages, software frameworks, hardware platforms, operating systems, etc.), so that the application is equivalent to the host application of the software development kit, that is, an application with functions provided by the SDK. The host application can call the API provided by the integrated SDK, and the SDK is responsible for parsing the resource package generated by the visualization resource generation platform and displaying the parsing results to the page of the host application.
[0056] To sum up, a resource package is generated using a visualization resource package generation platform. When an application needs to display a page, the integrated SDK can be called to parse the resource package generated by the visualization generation platform to complete the page display. Therefore, an embodiment of the present invention provides a method for generating and parsing a resource package. Figure 1 FIG. 1 is a schematic diagram of the main steps of a method for generating a resource package according to an embodiment of the present invention. Figure 1 As shown, the main steps of the method for generating a resource package in the embodiment of the present invention may include:
[0057] Step S101, receiving a resource package generation request, and determining a target control corresponding to the resource package to be generated according to the generation request;
[0058] Step S102, obtaining preset attribute information from the generation request, and setting the attributes of the target control according to the preset attribute information;
[0059] Step S103, obtaining operation data corresponding to the setting, and generating a resource package to be generated according to the operation data.
[0060] The resource package generation method of the embodiment of the present invention is applied to the generation end, which is equivalent to the server end. A visual resource package generation platform is set on the generation end, so that operations such as creating, dragging, and editing can be directly performed on the visual resource package generation platform to generate a resource package, that is, the resource package is generated using the visual resource package generation platform set on the generation end. The specific implementation is: first, a resource package generation request is received, and according to the specific resource package generation request, the target control corresponding to the resource package to be generated, such as text, picture, or container, etc., can be obtained, and the resource package generation request can also include preset attribute information, wherein the preset attribute information is the attribute information of the target control corresponding to the resource package, that is, the attribute of the target control needs to be set according to the preset attribute information. Therefore, the preset attribute information can be obtained from the generation request, and then the attribute of the target control is set according to the preset attribute information on the visualization platform; finally, the specific operation data is obtained, and the operation data is packaged to obtain the resource package. It can be seen that in the resource package generation method of the embodiment of the present invention, code writing can be omitted, and the resource package can be directly generated through the visualization platform operation, which reduces the coding development cost while reducing the learning cost, improves practicality, and brings a good experience to users.
[0061] Figure 2 It is a structural diagram of a visualization resource package generation platform according to an embodiment of the present invention. Figure 2 It can be seen that the visual resource package generation platform may include: layout editor 201, expression editor 202, simulation previewer 203 and resource processor 204. In the optional embodiment of the resource package generation method below, the role of each component will be described in detail, and no detailed explanation is given here.
[0062] From the above steps S101 to S103, it can be seen that setting the properties of the target control is an important part of the technical solution for generating a resource package in the embodiment of the present invention. The specific explanation can be:
[0063] Step S1021 , according to the preset basic property information, the layout editor 201 of the visual resource package generation platform is used to preset the target control, and the basic properties of the target control are set based on the Yoga layout technology.
[0064] Considering that the resource package generation method of the embodiment of the present invention needs to cover different platforms, such as Android platform and IOS platform, that is to say, the generated resource package can be applicable to different operating systems, the cross-platform layout library Yoga is adopted in the embodiment of the present invention to ensure the consistency of layout effects on different platforms. Yoga is an open source cross-platform layout library that takes into account both high performance and ease of use. Yoga follows the Flexbox specification, while abstracting the layout elements into nodes, exposing a set of standard interfaces for different platforms, so that different platforms only need to implement these interfaces. Flexbox refers to a flexible layout that aims to provide a more efficient way to arrange, align and distribute the contents between containers, even if their sizes are unknown or dynamically changing. The idea of a flexible layout is to give the container the ability to change the width and height of the item to fill the available space (mainly to accommodate all types of display devices and screen sizes).
[0065] Figure 3 It is a schematic diagram of using a layout editor to set basic properties according to an embodiment of the present invention. Figure 3 In the , the components on the left are controls that can be preset, including buttons, pictures, texts, containers, etc. First, you need to preset controls, and then you can create controls, drag controls, and other operations. Figure 3 The right layout part is the basic property setting part, which can be used to set basic properties according to the property requirements of the target control. It can be seen that the basic properties can include: width and height layout, arrangement direction layout, position mode layout, position layout, Flex direction layout, Flex scaling layout, Flex line break layout, main axis alignment layout, and secondary axis alignment direction layout, etc. In general, the layout editor 201 of the visual resource package generation platform can be used to preset space and set basic properties of controls based on Yoga layout technology.
[0066] Step S1022, according to the preset dynamic property information, using the expression editor 202 of the visual resource package generation platform and combining with the Lua scripting language to set the dynamic properties of the target control.
[0067] In addition to setting basic properties, the embodiment of the present invention also performs dynamic property setting through the expression editor 202, and the expression editor 202 can also adopt a visual editing method. Specifically, when setting expression class properties, the expression editor 202 is called for visual programming, the exported code block is limited to an expression, and the expression evaluation is performed using the Lua scripting language. Since expression editing belongs to additional logic, it can be used as a dynamic property of a control. In summary, the expression editor 202 is used to edit the dynamic properties of a control, for example, it means 100! =123, and the evaluation is true. Lua is a compact scripting language designed to provide flexible expansion and customization functions for applications by flexibly embedding them in applications. Therefore, the dynamic property editing is combined with the Lua scripting language in the embodiment of the present invention, which has the characteristics of lightweight, low performance overhead and cross-platform.
[0068] In order to verify the edited control, the resource package generation method of the embodiment of the present invention can not only cover different platforms, but also be able to perform simulation display. Considering that the front-end page for user operation to generate the resource package is mostly implemented through a browser, it is called the Web end. Of course, it can also be simulated and displayed through other technologies, which is not limited by the embodiment of the present invention. For the convenience of description, in the following introduction, the simulation display on the Web end is used as an example for explanation. At the same time, because Yoga uses an elastic layout, when the simulation display is performed on the Web end, the Flexbox technology of the Web end can be directly used for simulation preview. Therefore, as a reference embodiment of the present invention, after setting the dynamic properties of the target control, the resource package generation method can also include: using the simulation previewer 203 of the visual generation resource package generation platform to perform data simulation test on the target control. The data simulation test here can refer to using the simulation previewer 203 to perform data simulation test after using the expression editor 202 to set the dynamic properties, that is, substituting the simulated data into the edited expression to test whether there is an error, and if there is an error, correct it. It can be seen that the data simulation test can improve the accuracy of the resource package, thereby ensuring the accuracy of the parsed resource package and improving the user experience.
[0069] In the method for generating a resource package of an embodiment of the present invention, in addition to performing a data simulation test, the layout can also be adjusted. Therefore, after setting the basic property editing of the target control and / or setting the dynamic property of the target control, the method for generating a resource package can also include: using the simulation previewer 203 of the visual generation resource package generation platform to simulate the preview of the target control; according to the simulation preview result, using the layout editor 201 to adjust the layout of the target control. It is explained that after using the layout editor 201 to set the basic properties, the simulation previewer 203 can also be used to perform a simulation preview, and according to the preview result, the layout can also be adjusted. Or, after using the expression editor 202 to set the dynamic properties, the simulation previewer 203 can also be used to perform a simulation preview, and according to the preview result, the layout can also be adjusted. It can also be that after using the layout editor 201 to set the basic properties and using the expression editor 202 to set the dynamic properties, the simulation previewer 203 is used to perform a simulation preview, and according to the preview result, the layout can also be adjusted. Assuming that the control is text, according to the preview result, it is found that the set text font is too small, then the layout editor 202 can be used to reset the size of the text. In summary, the simulation previewer 203 can be used to perform data simulation testing and simulation preview, which can improve the accuracy and practicality of the resource package and bring a better user experience to the user.
[0070] In the method for generating a resource package in an embodiment of the present invention, after setting the properties of a control using a visual resource package generation platform, the generated operation data needs to be converted into a file and stored, so that the converted file can be directly obtained when it is used. Therefore, in a reference embodiment, generating a resource package to be generated based on the operation data may include: using a resource processor 204 of a visual resource package generation platform to convert the operation data into a file in a preset format; determining that the file in the preset format is a resource package to be generated, and storing the resource package to be generated in a resource package library. Among them, the resource processor 204 is mainly used to convert the operation data into a file in a preset format and store it in a resource package library. The file in the preset format can be an XML file, which is the abbreviation of Extensible Markup Language, i.e., extensible markup language, which is a markup language used to mark electronic files to make them structured.
[0071] In general, the visual resource package generation platform of the embodiment of the present invention can operate preset controls, set basic properties and dynamic properties of controls through a visual interface, and integrate the operation data into a resource package, which is uploaded to the resource package library for use. Figure 4 FIG. 1 is a schematic diagram of the main process of the method for generating a resource package according to an embodiment of the present invention. Figure 4As shown, the main process of the method for generating a resource package in an embodiment of the present invention may include:
[0072] Step S401, receiving a resource package generation request, determining a target control corresponding to the resource package to be generated according to the generation request, and obtaining preset basic attribute information and dynamic attribute information;
[0073] Step S402, presetting the target control according to the preset basic attribute information using the layout editor 201 of the visual resource package generation platform, and setting the basic attributes of the target control based on the Yoga layout technology;
[0074] Step S403, according to the preset dynamic attribute information, using the expression editor 202 of the visual resource package generation platform, combined with the Lua scripting language to set the dynamic attributes of the target control;
[0075] Step S404, using the simulation previewer 203 of the visual resource package generation platform to perform data simulation testing on the target control;
[0076] Step S405, using the simulation previewer 203 of the visual resource package generation platform to perform simulation preview on the target control, and according to the simulation preview result, using the layout editor 201 to adjust the layout of the target control;
[0077] Step S406, obtaining the operation data corresponding to the editing operation in step S402 to step S405, and converting the operation data into a file in a preset format using the resource processor 204 of the visual resource package generation platform;
[0078] Step S407: determine that the file in the preset format is a resource package to be generated, and store the resource package to be generated in a resource package library.
[0079] It should be noted that the execution order of the above-mentioned step S402 and step S403 can be adjusted according to the actual situation. Step S403 can be executed first, and then step S402, or step S402 and step S403 can be executed simultaneously. The embodiment of the present invention does not limit this. In addition, the simulation preview of step S405 can be performed after executing step S402, that is, the basic data editing is previewed. Considering that dynamic attribute editing will also affect the overall layout, it is preferred that after executing step S402, step S403 and step S404, a simulation preview is performed, and then the layout is adjusted. In addition, a data simulation test is performed in step S404. If the data simulation test fails, it is necessary to use the expression editor 202 to perform dynamic attribute editing again until the data simulation test passes.
[0080] According to the resource package generation scheme of the embodiment of the present invention, it is possible to generate resource packages directly through visual platform operations without code writing, which can reduce the coding development cost while reducing the learning cost, improve practicality, and bring a good experience to users. The cross-platform layout library Yoga is used in the embodiment of the present invention to ensure the consistency of layout effects on different platforms, and is combined with the Lua scripting language for dynamic attribute editing, which has the characteristics of lightweight, low performance overhead and cross-platform. In addition, the embodiment of the present invention has a data simulation test and a simulation preview part, which can improve the accuracy and practicality of the resource package and bring a better user experience to users.
[0081] Figure 5 FIG. 1 is a schematic diagram of the main steps of the method for parsing a resource package according to an embodiment of the present invention. Figure 5 As shown, the main steps of the resource package parsing method of the embodiment of the present invention may include:
[0082] Step S501, receiving a page display request, obtaining business data corresponding to the display request, and determining a resource package to be parsed corresponding to the display request;
[0083] Step S502, using the target software development toolkit corresponding to the resource package to be parsed, obtaining the resource package to be parsed from the resource package library;
[0084] Step S503: according to the business data, the target software development toolkit is used to parse the resource package to obtain the target view.
[0085] The resource package parsing method of the embodiment of the present invention is applied to the parsing end, which is equivalent to the client. When a user uses an application on the client, he will send a request to open a page, that is, a request to display the page. For example, when a user searches for shoes when using a shopping application, the shopping application needs to display the search result page of shoes. In this scenario, the business data can be the search result data of shoes, and the resource package to be parsed can be the search display resource package corresponding to the shopping application. It is worth noting that the resource package to be parsed is generated according to the resource package generation method described in the above embodiment.
[0086] As mentioned above, when developing an application, the application integrates the SDK, so that the application is equivalent to the host application of the SDK, that is, an application with the functions provided by the SDK. The host application can call the API provided by the integrated SDK. The SDK is responsible for parsing the resource package generated by the visualization resource generation platform and displaying the parsing results to the page of the host application. Therefore, as a reference embodiment of the embodiment of the present invention, before obtaining the resource package to be parsed from the resource package library using the target software development toolkit corresponding to the resource package to be parsed, the resource package parsing method may also include: integrating the target software development toolkit. In this way, after determining the resource package to be parsed, the target SDK corresponding to the resource package to be parsed can be used to obtain the resource package to be parsed. Then, in combination with the business data, the target SDK is used to parse the obtained resource package to be parsed to obtain the target view, which is a component of the page. In the embodiment of the present invention, the view generated by the resource package can be considered as the dynamically changing part of the page to be displayed. For example, when a certain page is opened, there will be an advertisement recommendation part. Due to different time periods, the recommended advertisements are different. It will appear that the advertisements of company A are displayed at time A, and the advertisements of company B are displayed at time B. Moreover, the layout, copy and pictures of the advertisements of company A and company B are different. Then, when displaying the page, the view corresponding to the current page display request can be generated through the resource package.
[0087] In the resource package parsing method of the embodiment of the present invention, the application program calls the API of the target SDK, so that the target SDK can parse the resource package. Figure 6 1 is a schematic diagram of the structure of a software development kit according to an embodiment of the present invention. Figure 6 As shown, the software development kit of the embodiment of the present invention may include: a resource package processing module 601, a model processing module 602 and a data processing module 603. Similarly, in the resource package parsing method in the following embodiment, the functions of each module of the software development kit are specifically described.
[0088] It can be found that determining the resource package to be parsed according to the display request is a prerequisite for parsing. As a reference embodiment of the present invention, determining the resource package to be parsed corresponding to the display request may include: obtaining identification information of the resource package to be parsed according to the display request; judging whether the display request includes version information of the resource package to be parsed; if so, determining the resource package to be parsed according to the identification information and the version information; if not, obtaining the latest version information of the resource package to be parsed using the identification information, and then determining the resource package to be parsed according to the identification information and the latest version information.
[0089] The page display request includes the identification information of the resource package to be parsed. For example, if the resource package to be parsed is a text resource package, the identification information of the text resource package can be directly obtained according to the display request. It is also necessary to determine whether the display request includes the version information of the resource package. If it does, the resource package to be parsed can be directly determined based on the identification information and version information. If the version information of the resource package is not included, the latest version information is obtained by default, so that the resource package to be parsed can be determined based on the identification information and the latest version information.
[0090] In an embodiment of the present invention, after determining the resource package to be parsed, the target SDK can be used to obtain the resource package to be parsed, specifically: when the display request includes version information, the resource package processing module 601 of the target software development kit is used to download the resource package to be parsed from the resource package library according to the identification information and version information; when the display request does not include version information, the resource package processing module 601 is used to download the resource package to be parsed from the resource package library according to the identification information and the latest version information. Since the generating end stores the resource package in the resource package library after generating the resource package, when the resource package needs to be parsed, the resource package to be parsed is obtained from the resource package library. In addition, it can be known that the resource package processing module 601 can be used to download, store, and cache resource packages from the resource package library. It should be noted that when the resource package is updated at the generating end, the resource package synchronization processing can be performed when the application is started.
[0091] In addition, the resource package to be parsed is generated by using a visual resource package generation platform. When parsing, it is necessary to use technical means corresponding to the generation process to parse. Therefore, as a reference embodiment, according to business data, the resource package to be parsed is parsed using a target software development kit to obtain a target view, which may include:
[0092] Step S5031, using the model processing module 602 of the target software development kit, according to the layout described by the resource package to be parsed, a target data model corresponding to the resource package to be parsed is generated;
[0093] Step S5032, rendering the target data model based on the target data model to obtain a visualization view corresponding to the target data model;
[0094] Step S5033, using the data processing module 603 of the target software development kit, according to the business data and the pre-created Lua instance corresponding to the resource package to be parsed, the data of the visualization view is set to obtain the target view.
[0095] Page layouts are generally hierarchical, such as Android pages are defined using a hierarchy of View and ViewGroup objects. In order to convert and map the layout nodes described by the resource package (such as a resource package with a preset format of an XML file) to the system control, the model processing module 602 needs to parse the resource package and generate a data model, which will be used for subsequent SDK rendering. In other words, the object model is generated using a tree structure according to the layout described by the resource package, in which the root node is fixed as a Yoga container, and the child node can be a mapped native control or still a Yoga container. When the child node is a native control, in addition to the Yoga layout properties, the properties that can be set can also set the native control properties.
[0096] In most cases, the business data of the page to be displayed is obtained through the network. After the visualization view is created, that is, after an empty visualization view is created, multiple data settings may be required. Therefore, when the visualization view is created, the data parser is initialized, and a Lua instance is created and saved as needed to evaluate the parsed Lua expression attributes. When the application calls the data binding API, if it is the first time to set it or the input is different from the previously saved input parameters, all cached expressions are re-evaluated and the input parameters are updated and saved, and then the attributes are reset and updated to the page.
[0097] The purpose of parsing the resource package in the embodiment of the present invention is to display the page. Therefore, the present invention can refer to the embodiment. After parsing the resource package to be parsed using the target software development toolkit according to the business data and obtaining the target view, the parsing method can also include: generating a page to be displayed according to the target view and the business data, and displaying the page to be displayed.
[0098] Figure 7 FIG. 1 is a schematic diagram of the main process of the method for parsing a resource package according to an embodiment of the present invention. Figure 7 The main process of the resource package parsing method of the embodiment of the present invention may include:
[0099] Step S701, receiving a page display request, obtaining business data corresponding to the display request, and obtaining identification information of a resource package to be parsed according to the display request;
[0100] Step S702, determining whether the display request includes the version information of the resource package to be parsed, if so, executing step S703, otherwise, executing step S704;
[0101] Step S703, using the resource package processing module 601 of the target software development kit, downloading the resource package to be parsed from the resource package library according to the identification information and version information;
[0102] Step S704, using the identification information, obtaining the latest version information of the resource package to be parsed;
[0103] Step S705, using the resource package processing module 601 of the target software development kit, downloading the resource package to be parsed from the resource package library according to the identification information and the latest version information;
[0104] Step S706, using the model processing module 602 of the target software development kit, according to the layout described in the resource package to be parsed, a target data model corresponding to the resource package to be parsed is generated;
[0105] Step S707, rendering the target data model based on the target data model to obtain a visualization view corresponding to the target data model;
[0106] Step S708, using the data processing module 603 of the target software development kit, according to the business data and the pre-created Lua instance corresponding to the resource package to be parsed, the data of the visualization view is set to obtain the target view;
[0107] Step S709: Generate a page to be displayed according to the target view and the business data, and display the page to be displayed.
[0108] In step S703 and before step S704, the target software development kit needs to be integrated. Only when the application has been pre-integrated with the target software development kit can the application call the interface of the target software development kit, so that the target software development kit can parse the resource package.
[0109] The resource package parsing solution according to the embodiment of the present invention corresponds to the resource package generation method of the embodiment of the present invention, and can parse the resource package generated by the visualization resource package generation platform and display the parsing result on the application page.
[0110] Figure 8 800 is a schematic diagram of the main modules of the resource package generation device according to an embodiment of the present invention. The resource package generation device 800 of the embodiment of the present invention is arranged at the generation end, such as Figure 8 As shown, the resource package generation device 800 of the embodiment of the present invention may include: a first determination module 801 , a setting module 802 and a generation module 803 .
[0111] Among them, the first determination module 801 can be used to receive a resource package generation request, and determine the target control corresponding to the resource package to be generated according to the generation request; the setting module 802 can be used to obtain preset attribute information from the generation request, and set the attributes of the target control according to the preset attribute information; the generation module 803 can be used to obtain operation data corresponding to the setting, and generate the resource package to be generated according to the operation data.
[0112] In the embodiment of the present invention, the preset attribute information may include: preset basic attribute information and preset dynamic attribute information. And, the setting module 802 may also be used to: preset the target control using the layout editor according to the preset basic attribute information, and set the basic attributes of the target control based on the Yoga layout technology; and set the dynamic attributes of the target control using the expression editor in combination with the Lua scripting language according to the preset dynamic attribute information.
[0113] In the embodiment of the present invention, the setting module 802 can also be used to: use the simulation previewer to perform data simulation testing on the target control.
[0114] In the embodiment of the present invention, the setting module 802 can also be used to: use a simulation previewer to perform a simulation preview on the target control; and use a layout editor to adjust the layout of the target control according to the simulation preview result.
[0115] In the embodiment of the present invention, the generation module 803 may also be used to: use a resource processor to convert the operation data into a file in a preset format; determine that the file in the preset format is a resource package to be generated, and store the resource package to be generated in a resource package library.
[0116] From the above description, it can be seen that the resource package generation device in the embodiment of the present invention can directly generate a resource package without coding, which can reduce the coding development cost while reducing the learning cost, improve practicality, and bring a good experience to users. The cross-platform layout library Yoga is used in the embodiment of the present invention to ensure the consistency of the layout effects of different platforms, and is combined with the Lua scripting language for dynamic attribute editing, which has the characteristics of lightweight, low performance overhead and cross-platform. In addition, the embodiment of the present invention has a data simulation test and a simulation preview part, which can improve the accuracy and practicality of the resource package and bring a better user experience to users.
[0117] Fig. 9 900 is a schematic diagram of the main modules of the resource package parsing device according to an embodiment of the present invention. The resource package parsing device 900 of the embodiment of the present invention is arranged at the parsing end, such as Fig. 9 As shown, the resource package parsing device 900 of the embodiment of the present invention may include: a second determination module 901 , an acquisition module 902 and a parsing module 903 .
[0118] Among them, the second determination module 901 can be used to receive a page display request, obtain the business data corresponding to the display request, and determine the resource package to be parsed corresponding to the display request; the acquisition module 902 can be used to use the target software development toolkit corresponding to the resource package to be parsed to obtain the resource package to be parsed from the resource package library; the parsing module 903 can be used to parse the resource package to be parsed according to the business data using the target software development toolkit to obtain the target view.
[0119] In the embodiment of the present invention, the resource package to be parsed is generated according to the resource package generation method of any of the above embodiments.
[0120] In an embodiment of the present invention, the parsing module 903 can also be used to: utilize the model processing module of the target software development toolkit to generate a target data model corresponding to the resource package to be parsed according to the layout described by the resource package to be parsed; render the target data model based on the target data model to obtain a visualization view corresponding to the target data model; utilize the data processing module of the target software development toolkit to set data for the visualization view according to the business data and the pre-created Lua instance corresponding to the resource package to be parsed to obtain the target view.
[0121] In the embodiment of the present invention, the second determination module 901 can also be used to: obtain identification information of the resource package to be parsed according to the display request; determine whether the display request includes version information of the resource package to be parsed; if so, determine the resource package to be parsed according to the identification information and the version information; if not, use the identification information to obtain the latest version information of the resource package to be parsed, and then determine the resource package to be parsed according to the identification information and the latest version information.
[0122] In an embodiment of the present invention, the acquisition module 902 can also be used for: when the display request includes version information, using the resource package processing module of the target software development toolkit to download the resource package to be parsed from the resource package library according to the identification information and version information; when the display request does not include version information, using the resource package processing module to download the resource package to be parsed from the resource package library according to the identification information and the latest version information.
[0123] In the embodiment of the present invention, the parsing module 903 may also be used to generate a page to be displayed according to the target view and the business data, and display the page to be displayed.
[0124] In the embodiment of the present invention, the parsing end may further include: an integration module (not shown in the figure). The integration module may be used to integrate a target software development toolkit.
[0125] It can be seen from the above description that the resource package parsing device of the embodiment of the present invention corresponds to the resource package generating device of the embodiment of the present invention, and can parse the resource package generated by the visual resource package generating platform and display the parsing result on the application page.
[0126] Fig.10 An exemplary system architecture 1000 is shown to which the resource package generation and parsing method or resource package generation and parsing device according to the embodiment of the present invention can be applied.
[0127] like Fig.10As shown, the system architecture 1000 may include terminal devices 1001, 1002, 1003, a network 1004, and a server 1005. The network 1004 is used to provide a medium for communication links between the terminal devices 1001, 1002, 1003 and the server 1005. The network 1004 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0128] Users can use terminal devices 1001, 1002, 1003 to interact with server 1005 through network 1004 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 1001, 1002, 1003, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0129] The terminal devices 1001 , 1002 , and 1003 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0130] The server 1005 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 1001, 1002, and 1003. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0131] It should be noted that the resource package generation and parsing method provided in the embodiment of the present invention is generally executed by the server 1005 , and accordingly, the resource package generation and parsing device is generally set in the server 1005 .
[0132] It should be understood that Fig.10 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0133] Reference below Fig.11 , which shows a schematic diagram of the structure of a computer system 1100 of a terminal device suitable for implementing an embodiment of the present invention. Fig.11 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0134] like Fig.11As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage part 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the system 1100 are also stored. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0135] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed, so that a computer program read therefrom is installed into the storage section 1108 as needed.
[0136] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1109, and / or installed from the removable medium 1111. When the computer program is executed by the central processing unit (CPU) 1101, the above-mentioned functions defined in the system of the present invention are executed.
[0137] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0138] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0139] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a first determination module, a setting module, and a generation module. The names of these modules do not constitute a limitation on the module itself in some cases. For example, the first determination module may also be described as "a module that receives a resource package generation request and determines the target control corresponding to the resource package to be generated according to the generation request."
[0140] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: receiving a resource package generation request, and determining a target control corresponding to the resource package to be generated according to the generation request; obtaining preset attribute information from the generation request, and setting the attributes of the target control according to the preset attribute information; obtaining operation data corresponding to the setting, and generating the resource package to be generated according to the operation data.
[0141] According to the technical solution for generating resource packages in the embodiment of the present invention, it is possible to generate resource packages directly through visual platform operations without writing code, which can reduce the coding development cost while also reducing the learning cost, improving practicality, and bringing a good experience to users. In the embodiment of the present invention, the cross-platform layout library Yoga is adopted to ensure the consistency of layout effects on different platforms, and the Lua scripting language is combined for dynamic attribute editing, which has the characteristics of lightweight, low performance overhead, and cross-platform. In addition, the embodiment of the present invention has a data simulation test and a simulation preview part, which can improve the accuracy and practicality of the resource package and bring a better user experience to users.
[0142] Furthermore, the technical solution for parsing resource packages according to the embodiment of the present invention corresponds to the method for generating resource packages according to the embodiment of the present invention, and can parse the resource packages generated by the visualization resource package generation platform and display the parsing results on the application page.
[0143] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for generating a resource package, applied to a generating end, characterized in that: include: Receive a resource package generation request, and determine a target control corresponding to the resource package to be generated according to the generation request; Acquire preset attribute information from the generation request, and set the attribute of the target control according to the preset attribute information; wherein the preset attribute information includes: preset basic attribute information and preset dynamic attribute information; the process includes: Presetting the target control using a layout editor according to the preset basic property information, and setting the basic properties of the target control based on Yoga layout technology; According to the preset dynamic attribute information, the dynamic attribute of the target control is set by using an expression editor in combination with the Lua scripting language; wherein, when setting expression class attributes, the expression editor is called for visual programming, the exported code block is limited to an expression, and the Lua scripting language is used to perform expression evaluation; Operation data corresponding to the setting is obtained, and the resource package to be generated is generated according to the operation data.
2. The generation method according to claim 1, characterized in that: After setting the dynamic properties of the target control, the generating method further includes: Using the simulation previewer, a data simulation test is performed on the target control.
3. The generation method according to claim 1, characterized in that: After setting the basic property editing of the target control and / or setting the dynamic property of the target control, the generating method further includes: Using a simulation previewer, performing a simulation preview on the target control; According to the simulation preview result, the layout of the target control is adjusted using the layout editor.
4. The generation method according to claim 1, characterized in that: The generating the to-be-generated resource package according to the operation data comprises: Using a resource processor, converting the operation data into a file in a preset format; The file in the preset format is determined to be the resource package to be generated, and the resource package to be generated is stored in a resource package library.
5. A resource package parsing method, applied to a parsing end, characterized in that: include: receiving a page display request, acquiring business data corresponding to the display request, and determining a resource package to be parsed corresponding to the display request; wherein the resource package to be parsed is generated according to the resource package generation method according to any one of claims 1 to 4; Using the target software development toolkit corresponding to the resource package to be parsed, the resource package to be parsed is obtained from a resource package library; According to the business data, the target software development kit is used to parse the resource package to be parsed to obtain a target view.
6. The analysis method according to claim 5, characterized in that: The step of parsing the resource package to be parsed using the target software development kit according to the business data to obtain a target view includes: Using the model processing module of the target software development kit, according to the layout described by the resource package to be parsed, a target data model corresponding to the resource package to be parsed is generated; Rendering the target data model based on the target data model to obtain a visualization view corresponding to the target data model; By utilizing the data processing module of the target software development kit, data setting is performed on the visualization view according to the business data and the pre-created Lua instance corresponding to the resource package to be parsed, so as to obtain the target view.
7. The analysis method according to claim 5, characterized in that: The determining the to-be-parsed resource package corresponding to the display request includes: According to the display request, obtaining identification information of the resource package to be parsed; Determining whether the display request includes version information of the resource package to be parsed; If yes, determining the resource package to be parsed according to the identification information and the version information; If not, the latest version information of the resource package to be parsed is acquired by using the identification information, and then the resource package to be parsed is determined according to the identification information and the latest version information.
8. The analysis method according to claim 7, characterized in that: The step of obtaining the resource package to be parsed from a resource package library by using a target software development toolkit corresponding to the resource package to be parsed includes: In the case where the display request includes the version information, using the resource package processing module of the target software development kit, downloading the resource package to be parsed from the resource package library according to the identification information and the version information; In the case that the display request does not include the version information, the resource package to be parsed is downloaded from the resource package library by using the resource package processing module according to the identification information and the latest version information.
9. The analysis method according to claim 5, characterized in that: After parsing the resource package to be parsed using the target software development kit according to the business data to obtain the target view, the parsing method further includes: A page to be displayed is generated according to the target view and the business data, and the page to be displayed is displayed.
10. The analysis method according to claim 5, characterized in that: Before obtaining the resource package to be parsed from a resource package library using a target software development toolkit corresponding to the resource package to be parsed, the parsing method further includes: integrating the target software development toolkit.
11. A resource package generation device, arranged at a generation end, characterized in that: include: A first determination module is used to receive a resource package generation request, and determine a target control corresponding to the resource package to be generated according to the generation request; The setting module is used to obtain preset attribute information from the generation request, and set the attribute of the target control according to the preset attribute information; wherein the preset attribute information includes: preset basic attribute information and preset dynamic attribute information; the process includes: Presetting the target control using a layout editor according to the preset basic property information, and setting the basic properties of the target control based on Yoga layout technology; According to the preset dynamic attribute information, using an expression editor and combining the Lua scripting language to set the dynamic attribute of the target control; The generating module is used to obtain the operation data corresponding to the setting, and generate the resource package to be generated according to the operation data.
12. A resource package parsing device, arranged at a parsing end, characterized in that: include: A second determination module is configured to receive a page display request, obtain business data corresponding to the display request, and determine a resource package to be parsed corresponding to the display request; wherein the resource package to be parsed is generated by the resource package generation device according to claim 11; An acquisition module, used to acquire the resource package to be parsed from a resource package library by using a target software development toolkit corresponding to the resource package to be parsed; The parsing module is used to parse the resource package to be parsed according to the business data using the target software development toolkit to obtain a target view.
13. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 10.
14. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
