A cross-platform application construction, operation method, server, terminal and system

By using information from Flutter components and microprogram components based on domain-specific languages, a cross-platform application package is constructed, which solves the complexity of componentization and modularization in mobile application development, and realizes dynamic loading and multi-end of cross-platform applications. Reuse improves development efficiency and simplifies workflow.

CN115113850BActive Publication Date: 2024-09-10BOE TECHNOLOGY GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110290705.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-18
Publication Date
2024-09-10
Estimated Expiration
2041-03-18

AI Technical Summary

Technical Problem

In the existing technology, componentized and modular development of mobile applications has problems in maintenance, reuse, automated construction, and continuous integration, resulting in development redundancy and complexity of multi-platform support, increasing R&D investment and development time.

Method used

Using Flutter components based on domain-specific languages, by obtaining information about cross-platform application engineering templates and microprogram components, we build application packages to achieve dynamic loading capabilities for cross-platform applications, support multi-terminal reuse, and use components in abstract syntax tree format Simplify the parsing and loading process and reduce development complexity.

Benefits of technology

It improves the construction efficiency of cross-platform applications and the interaction convenience of developers, reduces development redundancy and R&D investment, realizes the rapid combination of cross-platform functions and dynamic page loading, and simplifies componentization and modularization work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115113850B
    Figure CN115113850B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method for building, running and implementing a cross-platform application, a terminal, a server, an implementation system, a computer device and a storage medium. In a specific implementation, the method includes: obtaining a selected cross-platform application engineering template and information of a micro-program component corresponding to the selected cross-platform application engineering template, the cross-platform application engineering template includes a Flutter component based on a domain-specific language, and the Flutter component can parse and load the interface of the micro-program component; constructing an application according to the cross-platform application engineering template and the information of the micro-program component, and generating an application package. This implementation enables developers to quickly combine micro-program component information, accurately build cross-platform applications, and improve the efficiency of building cross-platform applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and more specifically, to a construction and operation method, server, terminal and system of a cross-platform application. Background Art

[0002] With the development of mobile applications, different from the previous design concept of developing applications in full according to business needs, mobile application developers have begun to use componentization and modularization technology for application development, especially for the currently commonly used Android and iOS system platforms. The benefits of componentization and modularization development are mainly reflected in the following four aspects: high development and debugging efficiency, strong maintainability, avoidance of blocking, and easier version management.

[0003] At present, since componentization and modularization technologies are still in the early stages, there are still certain problems in the componentization of mobile applications, modular business decomposition, and post-development maintenance, reuse, automated construction, and continuous integration. In addition, the development of mobile applications usually requires actual R&D investment from multiple teams targeting different mobile platforms. The development results in multiple independent mobile applications with similar functions but running on different mobile platforms. This creates development redundancy in application development for the project, resulting in an exponential increase in componentization and modularization work for multiple mobile system platforms, which poses a greater obstacle to application development. Summary of the invention

[0004] The object of the present invention is to provide a method, server, terminal and system for constructing and running a cross-platform application to solve at least one of the problems existing in the prior art.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A first aspect of the present invention provides a method for constructing a cross-platform application, which is used for a server, and the method comprises:

[0007] Obtaining information about a selected cross-platform application engineering template and a micro-program component corresponding to the selected cross-platform application engineering template, wherein the cross-platform application engineering template includes a Flutter component based on a domain-specific language, and the Flutter component is capable of parsing and loading an interface of the micro-program component;

[0008] An application is constructed according to the cross-platform application engineering template and the information of the microprogram component to generate an application package.

[0009] The construction method provided in the first aspect of the present invention generates an application package according to a cross-platform application engineering template including a Flutter component based on a domain-specific language and information of a microprogram component, that is, the cross-platform Flutter capability is integrated into the cross-platform application engineering template, and the page can be dynamically parsed and loaded and generated by parsing the microprogram component, so that the constructed cross-platform application can realize the dynamic page loading capability under the Flutter framework; at the same time, the construction method enables developers to quickly combine microprogram component information, accurately build cross-platform applications, and improve construction efficiency; moreover, developers only need to develop a set of codes, that is, a cross-platform functional foundation that can be reused on multiple mobile platforms, effectively saving actual R&D investment, avoiding development redundancy, simplifying componentization and modularization work, and accelerating the development process of cross-platform applications.

[0010] In a possible implementation manner, the microprogram component is a component in an abstract syntax tree format.

[0011] This implementation method supports the dynamic parsing and page loading functions of the DSL-based Flutter interpretation framework component in the cross-platform application engineering template by setting the micro-program component in the abstract syntax tree format, which can simplify the process of Flutter component parsing and loading micro-program components and improve the parsing and loading speed, and can achieve millisecond-level parsing / loading speed of micro-program components, thereby improving the user experience.

[0012] In a possible implementation, obtaining the selected cross-platform application project template includes: calling a cross-platform application script to obtain the selected cross-platform application project template.

[0013] In a possible implementation, the acquiring the selected cross-platform application engineering template and the information of the micro-program component corresponding to the selected cross-platform application engineering template includes:

[0014] In response to an operation on an interface displaying information of a cross-platform application project template, obtaining a selected cross-platform application project template;

[0015] In response to an operation on an interface displaying information of a micro-program component corresponding to a selected cross-platform application project template, the information of the micro-program component corresponding to the selected cross-platform application project template is acquired.

[0016] This implementation method obtains the information of the cross-platform application engineering template and micro-program component respectively in response to the operation of the interface, that is, it automatically configures the parameters before building the cross-platform application (including the selection of engineering template and the selection of information of micro-program component) through visualization, paging, etc., and enables developers to quickly select engineering templates and combine the information of multiple micro-program components to generate a cross-platform application package through a unified process guidance method, thereby reducing the overall learning cost, thereby improving the interaction convenience and process convenience of developers in the cross-platform application automated construction scenario, and can significantly improve the problems of repeated component development, difficult component query, and low component reuse rate that developers often encounter in the process of cross-platform application componentization, modularization and cross-platform capability design.

[0017] In a possible implementation, obtaining the selected native component;

[0018] The constructing an application according to the cross-platform application engineering template and the information of the micro-program component includes: constructing an application according to the cross-platform application engineering template, the information of the micro-program component and the native component.

[0019] This implementation method builds applications based on cross-platform application engineering templates, micro-program component information, and native components, so that micro-program components under the Flutter framework can run compatibly with the original native components without affecting each other, giving users the same experience. It also allows developers to build cross-platform applications more flexibly, further reducing development redundancy and development workload, and promoting the development of cross-platform applications.

[0020] In a possible implementation, for a cross-platform application running on an Android system, obtaining a selected cross-platform application engineering template, information of a microprogram component corresponding to the selected cross-platform application engineering template, and a selected native component, and constructing an application according to the cross-platform application engineering template, the information of the microprogram component, and the native component includes:

