CN110806870B - 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
CN110806870B
CN110806870B CN201910955912.7A CN201910955912A CN110806870B CN 110806870 B CN110806870 B CN 110806870B CN 201910955912 A CN201910955912 A CN 201910955912A CN 110806870 B CN110806870 B CN 110806870B
Authority
CN
China
Prior art keywords
preview
application
preview mode
shortcut
program code
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.)
Active
Application number
CN201910955912.7A
Other languages
Chinese (zh)
Other versions
CN110806870A (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

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

Abstract

The embodiment of the disclosure provides a shortcut application implementation method; the method comprises the following steps: importing source program codes corresponding to the 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, and compiling the source program code by the server according to the preview mode parameter to obtain a shortcut application of the target application corresponding to the preview mode parameter. The embodiment of the disclosure also provides a shortcut application realization device, electronic equipment and a storage medium.

Description

Shortcut application implementation method and device, electronic equipment, server and storage medium
Technical Field
The disclosure relates to the technical field of electronic technology and shortcut application, in particular to a shortcut application implementation method, a device, electronic equipment, a server and a storage medium.
Background
The applet is a function which can be used on the electronic equipment without downloading and installing, is a new application implementation mode with opening capability, can be arranged in some applications by taking the applet control as an inlet, and can quickly use the quick application corresponding to the target application by clicking the applet control. Wherein the applet is an application or service that has different functionality than some of the applications described above, such as previewing, merchandise purchase, gaming, etc.
At present, development and preview of a shortcut application need to be started by means of a developer tool, a two-dimensional code is generated in a fixed mode, and a user can search the two-dimensional code or search the expression of the shortcut application and use the shortcut application.
However, because the mode of the shortcut application is fixed, the manner in which the shortcut application is previewed on the electronic device is relatively single.
Disclosure of Invention
The embodiment of the disclosure expects to provide a shortcut application implementation method, a shortcut application implementation device, electronic equipment, a server and a storage medium, and can improve the diversity of preview modes of shortcut applications.
The technical scheme of the present disclosure is realized as follows:
in a first aspect, an embodiment of the present disclosure provides a shortcut application implementation method, including:
importing source program codes corresponding to the 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, and obtaining preview mode parameters corresponding to the target application;
the source program code and the preview mode parameter are sent to a server, and 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;
And receiving the shortcut application sent by the server.
In the above solution, 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 for the target application plug-in;
responding to the triggering instruction, and popping up a preview mode control on the current interface;
receiving a starting instruction aiming at the preview mode control;
in response to the starting instruction, 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 scheme, the at least two preview modes include any two of the following: sidebar preview mode, window preview mode, and mobile electronic device preview mode.
In the above solution, the receiving the shortcut application sent by the server includes:
Receiving compiled program codes, identifications of the compiled program codes and compiling time sent by the server; the compiled program code contains program starting parameters; the compiled program code, an identification of the compiled program code, and the compile time constitute the shortcut application.
In the above solution, after receiving the compiled program code sent by the server, the identification of the compiled program code, and the compile time, the method further includes:
generating a shortcut application preview card corresponding to the target application by the compiled program code, the identification of the compiled program code and the compiling time;
and presenting the shortcut application preview card.
In the above scheme, a preview control is set in the shortcut application preview card; after the presenting the shortcut application preview card, the method further comprises:
receiving a preview instruction aiming at the preview control;
and responding to the preview instruction, and adopting a target preview mode corresponding to the preview mode parameter to present a shortcut page corresponding to the target application.
In a second aspect, an embodiment of the present disclosure further provides a shortcut application implementation method, including:
Receiving source program codes and preview mode parameters which are sent by electronic equipment and correspond to target applications;
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 above solution, compiling the source program code according to the preview mode parameter to obtain a 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 codes into program starting parameters to obtain the compiled program codes;
acquiring the identification and the compiling time of compiled program codes;
generating the shortcut application from the compiled program code, the identification of the compiled program code, and the compile time.
In a third aspect, an embodiment of the present disclosure provides a shortcut application implementation apparatus, including:
an importing unit, configured to import source program codes 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, and obtaining 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;
and the first receiving unit is used for receiving the shortcut application sent by the server.
In the above solution, the shortcut application implementing apparatus further includes: a presentation unit;
the first receiving unit is further used for receiving a trigger instruction aiming at the target application plugin;
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 presenting unit is further used for popping up at least two preview options corresponding to the at least two preview modes on the current interface in response to the starting instruction;
The first receiving unit is further configured to receive a selection instruction for the at least two preview options;
the selecting unit is further used for responding to the selecting 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 scheme, the at least two preview modes include any two of the following: sidebar preview mode, window preview mode, and mobile electronic device preview mode.
In the above solution, the first receiving unit is further configured to receive the compiled program code, the identifier of the compiled program code, and the compile time sent by the server; the compiled program code contains program starting parameters; the compiled program code, an identification of the compiled program code, and the compile time constitute the shortcut application.
In the above solution, the shortcut application implementing 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 after receiving the compiled program code, the identifier of the compiled program code, and the compiling time sent by the server;
And the presenting unit is also used for presenting the shortcut application preview card.
In the above scheme, a preview control is set 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 adopting a target preview mode corresponding to the preview mode parameter to present the shortcut page corresponding to the target application.
In a fourth aspect, an embodiment of the present disclosure further provides a shortcut application implementation apparatus, including:
the second receiving unit is used for receiving source program codes and 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 the 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 above solution, the shortcut application implementing apparatus further includes: an adding unit, an acquiring 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 codes into program starting parameters to obtain the compiled program codes;
the acquiring unit is used for acquiring the identification 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, an identifier of the compiled program code, and the compiling time.
In a fifth aspect, embodiments of the present disclosure provide an electronic device, including:
a first memory for storing executable instructions;
and the first processor is used for realizing the shortcut application realization method at the electronic equipment side provided by the embodiment of the disclosure when executing the executable instructions stored in the first memory.
In a sixth aspect, embodiments of the present disclosure provide a server, including:
a second memory for storing executable instructions;
and the second processor is used for realizing the server side shortcut application realization method provided by the embodiment of the disclosure when executing the executable instructions stored in the second memory.
In a seventh aspect, embodiments of the present disclosure provide a storage medium, comprising:
and the executable instructions are stored and are used for realizing the method for realizing the shortcut application on the side of the electronic equipment provided by the embodiment of the disclosure when being executed by the first processor.
In an eighth aspect, embodiments of the present disclosure provide a storage medium, including:
executable instructions are stored, and when the executable instructions are executed by the second processor, the executable instructions are used for implementing the shortcut application implementation method at the server side provided by the embodiment of the disclosure.
The embodiment of the disclosure provides a shortcut application implementation method, a shortcut application implementation device, electronic equipment and a storage medium, wherein a development tool at the electronic equipment side firstly imports source program codes corresponding to target applications; the development tool is provided with a target application plug-in; then, 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; then, a target application plug-in on the electronic equipment sends 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; and finally, receiving the shortcut application sent by the server by the target application on the electronic equipment. 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 codes according to the preview mode parameters obtained in the process, so that the shortcut application in various preview modes can be obtained, and the diversity of the preview modes of the shortcut application is improved.
Drawings
FIG. 1 is a schematic structural diagram of an exemplary electronic device embodying embodiments of the present disclosure;
FIG. 2 is a schematic diagram of an exemplary server implementing an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an alternative architecture of a shortcut application implementing apparatus for implementing an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another alternative architecture of a shortcut application implementing apparatus for implementing an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an alternative flow chart for implementing the shortcut application method in accordance with an embodiment of the present disclosure;
FIG. 6 is a second alternative flow diagram of a method for implementing a shortcut application in accordance with an embodiment of the present disclosure;
FIG. 7 is a schematic flow chart diagram of another alternative method of implementing a shortcut application in accordance with an embodiment of the present disclosure;
FIG. 8 is an alternative interactive flow diagram for implementing a shortcut application method in accordance with an embodiment of the present disclosure;
FIG. 9 is an exemplary diagram of a shortcut application method for implementing an embodiment of the present disclosure;
FIG. 10 is an example process one of implementing a shortcut application method in accordance with an embodiment of the present disclosure;
fig. 11 is an example process two of implementing a shortcut application method in accordance with an 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 have been shown in the accompanying 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 are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present 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. Furthermore, 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 "including" and variations thereof as used herein are intended to be 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. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
In the embodiment of the present disclosure, the electronic device or the server may each include a processing means (e.g., a central processing unit, a graphics processor, etc.), which may perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) or a program loaded from a storage means into a random access Memory (RAM, random Access Memory). In the RAM, various programs and data required for device operation are also stored. The processing device, ROM and RAM are connected to each other via a bus. An Input/Output (I/O) interface is also connected to the bus.
In general, 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, etc.; output devices including, for example, liquid crystal displays (LCDs, liquid Crystal Display), speakers, vibrators, etc.; storage devices including, for example, magnetic tape, hard disk, etc.; a communication device. The communication means may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data.
Referring to fig. 1 and 2, for example, the embodiment of the present disclosure provides an electronic device 100 and a server 200, the electronic device 100 including: first processing device 110, ROM120, RAM130, bus 140, I/O interface 150, first input device 160, first output device 170, first storage device 180, first communication device 190; wherein the first storage device 180 is configured to store executable instructions; the first processing device 110 is configured to implement the shortcut application implementation method on the electronic device side provided by the embodiment of the present disclosure when executing the executable instruction stored in the first memory. The server 200 includes: 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; wherein the second storage 280 is configured to store executable instructions; the second processing device 210 is configured to implement the shortcut application implementation method on the server side provided in the embodiment of the present disclosure when executing the executable instructions stored in the second memory.
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 operate in the same manner as 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 means 210, the ROM220, the RAM230, the bus 240, the I/O interface 250, the second input means 260, the second output means 270, the second storage means 280, the second communication means 290 operate on the same principle as the processing means, the ROM, the RAM, the bus, the I/O interface, the input means, the output means, the storage means and the communication means.
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 mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDA, personal Digital Assistant), tablet computers (PAD), portable multimedia players (PMP, portable Media Player), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital Televisions (TVs), desktop computers, and the like. The electronic device shown in fig. 1 is only one example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
While fig. 1 shows an electronic device 100 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described by the provided flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from 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. The computer readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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, erasable Programmable Read Only Memory), 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, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 electrical wiring, optical fiber cable, radio Frequency (RF), the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device or the server; or may exist alone without being assembled into the electronic device 100 or the server 200.
The computer readable medium carries one or more programs, which when executed by the electronic device 100 or the server 200, cause the electronic device or the server to execute the electronic device-side or server-side shortcut application implementation method provided by the embodiments of the present disclosure.
Exemplary, the embodiment of the present disclosure provides a storage medium storing executable instructions that, when executed by a first processor, are configured 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 in embodiments of the present disclosure may be written in 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 remote computers, the remote computers may be connected to the user computer through any kind of network, including a local area network (LAN, local Area Network)) and a wide area network (WAN, wide Area Network), or may be connected to external computers (e.g., connected through the internet using an internet service provider).
In an embodiment of the present disclosure, a storage medium is provided, where executable instructions are stored, where the executable instructions are used to implement a method for implementing a shortcut application on a server side provided by the embodiment of the present disclosure when executed by a second processor.
The flowcharts 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 involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring 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: a Field programmable gate array (FPGA, field-Programmable Gate Array), an application specific integrated circuit (ASIC, application Specific Integrated Circuit), a special standard product (ASSP, application Specific Standard Parts)), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of the disclosed embodiments, 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. The 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 following provides a shortcut application implementation unit and/or module in the device in combination with an embodiment of the present disclosure. It will be appreciated that the units or modules in the shortcut application implementing apparatus may be implemented in the electronic device shown in fig. 1 or in the server shown in fig. 2 in the form of software (e.g. the computer program stored in the computer software program described above), or may be implemented in the electronic device shown in fig. 1 or in the server shown in fig. 2 in the form of hardware logic components (e.g. FPGs a, ASIC, ASSP, SOC and CPLDs) described above.
Referring to fig. 3, fig. 3 is an optional structural schematic diagram of a shortcut application implementation apparatus 300 provided in an embodiment of the present disclosure, applied to an electronic device, and illustrating the following modules:
an importing unit 301, configured to import source program code corresponding to a target application in a development tool; the development tool is provided with a target application plug-in.
And the selecting unit 302 is configured to select, through the target application plug-in, at least two preview modes of the target application, and obtain preview mode parameters corresponding to the target application.
The first sending unit 303 is 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 the target application corresponding to the preview mode parameter.
And the first receiving unit 304 is configured to receive the shortcut application sent by the server.
In some embodiments of the present disclosure, the shortcut application implementation apparatus further includes: and 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: sidebar preview mode, window preview mode, and 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 compile time sent by the server; the compiled program code contains program starting parameters; the compiled program code, an 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 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 a schematic structural diagram of an optional shortcut application implementation apparatus 400 further provided for implementing an embodiment of the present disclosure, and the following modules are shown when applied to a server:
the second receiving unit 401 is configured to receive source program code and preview mode parameters corresponding to a target application sent by the electronic device.
And the compiling unit 402 is configured to compile the source program code according to the preview mode parameter to obtain a shortcut application of the 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 acquiring 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-compiled program code to a program start parameter, to obtain the compiled program code.
The acquiring unit 405 is configured to acquire 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 compiling time.
It should be noted that the above classification of units does not constitute a limitation on the electronic device itself, for example, some units may be split into two or more sub-units, or some units may be combined into one new unit.
It should also be noted that the names of the above elements do not constitute a limitation on the elements themselves in some cases.
For the same reason, elements and/or modules not described in detail in the electronic device do not represent defaults of corresponding elements and/or modules, and any operations performed by the electronic device or the server may be implemented by corresponding elements and/or modules in the electronic device or the server.
With continued reference to fig. 5, fig. 5 is a schematic flowchart of an alternative implementation of the shortcut application method in an electronic device in accordance with an embodiment of the present disclosure, and the steps shown in fig. 5 are described below.
S101, importing source program codes corresponding to target applications in a development tool; the development tool has a target application plug-in installed thereon.
The electronic equipment imports source program codes corresponding to the target program through a developer tool; wherein the electronic device has a developer tool installed thereon; the developer tool has the target application plug-in installed therein.
The embodiment of the disclosure is applied to electronic equipment, and the electronic equipment can be electronic equipment provided with development tools, such as mobile phones or computers, and the like, and the embodiment of the disclosure is not limited.
The development tool is a special software source program used by a software engineer to build application software for a specific software package, a software framework, a hardware platform, an operating system and the like, and refers to an uncompiled text file written by the software engineer and written according to a certain programming language specification and readable by human beings.
A plug-in is a program written in an application program interface that complies with certain specification, and that can only run under 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 a VSCode, which is a popular open source editor developed by microsoft, and the editor has an extensible interface, through which an electronic device may add a function to the VSCode.
The target application can be an instant messaging application, a film application or an entertainment application and other applications with different functions. In the embodiments of the present disclosure, the target application may be a social application or even a communication application, and the embodiments of the present disclosure are not limited. The target application plugin of the embodiment of the present disclosure is a plugin corresponding to a target application.
S102, selecting at least two preview modes of the target application through the target application plug-in, and obtaining 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 parameter corresponding to the target application, wherein one preview mode corresponds to one preview mode parameter.
It should be noted that, the final obtaining of the preview mode parameter is achieved through the target application plugin, specifically, after receiving the trigger operation on the target application plugin, the preview mode control is presented on the current interface, after receiving the trigger operation of the preview mode control, at least two preview options are presented on the current interface, and when any one of the preview options receives the trigger instruction, the preview mode parameter corresponding to the preview option is generated on the electronic device side.
The at least two preview options in the embodiments of the present disclosure may include a plurality of types, and when three types are specific, may be a window preview option, a sidebar preview option, and a mobile electronic device preview option, and may specifically be a window preview option at the PC end, a sidebar preview option at the PC end, and a preview option at the mobile phone end. In addition, the preview option may be a global preview option or other preview options, which is not particularly limited in this embodiment.
According to the embodiment of the disclosure, at least two preview modes are selected through the target application plug-in, at least two corresponding preview mode parameters are finally obtained, and a basis is provided for presenting different preview modes according to different parameters.
It can be appreciated that the preview mode parameters generated on the electronic device are different, and the preview modes of the shortcut application finally presented are also different, and at least two preview mode parameters correspond to at least two shortcut application previews. Thus improving the diversity of the shortcut application preview modes.
Illustratively, the shortcut application includes an applet.
And S103, the source program code and the preview mode parameter are sent to a server, and the server compiles the source program code according to the preview mode parameter to obtain a 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 further obtains a shortcut application of the target application corresponding to the preview mode parameter on the electronic device side.
The server is a device for providing a computing service. Specifically, the server in the present disclosure is other devices than the present electronic device.
Further, uncompiled source program code cannot be recognized by the target application, and therefore a compiled process is required before the source program code is sent to the target application.
The shortcut application is a function which can be used on the electronic equipment without downloading and installing, is a new application implementation mode with opening capability, and can comprise applications or services with different functions, such as commodity purchase, text browsing, games and the like.
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 compiled program code, time for compiling source code, and identification of compiled program code.
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. The information in the shortcut application can be combined by a target application background on the electronic equipment 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 triggering operation of the preview button on the card message, so that the diversity of the preview modes of the shortcut application is increased; wherein the card message comprises a card message of a 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 are provided:
s1021, receiving a trigger instruction for the target application plug-in.
In an embodiment of the disclosure, a target application plug-in on an electronic device receives a trigger instruction of a user.
Specifically, a plug-in of a target application is installed on the electronic device, the successfully installed plug-in of the target application presents an icon corresponding to the plug-in an active column on the left side of the development tool, and user operation on the plug-in icon is obtained, namely the target application plug-in receives a trigger instruction of the user.
And S1022, responding to the triggering instruction, and popping up a preview mode control on the current interface.
In the embodiment of the disclosure, a target application plugin on the electronic device responds to a trigger instruction of a user, and a preview mode control appears on a current interface.
The trigger instruction may be a click or a slide operation by the user. The embodiments of the present disclosure are not limited.
S1023, receiving a starting instruction for the preview mode control.
In the embodiment of the disclosure, a target application plugin on the electronic device receives a user start instruction of a preview mode control, and the preview mode control can be one icon control overlaid on a target application plugin page.
And S1024, popping up at least two preview options corresponding to the at least two preview modes on the current interface in response to the starting instruction.
In an embodiment of the disclosure, a target application plug-in on an electronic device pops up at least two preview options corresponding to at least two preview modes on a current interface in response to a launch instruction.
It should be noted that, the preview options in the embodiments of the present disclosure may include a plurality of types, and when three types are specific, the preview options may be a window preview option, a sidebar preview option, and a mobile electronic device preview option, and examples may be a window preview option on the PC side, a sidebar preview option on the PC side, and a preview option on the mobile phone side. In addition, the preview option may be a global preview option or other preview options, which is not particularly limited in this embodiment.
S1025, receiving a selection instruction for at least two preview options.
In an embodiment of the disclosure, a target application plug-in on an electronic device receives a selection instruction of a user for at least two preview options.
It should be noted that, at least two preview options in the embodiments 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 mode, and an exemplary mode can be a vertical arrangement mode, 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 at least two preview modes.
In an embodiment of the disclosure, a target application plug-in on an electronic device is responsive to a selection instruction of a user. That is, the electronic device may trigger an operation in response to a user's selection of any of at least two preview modes presented on the current interface.
S1027, acquiring preview mode parameters corresponding to the target preview mode.
In an embodiment of the disclosure, a target application plug-in on an electronic device generates corresponding preview mode parameters in response to a preview mode selected by a user.
It can be appreciated that the preview mode parameters generated on the electronic device are different, and the preview modes of the shortcut application finally presented are also different, and at least two preview mode parameters correspond to at least two shortcut application previews. Thus improving the diversity of the shortcut application preview modes.
In some embodiments of the present disclosure, specific implementations of S103 may include: s1031; after S1031, the shortcut application implementation method provided by the embodiment of the disclosure may further include: S105-S108. The following are provided:
s1031, receiving compiled program codes sent by a server, and identification and compiling time of the compiled program codes; the compiled program code contains program starting parameters; the compiled program code, the identity of the compiled program code, and the compile time constitute a shortcut application.
In an embodiment of the disclosure, a target application on an electronic device receives compiled program code sent by a server, an identification of the compiled program code, and a compile time; it should be noted that the compiled program code includes program start parameters; further, the compiled program code, identification of the compiled program code, and compile time constitute a shortcut application in embodiments of the present disclosure.
The target application in the embodiments of the present disclosure may be a social application or even a communication application
It should be noted that the compiled program code is the program code after the source program code is compiled and the start-up parameters are added. Compilation refers to the process of compiling a source program into a target program, which is to generate the source program code into program code that can be recognized by a target application.
The startup parameters may also be described as startup service parameters. In the embodiment of the present disclosure, the startup parameters are added to the program so that the program can be run in the target application.
S105, the compiled program code, the identification of the compiled program code and the compiling time are used for generating a shortcut application preview card corresponding to the target application.
In the embodiment of the disclosure, a target application background on the electronic device generates a shortcut application preview card corresponding to a target application from compiled program code, identification of the compiled program code and compiling time.
Note that the identification of compiled program code is the 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 target application background on the electronic device assembles the preview card, 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 foregoing shortcut application preview card also 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 above information by browsing the preview card.
S107, receiving a preview instruction for a preview control.
In an embodiment of the disclosure, a target application on an electronic device receives a preview instruction for 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.
S108, responding to the preview instruction, and adopting a target preview mode corresponding to the preview mode parameter to present the shortcut page corresponding to the target application.
In the embodiment of the disclosure, a target application on the electronic device responds to a preview instruction of a user, and a shortcut page corresponding to the target application is presented in a target preview mode corresponding to preview mode parameters.
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 specific detail page of a certain page of the shortcut application.
It can be understood that in the embodiment of the present disclosure, first, a development tool at the electronic device side imports source program code corresponding to a target application; the development tool is provided with a target application plug-in; then, 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; then, a target application plug-in on the electronic equipment sends 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; and finally, receiving the shortcut application sent by the server by the target application on the electronic equipment. 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 codes according to the preview mode parameters obtained in the process, so that the shortcut application in various preview modes can be obtained, and the diversity of the preview modes of the shortcut application is improved.
With continued reference to fig. 7, fig. 7 is a schematic flow chart of an alternative implementation of the shortcut application method in an embodiment of the present disclosure, applied to a server, and the steps shown in fig. 7 are described below.
S201, receiving source program codes and preview mode parameters corresponding to a target application, which are sent by electronic equipment.
In the embodiment of the disclosure, a server receives source program code and preview mode parameters corresponding to a target application sent by an electronic device.
The server is also called a server, and is a device that provides a computing service. Since the server needs to respond to the service request and process it, the server should generally have the ability to afford the service and secure the service. The server includes a processor, a hard disk, a memory, a system bus, and the like, and is similar to a general-purpose computer architecture, but is required to provide highly reliable services, and thus has high demands in terms of processing capacity, stability, reliability, security, scalability, manageability, and the like. The server of the embodiments of the present disclosure is a device other than the current electronic device.
S202, compiling the source program code according to the preview mode parameter to obtain a 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 a shortcut application of the target application corresponding to the preview mode parameter.
The compiling refers to a process of compiling the source program into the target program, and is to generate the source program code into the program code recognizable to the target application. In an exemplary embodiment of the present disclosure, the compiled program code may be specifically recognized by an instant messaging application on an electronic device
S203, sending the shortcut application to the electronic device.
In the embodiment of the disclosure, a server sends a shortcut application to a target application of an 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 the 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 are provided:
s2021, compiling the source program code according to the preview mode parameter to obtain the sub-compiled program code.
In the embodiment of the disclosure, a server compiles source program codes according to preview mode parameters transmitted by a target application plug-in on electronic equipment to obtain sub-compiled program codes.
S2022, adding the sub-compiler code into the program starting parameters to obtain the compiled program code.
In the embodiment of the disclosure, a server adds a program starting parameter to a sub-compiler code to obtain the compiled program code.
It should be noted that the startup parameter may also be described as a startup service parameter. In the disclosed embodiment, the startup parameters are added to the sub-compiler in order to enable the program to run in the target application.
By way of example, the program code is compiled and added with the starting parameters through 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, obtaining the identification of the compiled program code and the compiling time.
In the disclosed embodiment, a server obtains an identification of compiled program code and a compile time.
Note that the identification of compiled program code is the name of the program code. The name is determined by the developer during the program development process.
S2024 constitutes the shortcut application with the compiled program code, the identification of the compiled program code, and the compile time.
In the disclosed embodiments, the server constructs the compiled program code, an identification of the compiled program code, and the compile time into a shortcut application.
It should be noted that, the shortcut application is a kind of functions that can be run on the electronic device and can be used without downloading and installing, is a new application implementation mode with opening capability, and can include applications or services with different functions, such as commodity purchase, text browsing, game, etc.
As shown in fig. 8, an optional interaction flow for implementing the shortcut application method in the embodiment of the disclosure includes:
s301, the electronic equipment imports source program codes corresponding to target applications in a development tool; the development tool has a target application plug-in installed thereon.
S302, the electronic equipment selects at least two preview modes of the target application through the target application plug-in, and obtains preview mode parameters corresponding to the target application.
S303, the electronic device sends the source program code and the preview mode parameters to the server.
And S304, compiling the source program code by the server 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 device.
Exemplary, an embodiment of the present disclosure provides a shortcut application implementation method, including:
the development tool installed on the electronic equipment is a VSCODE, the 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 an instant messaging application, and the open platform background corresponds to the server.
S401, a source program code written by a developer is received by a VSCODE on the electronic equipment; the instant messaging application plug-in is installed on the VSCODE.
It should be noted that the VSCode is an editor and is installed on the 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 adding functions to the VSCode.
S402, the VSCODE receives a trigger instruction for the instant messaging application plug-in.
Referring specifically to fig. 10, the user clicks on the target application plug-in the active column on the left side of the VSCode, i.e., instant messaging application plug-in 1.
S403, the VSCODE responds to the trigger instruction and pops up a preview mode control on the current interface.
After the user clicks the instant messaging application plug-in 1, the VSCode responds to the trigger of the user, and a preview mode control appears on the current page, as shown in fig. 10 by the control 2 with small eyes.
S404, the VSCODE receives a starting instruction for the preview mode control to realize the preview request.
The user clicks the preview mode control, i.e., control 2 with a small eye as in fig. 10, to fulfill the preview request.
S405, the VSCODE responds to the starting instruction, three preview options corresponding to the three preview modes are popped up on the current interface, and the preview mode is selected through the three preview options.
It should be noted that, the three preview options, specifically, three preview options shown below reference number 3 in fig. 10, namely, PC sidebar preview, PC window preview, and handset 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 parameters to the open platform background.
After selecting the PC sidebar preview mode in fig. 9, the instant messaging application plug-in will send a network request to the open platform background during the process of generating the corresponding PC sidebar preview mode parameters. The network request carries source program codes and PC sidebar preview mode parameter information.
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 used to enable the source program code to be identified by the instant messaging application. In addition, the open platform background can add starting parameters which can enable the program code to run into the compiled program code, and obtain the identification and the compiling time of the compiled program code, and it is required to be noted that all the information is contained 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 card information.
S410, the background of the instant messaging application presents the card message to the front end of the instant messaging application.
The instant messaging application background assembles information carried by the shortcut application, including identification of source program codes, compiling time, PC sidebar preview mode parameters and compiled codes into a card message form with a preview control, and sends the card message form to the front end of the instant messaging application.
S411, the instant messaging application front end receives a preview instruction of clicking a preview control in the card message by a user.
As shown in fig. 11, is a presentation page of a card message. On the interface of the instant messaging application and the open platform background interaction, 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, i.e. the open platform background, the instant messaging application is realized by an open platform assistant. The name of the shortcut application, preview mode, compile end time, and preview control 11 are displayed on the card. The user realizes the preview of the shortcut application in PC sidebar mode by clicking the "preview" control 11 in the card message in fig. 11.
In addition, a self-debugging process can be provided in the process of the background communication of the instant messaging application and the open platform. Another card above the preview card message in fig. 11 is a debug card, through which the instant messaging application can view log information in the developer tool, and on which a control capable of being debugged and a control ending the debugging are displayed. The control that can be debugged may be a "confirm" control 12, and the control that ends debugging may be a "end debug" control 13. The user can directly enter the debugged page by clicking the "confirm" control 12; the debug can be exited directly by clicking on the "end debug" control 13, which can also be said to reject the debug request.
And S412, the front end of the instant messaging application responds to the preview instruction, and the pc side bar preview mode is adopted to realize the preview of the instant messaging application shortcut application.
Specifically, as shown in fig. 9, first, a developer uses a VSCode to develop a shortcut application, and the VSCode is installed with an instant communication application plug-in; the VSCODE generates a preview request, selects a preview mode according to the preview request, and 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 the open platform background; compiling by the open platform background aiming at the pc sidebar preview mode, generating instant messaging application shortcut application, and sending the instant messaging application shortcut application to the instant messaging application background; the background of the instant messaging application generates a card message and sends the card message to the front end of the instant messaging application; and the front end click card message of the instant messaging application previews to obtain a pc side bar preview mode, so that the instant messaging application shortcut application previews are realized.
The embodiment of the disclosure provides a shortcut application implementation method, a shortcut application implementation device, electronic equipment and a storage medium, wherein a development tool at the electronic equipment side firstly imports source program codes corresponding to target applications; the development tool is provided with a target application plug-in; then, 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; then, a target application plug-in on the electronic equipment sends 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; and finally, receiving the shortcut application sent by the server by the target application on the electronic equipment. 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 codes according to the preview mode parameters obtained in the process, so that the shortcut application in various preview modes can be obtained, and the diversity of the preview modes of the shortcut application is improved.
The foregoing description is only illustrative of the embodiments of the present disclosure and the technical principles employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although 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. In 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 limiting the scope of the present 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 example forms of implementing the claims.

Claims (16)

1. A shortcut application implementation method, the method comprising:
importing source program codes corresponding to the 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, and obtaining preview mode parameters corresponding to the target application; 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 source program code and the preview mode parameter are sent to a server, and 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;
receiving the shortcut application sent by the server, and displaying the shortcut application by adopting the at least two preview modes; the shortcut application comprises compiled program codes, identification of the compiled program codes and compiling time;
And generating a shortcut application preview card corresponding to the target application and presenting the shortcut application preview card by the compiled program code, the identification of the compiled program code and the compiling time.
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 includes:
receiving a trigger instruction for the target application plug-in;
responding to the triggering instruction, and popping up a preview mode control on the current interface;
receiving a starting instruction aiming at the preview mode control;
in response to the starting instruction, 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 of claim 1, wherein the compiled program code includes program launch parameters.
4. The method of claim 1, wherein a preview control is provided in the shortcut application preview card; after the presenting the shortcut application preview card, the method further comprises:
receiving a preview instruction aiming at the preview control;
and responding to the preview instruction, and adopting a target preview mode corresponding to the preview mode parameter to present a shortcut page corresponding to the target application.
5. A shortcut application implementation method, the method comprising:
receiving source program codes and preview mode parameters which are sent by electronic equipment and correspond to target applications; the at least two preview modes corresponding to the preview mode parameters comprise any two of the following: a sidebar preview mode, a window preview mode, and a mobile electronic device preview mode;
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;
sending the shortcut application to the electronic equipment so that the electronic equipment can display the shortcut application by adopting the at least two preview modes; the shortcut application comprises compiled program codes, identification of the compiled program codes and compiling time; the electronic device is further configured to generate a shortcut application preview card corresponding to the target application and present the shortcut application preview card with the compiled program code, the identification of the compiled program code, and the compiling time.
6. The method according to claim 5, wherein compiling the source program code according to the preview mode parameter to obtain a shortcut application of the 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 codes into program starting parameters to obtain compiled program codes;
acquiring the identification and the compiling time of compiled program codes;
generating the shortcut application from the compiled program code, the identification of the compiled program code, and the compile time.
7. A shortcut application implementing apparatus, comprising:
an importing unit, configured to import source program codes 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, and obtaining preview mode parameters corresponding to the target application; 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 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;
the first receiving unit is used for receiving the shortcut application sent by the server and displaying the shortcut application by adopting the at least two preview modes; the shortcut application comprises compiled program codes, identification of the compiled program codes and compiling time;
the shortcut application implementation device further comprises:
the first generation unit is used for generating the compiled program code, the identification of the compiled program code and the compiling time into a shortcut application preview card corresponding to the target application;
and the presenting unit is used for presenting the shortcut application preview card.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the first receiving unit is further used for receiving a trigger instruction aiming at the target application plugin;
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 presenting unit is further used for popping up at least two preview options corresponding to the at least two preview modes on the current interface in response to the starting instruction;
the first receiving unit is further configured to receive a selection instruction for the at least two preview options;
the selecting unit is further used for responding to the selecting 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.
9. The apparatus according to claim 7, comprising:
the compiled program code includes program start parameters.
10. The apparatus of claim 7, wherein a preview control is provided 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 adopting a target preview mode corresponding to the preview mode parameter to present the shortcut page corresponding to the target application.
11. A shortcut application implementing apparatus, comprising:
the second receiving unit is used for receiving source program codes and preview mode parameters which are sent by the electronic equipment and correspond to the target application; the at least two preview modes corresponding to the preview mode parameters comprise any two of the following: a sidebar preview mode, a window preview mode, and a mobile electronic device preview mode;
the compiling unit is used for compiling the source program code according to the preview mode parameter to obtain a shortcut application of the target application corresponding to the preview mode parameter;
the second sending unit is used for sending the shortcut application to the electronic equipment so that the electronic equipment can display the shortcut application in the at least two preview modes; the shortcut application comprises compiled program codes, identification of the compiled program codes and compiling time; the electronic device is further configured to generate a shortcut application preview card corresponding to the target application and present the shortcut application preview card with the compiled program code, the identification of the compiled program code, and the compiling time.
12. The apparatus of claim 11, wherein the shortcut application implementing means further comprises: an adding unit, an acquiring 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 codes into program starting parameters to obtain compiled program codes;
the acquiring unit is used for acquiring the identification 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, an identifier of the compiled program code, and the compiling time.
13. An electronic device, comprising:
a first memory for storing executable instructions;
a first processor configured to implement the shortcut application implementation method as claimed in any one of claims 1 to 4 when executing the executable instructions stored in the first memory.
14. A server, comprising:
a second memory for storing executable instructions;
a second processor, configured to implement the shortcut application implementation method according to claim 5 or 6 when executing the executable instructions stored in the second memory.
15. A storage medium storing executable instructions which, when executed by a first processor, are adapted to implement the shortcut application implementing method of any one of claims 1 to 4.
16. A storage medium storing executable instructions which, when executed by a second processor, are adapted to implement the shortcut application implementing method as claimed in claim 5 or 6.
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 CN110806870A (en) 2020-02-18
CN110806870B true 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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558202A (en) * 2018-12-14 2019-04-02 平安城市建设科技(深圳)有限公司 Original list development approach, device, equipment and storage medium based on small routine
CN110308917A (en) * 2019-06-26 2019-10-08 深圳前海微众银行股份有限公司 Small routine dissemination method, device, equipment and computer storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7480699B2 (en) * 2004-01-20 2009-01-20 International Business Machines Corporation System and method for replacing an application on a server
US8365153B2 (en) * 2007-10-26 2013-01-29 Qualcomm Incorporated Server-based code compilation
US8677329B2 (en) * 2009-06-03 2014-03-18 Apple Inc. 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
CN107832052B (en) * 2017-10-11 2020-07-31 东软集团股份有限公司 Method and device for displaying preview page, storage medium and electronic equipment
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
CN109814853A (en) * 2019-01-18 2019-05-28 宜创(北京)科技有限公司 Based on visual multi-platform data creation method, device, equipment and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558202A (en) * 2018-12-14 2019-04-02 平安城市建设科技(深圳)有限公司 Original list development approach, device, equipment and storage medium based on small routine
CN110308917A (en) * 2019-06-26 2019-10-08 深圳前海微众银行股份有限公司 Small routine dissemination method, device, equipment and computer storage medium

