CN110806870A - Shortcut application implementation method and device, electronic equipment, server and storage medium - Google Patents

Shortcut application implementation method and device, electronic equipment, server and storage medium Download PDF

Info

Publication number
CN110806870A
CN110806870A CN201910955912.7A CN201910955912A CN110806870A CN 110806870 A CN110806870 A CN 110806870A CN 201910955912 A CN201910955912 A CN 201910955912A CN 110806870 A CN110806870 A CN 110806870A
Authority
CN
China
Prior art keywords
preview
program code
application
preview mode
shortcut
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.)
Granted
Application number
CN201910955912.7A
Other languages
Chinese (zh)
Other versions
CN110806870B (en
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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910955912.7A priority Critical patent/CN110806870B/en
Publication of CN110806870A publication Critical patent/CN110806870A/en
Application granted granted Critical
Publication of CN110806870B publication Critical patent/CN110806870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the disclosure provides a method for realizing quick application; the method comprises the following steps: importing a source program code corresponding to a target application in a development tool; a target application plug-in is installed on the development tool; selecting at least two preview modes of the target application through the target application plug-in to obtain preview mode parameters corresponding to the target application; and sending the source program code and the preview mode parameter to a server for the server to compile the source program code according to the preview mode parameter, so as to obtain the shortcut application of the target application corresponding to the preview mode parameter. The embodiment of the disclosure also provides a shortcut application implementation device, electronic equipment and a storage medium.

Description

Shortcut application implementation method and device, electronic equipment, server and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies and shortcut application technologies, and in particular, to a method and an apparatus for implementing a shortcut application, an electronic device, a server, and a storage medium.
Background
The small program is a function which can be used without downloading and installing on the electronic equipment, and is a new application implementation mode with open capability. The small programs are applications or services with different functions from some of the applications, such as previewing, commodity purchasing, games and the like.
At present, the development and preview of the shortcut application need to be sourced by a developer tool, a two-dimensional code is generated in a fixed mode, a user can find the two-dimensional code by scanning the two-dimensional code or searching the expression of the shortcut application, and the shortcut application is used.
However, due to the fixed mode of the shortcut application, the manner of previewing the shortcut application on the electronic device is relatively single.
Disclosure of Invention
The embodiment of the disclosure is expected to provide a method and an apparatus for implementing a shortcut application, an electronic device, a server, and a storage medium, which can improve the diversity of preview modes of the shortcut application.
The technical scheme of the disclosure is realized as follows:
in a first aspect, an embodiment of the present disclosure provides a method for implementing a shortcut application, including:
importing a source program code corresponding to a target application in a development tool; a target application plug-in is installed on the development tool;
selecting at least two preview modes of the target application through the target application plug-in to obtain preview mode parameters corresponding to the target application;
sending the source program code and the preview mode parameter to a server for the server to compile the source program code according to the preview mode parameter to obtain a shortcut application of a target application corresponding to the preview mode parameter;
and receiving the shortcut application sent by the server.
In the above scheme, the selecting, by the target application plug-in, at least two preview modes of the target application to obtain preview mode parameters corresponding to the target application includes:
receiving a trigger instruction aiming at the target application plug-in;
responding to the trigger instruction, and popping up a preview mode control on a current interface;
receiving a starting instruction aiming at the preview mode control;
responding to the starting instruction, and popping up at least two preview options corresponding to the at least two preview modes on the current interface;
receiving selection instructions for the at least two preview options;
responding to the selection instruction, and selecting a target preview mode corresponding to the target application from the at least two preview modes;
and acquiring the preview mode parameters corresponding to the target preview mode.
In the above solution, the at least two preview modes include any two of: a sidebar preview mode, a window preview mode, and a mobile electronic device preview mode.
In the above scheme, the receiving the shortcut application sent by the server includes:
receiving compiled program codes, identifiers of the compiled program codes and compiling time sent by the server; the compiled program code comprises program starting parameters; the compiled program code, the identification of the compiled program code, and the compile time constitute the shortcut application.
In the above solution, after receiving the compiled program code, the identifier of the compiled program code, and the compilation time sent by the server, the method further includes:
generating a shortcut application preview card corresponding to the target application from the compiled program code, the identifier of the compiled program code and the compiling time;
and presenting the shortcut application preview card.
In the scheme, a preview control is arranged in the shortcut application preview card; after the shortcut application preview card is presented, the method further includes:
receiving a preview instruction for the preview control;
and responding to the preview instruction, and presenting a shortcut page corresponding to the target application by adopting a target preview mode corresponding to the preview mode parameter.
In a second aspect, an embodiment of the present disclosure further provides a method for implementing a shortcut application, including:
receiving a source program code and a preview mode parameter which are sent by electronic equipment and correspond to a target application;
compiling the source program code according to the preview mode parameter to obtain a shortcut application of a target application corresponding to the preview mode parameter;
and sending the shortcut application to the electronic equipment.
In the foregoing solution, the compiling the source program code according to the preview mode parameter to obtain the shortcut application of the target application corresponding to the preview mode parameter includes:
compiling the source program code according to the preview mode parameter to obtain a sub-compiled program code;
adding the sub-compiler program code into a program starting parameter to obtain the compiled program code;
acquiring the identifier and the compiling time of a compiled program code;
and generating the shortcut application by the compiled program code, the identifier of the compiled program code and the compiling time.
In a third aspect, an embodiment of the present disclosure provides a shortcut application implementation apparatus, including:
the system comprises an importing unit, a processing unit and a processing unit, wherein the importing unit is used for importing a source program code corresponding to a target application in a development tool; a target application plug-in is installed on the development tool;
the selection unit is used for selecting at least two preview modes of the target application through the target application plug-in to obtain preview mode parameters corresponding to the target application;
the first sending unit is used for sending the source program code and the preview mode parameter to a server, so that the server compiles the source program code according to the preview mode parameter to obtain a shortcut application of a target application corresponding to the preview mode parameter;
a first receiving unit, configured to receive the shortcut application sent by the server.
In the foregoing solution, the shortcut application implementation apparatus further includes: a presentation unit;
the first receiving unit is further configured to receive a trigger instruction for the target application plug-in;
the presentation unit is used for responding to the trigger instruction and popping up a preview mode control on the current interface;
the first receiving unit is further configured to receive a start instruction for the preview mode control;
the presentation unit is further configured to pop up at least two preview options corresponding to the at least two preview modes on the current interface in response to the start instruction;
the first receiving unit is further used for receiving a selection instruction for the at least two preview options;
the selecting unit is further used for responding to the selection instruction and selecting a target preview mode corresponding to the target application from the at least two preview modes; and acquiring the preview mode parameters corresponding to the target preview mode.
In the above solution, the at least two preview modes include any two of: a sidebar preview mode, a window preview mode, and a mobile electronic device preview mode.
In the above scheme, the first receiving unit is further configured to receive a compiled program code, an identifier of the compiled program code, and compilation time sent by the server; the compiled program code comprises program starting parameters; the compiled program code, the identification of the compiled program code, and the compile time constitute the shortcut application.
In the foregoing solution, the shortcut application implementation apparatus further includes: a first generation unit;
the first generating unit is configured to generate a shortcut application preview card corresponding to the target application from the compiled program code, the identifier of the compiled program code, and the compiling time after receiving the compiled program code, the identifier of the compiled program code, and the compiling time sent by the server;
the presenting unit is further configured to present the shortcut application preview card.
In the scheme, a preview control is arranged in the shortcut application preview card;
the first receiving unit is further configured to receive a preview instruction for the preview control after the presenting unit presents the shortcut application preview card;
and the presenting unit is further used for responding to the preview instruction and presenting the shortcut page corresponding to the target application by adopting a target preview mode corresponding to the preview mode parameter.
In a fourth aspect, an embodiment of the present disclosure further provides a device for implementing a shortcut application, including:
the second receiving unit is used for receiving the source program codes and the preview mode parameters which are sent by the electronic equipment and correspond to the target application;
the compiling unit is used for compiling the source program code according to the preview mode parameter to obtain a shortcut application of a target application corresponding to the preview mode parameter;
and the second sending unit is used for sending the shortcut application to the electronic equipment.
In the foregoing solution, the shortcut application implementation apparatus further includes: an adding unit, an obtaining unit and a second generating unit;
the compiling unit is further configured to compile the source program code according to the preview mode parameter to obtain a sub-compiled program code;
the adding unit is used for adding the sub-compiler program code into a program starting parameter to obtain the compiled program code;
the acquiring unit is used for acquiring the identifier and the compiling time of the compiled program code;
the second generating unit is configured to generate the shortcut application from the compiled program code, the identifier of the compiled program code, and the compilation time.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including:
a first memory for storing executable instructions;
and the first processor is used for realizing the shortcut application implementation method on the electronic equipment side provided by the embodiment of the disclosure when the executable instruction stored in the first memory is executed.
In a sixth aspect, an embodiment of the present disclosure provides a server, including:
a second memory for storing executable instructions;
and the second processor is used for realizing the method for realizing the server-side shortcut application provided by the embodiment of the disclosure when the executable instruction stored in the second memory is executed.
In a seventh aspect, an embodiment of the present disclosure provides a storage medium, including:
executable instructions are stored, and when the executable instructions are executed by the first processor, the method for implementing the shortcut application on the electronic device side provided by the embodiment of the disclosure is implemented.
In an eighth aspect, an embodiment of the present disclosure provides a storage medium, including:
and executable instructions are stored, and when the executable instructions are executed by the second processor, the method for implementing the shortcut application on the server side is implemented.
The embodiment of the disclosure provides a method and a device for realizing quick application, electronic equipment and a storage medium, wherein a development tool at the side of the electronic equipment firstly imports a source program code corresponding to a target application; wherein, a target application plug-in is installed on the development tool; selecting at least two preview modes of the target application through a target application plug-in to obtain preview mode parameters corresponding to the target application; then, the target application plug-in on the electronic equipment sends the source program code and the preview mode parameter to the server, so that the server compiles the source program code according to the preview mode parameter to obtain the quick application of the target application corresponding to the preview mode parameter; and finally, the target application on the electronic equipment receives the shortcut application sent by the server. By adopting the technical scheme of the embodiment of the disclosure, the electronic equipment obtains the preview mode parameters through the target application plug-in, and the server compiles the source program code according to the preview mode parameters obtained in the process, so that the quick application under various preview modes can be obtained, and the diversity of the quick application preview modes is improved.
Drawings
FIG. 1 is a schematic structural diagram of an exemplary electronic device implementing an embodiment of the present disclosure;
FIG. 2 is a block diagram of an exemplary server implementing an embodiment of the present disclosure;
FIG. 3 is an alternative schematic diagram of a shortcut application implementation apparatus for implementing the embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another alternative structure of a shortcut application implementation apparatus for implementing the embodiment of the present disclosure;
FIG. 5 is a first flowchart illustrating an alternative method for implementing a shortcut application in an embodiment of the present disclosure;
FIG. 6 is a schematic flow chart diagram II illustrating an alternative method for implementing a shortcut application in an embodiment of the present disclosure;
FIG. 7 is a schematic flow chart diagram illustrating another alternative method for implementing a shortcut application in accordance with an embodiment of the present disclosure;
FIG. 8 is an alternative interaction flow diagram for implementing the shortcut application method of the embodiment of the present disclosure;
FIG. 9 is an exemplary diagram of a shortcut application method that implements an embodiment of the present disclosure;
FIG. 10 is a first example process for implementing a shortcut application method of an embodiment of the present disclosure;
fig. 11 is an example process two of implementing the shortcut application method of the embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
In the embodiments of the present disclosure, each of the electronic devices or the server may include a processing device (e.g., a central processing unit, a graphics processor, etc.), which may perform various suitable actions and processes according to a program stored in a Read-Only Memory (ROM) or a program loaded from a storage device into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An Input/Output (I/O) interface is also connected to the bus.
Generally, the following devices may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data.
Exemplarily, referring to fig. 1 and fig. 2, an embodiment of the present disclosure provides an electronic device 100 and a server 200, where the electronic device 100 includes: a first processing device 110, a ROM120, a RAM130, a bus 140, an I/O interface 150, a first input device 160, a first output device 170, a first storage device 180, a first communication device 190; wherein, the first storage device 180 is used for storing executable instructions; the first processing device 110 is configured to, when executing the executable instruction stored in the first memory, implement the shortcut application implementation method on the electronic device side according to the embodiment of the present disclosure. The server 200 includes: a second processing device 210, a ROM220, a RAM230, a bus 240, an I/O interface 250, a second input device 260, a second output device 270, a second storage device 280, a second communication device 290; wherein, the second storage device 280 is used for storing executable instructions; the second processing device 210 is configured to, when executing the executable instruction stored in the second memory, implement the shortcut application implementation method on the server side provided by the embodiment of the present disclosure.
It should be noted that the operation principle of the first processing device 110, the ROM120, the RAM130, the bus 140, the I/O interface 150, the first input device 160, the first output device 170, the first storage device 180, and the first communication device 190 is the same as the operation principle of the processing device, the ROM, the RAM, the bus, the I/O interface, the input device, the output device, the storage device, and the communication device; the second processing device 210, ROM220, RAM230, bus 240, I/O interface 250, second input device 260, second output device 270, second storage device 280, second communication device 290, and the same principle of operation as the processing device, ROM, RAM, bus, I/O interface, input device, output device, storage device, and communication device.
With continued reference to fig. 1, fig. 1 is a schematic structural diagram of an electronic device 100 implementing an embodiment of the present disclosure. The electronic device may be various terminals including a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a vehicle mounted terminal (e.g., a car navigation terminal), etc., and a fixed terminal such as a digital Television (TV), a desktop computer, etc. The electronic device shown in fig. 1 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
While fig. 1 illustrates an electronic device 100 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, the processes described by the provided flowcharts may be implemented as computer software programs according to embodiments of the present disclosure. For example, the disclosed embodiments 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 may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The functions in the methods of the embodiments of the present disclosure are performed when the computer program is executed by a processing device.
It should be noted that the computer readable medium described above in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may include, 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 RAM, a ROM, an erasable programmable Read-Only Memory (EPROM), a 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 disclosed embodiments, 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 contrast, in the disclosed embodiments, a computer readable signal medium may comprise 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 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 over electrical wiring, fiber optics, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
The computer readable medium may be included in the electronic device or the server; or may exist separately without being assembled into the electronic device 100 or the server 200.
The computer readable medium carries one or more programs, and when the one or more programs are executed by the electronic device 100 or the server 200, the electronic device or the server executes the electronic device side or server side shortcut application implementation method provided by the embodiment of the present disclosure.
Illustratively, the embodiment of the present disclosure provides a storage medium storing executable instructions, and the executable instructions are executed by a first processor to implement the shortcut application implementation method on the electronic device side provided by the embodiment of the present disclosure.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) and a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
In the embodiment of the present disclosure, a storage medium is provided, where executable instructions are stored, and when the executable instructions are executed by a second processor, the storage medium is configured to implement the method for implementing a shortcut application on a server side provided in the embodiment of the present disclosure.
The flowchart and block diagrams provided by the embodiments of the present disclosure illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/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 units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described in the embodiments of the present disclosure may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field-Programmable Gate arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Parts (ASSPs)), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of embodiments of the present disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
The shortcut application provided in connection with the embodiments of the present disclosure implements units and/or modules in the device. It is understood that the units or modules in the shortcut application implementation apparatus can be implemented in the electronic device shown in fig. 1 or in the server shown in fig. 2 by using software (for example, the computer program stored in the computer software program) and can also be implemented in the electronic device shown in fig. 1 or in the server shown in fig. 2 by using the hardware logic components (for example, FPG a, ASIC, ASSP, SOC, and CPLD) described above.
Referring to fig. 3, fig. 3 is an optional schematic structural diagram of an apparatus 300 for implementing a shortcut application provided in an embodiment of the present disclosure, which is applied to an electronic device, and illustrates the following modules:
an importing unit 301, configured to import a source program code corresponding to a target application into a development tool; and the development tool is provided with a target application plug-in.
A selecting unit 302, configured to select at least two preview modes of the target application through the target application plugin, so as to obtain a preview mode parameter corresponding to the target application.
A first sending unit 303, configured to send the source program code and the preview mode parameter to a server, so that the server compiles the source program code according to the preview mode parameter to obtain a shortcut application of a target application corresponding to the preview mode parameter.
A first receiving unit 304, configured to receive the shortcut application sent by the server.
In some embodiments of the present disclosure, the shortcut application implementation apparatus further includes: a presentation unit 305.
The first receiving unit 304 is further configured to receive a trigger instruction for the target application plug-in.
The presenting unit 305 is configured to pop up a preview mode control on the current interface in response to the trigger instruction.
The first receiving unit 304 is further configured to receive an activation instruction for the preview mode control.
The presenting unit 305 is further configured to pop up at least two preview options corresponding to the at least two preview modes on the current interface in response to the start instruction.
The at least two preview modes include any two of: a sidebar preview mode, a window preview mode, and a mobile electronic device preview mode.
The first receiving unit 304 is further configured to receive a selection instruction for the at least two preview options.
The selecting unit 302 is further configured to select, in response to the selection instruction, a target preview mode corresponding to the target application from the at least two preview modes; and acquiring the preview mode parameters corresponding to the target preview mode.
The first receiving unit 304 is further configured to receive the compiled program code, the identifier of the compiled program code, and the compiling time sent by the server; the compiled program code comprises program starting parameters; the compiled program code, the identification of the compiled program code, and the compile time constitute the shortcut application.
In some embodiments of the present disclosure, the shortcut application implementation apparatus further includes: a first generation unit 306.
The first generating unit 306 is configured to generate a shortcut application preview card corresponding to the target application from the compiled program code, the identifier of the compiled program code, and the compiling time after receiving the compiled program code, the identifier of the compiled program code, and the compiling time sent by the server.
The presenting unit 305 is further configured to present the shortcut application preview card.
The first receiving unit 304 is further configured to receive a preview instruction for the preview control after the presenting unit presents the shortcut application preview card.
The presenting unit 305 is further configured to, in response to the preview instruction, present a shortcut page corresponding to the target application in a target preview mode corresponding to the preview mode parameter.
Referring to fig. 4, fig. 4 is an alternative structural schematic diagram of a shortcut application implementation apparatus 400 for implementing further provided in the embodiment of the present disclosure, which is applied in a server, and illustrates the following modules:
a second receiving unit 401, configured to receive the source program code and the preview mode parameter, which correspond to the target application and are sent by the electronic device.
A compiling unit 402, configured to compile the source program code according to the preview mode parameter, to obtain a shortcut application of a target application corresponding to the preview mode parameter.
A second sending unit 403, configured to send the shortcut application to the electronic device.
In some embodiments of the present disclosure, the shortcut application implementation apparatus further includes: an adding unit 404, an obtaining unit 405, and a second generating unit 406.
The compiling unit 402 is further configured to compile the source program code according to the preview mode parameter to obtain a sub-compiled program code.
The adding unit 404 is configured to add the sub-compiler code to a program start parameter to obtain the compiled program code.
The obtaining unit 405 is configured to obtain an identifier of the compiled program code and a compiling time.
The second generating unit 406 is configured to generate the shortcut application from the compiled program code, the identifier of the compiled program code, and the compilation time.
It should be noted that the above-mentioned classification of units does not constitute a limitation of the electronic device itself, for example, some units may be split into two or more sub-units, or some units may be combined into a new unit.
It is also noted that the names of the above-mentioned elements do not in some cases constitute limitations on the elements themselves.
For the same reason, units and/or modules in the electronic device, which are not described in detail, do not represent defaults of the corresponding units and/or modules, and all operations performed by the electronic device or the server may be implemented by the corresponding units and/or modules in the electronic device or the server.
With continuing reference to fig. 5, fig. 5 is an alternative flow chart of the shortcut application method for implementing the embodiment of the present disclosure, which is applied to an electronic device, and the steps shown in fig. 5 are explained below.
S101, importing a source program code corresponding to a target application into a development tool; and the development tool is provided with a target application plug-in.
The electronic equipment imports a source program code corresponding to the target program through a developer tool; wherein the electronic device is provided with a developer tool; the developer tool has a target application plug-in installed therein.
The embodiment of the present disclosure is applied to an electronic device, which may be an electronic device installed with a development tool, such as a mobile phone or a computer, and the embodiment of the present disclosure is not limited.
The development tool is a special software source program used by a software engineer to establish application software for a specific software package, a software framework, a hardware platform, an operating system and the like, and refers to a human-readable text file which is written by a software engineer and is not compiled and is written according to a certain programming language specification.
A plug-in is a program written in an application program interface that complies with a specification, and can only run on a system platform specified by the program (possibly supporting multiple platforms simultaneously), and cannot run separately from a specified platform.
In the embodiment of the disclosure, a target plug-in corresponding to a target application is installed on a development tool installed on an electronic device.
It should be noted that, the developer tool in the embodiment of the present disclosure may be VSCode, which is a popular open source editor developed by microsoft, and the editor has an extensible interface, through which the electronic device may add functions to the VSCode.
The target application can be an instant messaging application, a movie application or an entertainment application and other applications with different functions. In the embodiment of the present disclosure, the target application may be a social application or even a communication application, and the embodiment of the present disclosure is not limited. The target application plug-in of the embodiment of the disclosure is a plug-in corresponding to a target application.
S102, selecting at least two preview modes of the target application through the target application plug-in to obtain preview mode parameters corresponding to the target application.
In the embodiment of the disclosure, the electronic device selects the preview mode through the target application plug-in, and finally obtains the preview mode parameters corresponding to the target application, wherein one preview mode corresponds to one preview mode parameter.
Specifically, after receiving a trigger operation on the target application plug-in, a preview mode control is presented on a current interface, after receiving the trigger operation on the preview mode control, at least two preview options are presented on the current interface, and when any one of the preview options receives a trigger instruction, a preview mode parameter corresponding to the preview option is generated on the electronic device side.
The at least two preview options in the embodiment of the present disclosure may include multiple types, and when the number of the at least two preview options is three, the at least two preview options may be a window preview option, a sidebar preview option, and a mobile electronic device preview option, and specifically, the at least two preview options may be a window preview option at a PC end, a sidebar preview option at a PC end, and a preview option at a mobile phone end. In addition, the preview option may also be a global preview option or other preview options, which is not limited in this embodiment.
According to the method and the device, the target application plug-in selects the at least two preview modes, finally the corresponding at least two preview mode parameters are obtained, and a basis is provided for presenting the different preview modes according to the different parameters subsequently.
It can be understood that the preview mode parameters generated on the electronic device are different, and the preview mode of the shortcut application finally presented is also different, and at least two preview mode parameters correspond to at least two ways of previewing the shortcut application. Therefore, the diversity of the shortcut application preview mode is improved.
Illustratively, the shortcut application includes an applet.
S103, sending the source program code and the preview mode parameter to a server for the server to compile the source program code according to the preview mode parameter, and obtaining the shortcut application of the target application corresponding to the preview mode parameter.
In the embodiment of the disclosure, the electronic device sends the source program code and the preview mode parameter to the server, so that the server compiles the source program code according to the preview mode parameter, and then obtains the shortcut application of the target application corresponding to the preview mode parameter at the electronic device side.
It should be noted that a server is a device that provides computing services. Specifically, the server in the present disclosure is a device other than the present electronic device.
Further, the uncompiled source program code cannot be recognized by the target application, and therefore, a compiling process is required before the source program code is sent to the target application.
The shortcut application is a function which can be used without downloading and installing on the electronic equipment, is a new application implementation mode with open capability, and can comprise applications or services with different functions, such as commodity purchase, character browsing, games and the like.
And S104, receiving the shortcut application sent by the server.
In the embodiment of the disclosure, the electronic device receives the shortcut application sent by the server, and specifically, the target application background on the electronic device receives the shortcut application sent by the server.
The shortcut application includes a compiled program code, a time for compiling the source code, and a compiled program code identifier.
It can be understood that, in the embodiment of the present disclosure, the target application background on the electronic device receives the shortcut application sent by the server, where the shortcut application carries preview mode information itself. The target application background on the electronic equipment can combine information in the shortcut application to generate a corresponding card message with a preview button to be presented on the front end of the electronic equipment, and the shortcut application in at least two preview modes corresponding to at least two preview mode parameters can be presented by acquiring the trigger operation of the preview button on the card message, so that the diversity of the shortcut application preview modes is increased; wherein the card message comprises a card message of the shortcut application.
In some embodiments of the present disclosure, as shown in fig. 6, the implementation process of S102 may include: S1021-S1027. The following were used:
and S1021, receiving a trigger instruction aiming at the target application plug-in.
In the embodiment of the disclosure, the target application plug-in on the electronic equipment receives a trigger instruction of a user.
Specifically, the target application plugin installed on the electronic device presents an icon corresponding to the plugin in an activity bar on the left side of the development tool when the target application plugin installed successfully presents the icon corresponding to the plugin in the activity bar on the left side of the development tool, and obtains the operation of the user on the plugin icon, that is, the target application plugin receives a trigger instruction of the user.
And S1022, responding to the trigger instruction, and popping up a preview mode control on the current interface.
In the embodiment of the disclosure, the target application plug-in on the electronic device responds to the trigger instruction of the user, and a preview mode control appears on the current interface.
The trigger command may be a click or a slide operation by the user. The disclosed embodiments are not limiting.
And S1023, receiving a starting instruction for the preview mode control.
In the embodiment of the disclosure, a target application plug-in on an electronic device receives a user starting instruction for a preview mode control, where the preview mode control may be an icon control overlaid on a page of the target application plug-in.
S1024, responding to the starting instruction, and popping up at least two preview options corresponding to the at least two preview modes on the current interface.
In the embodiment of the disclosure, the target application plug-in on the electronic device responds to the starting instruction, and pops up at least two preview options corresponding to at least two preview modes on the current interface.
It should be noted that the preview options in the embodiments of the present disclosure may include multiple types, and when the three types are specifically three types, the preview options may be a window preview option, a sidebar preview option, and a mobile electronic device preview option, and may exemplarily be a window preview option at a PC end, a sidebar preview option at a PC end, and a preview option at a mobile phone end. In addition, the preview option may also be a global preview option or other preview options, which is not limited in this embodiment.
And S1025, receiving a selection instruction aiming at least two preview options.
In the disclosed embodiment, a target application plug-in on the electronic equipment receives a selection instruction of a user for at least two preview options.
It should be noted that the at least two preview options in the embodiment of the present disclosure may be at least two icon controls overlaid on the current page. The at least two icon controls are presented on the current page in a sequential arrangement manner, which may be a vertical arrangement manner as an example, and the specific order in which the embodiments of the present disclosure are arranged is not particularly limited.
And S1026, responding to the selection instruction, and selecting a target preview mode corresponding to the target application from the at least two preview modes.
In the disclosed embodiments, a target application plug-in on an electronic device is responsive to a selection instruction by a user. That is, the electronic device may respond to a user triggering an operation in any of at least two preview modes presented on the current interface.
S1027, acquiring preview mode parameters corresponding to the target preview mode.
In the embodiment of the disclosure, the target application plug-in on the electronic device responds to the preview mode selected by the user to generate the corresponding preview mode parameter.
It can be understood that the preview mode parameters generated on the electronic device are different, and the preview mode of the shortcut application finally presented is also different, and at least two preview mode parameters correspond to at least two ways of previewing the shortcut application. Therefore, the diversity of the shortcut application preview mode is improved.
In some embodiments of the present disclosure, the specific implementation of S103 may include: s1031; after S1031, the shortcut application implementation method provided in the embodiment of the present disclosure may further include: S105-S108. The following were used:
s1031, receiving the compiled program code sent by the server, the identifier of the compiled program code and the compiling time; the compiled program code comprises program starting parameters; the compiled program code, the identification of the compiled program code, and the compile time constitute a shortcut application.
In the embodiment of the disclosure, a target application on an electronic device receives compiled program codes, identifications of the compiled program codes and compiling time sent by a server; it should be noted that the compiled program code includes program start parameters; further, the compiled program code, the identification of the compiled program code, and the compilation time constitute a shortcut application in the embodiments of the present disclosure.
The target application in the embodiment of the disclosure can be a social application or a communication application
It should be noted that the compiled program code is a program code obtained by compiling the source program code and adding the startup parameter. Compiling refers to a process of compiling a source program into a target program, and is to generate a program code that can be recognized by a target application from a source program code.
The initiation parameters may also be described as initiation service parameters. In the embodiment of the present disclosure, the starting parameter is added to the program so that the program can run in the target application.
And S105, generating a shortcut application preview card corresponding to the target application by using the compiled program code, the identifier of the compiled program code and the compiling time.
In the embodiment of the disclosure, the target application background on the electronic device generates the compiled program code, the identifier of the compiled program code, and the compiling time to generate the shortcut application preview card corresponding to the target application.
Note that the identifier of the compiled program code is a name of the program code. The name is determined by the developer during the program development process.
S106, presenting a shortcut application preview card, wherein a preview control is arranged in the shortcut application preview card.
In the embodiment of the disclosure, after the preview card is assembled in the target application background on the electronic device, the shortcut application preview card is presented at the front end of the target application. The preview card is provided with a clickable preview button.
It should be noted that the shortcut application preview card further displays the compiling time of the program code, the compiled program code identifier, and the preview mode parameter, and the user can intuitively obtain the information by browsing the preview card.
And S107, receiving a preview instruction for the preview control.
In an embodiment of the present disclosure, a target application on an electronic device receives a preview instruction from a user on a preview control.
It should be noted that the preview instruction may be formed by the user by triggering a preview control on the card message.
And S108, responding to the preview instruction, and presenting the shortcut page corresponding to the target application by adopting the target preview mode corresponding to the preview mode parameter.
In the embodiment of the disclosure, the target application on the electronic device responds to the preview instruction of the user, and the shortcut page corresponding to the target application is presented in the target preview mode corresponding to the preview mode parameter.
It should be noted that the shortcut page in the embodiment of the present disclosure may be a main page of the shortcut application or a detail page of a certain page body of the shortcut application.
It can be understood that, in the embodiment of the present disclosure, first, a development tool on the electronic device side imports a source program code corresponding to a target application; wherein, a target application plug-in is installed on the development tool; selecting at least two preview modes of the target application through a target application plug-in to obtain preview mode parameters corresponding to the target application; then, the target application plug-in on the electronic equipment sends the source program code and the preview mode parameter to the server, so that the server compiles the source program code according to the preview mode parameter to obtain the quick application of the target application corresponding to the preview mode parameter; and finally, the target application on the electronic equipment receives the shortcut application sent by the server. By adopting the technical scheme of the embodiment of the disclosure, the electronic equipment obtains the preview mode parameters through the target application plug-in, and the server compiles the source program code according to the preview mode parameters obtained in the process, so that the quick application under various preview modes can be obtained, and the diversity of the quick application preview modes is improved.
With continuing reference to fig. 7, fig. 7 is an alternative flow chart of the shortcut application method for implementing the embodiment of the present disclosure, which is applied in a server, and the steps shown in fig. 7 are explained below.
S201, receiving a source program code and a preview mode parameter which are sent by the electronic equipment and correspond to the target application.
In the embodiment of the disclosure, the server receives the source program code and the preview mode parameter which are sent by the electronic equipment and correspond to the target application.
The server is also called a server, and is a device that provides a computing service. Since the server needs to respond to and process the service request, the server generally has the capability of assuming and securing the service. The server is constructed to include a processor, a hard disk, a memory, a system bus, etc., similar to a general-purpose computer architecture, but requires high processing power, stability, reliability, security, scalability, manageability, etc., due to the need to provide highly reliable services. The server of the disclosed embodiments is a device other than the current electronic device.
S202, compiling the source program code according to the preview mode parameter to obtain the shortcut application of the target application corresponding to the preview mode parameter.
In the embodiment of the disclosure, the server compiles the source program code according to the preview mode parameter to obtain the shortcut application of the target application corresponding to the preview mode parameter.
The compiling refers to a process of compiling a source program into a target program, and is for generating a program code that can be recognized by a target application from the source program code. For example, in the embodiment of the present disclosure, the compiled program code may specifically be recognized by an instant messaging application on the electronic device
S203, sending the shortcut application to the electronic equipment.
In the embodiment of the disclosure, the server sends the shortcut application to the target application of the electronic device.
It should be noted that after the server sends the shortcut application to the target application background on the electronic device, the target application background on the electronic device assembles information carried in the shortcut application into a card message form.
In some embodiments of the present disclosure, the implementation process of S202 may include: S2021-S2024. The following were used:
s2021, compiling the source program code according to the preview mode parameter to obtain a sub-compiler program code.
In the embodiment of the disclosure, the server compiles the source program code according to the preview mode parameter transmitted by the target application plug-in on the electronic device to obtain the sub-compiler program code.
S2022, adding the sub-compiled program code into the program starting parameter to obtain the compiled program code.
In the embodiment of the present disclosure, the server adds a program start parameter to the sub-compiler code to obtain the compiled program code.
It should be noted that the start-up parameter can also be described as a start-up service parameter. In the embodiment of the present disclosure, the starting parameter is added to the sub-compiler program so that the program can run in the target application.
Illustratively, by compiling and adding a starting parameter to the program code by the server, the compiled program code can be identified and run by the instant messaging application, and finally, the preview effect of the shortcut application is displayed at the front end of the instant messaging.
S2023, acquiring the identifier and the compiling time of the compiled program code.
In the disclosed embodiment, the server obtains the identification of the compiled program code and the compilation time.
Note that the identifier of the compiled program code is a name of the program code. The name is determined by the developer during the program development process.
S2024, the compiled program codes, the identifications of the compiled program codes and the compiling time form the shortcut application.
In the embodiment of the disclosure, the server constructs the compiled program code, the identifier of the compiled program code, and the compiling time into the shortcut application.
It should be noted that the shortcut application is a function that can be run on the electronic device and can be used without downloading or installing, and is a new application implementation manner with open capability, and may include applications or services with different functions, such as commodity purchase, character browsing, games, and the like.
As shown in fig. 8, an optional interaction flow for implementing the shortcut application method of the embodiment of the present disclosure includes:
s301, the electronic equipment imports a source program code corresponding to a target application in a development tool; and the development tool is provided with a target application plug-in.
S302, the electronic equipment selects at least two preview modes of the target application through the target application plug-in to obtain preview mode parameters corresponding to the target application.
And S303, the electronic equipment sends the source program code and the preview mode parameter to a server.
S304, the server compiles the source program code according to the preview mode parameter to obtain the shortcut application of the target application corresponding to the preview mode parameter.
S305, the server sends the shortcut application to the electronic equipment.
Illustratively, an embodiment of the present disclosure provides a method for implementing a shortcut application, where the method includes:
the method comprises the steps that a development tool installed on the electronic equipment is VScode, a target application plug-in is an instant messaging application plug-in, the instant messaging application plug-in is installed in the development tool VScode, the target application is instant messaging application, and an open platform background corresponds to the server.
S401, VSCode on the electronic equipment receives a source program code written by a developer; wherein, an instant messaging application plug-in is installed on the VScode.
The VSCode is an editor and is installed on an electronic device. Source program code is some type of text written by a developer. The instant messaging application plug-in is an auxiliary program for increasing functions of the VSCode.
S402, the VScode receives a trigger instruction aiming at the instant messaging application plug-in.
Referring specifically to fig. 10, the user clicks on the target app plug-in the VSCode left activity bar, i.e., the instant messenger app plug-in 1.
And S403, the VScode responds to the trigger instruction and pops up a preview mode control on the current interface.
After the user clicks on the instant messaging application plugin 1, the VSCode responds to the user's trigger, and a preview mode control appears on the current page, as shown in fig. 10 with a small eye 2.
S404, the VScode receives a starting instruction aiming at the preview mode control, and a preview request is realized.
The user clicks on the preview mode control, i.e., the small eye control 2 in fig. 10, to implement the preview request.
S405, responding to the starting instruction by the VScode, popping up three preview options corresponding to the three preview modes on the current interface, and selecting the preview mode through the three preview options.
It should be noted that three preview options are specifically shown as three preview options shown below reference numeral 3 in fig. 10, that is, PC sidebar preview, PC window preview, and cell phone side preview.
S406, the VSCode selects a pc sidebar preview mode corresponding to the instant messaging application from the three preview modes and generates corresponding pc sidebar preview mode parameters.
S407, the VSCode sends the source program code and the pc sidebar preview mode parameter to the open platform background.
After the PC sidebar preview mode in fig. 9 is selected, the instant messaging application plug-in sends a network request to the open platform background in the process of generating the corresponding PC sidebar preview mode parameter. Wherein, the network request carries the source program code and the parameter information of the PC sidebar preview mode.
And S408, compiling the source program code by the open platform background according to the pc sidebar preview mode parameter to obtain the instant messaging application shortcut application of the instant messaging application with the pc sidebar preview mode.
As shown in the compiling process of fig. 9, the open platform background compiles the source program code according to the PC sidebar preview mode parameter, and the compiling process is to make the source program code recognizable by the instant messaging application. In addition, the open platform background adds a start parameter that enables the program code to run into the compiled program code, and obtains the identifier and the compiling time of the compiled program code, it should be noted that all of these information are included in the shortcut application of the instant messaging application.
S409, the open platform background sends the shortcut application of the instant messaging application to the background of the instant messaging application of the electronic equipment in the form of a card message.
And S410, the instant messaging application background presents the card message at the front end of the instant messaging application.
The instant messaging application background assembles information carried by the shortcut application, including identification of a source program code, compiling time, a PC side bar preview mode parameter and a compiled code into a card message form with a preview control, and sends the card message form to the instant messaging application front end.
S411, the front end of the instant messaging application receives a preview instruction of a user clicking a preview control in the card message.
As shown in fig. 11, a presentation page for a card message. On the interface of the interaction between the instant messaging application and the open platform background, a system notification message of the open platform background can be received, and the system notification message is acquired and sent by the open platform background. When the instant messaging application communicates with the server, namely the open platform background, the communication is realized by the open platform assistant. The card displays the name of the shortcut application, the preview mode, the compilation end time, and the preview control 11. The user effects a preview of the shortcut application in PC sidebar mode by clicking on the "preview" control 11 in the card message in fig. 11.
In addition, a self-debugging process can be provided in the process of background communication between the instant messaging application and the open platform. Another card above the preview card message of fig. 11 is a debugging card, through which the instant messaging application can view log information in the developer tool, and controls for debugging and finishing debugging are displayed on the card. Wherein, the control which can be debugged can be a 'confirmation' control 12, and the control which finishes debugging can be an 'end debugging' control 13. The user can directly enter the page of debugging by clicking the 'confirm' control 12; the debugging can be directly quitted by clicking the 'end debugging' control 13, and the debugging request is also rejected.
And S412, the front end of the instant messaging application responds to the preview instruction, and previewing of the instant messaging application shortcut application is realized by adopting a pc sidebar preview mode.
Specifically, as shown in fig. 9, firstly, a developer uses a VSCode to perform rapid application development, and the VSCode is installed with an instant messaging application plug-in; the VSCode generates a preview request, selects a preview mode according to the preview request, at the moment, the preview mode is divided into a pc window preview mode, a mobile phone end preview mode and a pc side bar preview mode, and when the pc side bar preview mode is selected, the pc side bar preview mode is sent to an open platform background; the open platform background compiles the pc sidebar preview mode to generate an instant messaging application shortcut application, and sends the instant messaging application shortcut application to the instant messaging application background; the instant messaging application background generates a card message and sends the card message to the instant messaging application front end; and (4) the front end point of the instant messaging application clicks card message preview to obtain a pc sidebar preview mode, so that the preview of the instant messaging application shortcut application is realized.
The embodiment of the disclosure provides a method and a device for realizing quick application, electronic equipment and a storage medium, wherein a development tool at the side of the electronic equipment firstly imports a source program code corresponding to a target application; wherein, a target application plug-in is installed on the development tool; selecting at least two preview modes of the target application through a target application plug-in to obtain preview mode parameters corresponding to the target application; then, the target application plug-in on the electronic equipment sends the source program code and the preview mode parameter to the server, so that the server compiles the source program code according to the preview mode parameter to obtain the quick application of the target application corresponding to the preview mode parameter; and finally, the target application on the electronic equipment receives the shortcut application sent by the server. By adopting the technical scheme of the embodiment of the disclosure, the electronic equipment obtains the preview mode parameters through the target application plug-in, and the server compiles the source program code according to the preview mode parameters obtained in the process, so that the quick application under various preview modes can be obtained, and the diversity of the quick application preview modes is improved.
The above description is only an example of the present disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (20)