[0021] Get and modify the project template file of the selected cross-platform application project template, and inject native component dependency parameters;

[0022] Inject the name of the application, obtain the first interface file of the application and modify the name of the first interface file;

[0023] Extract and download Flutter component dependencies, and inject microprogram component dependency parameters;

[0024] Build the application and generate an application package.

[0025] A second aspect of the present invention provides a method for running a cross-platform application, which is used in a terminal, and the method comprises:

[0026] Download and install the application package, where the application package is constructed according to the selected cross-platform application engineering template and information of the micro-program component corresponding to the selected cross-platform application engineering template, where the cross-platform application engineering template includes a Flutter component based on a domain-specific language;

[0027] When running the application, in response to the operation of the micro-program control displayed on the application interface, the Flutter component downloads the micro-program component according to the information of the corresponding micro-program component, and parses and loads the interface of the micro-program component.

[0028] The operation method provided by the second aspect of the present invention responds to the operation of the microprogram control, downloads, parses and loads the microprogram component in real time, thereby realizing the page dynamic and real-time loading capabilities under the Flutter framework, reducing the capacity occupied by the microprogram component in the cross-platform application, and then reducing the capacity occupied by the cross-platform application. At the same time, the operation method can also support the real-time update of the microprogram component, only downloading, parsing and loading the latest version of the microprogram component, without re-updating, updating the microprogram component in the server, avoiding the multi-version microprogram component occupying space to affect the parsing and loading speed.

[0029] In a possible implementation, the information of the microprogram component is included in an entry configuration file, and the method further includes:

[0030] When running the application, the Flutter component parses the entry configuration file and loads the first interface of the application.

[0031] A third aspect of the present invention provides a method for implementing a cross-platform application, comprising:

[0032] The server obtains a selected cross-platform application engineering template and information of a micro-program component corresponding to the selected cross-platform application engineering template, wherein the cross-platform application engineering template includes a Flutter component based on a domain-specific language;

[0033] The server constructs an application according to the cross-platform application engineering template and the information of the micro-program component to generate an application package;

[0034] When the terminal that downloads and installs the application package runs the application, in response to the operation of the micro-program control displayed on the application interface, the Flutter component downloads the micro-program component according to the information of the corresponding micro-program component, and parses and loads the interface of the micro-program component.

[0035] A fourth aspect of the present invention provides a server, comprising:

[0036] An acquisition module, used to acquire information of a selected cross-platform application engineering template and a micro-program component corresponding to the selected cross-platform application engineering template, wherein the cross-platform application engineering template includes a Flutter component based on a domain-specific language, and the Flutter component can parse and load an interface of the micro-program component;

[0037] The construction module is used to construct an application according to the cross-platform application engineering template and the information of the micro-program component to generate an application package.

[0038] In a possible implementation manner, the microprogram component is a component in an abstract syntax tree format.

[0039] A fifth aspect of the present invention provides a terminal, including:

[0040] An installation module, used to download and install an application package, wherein the application package is constructed according to the selected cross-platform application engineering template and information of the micro-program component corresponding to the selected cross-platform application engineering template, wherein the cross-platform application engineering template includes a Flutter component based on a domain-specific language;

[0041] The running module is used to respond to the operation of the micro-program control displayed on the application interface when running the application. The Flutter component downloads the micro-program component according to the information of the corresponding micro-program component, and parses and loads the interface of the micro-program component.

[0042] A sixth aspect of the present invention provides a cross-platform application implementation system, comprising a server as provided in the fourth aspect of the present invention and at least one terminal as provided in the fifth aspect of the present invention.

[0043] The seventh aspect of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program: implements the construction method provided in the first aspect of the present invention, or implements the operation method provided in the second aspect of the present invention.

[0044] The eighth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the construction method provided in the first aspect of the present invention, or implements the operation method provided in the second aspect of the present invention.

[0045] The beneficial effects of the present invention are as follows:

[0046] In view of the technical problems existing in the prior art, the present invention provides a construction, operation and implementation method, terminal, server, implementation system, computer equipment and storage medium of a cross-platform application. The construction method generates an application package according to the information of a cross-platform application engineering template and a micro-program component including a Flutter component based on a domain-specific language, that is, the cross-platform Flutter capability is integrated into the cross-platform application engineering template, and the dynamic parsing and loading generation of the page can be performed by parsing the micro-program component, so that the constructed cross-platform application can realize the dynamic loading capability of the page under the Flutter framework. At the same time, the construction method enables developers to quickly combine micro-program component information, accurately build cross-platform applications, and improve construction efficiency. Moreover, developers only need to develop a set of codes to reuse the cross-platform functional foundation on multiple mobile platforms, effectively saving actual R&D investment, avoiding development redundancy, simplifying componentization and modularization, and accelerating the application development process. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The specific implementation modes of the present invention are further described in detail below in conjunction with the accompanying drawings.

[0048] Figure 1 A diagram showing an exemplary system architecture in which one embodiment of the present invention may be applied.

[0049] Figure 2 A flow chart showing a method for implementing a cross-platform application according to an embodiment of the present invention.

[0050] Figure 3 A software structure block diagram of a server according to an embodiment of the present invention is shown.

[0051] Figure 4 A diagram showing the internal structure of a cross-platform application engineering template according to an embodiment of the present invention.

[0052] Figure 5 A prototype diagram showing a microprogram center in a cross-platform application open platform according to an embodiment of the present invention.

[0053] Figure 6 A prototype diagram of a micro-program component details query page in a cross-platform application open platform according to an embodiment of the present invention is shown.

[0054] Figure 7 A prototype diagram showing a page for creating a cross-platform application in an application management module according to an embodiment of the present invention.

[0055] Figure 8 A prototype diagram of a cross-platform application project template selection page in an application management module according to an embodiment of the present invention is shown.

[0056] Fig. 9A prototype diagram showing a micro-program component selection page in an application management module according to an embodiment of the present invention.

[0057] Fig.10 A prototype diagram showing a page for editing and selecting native components in an application management module according to an embodiment of the present invention.

[0058] Fig.11 A prototype diagram showing an application information editing page in an application management module according to an embodiment of the present invention.

[0059] Fig.12 A prototype diagram of an application building completion page in an application management module according to an embodiment of the present invention is shown.

[0060] Fig.13 A business principle diagram of a construction process of a cross-platform application according to an embodiment of the present invention is shown.

[0061] Fig.14 A business principle diagram of an operation process according to an embodiment of the present invention is shown.

[0062] Fig.15 A structural diagram of a server according to an embodiment of the present invention is shown.

[0063] Fig.16 A diagram showing the structure of a terminal according to an embodiment of the present invention.

[0064] Fig.17 A schematic diagram showing the structure of a computer system for implementing the apparatus provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0065] In order to explain the present invention more clearly, the present invention is further described below in conjunction with embodiments and drawings. Similar components in the drawings are represented by the same reference numerals. It should be understood by those skilled in the art that the content specifically described below is illustrative rather than restrictive, and the protection scope of the present invention should not be limited thereto.

[0066] It is understandable that the embodiments of the present invention and the features in the embodiments may be combined with each other without causing any conflict. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0067] It should be noted that componentization and modularization originated from application development and are now gradually being applied to UI design (User Interface Design). Componentization refers to extracting repeated codes and merging them into components. The most important advantage of componentization is reuse. It is located at the bottom of the framework. Other functions depend on components and can be called at any time by different functions. Moreover, components are highly independent.

[0068] The definition of modularization is to isolate (pack) the codes belonging to the same function / business into independent modules, which can run independently. Modules of different degrees can be divided according to pages, functions or other different granularities. The modules are located in the business framework layer, and the modules are called through interfaces. The purpose is to reduce the coupling between modules. The coupling between the main application and the module gradually develops into the coupling between the main application and the interface, and the coupling between the interface and the module. It is understandable that the module is like a power bank with multiple USB sockets. It can be connected to different mobile phones (main applications) through different USB plugs (interfaces), and the USB plugs (interfaces) can be plugged in and out at will. It can be seen that the module has strong reusability and each module can be managed independently.

[0069] The benefits of using componentization and modularization technology for application development mainly include the following four aspects: high development and debugging efficiency, strong maintainability, avoiding blocking and easier version management. Specifically, as the functions of applications increase, the code structure becomes more and more complex. If you want to modify a small function, you may need to review the code of the entire application and modify all the identical codes in it in a unified manner, which results in a large waste of time and manpower costs and low efficiency. By using componentization technology to call the same component for each identical functional structure, when modifying a small function, you only need to modify the component corresponding to the function to achieve global modification, which can effectively improve development and debugging efficiency, and also facilitate later code search and maintenance. In addition, by using modularization technology to isolate the code into independent modules, each module can run independently, and even if a module has a bug, it will not affect the normal call of other modules. In addition, using componentization and modularization in applications developed by multiple people can also avoid code coverage or code conflicts, making it easier to manage versions.

[0070] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the cross-platform application construction method, cross-platform application running method, cross-platform application implementation method, device for constructing a cross-platform application, device for running a cross-platform application, or device for implementing a cross-platform application can be applied.

[0071] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0072] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. For example, the server 105 can be accessed through an application client or web page access provided on the terminal devices 101, 102, 103. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as a cross-platform application creation application, a cross-platform application running application, a cross-platform application implementation application, a web browser application, a shopping application, a search application, an instant messaging tool, an email client, a social platform software, etc.

[0073] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens that support building, running or implementing cross-platform applications, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. They can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.

[0074] Server 105 can be a server that provides various services, for example, it can include a database for storing cross-platform application engineering templates, micro-program components and information (including entry configuration files), and native components. In addition, server 105 can also be a background server that provides support for cross-platform application construction applications on terminal devices 101, 102, and 103, or cross-platform application operation applications. The background server can retrieve the corresponding cross-platform engineering template and micro-program component information from the database to build a cross-platform application according to the cross-platform application engineering template selected by the user and the information of the micro-program component corresponding to the cross-platform application engineering template selected by the user, and generate an application package. The background server can also download the micro-program component and parse and load the interface of the micro-program component in response to the user's operation of the micro-program space displayed on the cross-platform application interface.

[0075] It should be noted that the method for building a cross-platform application provided in the embodiment of the present invention is generally executed by the server 106 , and accordingly, the device for building a cross-platform application is generally set in the server 106 .

[0076] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules, or it can be implemented as a single software or software module. No specific limitation is made here.

[0077] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any suitable number of terminal devices, networks and servers.

[0078] Continue to refer Figure 2 , Figure 2 A flowchart of a method for implementing a cross-platform application according to an embodiment of the present invention is shown. The method for implementing a cross-platform application includes the following steps:

[0079] S201. The server obtains information about a selected cross-platform application engineering template and a microprogram component corresponding to the selected cross-platform application engineering template, where the cross-platform application engineering template includes a Flutter component based on a domain-specific language.

[0080] In this embodiment, the cross-platform application may be, for example, a mobile application compatible with at least two platforms, that is, a mobile application that can run on two platforms at the same time, such as IOS and Android systems. In addition, a domain-specific language (DSL) refers to a computer language that focuses on a certain application field, and can also be referred to as a domain-specific language. The Flutter component, as a mobile UI framework, can quickly build high-quality native user interfaces on multi-terminal mobile platforms (such as IOS and Android), and the Flutter group can also work with existing code. The micro-program component in this embodiment is a cross-platform component based on Flutter technology, which can realize setting functions such as login and query. In a specific example, the Flutter component based on a domain-specific language can be a Flutter interpretation framework component based on DSL, which can parse and load the interface of the micro-program component.

[0081] In this embodiment, the execution subject (e.g., server 105) of the construction method for executing the cross-platform application can obtain construction parameters (including parameters such as which cross-platform application engineering template is selected and information of the micro-program component corresponding to the selected cross-platform application engineering template) input by the developer from the terminal (e.g., terminal devices 101, 102, 103) from the local or remote network. For example, the cross-platform application engineering template can be applied to the financial field, the park field, the social field, or the shopping field, etc. Correspondingly, the micro-program component corresponding to the cross-platform application engineering template in the financial field can be a micro-program component that realizes functions such as query, news browsing, and login.

[0082] In the prior art, most Android system application development languages ​​are Java, and the packaged application packages are all in apk format, while the application development language of the IOS system is generally Objective-C, and the packaged application packages are all in ipa format. It can be seen that the Android system and the IOS system in the prior art use different general languages ​​for application development, and the application construction process is also different, which makes the format of the final generated application package also different, and thus makes the application unable to be used across platforms.

[0083] This embodiment uses a Flutter component based on a domain-specific language (DSL) that is different from ordinary programming languages ​​(such as Java, a commonly used programming language for Android, or Objective-C, a commonly used programming language for IOS systems), which can be recognized and parsed in both the Android system and the IOS system, thereby realizing the development of cross-platform applications.

[0084] In a specific example, a software structure diagram for building a cross-platform application in a server of an embodiment of the present invention is as follows: Figure 3 As shown in FIG. 1 , the layered architecture divides the software structure into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software structure is divided into five layers, such as Figure 3 As shown, from top to bottom, there are five layers: cross-platform application open platform, component and cross-platform application management background, component source code hosting platform, component package hosting platform, and cross-platform application automatic construction system.