Also Published As

Publication number Publication date
CN110806870A (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN110046021B (en) Page display method, device, system, equipment and storage medium
CN107943683B (en) Test script generation method and device, electronic equipment and storage medium
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
CN107103211B (en) SDK send, using publication, using operation method and device
CN109753332B (en) Method and device for displaying information
CN110007936B (en) Data processing method and device
US20230350502A1 (en) Information input method, system of cloud input method and client
US20220392130A1 (en) Image special effect processing method and apparatus
KR20140004495A (en) Method for testing application program automatically and an electronic device thereof
CN110619100A (en) Method and apparatus for acquiring data
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
CN111857858A (en) Method and apparatus for processing information
CN111309416B (en) Information display method, device and equipment of application interface and readable medium
CN111581664B (en) Information protection method and device
CN110806870B (en) Shortcut application implementation method and device, electronic equipment, server and storage medium
KR102188685B1 (en) Apparatas and method for generating application packages
CN108600838B (en) Information source switching method and device for Android television, Android television and readable storage medium
CN107341392B (en) file unshelling method and device in Android system
CN113377365B (en) Code display method, apparatus, device, computer readable storage medium and product
EP4130993A1 (en) Special effect processing method and apparatus
CN111309323B (en) Parameter initialization method and device and electronic equipment
CN114489891A (en) Control method, system, device, readable medium and equipment of cloud application program
US20240089560A1 (en) Video generation method, apparatus, electronic device and storage medium
CN115373763B (en) Plug-in loading method and device, electronic equipment and storage medium

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