1. A shortcut application implementation method is characterized by comprising the following steps:
importing a source program code corresponding to a target application in a development tool; a target application plug-in is installed on the development tool;
selecting at least two preview modes of the target application through the target application plug-in to obtain preview mode parameters corresponding to the target application;
sending the source program code and the preview mode parameter to a server for the server to compile the source program code according to the preview mode parameter to obtain a shortcut application of a target application corresponding to the preview mode parameter;
and receiving the shortcut application sent by the server.
2. The method according to claim 1, wherein the selecting, by the target application plug-in, at least two preview modes of the target application to obtain preview mode parameters corresponding to the target application comprises:
receiving a trigger instruction aiming at the target application plug-in;
responding to the trigger instruction, and popping up a preview mode control on a current interface;
receiving a starting instruction aiming at the preview mode control;
responding to the starting instruction, and popping up at least two preview options corresponding to the at least two preview modes on the current interface;
receiving selection instructions for the at least two preview options;
responding to the selection instruction, and selecting a target preview mode corresponding to the target application from the at least two preview modes;
and acquiring the preview mode parameters corresponding to the target preview mode.
3. The method according to claim 1 or 2,
the at least two preview modes include any two of: a sidebar preview mode, a window preview mode, and a mobile electronic device preview mode.
4. The method of claim 1, wherein the receiving the shortcut application sent by the server comprises:
receiving compiled program codes, identifiers of the compiled program codes and compiling time sent by the server; the compiled program code comprises program starting parameters; the compiled program code, the identification of the compiled program code, and the compile time constitute the shortcut application.
5. The method of claim 4, wherein after receiving the compiled program code, the identification of the compiled program code, and the compile time sent by the server, the method further comprises:
generating a shortcut application preview card corresponding to the target application from the compiled program code, the identifier of the compiled program code and the compiling time;
and presenting the shortcut application preview card.
6. The method of claim 5, wherein a preview control is disposed in the shortcut application preview card; after the shortcut application preview card is presented, the method further includes:
receiving a preview instruction for the preview control;
and responding to the preview instruction, and presenting a shortcut page corresponding to the target application by adopting a target preview mode corresponding to the preview mode parameter.
7. A shortcut application implementation method is characterized by comprising the following steps:
receiving a source program code and a preview mode parameter which are sent by electronic equipment and correspond to a target application;
compiling the source program code according to the preview mode parameter to obtain a shortcut application of a target application corresponding to the preview mode parameter;
and sending the shortcut application to the electronic equipment.
8. The method of claim 7, wherein compiling the source program code according to the preview mode parameter to obtain a shortcut application of a target application corresponding to the preview mode parameter comprises:
compiling the source program code according to the preview mode parameter to obtain a sub-compiled program code;
adding the sub-compiler program code into a program starting parameter to obtain the compiled program code;
acquiring the identifier and the compiling time of a compiled program code;
and generating the shortcut application by using the compiled program code, the identifier of the compiled program code and the compiling time.
9. A shortcut application implementation apparatus, comprising:
the system comprises an importing unit, a processing unit and a processing unit, wherein the importing unit is used for importing a source program code corresponding to a target application in a development tool; a target application plug-in is installed on the development tool;
the selection unit is used for selecting at least two preview modes of the target application through the target application plug-in to obtain preview mode parameters corresponding to the target application;
the first sending unit is used for sending the source program code and the preview mode parameter to a server, so that the server compiles the source program code according to the preview mode parameter to obtain a shortcut application of a target application corresponding to the preview mode parameter;
a first receiving unit, configured to receive the shortcut application sent by the server.
10. The apparatus of claim 9, wherein the shortcut application implementation means further comprises: a presentation unit;
the first receiving unit is further configured to receive a trigger instruction for the target application plug-in;
the presentation unit is used for responding to the trigger instruction and popping up a preview mode control on the current interface;
the first receiving unit is further configured to receive a start instruction for the preview mode control;
the presentation unit is further configured to pop up at least two preview options corresponding to the at least two preview modes on the current interface in response to the start instruction;
the first receiving unit is further used for receiving a selection instruction for the at least two preview options;
the selecting unit is further used for responding to the selection instruction and selecting a target preview mode corresponding to the target application from the at least two preview modes; and acquiring the preview mode parameters corresponding to the target preview mode.
11. The apparatus of claim 9 or 10,
the at least two preview modes include any two of: a sidebar preview mode, a window preview mode, and a mobile electronic device preview mode.
12. The apparatus of claim 9, comprising:
the first receiving unit is further configured to receive the compiled program code, the identifier of the compiled program code, and the compiling time sent by the server; the compiled program code comprises program starting parameters; the compiled program code, the identification of the compiled program code, and the compile time constitute the shortcut application.
13. The apparatus of claim 12, wherein the shortcut application implementation means further comprises: a first generation unit;
the first generating unit is configured to generate a shortcut application preview card corresponding to the target application from the compiled program code, the identifier of the compiled program code, and the compiling time after receiving the compiled program code, the identifier of the compiled program code, and the compiling time sent by the server;
the presenting unit is further configured to present the shortcut application preview card.
14. The apparatus of claim 13, wherein a preview control is disposed in the shortcut application preview card;
the first receiving unit is further configured to receive a preview instruction for the preview control after the presenting unit presents the shortcut application preview card;
and the presenting unit is further used for responding to the preview instruction and presenting the shortcut page corresponding to the target application by adopting a target preview mode corresponding to the preview mode parameter.
15. A shortcut application implementation apparatus, comprising:
the second receiving unit is used for receiving the source program codes and the preview mode parameters which are sent by the electronic equipment and correspond to the target application;
the compiling unit is used for compiling the source program code according to the preview mode parameter to obtain a shortcut application of a target application corresponding to the preview mode parameter;
and the second sending unit is used for sending the shortcut application to the electronic equipment.
16. The apparatus of claim 15, wherein the shortcut application implementation means further comprises: an adding unit, an obtaining unit and a second generating unit;
the compiling unit is further configured to compile the source program code according to the preview mode parameter to obtain a sub-compiled program code;
the adding unit is used for adding the sub-compiler program code into a program starting parameter to obtain the compiled program code;
the acquiring unit is used for acquiring the identifier and the compiling time of the compiled program code;
the second generating unit is configured to generate the shortcut application from the compiled program code, the identifier of the compiled program code, and the compilation time.
17. An electronic device, comprising:
a first memory for storing executable instructions;
a first processor, configured to execute the executable instructions stored in the first memory to implement the shortcut application implementation method as recited in any one of claims 1 to 6.
18. A server, comprising:
a second memory for storing executable instructions;
a second processor, configured to execute the executable instructions stored in the second memory, to implement the shortcut application implementation method of claim 7 or 8.
19. A storage medium storing executable instructions for implementing the shortcut application implementation method of any one of claims 1 to 6 when executed by a first processor.
20. A storage medium storing executable instructions for implementing the shortcut application implementation method of claim 7 or 8 when executed by a second processor.
CN201910955912.7A 2019-10-09 2019-10-09 Shortcut application implementation method and device, electronic equipment, server and storage medium Active CN110806870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910955912.7A CN110806870B (en) 2019-10-09 2019-10-09 Shortcut application implementation method and device, electronic equipment, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910955912.7A CN110806870B (en) 2019-10-09 2019-10-09 Shortcut application implementation method and device, electronic equipment, server and storage medium