[0085] Among them, the cross-platform application open platform serves as an entry point for interaction with developers, is used to connect with developers, and displays business entry points such as the resource pool of micro-program components and detailed information of micro-program components to developers, and provides an automated construction operation platform for cross-platform applications. For example, an interface including micro-program components and their detailed information can be displayed on the developer's terminal device. Among them, the cross-platform application open platform includes user management, template and component management, construction application management, and rights management. The configuration management of micro-program components and the overall business process of cross-platform application construction are completed by using the cross-platform application open platform as an entry point for automated construction of cross-platform applications and detailed customization of business workflows.

[0086] In addition, the cross-platform application development platform is connected to the components and the cross-platform application management background through network interface calls to realize the calling of the micro-program component information (such as entry configuration files) stored in the components and the cross-platform application management background and display, or the cross-platform application open platform transmits the parameters received from the user input (for example, including the selection of the cross-platform project template, the selection of the micro-program component information, and the input application information operation process) to the components and the cross-platform application management background for parameter screening.

[0087] The component and cross-platform application management backend mainly manages and stores information, configuration information and details of cross-platform applications, micro-program components, native components and cross-platform application engineering templates. It manages the stored micro-program components, cross-platform engineering template information, micro-program component entrances and details and native component resources and details through the component and cross-platform application management backend, and provides business data (micro-program components, cross-platform application engineering templates and cross-platform application information) for developers to query and use. Among them, the component and cross-platform application management backend mainly includes the component management backend, application management backend, business service backend and data backend.

[0088] The component source code hosting platform is used to manage and store the source code of microprogram components and cross-platform application engineering templates. Figure 4 The internal structure diagram of a cross-platform application engineering template according to an embodiment of the present invention is shown as follows: Figure 4 As shown, the cross-platform application engineering template is loaded with information of a DSL-based Flutter interpretation framework component and a micro-program component connected to the DSL-based Flutter interpretation framework component (including a micro-program entry configuration file). In one example, the cross-platform application engineering template is also loaded with native components and micro-program components that can be connected to the DSL-based Flutter interpretation framework component.

[0089] In a specific example, the component source code hosting platform can be, for example, an independent code management platform such as Git or SVN, that is, the component source code hosting platform can be used as an independent closed-loop system. In another specific example, operations such as downloading the source code of the microprogram component and the cross-platform application engineering template can also be performed through the external interface provided by the component source code hosting platform in the form of a remote network connection. Among them, the component source code hosting platform includes source code management, user management and business interfaces, and the user management part can be a self-contained system.

[0090] The component package hosting platform is used to manage and store native component dependency packages. In a specific example, the component package hosting platform can be, for example, an independent third-party library such as a JAR or AAR, that is, the component package hosting platform can be used as an independent closed-loop system. In another specific example, operations such as downloading native component dependency packages can be performed through an external interface provided by the component package hosting platform in the form of a remote network connection. Among them, the component package hosting platform includes component package management, user management and business interfaces, among which the user management part can be a self-contained system.

[0091] The cross-platform application automation construction system is used for cross-platform application automation construction and management workflow and other purposes. The cross-platform application automation construction system can be connected with components and cross-platform application management background through software interfaces, thereby calling the relevant processes and business lines of the automated construction, realizing the injection of micro-program component dependency parameters and building the relevant processes of generating cross-platform applications. In another example, the external interface provided by the cross-platform application automation construction system can be connected to the components and the cross-platform application management background in a remote network connection manner. The components and the cross-platform application management background call their interfaces to transmit the construction parameters input by the user to the cross-platform application automation construction system, realizing the complete cross-platform application automation construction process. The cross-platform application automation construction system includes jenkins automated construction, cross-platform application scripts, iOS business scripts, Android business scripts and other parts. In a specific example, the cross-platform application automation construction system can be used as an independent closed-loop system.

[0092] In a specific example, the component source code hosting platform and the component package hosting platform can be combined into a database platform for managing and storing the source code, engineering templates, and native component dependency packages of the microprogram components. It is understandable that the combined platform can also be used as an independent closed-loop system to download the source code, engineering templates, and native component dependency packages of the microprogram components through the external interface provided by the remote network connection.

[0093] In another specific example, the component and cross-platform application management background, the component source code hosting platform and the component package hosting platform can be merged into a database platform for managing and storing information and details of micro-program components, native components, cross-platform application engineering templates, source code of micro-program components, engineering templates and native component dependency packages.

[0094] The software structure of this embodiment connects each automation construction and component management business process node in series to form a complete cross-platform application automation construction business system.

[0095] In a specific example, before a developer selects a cross-platform application engineering template and information about a micro-program component corresponding to the cross-platform application engineering template, for example, a cross-platform application open platform may display a micro-program component on the developer's terminal device. Figure 5 The microprogram center in the web interface shown in the figure performs microprogram component query to obtain detailed information of microprogram components, so as to facilitate developers to understand and avoid the problems of repeated component development, difficulty in component query, and low component reuse rate.

[0096] In a specific implementation, the microprogram component is a component in an abstract syntax tree format. The abstract syntax tree (AST) is a tree representation of the abstract syntax structure of the source code. Each node on the tree represents a structure in the source code. The abstract syntax tree does not represent every detail of the real syntax. For example, nested brackets are implicit in the tree structure and are not presented in the form of nodes, thereby reducing the workload of parsing and loading microprogram components; the abstract syntax tree format does not rely on the syntax of the source language, that is, the context-free grammar used in the syntax analysis stage, thereby avoiding the introduction of some redundant components into the grammatical analysis, which may adversely affect the subsequent stages and even cause the entire stage to become chaotic. The microprogram component of this implementation is a cross-platform component based on Flutter technology. Different from other native components, the microprogram component is a component in abstract syntax tree format, which occupies a smaller capacity. Based on mobile application componentization technology, the cross-platform Flutter capabilities and AST parsing capabilities are integrated into the cross-platform project template, and then the page is dynamically parsed and generated by dynamically issuing the microprogram component entry file, which simplifies the process of Flutter component parsing and loading microprogram components and improves the parsing and loading speed. It can achieve millisecond-level parsing / loading speed of microprogram components and improve user experience.

[0097] In a specific example, the execution entity (such as server 105) that executes the construction method of the cross-platform application receives the cross-platform application engineering template selected by the developer through the construction application management part of the cross-platform application open platform, the information of the micro-program component corresponding to the cross-platform application engineering template, and inputs the application information operation process. The cross-platform application open platform transmits the above-mentioned construction parameters entered by the developer to the component and the cross-platform application management background for application parameter screening to determine whether the construction parameters are correct, thereby ensuring the normal construction of the cross-platform application; if the construction parameters are screened out to be incorrect, the cross-platform application open platform can display the error location to the developer, such as displaying "input error", "information error" and other information, and prompting the developer to make a new selection.

[0098] In a specific implementation, obtaining the selected cross-platform application project template includes: calling a cross-platform application script to obtain the selected cross-platform application project template.

[0099] In this embodiment, after the execution subject (such as server 105) of the construction method for executing the cross-platform application receives the construction parameters input by the developer and screens the application parameters through the component and cross-platform application management background, the component and cross-platform application management background call the cross-platform application script by calling the automated construction interface in the cross-platform application automated construction system, and the cross-platform application script queries the cross-platform application engineering template and micro-program components by connecting to the component source code hosting platform, and downloads the cross-platform application engineering template and micro-program component information selected by the developer (such as the entry configuration file including the micro-program component). In a specific example, the component and cross-platform application management background can also call the automated construction interface in the cross-platform application automated construction system, call the cross-platform application script, and the cross-platform application script queries the native component through the component package hosting platform, and downloads the native component selected by the developer.

[0100] In a specific implementation, obtaining the selected cross-platform application engineering template and the information of the micro-program component corresponding to the selected cross-platform application engineering template includes:

[0101] In response to an operation on an interface displaying information of a cross-platform application project template, obtaining a selected cross-platform application project template;

[0102] In response to an operation on an interface displaying information of a micro-program component corresponding to a selected cross-platform application project template, the information of the micro-program component corresponding to the selected cross-platform application project template is acquired.

[0103] Specifically, the cross-platform application open platform in the execution entity (e.g., server 105) that executes the construction solution of the cross-platform application can, for example, display a web page including information of the cross-platform application engineering template and information of the micro-program components corresponding to the cross-platform engineering template on the terminal device of the developer, such as Figure 5-12 shown.

[0104] The page displayed by the cross-platform application open platform includes the micro program center, development platform, management platform and personal center. The prototype of the micro program center is as follows: Figure 5As shown, the microprogram center includes a display list of all microprogram components stored in the server, and each microprogram component can be arranged in a card-style layout or other well-known layout methods, wherein the content displayed by each microprogram component includes but is not limited to: the name of the microprogram component, the type of the microprogram component, the category of the microprogram component, the version of the microprogram component, the developer of the microprogram component, the number of references of the microprogram component, whether the microprogram component supports horizontal and vertical screen use, the default resolution supported by the microprogram component, and a brief description of the microprogram component. In a specific example, two virtual buttons "View Details" and "Collect" are set below each microprogram component, so that developers can collect the corresponding microprogram component, query details, or filter microprogram components, search for microprogram components, and other subsequent operations on the current page according to their actual needs.

[0105] When the developer clicks the virtual button "View Details" of any micro-program component in the micro-program component list display page of the micro-program center, it will jump to the micro-program component detail query page, such as Figure 6 This page is used to display the details of the selected micro-program component, including but not limited to: micro-program component name, release time, developer collection, micro-program component type, micro-program component category, micro-program component number, micro-program component responsible person, micro-program component reference count, whether the micro-program component supports horizontal and vertical screen use, micro-program component screenshots, micro-program component supported default resolution, micro-program component brief description, micro-program component version number, micro-program component internal dependencies and micro-program component collaborator list.

[0106] In addition, the application management module of the development platform in the page of the cross-platform application development platform is mainly used to display a list of all cross-platform applications published and collaboratively managed by developers. It can also be used to implement the function of creating relevant process entries for cross-platform applications. The content displayed on the application management module page includes but is not limited to: the name of the cross-platform application, the release time of the cross-platform application, the version of the cross-platform application, the category of the cross-platform application, the cross-platform application support platform, the status of the cross-platform application, and a list of operation functions of the cross-platform application. Among them, the application status of the cross-platform application may include but is not limited to: already on the shelves, unfinished or to be updated.

[0107] In a specific example, a developer can click a virtual button of "Create Application" in the application management module page to create a cross-platform application. The page for creating a cross-platform application is as follows: Figure 7As shown, the page for creating a cross-platform application requires the developer to enter the basic information of the cross-platform application, including but not limited to: the name of the cross-platform application project, the type of the cross-platform application, the platforms supported by the cross-platform application, the category selection of the cross-platform application ("cross-platform application"), resolution, display type, etc. After the developer has filled in the above basic information, the developer can click the virtual button "Next" on the creation page to store the basic information entered by the developer and enter the second step of creating a cross-platform application, which is to select a cross-platform application project template.

[0108] Figure 8 The cross-platform application engineering template selection page in the application management module is shown. The main function of this page is to select the engineering template of the cross-platform application in the corresponding field. This page can also provide developers with functions such as page viewing, element query, and retrieval of cross-platform application engineering templates by name. The cross-platform application engineering template is mainly a cross-platform interpretation framework component that carries the specific implementation style of the page UI, the support style of the UI, and the page content style, such as a cross-platform application engineering template including a Flutter interpretation framework component based on DSL. In a specific example, the developer's operation on the interface displaying the information of the cross-platform application engineering template can be, for example, the developer clicking the "Use" virtual button below the cross-platform application engineering template in the cross-platform application engineering template selection page to select the cross-platform application engineering template.

[0109] When the developer selects the required cross-platform application project template and clicks "Next" on the page, the micro-program component selection page is entered. Fig. 9 As shown. The microprogram component selection page is used to display a list of all stored microprogram components, and the displayed content can be classified by the type of microprogram component, for example. In a specific example, the developer's operation on the interface displaying the information of the microprogram component corresponding to the selected cross-platform application engineering template can be, for example, the developer clicking the virtual button of "Use" of the microprogram component, and adding the information of the selected microprogram component to the corresponding position of the microprogram component control area of ​​the cross-platform application engineering template according to the order of use of the microprogram component. The developer can also jump to the details query page of the microprogram component by clicking the "Details" button of the microprogram component. After the developer completes the selection of the microprogram component information, he can click the "Next" button in the microprogram component selection page to enter the page for editing and selecting native components.

[0110] Edit and select native component pages such as Fig.10As shown, this page is used to display a list of all native components stored. The displayed content can be classified by component type, for example. Developers click the virtual "Use" button of the native component to add the selected native component to the cross-platform application project template according to the order of use of the native component, that is, the developer operates the interface that displays the information of the native component. This page mainly enables the capabilities of native components to cross-platform applications to realize the underlying interactive capabilities of cross-platform applications. After completing the selection of native components, developers can click the "Next" button to enter the application information editing page.

[0111] The application information editing page is as follows Fig.11 As shown, it is mainly used to upload cross-platform application icons, upload cross-platform application introduction pictures, and upload cross-platform application description files. In a specific example, the application information editing page can also be used to upload application certificates dedicated to the IOS platform and add management member information. After the upload is completed, the developer can click the "Next" button to enter the application construction completion page.

[0112] The application construction completion page is as follows Fig.12 As shown, it is mainly used to display the cross-platform application generation results to developers for confirmation. If the developer confirms that the cross-platform application is successfully built, the cross-platform application release QR code can be displayed on the page or the "Download to Local" button can be clicked. The developer or user can directly download the cross-platform application package to the terminal device by scanning the release QR code, or download the cross-platform application package to the local device by clicking the "Download to Local" button.

[0113] This implementation method obtains the information of the cross-platform application engineering template and microprogram component respectively in response to the operation of the interface, that is, it automatically configures the parameters before building the cross-platform application (including the selection of engineering template and the selection of information of microprogram component) through visualization, paging, etc., and enables developers to quickly select engineering templates and combine the information of multiple microprogram components to generate a cross-platform application package through a unified process guidance method, thereby reducing the overall learning cost, thereby improving the interaction convenience and process convenience of developers in the cross-platform application automatic construction scenario, and can significantly improve the problems of repeated component development, difficult component query, and low component reuse rate that developers often encounter in the process of cross-platform application componentization, modularization and cross-platform capability design.

[0114] S202, the server builds an application according to the cross-platform application engineering template and the information of the micro-program component to generate an application package;

[0115] In a specific example, after the execution entity (e.g., server 105) of the construction solution of the cross-platform application obtains the cross-platform application engineering template selected by the developer and the information of the micro-program component corresponding to the selected cross-platform application engineering template, the cross-platform application selected and generated by the developer is built through the construction process of the cross-platform application, such as the Jenkins automated construction of the cross-platform application automated construction system to package the obtained cross-platform application engineering template and the corresponding micro-program component information to generate an executable or installable application program, and then perform the publishing process to store the generated application package in the component and cross-platform application management background for users or developers to download and use, such as Fig.13 shown.

[0116] In a specific embodiment, the method further includes obtaining the selected native component;

[0117] Building an application according to the cross-platform application engineering template and the information of the micro-program component includes: building an application according to the cross-platform application engineering template, the information of the micro-program component and the native component.

[0118] Specifically, the execution entity (for example, server 105) of the method for building the cross-platform application responds to the operation of the interface displaying the selected native component, obtains the native component selected by the developer, and at the same time, the server builds the cross-platform application according to the cross-platform application project template, the information of the micro-program component and the native component, thereby achieving compatible operation of the micro-program component and the original native component under the Flutter framework, allowing developers to build cross-platform applications more flexibly, further reducing development redundancy and development work, and advancing the progress of cross-platform development work.

[0119] The construction path and construction parameter configuration method adopted by the cross-platform application construction method provided in this embodiment when building a cross-platform application running on the Android system based on Flutter are described as follows.

[0120] In a specific implementation, for a cross-platform application running on an Android system, obtaining a selected cross-platform application engineering template, information of a microprogram component corresponding to the selected cross-platform application engineering template, and a selected native component, and constructing an application according to the cross-platform application engineering template, the information of the microprogram component, and the native component includes:

[0121] Get and modify the project template file of the selected cross-platform application project template, and inject native component dependency parameters;

[0122] Inject the name of the application, obtain the first interface file of the application and modify the name of the first interface file;

[0123] Extract and download Flutter component dependencies, and inject microprogram component dependency parameters;

[0124] Build the application and generate an application package.

[0125] In a specific example, different from the existing construction process of Android native applications, the construction process for a cross-platform application running on the Android system provided by this implementation is as follows:

[0126] First of all, for the build parameters, the parameters that need to be modified include but are not limited to: whether it is a test package (debug / release), native component dependency, micro-program component dependency, cross-platform application name, process name, cross-platform application version (version number, version name), cross-platform application internal ID (as the only ID for dynamic page configuration), cross-platform application opening page, and cross-platform application icon download address.

[0127] The steps required for building and publishing cross-platform applications are similar to those of the existing ones, including but not limited to: downloading project template files, receiving various parameters of build dependencies, modifying internal file parameters of cross-platform projects, executing cross-platform application builds, uploading to components and cross-platform application management backgrounds, but the corresponding build parameters and internal file modification locations in this embodiment are different from the application construction methods of the prior art.

[0128] Specifically, after the cross-platform application icon is downloaded, the storage path is set to / android / app / src / main / res / +icon corresponding path.

[0129] ic_launcher_hdpi.png—— / src / main / res / mipmap-hdpi

[0130] ic_launcher_mdpi.png—— / src / main / res / mipmap-mdpi

[0131] ic_launcher_xdpi.png—— / src / main / res / mipmap-xhdpi

[0132] ic_launcher_xxdpi.png—— / src / main / res / mipmap-xxhdpi

[0133] ic_launcher_xxxdpi.png—— / src / main / res / mipmap-xxxhdpi

[0134] In this embodiment, the executing entity (for example, server 105) that executes the construction plan of the cross-platform application obtains the project template file, modifies the project template file and injects native component dependency parameters, modifies the / android / app / build.gradle file, and injects the project template file native component dependency, cross-platform application version (version number, version name), process name, whether it is a test package (debug / release), and other related information.

[0135] The name of the cross-platform application is injected by modifying the content of / android / app / src / main / res / values / strings.xml, and the splash page is downloaded and placed in the / android / app / src / main / res / drawable / folder and modified to a specific name.

[0136] In addition, the execution entity (such as server 105) that executes the construction plan of the cross-platform application first executes the Flutter pub get command in the root directory of the workspace to extract and download the Flutter component dependencies. At the same time, the micro-program component dependency parameters need to be injected by modifying the . / pubspec.yaml file. Subsequently, you can enter the / android / folder and use . / gradlew to build the cross-platform application package.

[0137] For compiling test packages and official packages, it is necessary to determine whether the parameter is a test package (debug / release) and perform different build commands.

[0138] The general command to compile the debug package is: . / gradlew assembleDebug;

[0139] The general build command for compiling the release package is: . / gradlewassembleRelease;

[0140] Generally, the command to compile debug and release packages at the same time is: . / gradlew assemble.

[0141] In steps S201 and 202 of this embodiment, an application package is generated according to a cross-platform application engineering template including a Flutter component based on a domain-specific language, information of a microprogram component, and a native component, that is, the cross-platform Flutter capability is integrated into the cross-platform application engineering template, that is, the cross-platform Flutter capability is packaged into the application packages of multiple mobile platforms, and the page can be dynamically parsed and loaded and generated by parsing the microprogram component, so that the constructed cross-platform application can realize the dynamic page loading capability under the Flutter framework; at the same time, the construction method enables developers to quickly combine microprogram component information, accurately build cross-platform applications, and improve construction efficiency; at the same time, developers only need to develop a set of codes to build a cross-platform functional foundation that can be reused on multiple mobile platforms, effectively saving actual R&D investment, avoiding development redundancy, simplifying componentization and modularization work, and accelerating the application development process.

