CN113760323A - Method, device and system for developing application - Google Patents

Method, device and system for developing application Download PDF

Info

Publication number
CN113760323A
CN113760323A CN202110185198.5A CN202110185198A CN113760323A CN 113760323 A CN113760323 A CN 113760323A CN 202110185198 A CN202110185198 A CN 202110185198A CN 113760323 A CN113760323 A CN 113760323A
Authority
CN
China
Prior art keywords
source code
target
code packet
packet
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110185198.5A
Other languages
Chinese (zh)
Inventor
徐宏伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202110185198.5A priority Critical patent/CN113760323A/en
Publication of CN113760323A publication Critical patent/CN113760323A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3624Software debugging by performing operations on the source code, e.g. via a compiler
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device and a system for developing application, and relates to the technical field of computers. One embodiment of the method comprises: the target source code packet integrated with the Flutter source code is generated at the server side, and the downloading link is shared to the client side, so that the client side can conveniently obtain the target source code packet, the locally corresponding source code is updated by using the target source code packet, the display result after the source code is changed is efficiently checked, the application development and debugging are further completed, and the development efficiency of development and debugging of the application is improved.

Description

Method, device and system for developing application
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for developing an application.
Background
At present, more and more internet applications are cross-platform applications, and cross-platform development tools are also widely used, for example, Flutter tools provided by Google corporation; there are two modes of development based on Flutter: 1. newly building a Flutter engineering development; 2. embedding Flutter development in the primary engineering; since business logic in most native applications is relatively complex, development and reconstruction periods are long when using Flutter, and the Flutter technology is relatively new and not mature enough, a hybrid development mode mentioned in the 2 nd mode is usually used.
However, the hybrid development mode is utilized, and 1. the complexity of application debugging and packaging is high, and as the Flutter depends on native code packaging in the hybrid development, the whole packaging process is complex and time-consuming; 2. developers using Flutter need to be familiar with one of the browser, android, iOS development environments, causing high complexity when configuring unfamiliar development environments and packaging environments, thereby increasing the difficulty and workload of debugging applications.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a system for developing an application, which enable a client to acquire a target source code packet relatively conveniently by generating the target source code packet integrated with a Flutter source code at a server and sharing a download link to the client, and update a locally corresponding source code with the target source code packet, so as to efficiently view a display result after a source code is changed, thereby completing application development and debugging, and improving development efficiency of development and debugging of an application.
In order to achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a method for developing an application, applied to a server, including: acquiring a source code of target application change; generating a first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; the first source code packet is generated by a Flutter tool; generating a target source code packet according to the first source code packet and a native source code in the target application, wherein the native source code has a dependency relationship with the first source code packet; and sending the target source code packet to allow the client to run the target application containing the target source code packet.
Optionally, the method of developing an application, characterized in that,
the generating a target source code packet according to the first source code packet and the native source code in the target application, which has a dependency relationship with the first source code packet, includes: and generating a target source code packet based on the first source code packet and the native source code which has a dependency relationship with the first source code packet in the target application by utilizing native plug-in engineering.
Optionally, the method of developing an application, characterized in that,
setting a development environment of a Flutter tool used for generating the first source code packet to generate the first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; and
and generating a development environment of native plug-in engineering of the target source code packet so as to generate the target source code packet according to the first source code packet and native source codes which have a dependency relationship with the first source code packet in the target application.
Optionally, the method for developing an application, where sending the target source code packet includes: and compressing and sending the target source code packet to a shared server, and generating a download link of the target source code packet.
Optionally, the method for developing an application is characterized in that the download link is displayed as a two-dimensional code image, so that a client obtains a target source code packet by scanning the two-dimensional code image.
In order to achieve the above object, according to a second aspect of the embodiments of the present invention, there is provided a method for developing an application, applied to a client, including: acquiring a target source code packet; updating the corresponding source code in the target application by using the target source code packet; and running the target application, and checking a running result corresponding to the target source code packet through a page.
Optionally, the method for developing an application, where the obtaining a target source code package includes: and downloading and acquiring the target source code packet by scanning the two-dimensional code image corresponding to the download link of the target source code packet.
To achieve the above object, according to a third aspect of the embodiments of the present invention, there is provided a server for developing an application, including: the system comprises a first source code packet generating module, a target source code packet generating module and a target source code packet sending module; wherein the content of the first and second substances,
the first source code packet generating module is used for acquiring a source code of a target application change; generating a first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; the first source code packet is generated by a Flutter tool;
the target source code generation module is used for generating a target source code packet according to the first source code packet and a native source code which has a dependency relationship with the first source code packet in the target application;
and the target source code packet sending module is used for sending the target source code packet so that the client runs the target application containing the target source code packet.
Optionally, the server for developing an application, wherein,
the generating a target source code packet according to the first source code packet and the native source code in the target application, which has a dependency relationship with the first source code packet, includes: and generating a target source code packet based on the first source code packet and the native source code which has a dependency relationship with the first source code packet in the target application by utilizing native plug-in engineering.
Optionally, the server for developing an application, wherein,
setting a development environment of a Flutter tool used for generating the first source code packet to generate the first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; and generating a development environment of native plug-in engineering of the target source code packet so as to generate the target source code packet according to the first source code packet and native source codes which have a dependency relationship with the first source code packet in the target application.
Optionally, the server for developing an application, wherein,
transmitting the target source code packet, comprising: and compressing and sending the target source code packet to a shared server, and generating a download link of the target source code packet.
Optionally, the server for developing an application, wherein,
the download link is displayed by a two-dimensional code image, so that a client can obtain a target source code packet by scanning the two-dimensional code image.
In order to achieve the above object, according to a fourth aspect of the embodiments of the present invention, there is provided a client for developing an application, including: the system comprises a source code packet acquisition module and an application running module; wherein the content of the first and second substances,
the source code packet acquisition module is used for acquiring a target source code packet;
the application running module is used for updating the corresponding source code in the target application by using the target source code packet; and running the target application, and checking a running result corresponding to the target source code packet through a page.
Optionally, the client for developing the application, wherein,
the obtaining of the target source code packet includes: and downloading and acquiring the target source code packet by scanning the two-dimensional code image corresponding to the download link of the target source code packet.
To achieve the above object, according to a fifth aspect of the embodiments of the present invention, there is provided a system for developing an application, including the server 400 for developing an application of the third aspect and the client 500 for developing an application of the fourth aspect.
In order to achieve the above object, according to a sixth aspect of the embodiments of the present invention, there is provided an electronic device for developing an application, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out a method as claimed in any one of the above methods of developing an application.
To achieve the above object, according to a seventh aspect of embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, characterized in that the program, when executed by a processor, implements the method as set forth in any one of the above methods of developing an application.
One embodiment of the above invention has the following advantages or benefits: the target source code packet integrated with the Flutter source code can be generated at the server side, the downloading link is shared to the client side, the client side can conveniently acquire the target source code packet, the locally corresponding source code is updated through the target source code packet, the display result after the source code is changed is efficiently checked, application development and debugging are further completed, and development efficiency of development and debugging of application is improved
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a flowchart illustrating a method for developing an application applied to a server according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for developing an application applied to a client according to an embodiment of the present invention;
FIG. 3 is a flow diagram illustrating a method for developing an application, according to an embodiment of the invention;
FIG. 4 is a schematic structural diagram of a server for developing an application according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a client for developing an application according to an embodiment of the present invention;
FIG. 6 is a block diagram of a system for developing an application according to an embodiment of the present invention;
FIG. 7 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 8 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As shown in fig. 1, an embodiment of the present invention provides a method for developing an application, which is applied to a server, and the method may include the following steps:
step S101: acquiring a source code of target application change; generating a first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; the first source code packet is generated by a Flutter tool.
Specifically, the Flutter tool is a development kit provided by Google corporation for building and developing cross-platform applications; writing a piece of code by using a Flutter tool, and running on different platforms, such as: android, iOS, Web, etc.; in the development mode of the hybrid native system and Flutter, preferably, a page of an application is developed by using Flutter generally, that is, Flutter development is embedded in native engineering, and further, a source code of a target application change, which belongs to the target application and is used for developing or debugging page functions, is obtained, and the changed source code may be an increased source code and a decreased source code; the source code may be saved in a file; the invention does not limit the file format to which the source code belongs; it will be appreciated that the source code of the change may be saved in a set branch directory using a code version management tool.
Further, setting a development environment of a Flutter tool used for generating the first source code packet to generate the first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; and generating a development environment of native plug-in engineering of the target source code packet so as to generate the target source code packet according to the first source code packet and native source codes which have a dependency relationship with the first source code packet in the target application. Specifically, setting a development environment of a Flutter tool used for generating the first source code packet; generating a first source code packet based on the changed source code and the source code with the dependency relationship with the changed source code by utilizing a development environment of a Flutter tool; the first source code packet comprises a product of codes compiled by using a Flutter tool, the product can be one or more files, and the files with different formats in the first source code packet are formed according to different compiling and packaging modes; the invention does not limit the concrete content and format in the first source code packet; it can be understood that the development environment of the Flutter tool is set at the server side, and the compiling and packaging processes are executed for developing and debugging the page in the application, so that the difficulty and complexity of setting the development environment of the Flutter tool on different platforms respectively are reduced, and the development efficiency is improved.
The server can run in a cloud server or a local server. And the server generates a development environment of the native plug-in project of the target source code packet, so as to generate the target source code packet according to the first source code packet and the native source codes which have a dependency relationship with the first source code packet in the target application. It can be understood that by generating the development environment of the native plug-in project, the complexity of compiling and packaging respectively on different platforms is reduced, and the development efficiency is improved.
Step S102: and generating a target source code packet according to the first source code packet and the native source code which has a dependency relationship with the first source code packet in the target application.
Specifically, based on the first source code packet (generated by using the Flutter tool) acquired in step S101, a target source code packet is generated in combination with the native source code having a dependency relationship with the first source code packet; wherein the native source code indicates source code generated for a development language used for application development of different platforms, such as: java language, C language, etc. used by the android platform; further, the generating a target source code packet according to the first source code packet and the native source code in the target application having a dependency relationship with the first source code packet includes: generating a target source code packet based on the first source code packet and the native source code in the target application, wherein the native source code has a dependency relationship with the first source code packet, by using native plug-in engineering; the native plug-in engineering is used for combining a received first source code packet generated by the Flutter tool with a native source code having a dependency relationship with the first source code packet to generate a target source code packet; further, setting a development environment of the native plug-in engineering for generating the target source code packet.
It can be understood that the development environment of the native plug-in project is set at the server side, and the compiling and packaging processes are executed for developing and debugging the application page, so that the difficulty and complexity of configuring the development environment are reduced, and the development efficiency is improved.
Step S103: and sending the target source code packet to allow the client to run the target application containing the target source code packet.
Specifically, the sending the target source code packet includes: and compressing and sending the target source code packet to a shared server, and generating a download link of the target source code packet. Further, the download link is displayed in a two-dimensional code image, so that the client can obtain the target source code packet by scanning the two-dimensional code image. It can be appreciated that compressing the target source code packages can reduce the size of the target source code packages, improving the efficiency of uploading to the shared server and downloading by the client.
The shared server can be a server or a cloud disk and the like, and the specific form of the shared server is not limited by the invention; further, a two-dimensional code image is generated according to a download link of the target source code packet, so that the client application can obtain a compressed target source code packet by scanning the download link corresponding to the two-dimensional code image, and further run the target application based on the target source code packet.
As shown in fig. 2, an embodiment of the present invention provides a method for developing an application, which is applied to a client, and the method may include the following steps:
step S201: and acquiring a target source code packet.
Specifically, the client acquires a target source code packet, including: and downloading and acquiring the target source code packet by scanning the two-dimensional code image corresponding to the download link of the target source code packet. It can be understood that the client may also obtain the target source code packet by inputting a download link of the target source code packet, and preferably, the client downloads and obtains the target source code packet by scanning a two-dimensional code image corresponding to the download link of the target source code packet; further, performing decompression operation on the compressed target source code packet to obtain each file in the target source code packet.
Step S202: updating the corresponding source code in the target application by using the target source code packet; and running the target application, and checking a running result corresponding to the target source code packet through a page.
Specifically, according to each file (i.e. source code) in the obtained target source code package described in step S201, the corresponding source code in the target application is updated (e.g. replaced, added, etc.); running the target application based on the updated source code, and checking a running result corresponding to the target source code packet through a page; it can be understood that the running result of the updated source code is judged by looking at the running result, so that the page of the target application and the function of the target application are developed and debugged.
As can be seen from the descriptions of step S201 to step S202, the client updates and runs the local source code by downloading the target source code packet, so that the efficiency of debugging the application is improved.
As shown in fig. 3, an embodiment of the present invention provides a method for developing an application, which may include the following steps;
step S301: acquiring a source code of target application change; generating a first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; the first source code packet is generated by a Flutter tool.
Step S302: and generating a target source code packet according to the first source code packet and the native source code which has a dependency relationship with the first source code packet in the target application.
Step S303: and sending the target source code packet to allow the client to run the target application containing the target source code packet.
Step S304: and acquiring a target source code packet.
Step S305: updating the corresponding source code in the target application by using the target source code packet; and running the target application, and checking a running result corresponding to the target source code packet through a page.
Specifically, steps S301 to S303 describe a method for developing an application applied to a server; the description of the method for developing the application is consistent with steps S101 to S103, and is not repeated here.
Step S304-step S305 describe a method for developing an application applied to a client; the description of the method for developing the application is consistent with steps S201 to S202, and is not repeated here.
One embodiment of the method comprises the steps that code branch information is set on a cloud service platform, a two-dimensional code of a target source code packet is generated by one key, a client scans the two-dimensional code to download the target source code packet and then updates the target source code packet, a page operation result is checked, if an exception occurs in the compiling and packaging process of a server, the problem of log analysis and positioning in the server can be solved, and the efficiency of application development is improved.
As shown in fig. 4, an embodiment of the present invention provides a server 400 for developing an application, including: a first source code packet generating module 401, a target source code packet generating module 402 and a target source code packet transmitting module 403; wherein the content of the first and second substances,
the first source code packet generating module 401 is configured to obtain a source code of a target application change; generating a first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; the first source code packet is generated by a Flutter tool;
the target source code packet generating module 402 is configured to generate a target source code packet according to the first source code packet and a native source code in the target application, where the native source code has a dependency relationship with the first source code packet;
the target source code packet sending module 403 is configured to send the target source code packet, so that the client runs the target application including the target source code packet.
Optionally, the generating module 401 of the first source code packet includes generating a target source code packet according to the first source code packet and a native source code in the target application, where the native source code has a dependency relationship with the first source code packet, including: and generating a target source code packet based on the first source code packet and the native source code which has a dependency relationship with the first source code packet in the target application by utilizing native plug-in engineering.
Optionally, the target source code package generating module 402 is configured to set a development environment of a Flutter tool used for generating the first source code package, so as to generate the first source code package based on the changed source code and the source code having a dependency relationship with the changed source code; and generating a development environment of native plug-in engineering of the target source code packet so as to generate the target source code packet according to the first source code packet and native source codes which have a dependency relationship with the first source code packet in the target application.
Optionally, the target source code packet sending module 403 is configured to send the target source code packet, and includes: and compressing and sending the target source code packet to a shared server, and generating a download link of the target source code packet.
Optionally, the target source code packet sending module 403 includes that the download link is displayed as a two-dimensional code image, so that the client obtains the target source code packet by scanning the two-dimensional code image.
As shown in fig. 5, an embodiment of the present invention provides a client 500 for developing an application, including: a source code packet acquisition module 501 and an application running module 502; wherein the content of the first and second substances,
the source code packet obtaining module 501 is configured to obtain a target source code packet;
the application running module 502 is configured to update a corresponding source code in a target application by using the target source code packet; and running the target application, and checking a running result corresponding to the target source code packet through a page.
Optionally, the obtain source code packet module 501 includes: and downloading and acquiring the target source code packet by scanning the two-dimensional code image corresponding to the download link of the target source code packet.
As shown in fig. 6, an embodiment of the present invention provides a system 600 for developing an application, including: a server 400 that develops an application, and a client 500 that develops an application.
An embodiment of the present invention further provides an electronic device for developing an application, including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the method provided by any one of the above embodiments.
Embodiments of the present invention further provide a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method provided in any of the above embodiments.
Fig. 7 illustrates an exemplary system architecture 700 of a method of developing an application or an apparatus for developing an application to which embodiments of the present invention may be applied.
As shown in fig. 7, the system architecture 700 may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 serves to provide a medium for communication links between the terminal devices 701, 702, 703 and the server 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 701, 702, 703 to interact with a server 705 over a network 704, to receive or send messages or the like. The terminal devices 701, 702, 703 may have installed thereon various client applications, such as an e-mall client application, a web browser application, a search-type application, an instant messaging tool, and the like.
The terminal devices 701, 702, 703 may be various electronic devices having display screens and supporting various client applications, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 705 may be a server providing various services, such as a background management server providing support for client applications used by users with the terminal devices 701, 702, 703. The background management server can compile and package the obtained change source code and send or display the link of the new target source code packet to the terminal equipment.
It should be noted that the method for developing an application provided in the embodiment of the present invention is generally executed by the terminal devices 701, 702, and 703 or the server 705, and accordingly, the client for developing an application is generally disposed in the terminal devices 701, 702, and 703, and the server for developing an application is generally disposed in the server 705.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units described in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware. The described modules and/or units may also be provided in a processor, and may be described as: a processor includes a first source code packet generation module, a target source code packet generation module, and a target source code packet transmission module. Where the names of these modules do not in some cases constitute a limitation on the module itself, for example, the target source code package generation module may also be described as a "module that generates a target source code package from the first source code package, and the native source code that it depends on, using native plug-in engineering". Another example is: a processor includes a source code packet acquisition module and an application execution module. The names of these modules do not constitute a limitation to the module itself in some cases, and for example, the application execution module may also be described as a "module that updates source code according to a target source code package and executes an application to view an execution result".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: the server side obtains a source code of the target application change; generating a first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; the first source code packet is generated by a Flutter tool; generating a target source code packet according to the first source code packet and a native source code in the target application, wherein the native source code has a dependency relationship with the first source code packet; and sending the target source code packet to allow the client to run the target application containing the target source code packet. A client acquires a target source code packet; updating the corresponding source code in the target application by using the target source code packet; and running the target application, and checking a running result corresponding to the target source code packet through a page.
According to the embodiment of the invention, the target source code packet integrated with the Flutter source code is generated at the server side, and the downloading link is shared to the client side, so that the client side can conveniently acquire the target source code packet, the locally corresponding source code is updated by using the target source code packet, the display result after the source code is changed is efficiently checked, the application development and debugging are further completed, and the development efficiency of development and debugging of the application is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for developing an application, comprising:
acquiring a source code of target application change; generating a first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; the first source code packet is generated by a Flutter tool;
generating a target source code packet according to the first source code packet and a native source code in the target application, wherein the native source code has a dependency relationship with the first source code packet;
and sending the target source code packet to allow the client to run the target application containing the target source code packet.
2. The method of claim 1, wherein generating a target source code packet according to the first source code packet and a native source code in the target application having a dependency relationship with the first source code packet comprises:
and generating a target source code packet based on the first source code packet and the native source code which has a dependency relationship with the first source code packet in the target application by utilizing native plug-in engineering.
3. The method of claim 2,
setting a development environment of a Flutter tool used for generating the first source code packet to generate the first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; and
and generating a development environment of native plug-in engineering of the target source code packet so as to generate the target source code packet according to the first source code packet and native source codes which have a dependency relationship with the first source code packet in the target application.
4. The method of claim 1,
transmitting the target source code packet, comprising: and compressing and sending the target source code packet to a shared server, and generating a download link of the target source code packet.
5. The method according to any one of claims 1 to 4,
the download link is displayed by a two-dimensional code image, so that a client can obtain a target source code packet by scanning the two-dimensional code image.
6. A method for developing an application, comprising:
acquiring a target source code packet;
updating the corresponding source code in the target application by using the target source code packet;
and running the target application, and checking a running result corresponding to the target source code packet through a page.
7. The method of claim 6, wherein obtaining the target source code packet comprises:
and downloading and acquiring the target source code packet by scanning the two-dimensional code image corresponding to the download link of the target source code packet.
8. A server for developing an application, comprising: the system comprises a first source code packet generating module, a target source code packet generating module and a target source code packet sending module; wherein the content of the first and second substances,
the first source code packet generating module is used for acquiring a source code of a target application change; generating a first source code packet based on the changed source code and the source code having a dependency relationship with the changed source code; the first source code packet is generated by a Flutter tool;
the target source code generation module is used for generating a target source code packet according to the first source code packet and a native source code which has a dependency relationship with the first source code packet in the target application;
and the target source code packet sending module is used for sending the target source code packet so that the client runs the target application containing the target source code packet.
9. A client for developing an application, comprising: the system comprises a source code packet acquisition module and an application running module; wherein the content of the first and second substances,
the source code packet acquisition module is used for acquiring a target source code packet;
the application running module is used for updating the corresponding source code in the target application by using the target source code packet; and running the target application, and checking a running result corresponding to the target source code packet through a page.
10. A system for developing an application, comprising: a server for developing an application according to claim 8, and a client for developing an application according to claim 9.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202110185198.5A 2021-02-10 2021-02-10 Method, device and system for developing application Pending CN113760323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110185198.5A CN113760323A (en) 2021-02-10 2021-02-10 Method, device and system for developing application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110185198.5A CN113760323A (en) 2021-02-10 2021-02-10 Method, device and system for developing application