Publications (2)

Publication Number Publication Date
CN110806870A true CN110806870A (en) 2020-02-18
CN110806870B CN110806870B (en) 2023-07-18

Family

ID=69488150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910955912.7A Active CN110806870B (en) 2019-10-09 2019-10-09 Shortcut application implementation method and device, electronic equipment, server and storage medium

Country Status (1)

Country Link
CN (1) CN110806870B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050160419A1 (en) * 2004-01-20 2005-07-21 International Business Machines Corporation System and method for replacing an application on a server
US20090113402A1 (en) * 2007-10-26 2009-04-30 Qualcomm Incorporated Server-based code compilation
US20100313079A1 (en) * 2009-06-03 2010-12-09 Robert Beretta Methods and apparatuses for a compiler server
EP2421235A1 (en) * 2010-08-20 2012-02-22 Research in Motion Limited Method and apparatus for controlling output devices
CN107832052A (en) * 2017-10-11 2018-03-23 东软集团股份有限公司 Show the method, apparatus and storage medium and electronic equipment of preview page
CN109101221A (en) * 2018-07-20 2018-12-28 广东巴拿赫大数据科技有限公司 The front end structure and implementation method of " a key safety " small routine function modoularization based on mobile terminal
CN109388390A (en) * 2018-08-23 2019-02-26 深圳点猫科技有限公司 A kind of small routine preview code generating method, equipment and storage medium
CN109542463A (en) * 2018-10-26 2019-03-29 深圳壹账通智能科技有限公司 Compiling file packet transmission method, device, computer equipment and storage medium
CN109558202A (en) * 2018-12-14 2019-04-02 平安城市建设科技(深圳)有限公司 Original list development approach, device, equipment and storage medium based on small routine
CN109814853A (en) * 2019-01-18 2019-05-28 宜创(北京)科技有限公司 Based on visual multi-platform data creation method, device, equipment and medium
CN110308917A (en) * 2019-06-26 2019-10-08 深圳前海微众银行股份有限公司 Small routine dissemination method, device, equipment and computer storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050160419A1 (en) * 2004-01-20 2005-07-21 International Business Machines Corporation System and method for replacing an application on a server
US20090113402A1 (en) * 2007-10-26 2009-04-30 Qualcomm Incorporated Server-based code compilation
US20100313079A1 (en) * 2009-06-03 2010-12-09 Robert Beretta Methods and apparatuses for a compiler server
EP2421235A1 (en) * 2010-08-20 2012-02-22 Research in Motion Limited Method and apparatus for controlling output devices
CN107832052A (en) * 2017-10-11 2018-03-23 东软集团股份有限公司 Show the method, apparatus and storage medium and electronic equipment of preview page
CN109101221A (en) * 2018-07-20 2018-12-28 广东巴拿赫大数据科技有限公司 The front end structure and implementation method of " a key safety " small routine function modoularization based on mobile terminal
CN109388390A (en) * 2018-08-23 2019-02-26 深圳点猫科技有限公司 A kind of small routine preview code generating method, equipment and storage medium
CN109542463A (en) * 2018-10-26 2019-03-29 深圳壹账通智能科技有限公司 Compiling file packet transmission method, device, computer equipment and storage medium
CN109558202A (en) * 2018-12-14 2019-04-02 平安城市建设科技(深圳)有限公司 Original list development approach, device, equipment and storage medium based on small routine
CN109814853A (en) * 2019-01-18 2019-05-28 宜创(北京)科技有限公司 Based on visual multi-platform data creation method, device, equipment and medium
CN110308917A (en) * 2019-06-26 2019-10-08 深圳前海微众银行股份有限公司 Small routine dissemination method, device, equipment and computer storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"Taro实践-快速开发【知乎】多端应用", pages 1 *
企鹅号-狮子时尚: "重磅!电能可直接打开小程序,微信内测版上线", pages 1 - 2 *
微信团队: "微信开发者工具1.02.1909051RC更新说明", pages 2 *
泡泡: "用vscode开发微信小程序", pages 1 - 2 *

Also Published As

Publication number Publication date
CN110806870B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN110046021B (en) Page display method, device, system, equipment and storage medium
CN109582310B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN110007936B (en) Data processing method and device
CN110658960A (en) Message processing method and device and electronic equipment
US20230350502A1 (en) Information input method, system of cloud input method and client
CN111190657B (en) Activity configuration method and device, readable medium and electronic equipment
CN110879729B (en) Channel configuration method and device for live broadcast room, readable medium and electronic equipment
CN110795353B (en) Quick application debugging method, device, equipment and storage medium
CN111767058A (en) Program compiling method and device, electronic equipment and storage medium
CN114741292A (en) Test script management method and device, electronic equipment and storage medium
CN110618768A (en) Information presentation method and device
CN112925788A (en) Data set management method, system, device, electronic equipment and storage medium
CN111131358B (en) Information acquisition method, device and system, readable storage medium and electronic equipment
CN110806870B (en) Shortcut application implementation method and device, electronic equipment, server and storage medium
US20240177200A1 (en) Business service interaction method and apparatus, device, and storage medium
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN113760727A (en) Interface regression testing method and device
CN112905355A (en) Method, apparatus, and computer storage medium for information processing
CN113704079A (en) Interface testing method and device based on Protobuf
US20240089560A1 (en) Video generation method, apparatus, electronic device and storage medium
CN117667241B (en) Device loading method and device, electronic device and storage medium
US20230244504A1 (en) Method for generating a combined graphical control, device and storage medium
CN111291199B (en) Information query method and device
CN115391057A (en) Request message processing method, device, equipment, server and medium
CN113239300A (en) Data processing method and device and electronic equipment

Legal Events

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