[0142] S203. When the terminal that has downloaded and installed the application package runs the application, in response to the operation of the micro-program control displayed on the application interface, the Flutter component downloads the micro-program component according to the information of the corresponding micro-program component, and parses and loads the interface of the micro-program component.

[0143] Specifically, Fig.14As shown in the operation process business principle diagram (which describes the operation process principle of the Flutter interpretation framework component based on DSL inside the cross-platform application runtime), the execution subject (such as terminal 101, 102, 103) of the operation method of the cross-platform application installs and runs the cross-platform application. In a specific example, the micro-program control displayed on the application interface can be set, for example, as a virtual key of the micro-program component on the display interface of the cross-platform application. The operation of the micro-program control displayed on the application interface can be, for example, a developer or user clicking on the virtual key of the micro-program component on the display interface of the cross-platform application. The execution subject (such as terminal 101, 102, 103) of the operation method of the cross-platform application responds to each click of the virtual key of the micro-program component by the developer or user, and connects the component and the cross-platform application management background according to the download address of the micro-program component in the information of the micro-program component loaded in the cross-platform application engineering template (such as the entry configuration file) to download the micro-program component, and parses the file of the downloaded micro-program component through the Flutter interpretation framework component based on DSL and displays the page content of the micro-program component. It is understandable that when the microprogram component of this implementation is updated, it is only necessary to update the version of the microprogram component stored in the server (such as the component and the cross-platform application management background). Subsequently, each time the user clicks the virtual button of the microprogram component, the DSL-based Flutter interpretation framework component directly downloads the latest version of the microprogram component according to the download address of the microprogram component in the information of the microprogram component loaded in the cross-platform application engineering template (such as the entry configuration file), parses and loads it, without the need to repeatedly update the microprogram component in the terminal.

[0144] Step S203 downloads, parses and loads the microprogram components in response to the operation of the microprogram controls, thereby realizing the page dynamic and real-time loading capabilities under the Flutter framework, reducing the capacity occupied by the microprogram components in the cross-platform applications, and thus reducing the capacity occupied by the cross-platform applications. At the same time, the operation method can also support real-time updates of the microprogram components without re-updating. Only the microprogram components in the server need to be updated, thereby improving the download, parsing and loading speed of the microprogram components.

[0145] In a specific implementation, the information of the microprogram component is included in an entry configuration file, and the method further includes: when running the application, the Flutter component parses the entry configuration file and loads the first interface of the application.

[0146] Specifically, Fig.14As shown in the operation process business principle diagram (which describes the operation process principle of the Flutter interpretation framework component based on DSL inside the cross-platform application runtime), when the execution subject (for example, terminals 101, 102, 103) that executes the operation method of the cross-platform application runs the cross-platform application, the Flutter interpretation framework component based on DSL parses the entry configuration file of the micro-program component added to the application package during construction, and loads the overall cross-platform application project template entry page and the home page of the cross-platform application.

[0147] Another embodiment of the present invention provides a cross-platform application implementation system, including a server and a terminal.

[0148] Among them, Fig.15 As shown, the server includes:

[0149] An acquisition module 301 is used to acquire information of a selected cross-platform application engineering template and a micro-program component corresponding to the selected cross-platform application engineering template, wherein the cross-platform application engineering template includes a Flutter component based on a domain-specific language, and the Flutter component can parse and load an interface of the micro-program component;

[0150] The construction module 302 is used to construct an application according to the cross-platform application engineering template and the information of the micro-program component to generate an application package.

[0151] In a specific implementation, the microprogram component is a component in an abstract syntax tree format.

[0152] like Fig.16 As shown, the terminal includes:

[0153] An installation module 401 is used to download and install an application package, where the application package is constructed according to the selected cross-platform application engineering template and information of a micro-program component corresponding to the selected cross-platform application engineering template, where the cross-platform application engineering template includes a Flutter component based on a domain-specific language;

[0154] The running module 402 is used to respond to the operation of the micro-program control displayed on the application interface when running the application, and the Flutter component downloads the micro-program component according to the information of the corresponding micro-program component, and parses and loads the interface of the micro-program component.

[0155] It should be noted that the principle and workflow of the cross-platform application implementation system provided in this embodiment are similar to the above-mentioned cross-platform application implementation method. The relevant parts can be referred to the above description and will not be repeated here.

[0156] like Fig.17As shown, a computer system suitable for implementing the implementation system of the cross-platform application provided by the above-mentioned embodiment includes a central processing module (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM). In the RAM, various programs and data required for the operation of the computer system are also stored. The CPU, ROM and RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.

[0157] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a liquid crystal display (LCD), etc. and a speaker, etc.; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0158] In particular, according to this embodiment, the process described in the flowchart above can be implemented as a computer software program. For example, this embodiment includes a computer program product, which includes a computer program tangibly contained on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium.

[0159] The flow chart and schematic diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product of the present embodiment. In this regard, each square box in the flow chart or schematic diagram can represent a part of a module, program segment or code, and a part of the above-mentioned module, program segment or 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the schematic diagram and / or flow chart, and the combination of the square boxes in the schematic diagram and / 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.

[0160] The modules described in this embodiment may be implemented by software or hardware. The modules described may also be set in a processor, for example, may be described as: a processor including an acquisition module and a construction module. Or a processor including an installation module and an operation module, wherein the names of these modules do not constitute a limitation on the module itself in some cases. For example, a construction module may also be described as a "packaging module".

[0161] As another aspect, the present embodiment further provides a non-volatile computer storage medium, which may be a non-volatile computer storage medium included in the above-mentioned device in the above-mentioned embodiment, or a non-volatile computer storage medium that exists independently and is not installed in a terminal. The above-mentioned non-volatile computer storage medium stores one or more programs. When the above-mentioned one or more programs are executed by a device, the above-mentioned device: obtains the selected cross-platform application engineering template and the information of the micro-program component corresponding to the selected cross-platform application engineering template, the cross-platform application engineering template includes a Flutter component based on a domain-specific language, and the Flutter component can parse and load the interface of the micro-program component; builds an application according to the information of the cross-platform application engineering template and the micro-program component, and generates an application package. Or, download and install the application package, the application package is built according to the selected cross-platform application engineering template and the information of the micro-program component corresponding to the selected cross-platform application engineering template, and the cross-platform application engineering template includes a Flutter component based on a domain-specific language; when running the application, in response to the operation of the micro-program control displayed on the application interface, the Flutter component downloads the micro-program component according to the information of the corresponding micro-program component, and parses and loads the interface of the micro-program component.

[0162] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the embodiments here. All obvious changes or modifications derived from the technical solution of the present invention are still within the protection scope of the present invention.

Claims