Publications (1)

Publication Number Publication Date
CN113760323A true CN113760323A (en) 2021-12-07

Family

ID=78786645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110185198.5A Pending CN113760323A (en) 2021-02-10 2021-02-10 Method, device and system for developing application

Country Status (1)

Country Link
CN (1) CN113760323A (en)

Similar Documents

Publication Publication Date Title
CN111338623B (en) Method, device, medium and electronic equipment for developing user interface
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
CN110389762B (en) Method and device for processing AAR package in Android engineering
CN110554876A (en) Method and device for compiling android project
CN111026439B (en) Application program compatibility method, device, equipment and computer storage medium
CN110960855B (en) Communication protocol code updating method and device, electronic equipment and storage medium
CN110895471A (en) Installation package generation method, device, medium and electronic equipment
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN110888639A (en) Business code compiling and packaging method and device
CN113127361A (en) Application program development method and device, electronic equipment and storage medium
CN112631590A (en) Component library generation method and device, electronic equipment and computer readable medium
CN110928571A (en) Business program development method and device
CN110489162B (en) Method, device, medium and equipment for simplifying installation package SO (storage and retrieval) file
CN113138768B (en) Application package generation method and device, electronic equipment and readable storage medium
CN111338666A (en) Method, device, medium and electronic equipment for realizing application program upgrading
CN112416303B (en) Software development kit hot repair method and device and electronic equipment
CN114443076A (en) Mirror image construction method, device, equipment and storage medium
CN113296828A (en) Method, server and system for issuing application
CN113760736A (en) Test method, device and system
CN112596854A (en) Method and device for continuously integrating running of assembly line
CN109840109B (en) Method and apparatus for generating software development toolkit
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN115952089A (en) Software automation unit testing method and device, server and storage medium
CN113760323A (en) Method, device and system for developing application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination