Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Component method, device, apparatus, and storage medium for application program

An application and component technology, applied in the direction of program code conversion, creation/generation of source code, code compilation, etc., can solve the problems of complex code and logic, prolonged compilation time, and difficulty in collaborative development, so as to improve development efficiency and reduce Compile time, the effect of avoiding circular dependency errors

Inactive Publication Date: 2019-03-12
GUANGZHOU HUYA TECH CO LTD
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The function of the application program depends on the functional modules (Module) that make up the application program. In order to achieve more and more complex functions, the code and logic between the functional modules become more and more complex, resulting in inextricable coupling between the functional modules.
This makes the compilation time longer, the development efficiency is low, and the collaborative development is difficult

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Component method, device, apparatus, and storage medium for application program
  • Component method, device, apparatus, and storage medium for application program
  • Component method, device, apparatus, and storage medium for application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] figure 1 It is a flow chart of an application componentization method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case where the functional modules in the application are componentized and then called between components. Wherein, the application program includes multiple functional modules. After the functional modules are componentized, each functional module includes a component. In most cases, there is interaction logic between components. If two functional modules are directly bidirectionally referenced, a circular dependency error will result. This is because the compiler itself does not support the dependency library to have a circular dependency. In order to solve the above defects, the embodiment of the present invention builds a service center, and each component has a one-way dependency on the service center, so that the interaction logic between components can be realized through the service center, and circular de...

Embodiment 2

[0044] Figure 2a It is a flow chart of an application componentization method provided by Embodiment 2 of the present invention. This embodiment further optimizes the optional implementation modes in the above embodiments. Optionally, when obtaining the interface layer that needs to be called by the first component Before the information, the additional operation "acquires the mapping relationship between the interface layer and the implementation layer of each component in the project engineering corresponding to the application program in response to the startup of the application program", so as to provide the data basis for the component to provide the implementation layer information. combine Figure 2a , the method provided by the embodiment of the present invention includes the following operations:

[0045] S210. In response to the start of the application program, acquire the mapping relationship between the interface layer information and the implementation layer i...

Embodiment 3

[0056] image 3 It is a schematic diagram of componentization of an application program provided by the third embodiment of the invention. image 3 The left side is a schematic diagram of the application program architecture in the prior art. In the prior art, the project engineering generates the application program 1 . The application program 1 comprises a main functional module comprising a first component and a second component where interaction logic exists. The second component and the second component call each other in the main function module, and there will be no circular dependency error.

[0057] With the complexity of the business, this embodiment lowers the components in the application program 1, divides the first component into the first functional module, and divides the second component into the second functional module. Further, in the component sinking process, combined with image 3 On the right, store the interface layer of the first component in the f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a component method, a device, an apparatus and a storage medium of an application program. The method comprises the following steps: acquiring the interface layer information to be called by the first component; Determining the implementation layer information of the second component according to the interface layer information to be called by the first component and the mapping relationship between the interface layer information of each component and the implementation layer information; Transmitting the implementation layer information of the secondcomponent to the first component for the first component to call the implementation layer according to the implementation layer information; Wherein the first component and the second component respectively belong to different functional modules of the application program. The embodiment of the invention realizes decoupling between components through a service center to avoid circular dependencyerrors; By splitting into components, it can reduce compiling time, improve development efficiency and reduce the difficulty of collaborative development.

Description

technical field [0001] The embodiment of the present invention relates to client development framework technology, and in particular to a componentization method, device, device and storage medium of an application program. Background technique [0002] With the expansion and enrichment of mobile terminal services, the requirements for the functions of application programs are also getting higher and higher. [0003] The function of the application program depends on the functional modules (Module) that make up the application program. In order to realize more and more complex functions, the code and logic between the functional modules become more and more complex, resulting in inextricable coupling between the functional modules. This makes the compilation time longer, the development efficiency is low, and the collaborative development is difficult. Contents of the invention [0004] Embodiments of the present invention provide a method, device, device, and storage med...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06F8/41
CPCG06F8/30G06F8/41
Inventor 黄伟武刘超群
Owner GUANGZHOU HUYA TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products