1. A method for constructing a cross-platform application, used for a server, characterized in that: The method includes: Obtaining information about a selected cross-platform application engineering template and a micro-program component corresponding to the selected cross-platform application engineering template, wherein the cross-platform application engineering template includes a Flutter component based on a domain-specific language, and the Flutter component is capable of parsing and loading an interface of the micro-program component; Building an application according to the cross-platform application engineering template and the information of the micro-program component to generate an application package; The method further comprises: obtaining a native component; The constructing of the application according to the cross-platform application engineering template and the information of the micro-program component comprises: Building an application according to the cross-platform application engineering template, the information of the microprogram component and the native component; For a cross-platform application running on an Android system, obtaining a selected cross-platform application engineering template, information of a micro-program component corresponding to the selected cross-platform application engineering template, and a selected native component, and constructing an application according to the cross-platform application engineering template, the information of the micro-program component, and the native component includes: Get and modify the project template file of the selected cross-platform application project template, and inject native component dependency parameters; Inject the name of the application, obtain the first interface file of the application and modify the name of the first interface file; Extract and download Flutter component dependencies, and inject microprogram component dependency parameters; Build the application and generate an application package.

2. The construction method according to claim 1, characterized in that: The microprogram component is a component in an abstract syntax tree format.

3. The construction method according to claim 1, characterized in that: The obtaining of the selected cross-platform application project template includes: calling a cross-platform application script to obtain the selected cross-platform application project template.

4. The construction method according to claim 1, characterized in that: The step of acquiring the selected cross-platform application engineering template and the information of the micro-program component corresponding to the selected cross-platform application engineering template includes: In response to an operation on an interface displaying information of a cross-platform application project template, obtaining a selected cross-platform application project template; In response to an operation on an interface displaying information of a micro-program component corresponding to a selected cross-platform application project template, the information of the micro-program component corresponding to the selected cross-platform application project template is acquired.

5. A method for running a cross-platform application, used in a terminal, characterized in that: The method includes: Download and install an application package, where the application package is constructed according to a selected cross-platform application engineering template, information of a microprogram component corresponding to the selected cross-platform application engineering template, and a selected native component, where the cross-platform application engineering template includes a Flutter component based on a domain-specific language; When running the application, in response to the operation of the micro-program control displayed on the application interface, the Flutter component downloads the micro-program component according to the information of the corresponding micro-program component, and parses and loads the interface of the micro-program component; For a cross-platform application running on an Android system, obtaining a selected cross-platform application engineering template, information of a micro-program component corresponding to the selected cross-platform application engineering template, and a selected native component, and constructing an application according to the cross-platform application engineering template, the information of the micro-program component, and the native component includes: Get and modify the project template file of the selected cross-platform application project template, and inject native component dependency parameters; Inject the name of the application, obtain the first interface file of the application and modify the name of the first interface file; Extract and download Flutter component dependencies, and inject microprogram component dependency parameters; Build the application and generate an application package.

6. The operating method according to claim 5, characterized in that: The information of the microprogram component is included in the entry configuration file, and the method further includes: When running the application, the Flutter component parses the entry configuration file and loads the first interface of the application.

7. A method for implementing a cross-platform application, characterized in that: include: The server obtains a selected cross-platform application engineering template and information of a micro-program component corresponding to the selected cross-platform application engineering template, wherein the cross-platform application engineering template includes a Flutter component based on a domain-specific language; The server constructs an application according to the cross-platform application engineering template and the information of the micro-program component to generate an application package; When the terminal that downloads and installs the application package runs the application, in response to the operation of the micro-program control displayed on the application interface, the Flutter component downloads the micro-program component according to the information of the corresponding micro-program component, and parses and loads the interface of the micro-program component; The method further comprises: obtaining a native component; The constructing of the application according to the cross-platform application engineering template and the information of the micro-program component comprises: Building an application according to the cross-platform application engineering template, the information of the microprogram component and the native component; For a cross-platform application running on an Android system, obtaining a selected cross-platform application engineering template, information of a micro-program component corresponding to the selected cross-platform application engineering template, and a selected native component, and constructing an application according to the cross-platform application engineering template, the information of the micro-program component, and the native component includes: Get and modify the project template file of the selected cross-platform application project template, and inject native component dependency parameters; Inject the name of the application, obtain the first interface file of the application and modify the name of the first interface file; Extract and download Flutter component dependencies, and inject microprogram component dependency parameters; Build the application and generate an application package.

8. A server, characterized in that: include: An acquisition module is used to acquire a selected cross-platform application engineering template, information of a micro-program component corresponding to the selected cross-platform application engineering template, and a selected native component, wherein the cross-platform application engineering template includes a Flutter component based on a domain-specific language, and the Flutter component is capable of parsing and loading an interface of the micro-program component; A construction module, used to construct an application according to the cross-platform application engineering template and the information of the micro-program component, and generate an application package; The constructing of the application according to the cross-platform application engineering template and the information of the micro-program component comprises: Building an application according to the cross-platform application engineering template, the information of the microprogram component and the native component; For a cross-platform application running on an Android system, obtaining a selected cross-platform application engineering template, information of a micro-program component corresponding to the selected cross-platform application engineering template, and a selected native component, and constructing an application according to the cross-platform application engineering template, the information of the micro-program component, and the native component includes: Get and modify the project template file of the selected cross-platform application project template, and inject native component dependency parameters; Inject the name of the application, obtain the first interface file of the application and modify the name of the first interface file; Extract and download Flutter component dependencies, and inject microprogram component dependency parameters; Build the application and generate an application package.

9. The server according to claim 8, characterized in that: The microprogram component is a component in an abstract syntax tree format.

10. A terminal, characterized in that: include: An installation module, used to download and install an application package, wherein the application package is constructed according to a selected cross-platform application engineering template, information of a microprogram component corresponding to the selected cross-platform application engineering template, and a selected native component, wherein the cross-platform application engineering template includes a Flutter component based on a domain-specific language; A running module, which is used to, when running an application, in response to an operation on a micro-program control displayed on an application interface, download the micro-program component according to the information of the corresponding micro-program component, and parse and load the interface of the micro-program component; For a cross-platform application running on an Android system, obtaining a selected cross-platform application engineering template, information of a micro-program component corresponding to the selected cross-platform application engineering template, and a selected native component, and constructing an application according to the cross-platform application engineering template, the information of the micro-program component, and the native component includes: Get and modify the project template file of the selected cross-platform application project template, and inject native component dependency parameters; Inject the name of the application, obtain the first interface file of the application and modify the name of the first interface file; Extract and download Flutter component dependencies, and inject microprogram component dependency parameters; Build the application and generate an application package.

11. A cross-platform application implementation system, characterized in that: The method comprises the server as claimed in claim 8 and at least one terminal as claimed in claim 10.

12. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program: implements the construction method as described in any one of claims 1 to 4, or implements the operation method as described in claim 5 or 6.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor: the construction method as described in any one of claims 1 to 4 is implemented, or the operation method as described in claim 5 or 6 is implemented.