CN114968292A - Program processing method, device and equipment and computer readable storage medium - Google Patents
Program processing method, device and equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN114968292A CN114968292A CN202110208480.0A CN202110208480A CN114968292A CN 114968292 A CN114968292 A CN 114968292A CN 202110208480 A CN202110208480 A CN 202110208480A CN 114968292 A CN114968292 A CN 114968292A
- Authority
- CN
- China
- Prior art keywords
- software development
- development kit
- target
- program
- updated
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a program processing method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: sending a tool package downloading request corresponding to the target software development tool package to a server; receiving a target software development kit and a basic software development kit which are sent by a server; generating a target program based on a locally preset code template, a target software development kit and a basic software development kit, and jumping to a program debugging page corresponding to the target program, wherein the program debugging page comprises a program running control; if a trigger instruction for the program operation control is detected, sending an updating query request to a server; receiving an updated software development kit sent by a server under the condition that the software development kit is updated when the server inquires; and updating the target program based on the updated software development kit to obtain the updated target program, and running the updated target program. The technical scheme provided by the application can at least realize the generation and the update of the target program.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a program processing method, apparatus, device, and computer readable storage medium.
Background
In the related art, the dependency relationship between Software Development Kits (SDKs) is complex, and when a target SDK required by an SDK access party depends on other SDKs, a Software Development platform cannot automatically analyze the dependency relationship of the target SDK, so that an example program of the target SDK cannot be automatically generated, and a developer needs to manually write the example program.
In addition, when it is detected that the SDK called in the example program of the target SDK is updated, the software development platform cannot solve the problem of conflict between the updated SDK and the original SDK, so that the example program of the target SDK cannot be updated.
Disclosure of Invention
The application provides a program processing method, a program processing device, a program processing apparatus and a computer-readable storage medium, which can at least solve the problems that the target program cannot be automatically generated and cannot be updated in the related art.
In one aspect, the present application provides a program processing method, including:
sending a tool package downloading request corresponding to the target software development tool package to a server;
receiving the target software development kit and a basic software development kit sent by the server, wherein the basic software development kit is determined by the server based on preset kit dependency information;
generating a target program based on a locally preset code template, the target software development kit and the basic software development kit, and jumping to a program debugging page corresponding to the target program, wherein the program debugging page comprises a program running control;
if a trigger instruction aiming at the program running control is detected, sending a software package updating query request to a server;
receiving an updated software development kit sent by the server under the condition that the update information corresponding to the target software development tool indicates that the update exists;
and updating the target program based on the updated software development kit to obtain an updated target program, and operating the updated target program.
In another aspect, the present application also provides another program processing method, including:
receiving a tool package downloading request corresponding to a target software development package sent by a client, determining a basic software development tool package depended by the target software development tool package based on a preset tool package dependency relationship, and sending the target software development tool package and the basic software development tool to the client;
receiving a software package updating query request sent by a client under the condition that a triggering instruction for a program running control is detected, and determining updating information corresponding to the target software development tool;
and under the condition that the update information corresponding to the target software development tool indicates that the update exists, sending an updated software development tool package to the client.
In yet another aspect, the present application further provides a program processing apparatus, including:
the first sending module is used for sending a tool package downloading request corresponding to the target software development tool package to the server;
the first receiving module is used for receiving the target software development kit and a basic software development kit which are sent by the server, wherein the basic software development kit is determined by the server based on preset kit dependency information;
the generating module is used for generating a target program based on a locally preset code template, the target software development kit and the basic software development kit, and jumping to a program debugging page corresponding to the target program, wherein the program debugging page comprises a program running control;
the second sending module is used for sending a software package updating query request to the server side if a triggering instruction aiming at the program running control is detected;
the second receiving module is used for receiving an updated software development kit sent by the server under the condition that the update information corresponding to the target software development kit indicates that update exists;
and the updating module is used for updating the target program based on the updated software development kit to obtain an updated target program and operating the updated target program.
In yet another aspect, the present application also provides a program processing apparatus, the apparatus including:
the first receiving module is used for receiving a tool package downloading request corresponding to a target software development kit sent by a client, determining a basic software development kit depended by the target software development kit based on a preset tool package dependency relationship, and sending the target software development kit and the basic software development kit to the client;
the second receiving module is used for receiving a software package updating query request sent by the client under the condition that a triggering instruction for the program running control is detected, and determining the updating information corresponding to the target software development tool;
and the sending module is used for sending the updated software development kit to the client under the condition that the update information corresponding to the target software development kit indicates that the update exists.
In yet another aspect, the present application further provides a program processing device, which includes a processor and a memory, where at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the program processing method as described above.
In yet another aspect, the present application further provides a computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the program processing method as described above.
The program processing method, the device, the equipment and the computer readable storage medium have the following technical effects:
according to the method and the device, the target program is generated based on the locally preset code template, the target software development kit and the basic software development kit, and the target program can be automatically generated.
The target program is updated based on the updated software development kit, the updated target program is obtained, and the updated target program is operated, so that the automatic updating of the target program can be realized.
Drawings
In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of a program processing system according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating a program processing method according to an embodiment of the present disclosure;
FIG. 3 is a diagram illustrating a display of a target page according to an embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a method for generating an object program according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating another method for generating an object program according to an embodiment of the present application;
fig. 6 is a flowchart illustrating an update method of a target program according to an embodiment of the present application;
FIG. 7 is a flowchart illustrating another method for updating an object program according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating a method for updating an object program according to an embodiment of the present application;
FIG. 9 is a diagram illustrating an initial page according to an embodiment of the present disclosure;
FIG. 10 is a flow chart illustrating another exemplary method of processing programs provided in embodiments of the present application;
FIG. 11 is a flowchart illustrating a further method of processing a program according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a program processing apparatus provided in the present application;
FIG. 13 is a schematic diagram of another program processing device provided in the present application;
FIG. 14 is a schematic diagram of another program processing device provided in the present application;
fig. 15 is a block diagram of a hardware configuration of a server according to a program processing method provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The following describes the procedural methods provided herein, and the present specification provides the method steps as described in the examples or flowcharts, but may include more or fewer steps based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In actual system or server product execution, sequential execution or parallel execution (e.g., parallel processor or multithreaded processing environments) may occur according to the embodiments or methods shown in the figures.
Referring to fig. 1, fig. 1 is a schematic diagram of a program processing system according to an embodiment of the present disclosure, and as shown in fig. 1, the system may include a client 01 and a server 02. In this embodiment, the client 01 may be configured to provide a program processing service to a user. Optionally, the client 01 may include a smart phone, a desktop computer, a tablet computer, a notebook computer, a smart speaker, a digital assistant, an Augmented Reality (AR)/Virtual Reality (VR) device, a smart wearable device, and other types of entity devices. Software running on the physical device, such as an application, a website, etc., may also be included.
In this embodiment, the server 02 may be configured to receive a toolkit download request and an update query request sent by the client 01, provide a software development toolkit required for program processing to the client 01 based on the toolkit download request, and provide an update software development toolkit required for program processing to the client 01 based on the update query request. Optionally, the service end 02 may be an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content delivery network), a big data and artificial intelligence platform, and the like.
The client 01 and the server 02 may be directly or indirectly connected through a wired or wireless communication manner, and the present application is not limited herein. In addition, it should be noted that the system architecture corresponding to fig. 1 is only an architecture of a data query system provided by the embodiment of the present specification, and in practical applications, other system architectures may also be included. For example, the program processing may be implemented on the server side.
In a specific embodiment, as shown in fig. 2, the present application provides a program processing method applied to a program processing system, where the program processing system includes a server and a client; the method comprises the following steps:
s201: and the client sends a tool package downloading request corresponding to the target software development tool package to the server.
In an embodiment of the present disclosure, the program processing system may be a software development platform, and in a specific embodiment, the software development platform may be used for mobile financial-related software development, and accordingly, the software development platform may be a mobile financial development platform.
In a specific embodiment, the client may be a client of a software development platform, and the server may be a server of the software development platform.
The client can be used for providing a visualized software development interface for a user of the software development platform.
The server can be used for providing software development tools and software development resources required in the software development process for users of the software development platform.
The software development tool may include code resources such as a software development kit and a software development function library, and the software development resources may include media resources such as picture resources, video resources, and audio resources.
The software development kit is a packaged program package which is preset in the server and can realize certain functions.
In practical application, a user can save a great deal of energy and time by using at least one software development kit provided by a server in the process of software development at a client. In order to facilitate a user to quickly master the skills of using the at least one software development kit, the software development platform may provide the user with an example program of the at least one software development kit.
It is understood that the client used by the user is an access party of the software development kit, and the server is a provider of the software development kit.
It is to be understood that the target program referred to in the embodiments of the present specification is an example program of a target software development kit.
In this embodiment of the present specification, the target software development kit may be a software development kit that a user needs to use; the tool package downloading request corresponding to the target software development tool package may include identification information of the target software development tool package, and is used to request downloading of the target software development tool package and a basic software development tool package on which the target software development tool package depends.
Specifically, the identification information of the software development kit may include, but is not limited to, the name, unique identification, and version number of the software development kit.
In this embodiment, the client sends the download request information to the server, so as to request the server to download the target software development kit and the basic software development kit that the target software development kit depends on, and provide data support for generating the target program.
In an alternative embodiment, in order to determine the target software development kit, the method further comprises:
the method comprises the steps that a client displays a target page, wherein the target page comprises at least one selection control of a software development toolkit;
if the client detects a selection instruction for the at least one selection control, determining a target software development kit corresponding to the selection instruction;
correspondingly, the step of sending a tool package downloading request corresponding to the target software development tool package to the server by the client comprises the following steps:
and if the client detects a trigger instruction of a confirmation control aiming at the target page, sending a tool package downloading request to a server, wherein the tool package downloading request comprises the identification information of the target software development tool package.
In an embodiment of the present specification, the target page is a page of a target software development kit selected by a user.
In the embodiment of the present specification, a correspondence between the at least one software development kit and the at least one selection control is preset, so as to obtain the selection control of the at least one software development kit. The selection control can be a radio box, a check box or a color-changeable rectangular box for displaying the identification information of the corresponding software development kit. Wherein, the color-changeable rectangle frame has different background colors in the selected state and the unselected state.
In this embodiment of the present specification, at least one software development kit (target software development kit) for which the selection instruction is directed may be determined according to a correspondence relationship between the at least one software development kit and the at least one selection control.
As shown in FIG. 3, the destination page displays two types of software development kits, one for client performance analysis (identified as QAPM) and the other for intelligent delivery (identified as xxICDP). The selection controls corresponding to the two software development kits are color-changeable rectangular frames, and identification information and introduction of the color-changeable rectangular frames are respectively displayed on the color-changeable rectangular frames.
As shown in FIG. 3, the target page also includes a confirmation control identified as "Next", a cancellation control identified as "previous", and a cancellation control identified as "Cancel".
And if the client detects a trigger instruction aiming at the confirmation control marked as the 'next' step, sending a tool package downloading request to the server.
And if the client detects a trigger instruction aiming at the cancel control marked as the last step, jumping from the target page to an initial page, wherein the initial page is a setting page of the configuration information of the target program.
If the client detects a trigger instruction for the cancel control identified as "cancel", the slave client closes the client interface.
In the embodiment of the specification, the client provides the target page for the user, so that the client can conveniently detect the selection instruction and the confirmation instruction triggered by the user on the target page and determine the target software development kit.
S203: and the server determines a basic software development kit on which the target software development kit depends on the basis of a preset kit dependency relationship.
S205: and the server side sends the target software development kit and the basic software development kit to the client side.
In the embodiment of the specification, the dependency relationship of at least one software development kit is set in advance at the server.
In this embodiment, the basic software development tools on which the target software development kit depends include a directly dependent basic software development kit and an indirectly dependent basic software development kit.
Wherein, the directly dependent basic software development kit is the basic software development kit directly required by the target software development kit; the indirectly dependent basic software development kit is a basic software development kit which is depended by the target software development kit and is other than the directly dependent basic software development kit.
Taking the target software development kit as the software development kit for identifying the bank card as an example, the basic software development kit on which the target software development kit directly depends is the software development kit for turning on the flashlight, and the basic software development kit on which the software development kit for turning on the flashlight directly depends is the software development kit for scanning (i.e. the basic software development kit on which the software development kit for identifying the bank card indirectly depends).
In practical application, the dependency relationship of the toolkit is often more complicated in combination with a specific software development service of a software development application platform. For example, mobile financial software development often requires a software development kit for hot fix, a software development kit for location service, a software development kit for message push, a software development kit for unified storage, a software development kit for mobile monitoring, a software development kit for mobile gateway, and the like, and the dependency relationship between the software development kits is complex.
In a specific embodiment, in order to adapt to a situation of a software development kit with a complex dependency relationship, the determining, based on a preset dependency relationship of the kit, a base software development kit on which the target software development kit depends includes:
acquiring a preset tool kit dependency relationship;
and determining the dependency information of the target software development kit from the preset kit dependency relationship according to the identification information of the target software development kit carried by the kit downloading request.
And determining the basic software development kit which the target software development kit depends on according to the dependency information of the target software development kit.
In this embodiment, the kit dependency relationship may characterize dependency information of each software development kit on at least one other software development kit in a plurality of software development kits.
In the embodiment of the description, the tool package dependency relationship is preset on the server in advance, so that the server can determine the basic development tool package depended by the target software development tool package according to the preset tool package dependency relationship under the condition that the client requests to download the tool package, and the processing time of the server is saved.
In an optional embodiment, the dependency relationship of the target software development kit may also be preset in a kit directory of the target software development kit, the server receives a kit download request sent by the client, queries the kit directory of the target software development kit, may obtain the dependency relationship of the target software development kit, may further determine a basic software development kit on which the target software development kit depends, and sends the target software development kit and the basic software development kit to the client.
S207: and the client generates a target program based on a locally preset code template, the target software development kit and the basic software development kit, and jumps to a program debugging page corresponding to the target program, wherein the program debugging page comprises a program running control.
In the embodiment of the present specification, a code template preset in a local database of a client calls a target software development kit and a basic software development kit through the locally preset code template to generate a target program.
In this embodiment, the target software development kit may include at least two first call objects, and the base software development kit may include at least two second call objects.
Specifically, the at least two first call objects are at least two interfaces of the target software development kit, which may include but are not limited to an initialization interface and a functional interface. The initialization interface of the target software development kit is used for initializing the target software development kit, and the functional interface of the target software development kit is used for calling the functions of the target software development kit.
In an optional embodiment, the at least two interfaces of the target software development kit may further include a callback interface, configured to return an execution result obtained by calling the target software development kit to a main function of the locally preset code template.
Specifically, the at least two second call objects are at least two interfaces of the basic software development kit, which may include but are not limited to an initialization interface and a functional interface. The initialization interface of the basic software development kit is used for initializing the basic software development kit, and the functional interface of the basic software development kit is used for calling the functions of the basic software development kit.
In an optional embodiment, the at least two interfaces of the basic software development kit further include a callback interface, which is configured to return an execution result obtained by calling the basic software development kit to a main function of the locally preset code template.
In a specific embodiment, as shown in fig. 4, the generating the target program based on the locally preset code template, the target software development kit and the basic software development kit includes:
s401: and extracting at least two first calling objects in the target software development kit.
S403: and extracting at least two second calling objects in the basic software development kit.
S405: and generating a target program based on the locally preset code template, the at least two first calling objects and the at least two second calling objects.
In this embodiment of the present specification, the at least two first invocation objects are located in the configuration file of the target software development kit, and the at least two first invocation objects may be obtained by scanning the configuration file of the target software development kit.
In this embodiment of the present specification, the at least two second invocation objects are located in the configuration file of the basic software development kit, and the at least two second invocation objects may be obtained by scanning the configuration file of the basic software development kit.
In the embodiment of the specification, at least two first call objects and at least two second call objects are called through a locally preset code template, so that the target software development kit and the basic software development kit are called through the locally preset code template.
In an optional embodiment, as shown in fig. 5, the generating the target program based on the locally preset code template, the at least two first call objects, and the at least two second call objects includes:
s501: and acquiring first form parameters arranged in sequence in the code template.
In this embodiment of the present specification, the first form parameter may be a form parameter of at least two first call functions in a code template, where the at least two first call functions are arranged in sequence.
S503: and scanning the configuration file of the target software development kit, and determining the calling sequence information between the at least two first calling objects.
In an embodiment of this specification, the configuration file of the target software development kit is a code source file of the target software development kit, and is used to configure at least two first call objects and parameters and method functions in each first call object.
S505: marking the at least two first calling objects based on the calling sequence information between the at least two first calling objects and the first form parameters to obtain first marking information, wherein the first marking information represents the corresponding relation between the at least two first calling objects and the first form parameters.
In this embodiment of the present specification, the calling order information between the at least two first call objects represents a calling order of the at least two first call objects, and the calling order of the at least two first call objects is consistent with the arrangement order of the first form parameters.
In this embodiment of the present specification, by establishing a corresponding relationship between at least two first call objects and the first-form parameters, the at least two first call functions can call the at least two first-form parameters, so as to realize that the at least two first call functions call the at least two first call objects.
S507: and acquiring second form parameters arranged in sequence in the code template.
In this embodiment, the second form parameter may be a form parameter of at least two second calling functions in the code template, and the at least two second calling functions are arranged in sequence.
S509: and scanning the configuration file of the basic software development kit, and determining the calling sequence information between the at least two second calling objects.
In an embodiment of this specification, the configuration file of the basic software development kit is a code source file of the basic software development kit, and is used to configure at least two second call objects and parameters and method functions in each second call object.
S511: marking the at least two second calling objects based on the calling sequence information between the at least two second calling objects and the second form parameter to obtain second marking information, wherein the second marking information represents the corresponding relation between the at least two second calling objects and the second form parameter.
In this embodiment of the present specification, the calling order information between the at least two second calling objects represents a calling order of the at least two second calling objects, and the calling order of the at least two second calling objects is consistent with the arrangement order of the second form parameters.
In this embodiment of the present specification, by establishing a corresponding relationship between at least two second call objects and the second form parameter, the at least two second call functions may call the at least two second form parameters, so as to realize that the at least two second call functions call the at least two second call objects.
S513: and generating a target program according to the locally preset code template, the first marking information and the second marking information.
In this embodiment of the present specification, by establishing a corresponding relationship between at least two first call objects and the first form parameter and a corresponding relationship between at least two second call objects and the second form parameter, it is possible to implement calling of at least two first call functions to at least two first call objects and calling of at least two second call functions to at least two second call objects in a code template, so as to generate a target program.
The method for generating the target program provided by the embodiment of the specification is simple and easy to implement, and is beneficial to quickly and accurately generating the target program.
In some embodiments, the obtaining of the at least one resource in the resource files of the target software development kit and the at least one resource in the resource files of the base software development kit comprises:
the client scans the resource file of the target software development kit to obtain at least one first resource identifier;
the client scans the resource file of the basic software development kit to obtain at least one second resource identifier;
a client sends a resource downloading request to a server, wherein the resource downloading request carries at least one first resource identifier and at least one second resource identifier;
the server side sends a first resource matched with at least one resource identifier and a second resource matched with at least one second resource identifier to the client side;
the client receives at least one first resource and at least one second resource sent by the server, and stores the at least one first resource and the at least one second resource in a resource file of the target software development kit and a resource file of the basic software development kit respectively according to the matching relation between the at least one first resource and the at least one first resource identifier and the matching relation between the at least one second resource and the at least one second resource identifier;
correspondingly, the generating the target program based on the locally preset code template, the at least two first call objects, and the at least two second call objects further includes:
and generating a target program based on the locally preset code template, the at least two first call objects, the at least two second call objects, the at least one first resource and the at least one second resource.
In this embodiment, the resource types of the at least one first resource and the at least one second resource may include, but are not limited to, a picture resource, a video resource, and an audio resource.
In the embodiment of the present specification, the at least two first invocation objects and the at least two second invocation objects are invoked through the locally preset code target, so that at least one first resource and at least one second resource can be loaded, the visualization of the target program is realized, and the presentation form of the target program is enriched.
In some embodiments, before the generating the target program based on the locally preset code template, the target software development kit and the base software development kit, the method further includes:
a client displays a downloading progress display page, wherein the downloading progress display page comprises the target software development kit and downloading progress information corresponding to the basic software development kit;
correspondingly, the generating the target program based on the locally preset code template, the target software development kit and the basic software development kit includes:
and under the condition that the downloading progress information indicates that the software package is completely downloaded, generating a target program based on a locally preset code template, the target software development kit and the basic software development kit.
In an embodiment of the present specification, the download progress display page may include a progress display control, and the progress display control may be a progress bar, and is used to display the download progress of the target software development kit and the basic software development kit.
S209: and if the client detects the trigger instruction aiming at the program running control, sending a software package updating query request to the server.
In an embodiment of the present specification, the update query request is used to request to query update information corresponding to a target software development kit, where the update information carries identification information of the target software development kit.
S211: and the server determines the updating information corresponding to the target software development tool.
S213: and the server determines the updated software development kit corresponding to the update information under the condition that the update information indicates that the update exists.
S215: and the server side sends the updated software development kit to the client side.
In embodiments of the present description, the update software development kit may include a target software development kit and/or a base software development kit.
S217: and the client updates the target program based on the updated software development kit and runs the updated target program.
In an alternative embodiment, as shown in fig. 6, the updating the object program based on the updated software development kit to obtain an updated object program includes:
s601: and acquiring the configuration file of the updated software development kit.
S603: and if the updated software development kit is an updated target software development kit, acquiring a configuration file of the target software development kit.
S605: and covering the configuration file of the target software development kit based on the configuration file of the updated software development kit to obtain the updated target software development kit.
In this embodiment of the present specification, the configuration file of the target software development kit may be covered by merging the configuration file of the updated software development kit with the configuration file of the target software development kit.
And if the client detects that the configuration file of the target software development kit conflicts with the configuration file of the updated software development kit in the merging process, determining a conflict object in the configuration file of the target software development kit, and deleting the conflict object. Specifically, the conflict object is an interface where a conflict occurs.
And if the client detects that the configuration file of the target software development kit is repeated with the configuration file of the updated software development kit in the merging process, determining a repeated object in the configuration file of the target software development kit, and deleting the repeated object. Specifically, the repetitive object is a repetitive interface.
S607: and scanning the configuration file of the updated target software development kit, and determining the calling sequence information between at least two fourth calling objects in the updated target software development kit.
S609: marking the at least two fourth calling objects based on the calling sequence information between the at least two fourth calling objects and the first form parameter to obtain third marking information, wherein the third marking information represents the corresponding relation between the at least two fourth calling objects and the first form parameter.
S611: and obtaining an updated target program according to the locally preset code template, the third marking information and the second marking information.
Specifically, the implementation principle of S607 to S611 is similar to that of S503, S505, and S513, and is not described herein again.
In an alternative embodiment, as shown in fig. 7, an updated target program may be generated based on a locally preset code template, an updated software development kit, a target software development kit and a basic development kit; correspondingly, the updating the target program based on the updated software development kit to obtain the updated target program includes:
s701: acquiring a configuration file of the updated software development kit;
s703: if the updated software development kit is the updated basic software development kit, acquiring a configuration file of the basic software development kit;
s705: covering the configuration file of the basic software development kit based on the configuration file of the updated software development kit to obtain an updated basic software development kit;
s707: scanning the configuration file of the updated basic software development kit, and determining the calling sequence information between at least two fifth calling objects in the updated basic software development kit;
s709: marking the at least two fifth calling objects based on the calling sequence information between the at least two fifth calling objects and the second form parameter to obtain fourth marking information, wherein the fourth marking information represents the corresponding relation between the at least two fifth calling objects and the second form parameter;
s711: and obtaining an updated target program according to the locally preset code template, the first marking information and the fourth marking information.
Specifically, the implementation principle of the above-mentioned S701 to S711 is similar to the implementation principle of the above-mentioned S601 to S611, and is not described herein again.
In this embodiment of the present specification, when the updated software development kit is the updated target software development kit, the configuration file of the updated software development kit is covered with the configuration file of the target software development kit, and the conflict interface and the duplicate interface in the covered new configuration file are deleted to obtain at least two fourth call objects in the new configuration file, and the at least two fourth call objects and the at least two second call objects are called by a code template to obtain the updated target program.
In this embodiment of the present specification, when the updated software development kit is the updated basic software development kit, the configuration file of the updated software development kit is covered with the configuration file of the basic software development kit, and the conflict interface and the repeat interface in the covered new configuration file are deleted to obtain at least two fifth call objects in the new configuration file, and the at least two fifth call objects and the at least two first call objects are called by a code template to obtain the updated target program.
The updating scheme of the target program is suitable for the situation that the updating change of the updating software development kit is complex, the complexity can be reduced, the updating efficiency of the target program is improved, the updating accuracy is ensured, and the updated target program which can run is obtained.
In an optional embodiment, the target program may be updated by updating the program information of the target program; correspondingly, as shown in fig. 8, the updating the object program based on the updated software development kit to obtain an updated object program includes:
s801: extracting at least two third calling objects of the updated software development kit;
s803: and updating the target program according to the at least two third calling objects to obtain the updated target program.
In the embodiment of the present specification, how to update the program information of the target program is determined based on at least two third call objects. Specifically, the modification of the program information may be implemented by a hook function.
In an optional embodiment, in a case where at least one of the first invocation object or the at least one of the second invocation object conflicts with at least one of the third invocation object, the updating the target program according to the at least two third invocation objects includes:
determining a conflict object which conflicts with the at least two third call objects from the at least two first call objects and the at least two second call objects;
and updating program information corresponding to the conflict object in the target program based on the at least two third calling objects.
In this embodiment of the present specification, if it is detected that a first call object which has the same identifier as at least two third call objects and has a different internal method function exists in at least two first call objects, it is determined that the first call object is a conflict object.
In this embodiment of the present specification, the program information corresponding to the conflict object may be a code segment that facilitates the target program to call the conflict object. The updating of the target program can be realized by updating the code segment of the call conflict object to the code segment corresponding to the third call object.
In the embodiment of the present specification, by updating the code segment corresponding to the conflict object in the target program, the problem that the updated target program cannot run can be avoided.
In an optional embodiment, in a case that at least one third invocation object is a newly added object, the updating the target program according to the at least two third invocation objects includes:
determining a new object different from the at least two first call objects and the at least two second call objects from the at least two third call objects;
determining first calling sequence information between the newly added object and the at least two first calling objects; or determining second calling sequence information between the newly added object and the at least two second calling objects;
determining the adding position of the program information corresponding to the newly added object in the target program based on the first calling sequence information or the second calling sequence information;
and updating the target program based on the program information corresponding to the newly added object and the adding position.
In this embodiment of the present specification, the identifier of the newly added object is different from the identifiers of the at least two first invocation objects and the identifiers of the at least two second invocation objects.
In this embodiment of the present specification, when the updated software development kit is the updated target software development kit, a third calling object that is the same as the at least one first calling object exists in the at least two third calling objects; or, in the case that the updated software development kit is the updated basic software development kit, the third calling object which is the same as the at least one second calling object exists in the at least two third calling objects.
Therefore, the first calling sequence information between the newly added object and the at least two first calling objects can be determined according to the sequence information between the third calling objects; or determining second calling sequence information between the newly added object and the at least two second calling objects.
Therefore, the program information corresponding to the newly added object can be inserted into the target program according to the first calling sequence information or the second calling sequence information, and the updated target program is obtained.
In this embodiment of the present specification, the program information corresponding to the new added object is a code segment for facilitating a target program to call the new added object.
The target program updating scheme is suitable for the situation that the updating change of the updating software development kit is simple, the target program can be directly changed, the updating efficiency of the target program is improved, the updating accuracy is ensured, and the updated target program which can run is obtained.
In the two target program updating schemes, the influence of the conflict object, the newly added object and the repeated object on the target program updating is considered, so that the target program can be updated comprehensively, and the user experience is improved.
In an optional embodiment, in a case that the updated software development kit further includes a resource file, the updating the target program based on the updated software development kit, and obtaining an updated target program further includes:
acquiring a resource file of the updated software development kit;
if the updated software development kit is the updated target software development kit, acquiring a resource file of the target software development kit;
respectively covering the configuration file and the resource file of the target software development kit based on the configuration file and the resource file of the updated software development kit to obtain an updated target software development kit;
if the updated software development kit is the updated basic software development kit, acquiring a resource file of the basic software development kit;
and respectively covering the configuration file and the resource file of the basic software development kit based on the configuration file and the resource file of the updated software development kit to obtain the updated basic software development kit.
In this embodiment of the present description, if the updated software development kit is an updated target software development kit, the resource file of the target software development kit may be covered by merging the resource file of the updated software development kit with the resource file of the target software development kit.
And if the client detects that the resource file of the target software development kit conflicts with the resource file of the updated software development kit in the merging process, determining conflict resources in the resource file of the target software development kit, and deleting the conflict resources. Specifically, the conflict resource is a first resource in which a first resource identifier conflicts.
And if the client detects that the resource file of the target software development kit is repeated with the resource file of the updated software development kit in the merging process, determining repeated resources in the resource file of the target software development kit, and deleting the repeated resources. Specifically, the repeated resource is a repeated first resource.
The coverage of the resource files of the basic software development kit can refer to the above scheme, and is not described herein in detail.
In the embodiment of the specification, the target program can be updated without manual operation of a user at the client, and the user can see the target program at the client only by selecting the target software development kit, so that the user experience is greatly improved.
In some embodiments, in order to increase the running speed of the target program, the program debugging page further includes a mask control corresponding to at least one first call object and/or at least one second call object, and the method further includes:
if the client detects a trigger instruction for at least one shielding control, determining a target shielding object according to a first calling object and/or a second calling object corresponding to the at least one shielding control;
the client acquires the cache data of the target shielding calling object;
and the client starts the target program based on the cache data of the target mask calling object.
In this embodiment of the present specification, the target mask object may include an initialization interface and a callback interface of a target software development kit, and may further include an initialization interface and a callback interface of a base software development kit. By shielding the target shielding object and utilizing the cache data of the target shielding object to ensure the normal operation of the target program, the operation speed of the target program can be obviously improved, and some test requirements of users on the target program are met.
In some embodiments, the above method further comprises:
the method comprises the steps that a client displays an initial page, wherein the initial page comprises an information configuration control and a confirmation control corresponding to a target program;
if the client detects an editing instruction for the information configuration control, acquiring configuration information corresponding to the information configuration control;
and if the client detects the trigger instruction aiming at the confirmation control, verifying the configuration information, and displaying the target page under the condition that the verification is passed.
In a specific embodiment, the verifying the configuration information, and performing the display of the target page if the verification is passed includes:
checking whether the self-defined name in the configuration information conforms to a preset coding form or not;
checking whether the unique identifier in the configuration information is unique or not;
checking whether the stored path in the configuration information is a legal path;
and determining that the verification is passed and executing the display of the target page under the conditions that the self-defined name accords with a preset coding form, the unique identifier is unique and the stored path is a legal path.
In the embodiment of the present specification, by checking the configuration information of the target program, it can be ensured that the configuration information of the target program meets the specification, and the subsequent operation, maintenance and management of the target program are facilitated.
Fig. 9 is a schematic diagram of an initial page provided in the present application. If a trigger instruction for the creation control marked as 'create project' is detected, the initial page displays an information configuration control corresponding to the target program.
According to the method and the system, the dependency relationship of the tool packages is preset at the server, so that the method and the system can adapt to the scene that the dependency relationship among the software development tool packages is complex, and the basic software development tool package which the target software development tool package depends on is rapidly determined under the condition that the server receives the tool package downloading request information corresponding to the target software development tool package sent by the client, so that the target software development tool package and the basic software development tool package can be downloaded in a short time. Furthermore, the target program is automatically generated based on the locally preset code template, the target software development kit and the basic software development kit, and the adopted generation scheme can also ensure the normal operation of the target program, thereby being beneficial to improving the user experience. In addition, the client sends the update query information corresponding to the target software development kit to the server, receives the update development software kit sent by the server, can update the target program based on the update development software kit, automatically updates the target program without manual operation of a user, and can ensure normal operation of the updated target program by the adopted update scheme, so that user experience is further improved.
In a specific embodiment, as shown in fig. 10, another program processing method provided by the present application is applied to a client; the method comprises the following steps:
s1001: and sending a tool package downloading request corresponding to the target software development tool package to the server.
In an optional embodiment, the method further includes:
displaying a target page, wherein the target page comprises a selection control of at least one software development toolkit;
if a selection instruction for the at least one selection control is detected, determining a target software development kit corresponding to the selection instruction;
correspondingly, the sending of the tool package downloading request corresponding to the target software development tool package to the server includes:
and if a trigger instruction aiming at the confirmation control of the target page is detected, sending a tool package downloading request to a server, wherein the tool package downloading request comprises the identification information of the target software development tool package.
S1003: receiving the target software development kit and a basic software development kit sent by the server, wherein the basic software development kit is determined by the server based on preset kit dependence information;
s1005: and generating a target program based on a locally preset code template, the target software development kit and the basic software development kit, and jumping to a program debugging page corresponding to the target program, wherein the program debugging page comprises a program running control.
In a specific embodiment, the generating the target program based on the locally preset code template, the target software development kit and the basic software development kit includes:
extracting at least two first calling objects in the target software development kit;
extracting at least two second calling objects in the basic software development kit;
and generating a target program based on the locally preset code template, the at least two first calling objects and the at least two second calling objects.
In an optional embodiment, the generating the target program based on the locally preset code template, the at least two first call objects, and the at least two second call objects includes:
acquiring first form parameters arranged in sequence in the code template;
scanning a configuration file of the target software development kit, and determining calling sequence information between the at least two first calling objects;
marking the at least two first calling objects based on calling sequence information between the at least two first calling objects and the first form parameters to obtain first marking information, wherein the first marking information represents the corresponding relation between the at least two first calling objects and the first form parameters;
acquiring second form parameters arranged in sequence in the code template;
scanning a configuration file of the basic software development kit, and determining calling sequence information between the at least two second calling objects;
marking the at least two second calling objects based on the calling sequence information between the at least two second calling objects and the second form parameter to obtain second marking information, wherein the second marking information represents the corresponding relation between the at least two second calling objects and the second form parameter;
and generating a target program according to the locally preset code template, the first marking information and the second marking information.
In an optional embodiment, the method further includes:
displaying an initial page, wherein the initial page comprises an information configuration control and a confirmation control corresponding to a target program;
if an editing instruction aiming at the information configuration control is detected, acquiring configuration information corresponding to the information configuration control;
and if the trigger instruction aiming at the confirmation control is detected, verifying the configuration information, and displaying the target page under the condition that the verification is passed.
S1007: if a trigger instruction aiming at the program running control is detected, sending a software package updating query request to a server;
s1009: receiving an updated software development kit sent by the server under the condition that the update information corresponding to the target software development tool indicates that update exists;
s1011: and updating the target program based on the updated software development kit to obtain an updated target program, and operating the updated target program.
In an optional embodiment, the updating the target program based on the updated software development kit, and obtaining the updated target program includes:
acquiring a configuration file of the updated software development kit;
if the updated software development kit is an updated target software development kit, acquiring a configuration file of the target software development kit;
covering the configuration file of the target software development kit based on the configuration file of the updated software development kit to obtain an updated target software development kit;
scanning the configuration file of the updated target software development kit, and determining the calling sequence information between at least two fourth calling objects in the updated target software development kit;
marking the at least two fourth calling objects based on the calling sequence information between the at least two fourth calling objects and the first form parameter to obtain third marking information, wherein the third marking information represents the corresponding relation between the at least two fourth calling objects and the first form parameter;
and obtaining an updated target program according to the locally preset code template, the third marking information and the second marking information.
In an optional embodiment, the updating the target program based on the updated software development kit, and obtaining the updated target program includes:
acquiring a configuration file of the updated software development kit;
if the updated software development kit is an updated basic software development kit, acquiring a configuration file of the basic software development kit;
covering the configuration file of the basic software development kit based on the configuration file of the updated software development kit to obtain an updated basic software development kit;
scanning the configuration file of the updated basic software development kit, and determining the calling sequence information between at least two fifth calling objects in the updated basic software development kit;
marking the at least two fifth calling objects based on the calling sequence information between the at least two fifth calling objects and the second form parameter to obtain fourth marking information, wherein the fourth marking information represents the corresponding relation between the at least two fifth calling objects and the second form parameter;
and obtaining an updated target program according to the locally preset code template, the first marking information and the fourth marking information.
In some embodiments, the updating the object program based on the updated software development kit, and obtaining the updated object program includes:
extracting at least two third calling objects of the updated software development kit;
and updating the target program according to the at least two third calling objects to obtain the updated target program.
In an optional embodiment, the updating the target program according to the at least two third invocation objects includes:
determining a conflict object which conflicts with the at least two third call objects from the at least two first call objects and the at least two second call objects;
and updating the program information corresponding to the conflict object in the target program based on the at least two third calling objects.
In an optional embodiment, the updating the target program according to the at least two third invocation objects includes:
determining a new object different from the at least two first call objects and the at least two second call objects from the at least two third call objects;
determining first calling sequence information between the newly added object and the at least two first calling objects; or determining second calling sequence information between the newly added object and the at least two second calling objects;
determining an adding position of program information corresponding to the newly added object in the target program based on the first calling sequence information or the second calling sequence information;
and updating the target program based on the program information corresponding to the newly added object and the adding position.
In an optional embodiment, the updating the object program based on the updated software development kit, and obtaining the updated object program further includes:
acquiring a resource file of the updated software development kit;
if the updated software development kit is the updated target software development kit, acquiring a resource file of the target software development kit;
covering the resource file of the target software development kit based on the resource file of the updated software development kit to obtain an updated basic software development kit;
if the updated software development kit is an updated basic software development kit, acquiring a resource file of the basic software development kit;
and covering the resource file of the basic software development kit based on the resource file of the updated software development kit to obtain the updated basic software development kit.
The target program is automatically generated based on the locally preset code template, the target software development kit and the basic software development kit, and the adopted generation scheme can also ensure the normal operation of the target program, so that the user experience is favorably improved. In addition, the client sends the update query information corresponding to the target software development kit to the server, receives the update development software kit sent by the server, can update the target program based on the update development software kit, automatically updates the target program without manual operation of a user, and can ensure normal operation of the updated target program by the adopted update scheme, so that user experience is further improved.
In a specific embodiment, as shown in fig. 11, a further program processing method provided by the present application is applied to a server; the method comprises the following steps:
s1101: receiving a tool package downloading request corresponding to a target software development kit sent by a client, determining a basic software development kit depended by the target software development kit based on a preset tool package dependency relationship, and sending the target software development kit and the basic software development kit to the client.
In the embodiment of the specification, the dependency relationship of at least one software development kit is set in advance at the server.
In a specific embodiment, the determining, based on the preset toolkit dependency relationship, the base software development toolkit on which the target software development toolkit depends includes:
acquiring a preset tool kit dependency relationship;
and determining the dependency information of the target software development kit from the preset kit dependency relationship according to the identification information of the target software development kit carried by the kit downloading request.
And determining the basic software development kit which the target software development kit depends on according to the dependency information of the target software development kit.
S1103: receiving a software package updating query request sent by a client under the condition that a triggering instruction for a program running control is detected, and determining updating information corresponding to the target software development tool;
s1105: and under the condition that the update information corresponding to the target software development tool indicates that the update exists, sending an update software development tool package to the client.
According to the method and the system, the dependency relationship of the tool packages is preset at the server, so that the method and the system can adapt to the scene with complex dependency relationship among the software development tool packages, and quickly determine the basic software development tool package on which the target software development tool package depends under the condition that the server receives the tool package downloading request information corresponding to the target software development tool package sent by the client, and are beneficial to completing the downloading of the target software development tool package and the basic software development tool package in a short time.
In a specific embodiment, as shown in fig. 12, a program processing apparatus provided by the present application is applied to a program processing system, where the program processing system includes a client and a server; the device comprises:
a first sending module 1201, configured to send, by the client, a toolkit downloading request corresponding to the target software development toolkit to the server.
A first determining module 1203, configured to determine, by the server, a basic software development kit on which the target software development kit depends based on a preset kit dependency relationship.
A second sending module 1205, configured to send the target software development kit and the basic software development kit to a client.
A generating module 1207, configured to generate a target program by a client based on a locally preset code template, the target software development kit, and the basic software development kit, and jump to a program debugging page corresponding to the target program, where the program debugging page includes a program running control.
A second sending module 1209, configured to send, if the client detects the trigger instruction for the program running control, a software package update query request to the server.
The receiving module 1211 is configured to determine, by the server, update information corresponding to the target software development tool.
A second determining module 1213, configured to, when the update information indicates that there is an update, the server determines an update software development kit corresponding to the update information.
A third sending module 1215 for sending the updated software development kit to the client.
An updating module 1217, configured to update the target program based on the updated software development kit by the client, and run the updated target program.
In some embodiments, the apparatus further comprises:
the first display module is used for displaying a target page on a client, wherein the target page comprises at least one selection control of a software development toolkit;
the first detection module is used for determining a target software development kit corresponding to a selection instruction if the client detects the selection instruction aiming at the at least one selection control;
accordingly, the first sending module 1201 includes:
and the detection unit is used for sending a tool package downloading request to the server side if the client side detects a trigger instruction of the confirmation control aiming at the target page, wherein the tool package downloading request comprises the identification information of the target software development tool package.
In some embodiments, the generating module 1207 includes:
the first extraction unit is used for extracting at least two first calling objects in the target software development kit;
the second extraction unit is used for extracting at least two second calling objects in the basic software development kit;
and the generating unit is used for generating a target program based on the locally preset code template, the at least two first calling objects and the at least two second calling objects.
In some embodiments, the generating unit comprises:
the first obtaining subunit is used for obtaining first form parameters which are arranged in sequence in the code template;
the first scanning subunit is used for scanning the configuration file of the target software development kit and determining the calling sequence information between the at least two first calling objects;
a first labeling subunit, configured to label the at least two first call objects based on the call sequence information between the at least two first call objects and the first format parameter, so as to obtain first label information, where the first label information represents a correspondence between the at least two first call objects and the first format parameter;
the second obtaining unit is used for obtaining second form parameters arranged in sequence in the code template;
the second scanning subunit is used for scanning the configuration file of the basic software development kit and determining the calling sequence information between the at least two second calling objects;
the second labeling subunit is configured to label the at least two second invocation objects based on the invocation sequence information between the at least two second invocation objects and the second form parameter to obtain second labeling information, where the second labeling information represents a corresponding relationship between the at least two second invocation objects and the second form parameter;
and the generating subunit is configured to generate the target program according to the locally preset code template, the first tag information, and the second tag information.
In some embodiments, the apparatus further comprises:
the second display module is used for displaying a download progress display page, and the download progress display page comprises download progress information corresponding to the target software development kit and the basic software development kit;
correspondingly, the generating module is further configured to generate a target program based on a locally preset code template, the target software development kit and the basic software development kit when the download progress information indicates that the downloading of the software package is completed.
In some embodiments, the update module 1217 comprises:
the first acquisition unit is used for acquiring the configuration file of the updated software development kit;
a second obtaining unit, configured to obtain a configuration file of the target software development kit if the updated software development kit is an updated target software development kit;
the first covering unit is used for covering the configuration file of the target software development kit based on the configuration file of the updated software development kit to obtain the updated target software development kit;
the first scanning unit is used for scanning the configuration file of the updated target software development kit and determining the calling sequence information between at least two fourth calling objects in the updated target software development kit;
a first marking unit, configured to mark the at least two fourth invocation objects based on invocation sequence information between the at least two fourth invocation objects and the first form parameter, so as to obtain third marking information, where the third marking information represents a corresponding relationship between the at least two fourth invocation objects and the first form parameter;
and the updating unit is used for obtaining an updated target program according to the locally preset code template, the third mark information and the second mark information.
In some embodiments, the update unit comprises:
the third acquisition subunit is used for acquiring the configuration file of the updated software development kit;
a fourth obtaining subunit, configured to obtain a configuration file of the basic software development kit if the updated software development kit is an updated basic software development kit;
the second covering subunit is used for covering the configuration file of the basic software development kit based on the configuration file of the updated software development kit to obtain the updated basic software development kit;
the second scanning subunit is configured to scan the configuration file of the updated basic software development kit, and determine calling sequence information between at least two fifth calling objects in the updated basic software development kit;
the second labeling subunit is configured to label the at least two fifth invocation objects based on the invocation sequence information between the at least two fifth invocation objects and the second form parameter, so as to obtain fourth labeling information, where the fourth labeling information represents a corresponding relationship between the at least two fifth invocation objects and the second form parameter;
and the second updating subunit is configured to obtain an updated target program according to the locally preset code template, the first tag information, and the fourth tag information.
In some embodiments, the update unit comprises:
the first extraction subunit is used for extracting at least two third calling objects of the updated software development kit;
and the third updating subunit is configured to update the target program according to the at least two third call objects, so as to obtain the updated target program.
In some embodiments, the third update subunit comprises:
a first determining subunit, configured to determine, from the at least two first invocation objects and the at least two second invocation objects, a conflict object that conflicts with the at least two third invocation objects;
and the first updating subunit is used for updating the program information corresponding to the conflict object in the target program based on the at least two third calling objects.
In some embodiments, the third update subunit comprises:
a second determining subunit, configured to determine, from the at least two third invocation objects, a new object that is different from the at least two first invocation objects and the at least two second invocation objects;
a third determining subunit, configured to determine first calling sequence information between the newly added object and the at least two first calling objects; or determining second calling sequence information between the newly added object and the at least two second calling objects;
a fourth determining subunit, configured to determine, based on the first call order information or the second call order information, an addition position of program information corresponding to the newly added object in the target program;
and the second updating subunit is used for updating the target program based on the program information corresponding to the newly added object and the adding position.
In some embodiments, the apparatus further comprises:
the third display module is used for displaying an initial page, and the initial page comprises an information configuration control and a confirmation control corresponding to the target program;
the second detection module is used for acquiring configuration information corresponding to the information configuration control if an editing instruction aiming at the information configuration control is detected;
and the third detection module is used for verifying the configuration information if the trigger instruction for the confirmation control is detected, and executing the display of the target page under the condition that the verification is passed.
The device and method embodiments in the device embodiment described are based on the same inventive concept.
In a specific embodiment, as shown in fig. 13, a program processing apparatus provided by the present application is applied to a client; the device comprises:
the first sending module 1301 is configured to send a tool package downloading request corresponding to the target software development tool package to the server;
a first receiving module 1303, configured to receive the target software development kit and a basic software development kit sent by the server, where the basic software development kit is determined by the server based on preset kit dependency information;
a generating module 1305, configured to generate a target program based on a locally preset code template, the target software development kit, and the basic software development kit, and jump to a program debugging page corresponding to the target program, where the program debugging page includes a program running control;
a second sending module 1307, configured to send a software package update query request to the server if a trigger instruction for the program running control is detected;
a second receiving module 1309, configured to receive an updated software development kit sent by the server when the update information corresponding to the target software development kit indicates that there is an update;
an updating module 1311, configured to update the target program based on the updated software development kit, obtain an updated target program, and run the updated target program.
In some embodiments, the generating module 1305 includes:
the first extraction unit is used for extracting at least two first calling objects in the target software development kit;
the second extraction unit is used for extracting at least two second calling objects in the basic software development kit;
and the generating unit is used for generating a target program based on the locally preset code template, the at least two first calling objects and the at least two second calling objects.
In some embodiments, the generating unit includes:
the first obtaining subunit is used for obtaining first form parameters which are arranged in sequence in the code template;
the first scanning subunit is used for scanning the configuration file of the target software development kit and determining the calling sequence information between the at least two first calling objects;
a first labeling subunit, configured to label the at least two first call objects based on the call sequence information between the at least two first call objects and the first format parameter, so as to obtain first label information, where the first label information represents a correspondence between the at least two first call objects and the first format parameter;
the second obtaining subunit is used for obtaining second form parameters arranged in sequence in the code template;
the second scanning subunit is used for scanning the configuration file of the basic software development kit and determining the calling sequence information between the at least two second calling objects;
the second labeling subunit is configured to label the at least two second invocation objects based on the invocation sequence information between the at least two second invocation objects and the second form parameter to obtain second labeling information, where the second labeling information represents a corresponding relationship between the at least two second invocation objects and the second form parameter;
and the first generating subunit is used for generating the target program according to the locally preset code template, the first marking information and the second marking information.
In some embodiments, the update module 1311 comprises:
the first acquisition unit is used for acquiring the configuration file of the updated software development kit;
a second obtaining unit, configured to obtain a configuration file of the target software development kit if the updated software development kit is an updated target software development kit;
the first updating unit is used for covering the configuration file of the target software development kit based on the configuration file of the updated software development kit to obtain the updated target software development kit;
the first scanning unit is used for scanning the configuration file of the updated target software development kit and determining the calling sequence information between at least two fourth calling objects in the updated target software development kit;
the first marking unit is used for marking the at least two fourth calling objects based on the calling sequence information between the at least two fourth calling objects and the first form parameter to obtain third marking information, and the third marking information represents the corresponding relation between the at least two fourth calling objects and the first form parameter;
and the second updating unit is used for obtaining an updated target program according to the locally preset code template, the third mark information and the second mark information.
In some embodiments, the update module 1311 comprises:
a third obtaining unit, configured to obtain a configuration file of the updated software development kit;
a fourth obtaining unit, configured to obtain a configuration file of the basic software development kit if the updated software development kit is an updated basic software development kit;
the third updating unit is used for covering the configuration file of the basic software development kit based on the configuration file of the updated software development kit to obtain the updated basic software development kit;
the second scanning unit is used for scanning the configuration file of the updated basic software development kit and determining the calling sequence information between at least two fifth calling objects in the updated basic software development kit;
the second marking unit is configured to mark the at least two fifth calling objects based on the calling sequence information between the at least two fifth calling objects and the second form parameter to obtain fourth mark information, where the fourth mark information represents a corresponding relationship between the at least two fifth calling objects and the second form parameter;
and the fourth updating unit is used for obtaining an updated target program according to the locally preset code template, the first mark information and the fourth mark information.
In some embodiments, the update module 1311 comprises:
the first extraction unit is used for extracting at least two third calling objects of the updated software development kit;
and the fifth updating unit is used for updating the target program according to the at least two third calling objects to obtain the updated target program.
In some embodiments, the fifth updating unit includes:
a first determining subunit, configured to determine, from the at least two first invocation objects and the at least two second invocation objects, a conflict object that conflicts with the at least two third invocation objects;
and the first updating subunit is used for updating the program information corresponding to the conflict object in the target program based on the at least two third calling objects.
In some embodiments, the fifth updating unit includes:
a second determining subunit, configured to determine, from the at least two third invocation objects, a new object that is different from the at least two first invocation objects and the at least two second invocation objects;
a third determining subunit, configured to determine first call sequence information between the newly added object and the at least two first call objects; or determining second calling sequence information between the newly added object and the at least two second calling objects;
a fourth determining subunit, configured to determine, based on the first call order information or the second call order information, an addition position of program information corresponding to the newly added object in the target program;
and the second updating subunit is used for updating the target program based on the program information corresponding to the newly added object and the adding position.
In some embodiments, the apparatus further comprises:
the first display module is used for displaying a download progress display page, and the download progress display page comprises download progress information corresponding to the target software development kit and the basic software development kit;
correspondingly, the generating module further comprises:
and the second generation subunit is used for generating a target program based on a locally preset code template, the target software development kit and the basic software development kit under the condition that the downloading progress information indicates that the downloading of the software package is completed.
In some embodiments, the apparatus further comprises:
the second display module is used for displaying a target page, and the target page comprises at least one selection control of a software development toolkit;
the first detection module is used for determining a target software development kit corresponding to a selection instruction if the selection instruction for the at least one selection control is detected;
correspondingly, the first sending module comprises:
and the sending unit is used for sending a tool package downloading request to a server side if a trigger instruction of a confirmation control for the target page is detected, wherein the tool package downloading request comprises the identification information of the target software development tool package.
In some embodiments, the apparatus further comprises:
the third display module is used for displaying an initial page, and the initial page comprises an information configuration control and a confirmation control corresponding to the target program;
the second detection module is used for acquiring configuration information corresponding to the information configuration control if an editing instruction aiming at the information configuration control is detected;
and the third detection module is used for verifying the configuration information if the trigger instruction for the confirmation control is detected, and executing the display of the target page under the condition that the verification is passed.
The device and method embodiments in the device embodiment described are based on the same inventive concept.
In a specific embodiment, as shown in fig. 14, a program processing apparatus provided by the present application is applied to a server; the device comprises:
a first receiving module 1401, configured to receive a tool package downloading request corresponding to a target software development package sent by a client, determine, based on a preset tool package dependency relationship, a basic software development tool package on which the target software development tool package depends, and send the target software development tool package and the basic software development tool to the client;
a second receiving module 1403, configured to receive a software package update query request sent by a client when a trigger instruction for a program running control is detected, and determine update information corresponding to the target software development tool;
a sending module 1405, configured to send the updated software development kit to the client when the update information corresponding to the target software development kit indicates that there is an update.
In some embodiments, the first receiving module comprises:
the acquisition unit is used for acquiring a preset tool kit dependency relationship;
and the first determining unit is used for determining the dependency information of the target software development kit from the preset dependency relationship of the kit according to the identification information of the target software development kit carried by the kit downloading request.
And the second determining unit is used for determining the basic software development kit which the target software development kit depends on according to the dependency information of the target software development kit.
According to the method and the system, the dependency relationship of the tool packages is preset at the server, so that the method and the system can adapt to the scene with complex dependency relationship among the software development tool packages, and quickly determine the basic software development tool package on which the target software development tool package depends under the condition that the server receives the tool package downloading request information corresponding to the target software development tool package sent by the client, and are beneficial to completing the downloading of the target software development tool package and the basic software development tool package in a short time.
The device and method embodiments in the device embodiment described are based on the same inventive concept.
In a specific embodiment, the present application provides a program processing device for application to a client; the device comprises a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded by the processor and executed to realize the program processing method.
The device and method embodiments in the device embodiment described are based on the same inventive concept.
In a specific embodiment, the present application provides a computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the program processing method described above.
The embodiment of the present application provides a program processing server, where the data processing server operated by the service includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the program processing method provided in the foregoing method embodiment.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and program processes by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in the above-mentioned various alternative implementation modes.
The method embodiments provided by the embodiments of the present application may be executed in a mobile terminal, a computer terminal, a server, or a similar computing device. Taking the example of the program running on the server, fig. 15 is a hardware configuration block diagram of the server according to the program processing method provided in the embodiment of the present application. As shown in fig. 15, the server 1500 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 1510 (the processor 1510 may include but is not limited to a Processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1530 for storing data, and one or more storage media 1520 (e.g., one or more mass storage devices) for storing applications 1523 or data 1522. The memory 1530 and storage media 1520 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 1520 may include one or more modules, each of which may include a series of instruction operations in a server. Still further, the central processor 1510 may be disposed in communication with the storage medium 1520, and perform a series of instruction operations in the storage medium 1520 on the server 1500. The server 1500 may also include one or more power supplies 1560, one or more wired or wireless network interfaces 1550, one or more input-output interfaces 1540, and/or one or more operating systems 1521, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
The input/output interface 1540 can be used to receive and transmit data over a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the server 1500. In one example, i/o Interface 1540 includes a Network adapter (NIC) that may be coupled to other Network devices through a base station to communicate with the internet. In one example, the input/output interface 1540 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
It will be understood by those skilled in the art that the structure shown in fig. 15 is only an illustration and is not intended to limit the structure of the electronic device. For example, server 1500 may also include more or fewer components than shown in FIG. 15, or have a different configuration than shown in FIG. 15.
Embodiments of the present application further provide a storage medium, which may be disposed in a server to store at least one instruction, at least one program, a set of codes, or a set of instructions related to implementing a program processing method in the method embodiments, where the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the program processing method provided in the method embodiments.
Alternatively, in this embodiment, the storage medium may be located in at least one network server of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store program codes.
As can be seen from the above embodiments of the program processing method, apparatus, device, or storage medium provided by the present application, the present application generates the target program based on the locally preset code template, the target software development kit, and the basic software development kit, and can implement automatic generation of the target program. And updating the target program based on the updated software development kit to obtain an updated target program, and running the updated target program to realize automatic updating of the target program.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (16)
1. A program processing method, characterized in that the method comprises:
sending a tool package downloading request corresponding to the target software development tool package to a server;
receiving the target software development kit and a basic software development kit sent by the server, wherein the basic software development kit is determined by the server based on preset kit dependence information;
generating a target program based on a locally preset code template, the target software development kit and the basic software development kit, and jumping to a program debugging page corresponding to the target program, wherein the program debugging page comprises a program running control;
if a trigger instruction aiming at the program running control is detected, sending a software package updating query request to a server;
receiving an updated software development kit sent by the server under the condition that the update information corresponding to the target software development tool indicates that update exists;
and updating the target program based on the updated software development kit to obtain an updated target program, and operating the updated target program.
2. The method of claim 1, wherein generating the target program based on the locally preset code template, the target software development kit and the base software development kit comprises:
extracting at least two first calling objects in the target software development kit;
extracting at least two second calling objects in the basic software development kit;
and generating a target program based on the locally preset code template, the at least two first calling objects and the at least two second calling objects.
3. The method according to claim 2, wherein generating the target program based on the locally preset code template, the at least two first call objects, and the at least two second call objects comprises:
acquiring first form parameters arranged in sequence in the code template;
scanning a configuration file of the target software development kit, and determining calling sequence information between the at least two first calling objects;
marking the at least two first calling objects based on calling sequence information between the at least two first calling objects and the first form parameters to obtain first marking information, wherein the first marking information represents the corresponding relation between the at least two first calling objects and the first form parameters;
acquiring second form parameters arranged in sequence in the code template;
scanning a configuration file of the basic software development kit, and determining calling sequence information between the at least two second calling objects;
marking the at least two second calling objects based on the calling sequence information between the at least two second calling objects and the second form parameter to obtain second marking information, wherein the second marking information represents the corresponding relation between the at least two second calling objects and the second form parameter;
and generating a target program according to the locally preset code template, the first marking information and the second marking information.
4. The method of claim 3, wherein updating the object program based on the updated software development kit comprises:
acquiring a configuration file of the updated software development kit;
if the updated software development kit is an updated target software development kit, acquiring a configuration file of the target software development kit;
covering the configuration file of the target software development kit based on the configuration file of the updated software development kit to obtain an updated target software development kit;
scanning the configuration file of the updated target software development kit, and determining the calling sequence information between at least two fourth calling objects in the updated target software development kit;
marking the at least two fourth calling objects based on the calling sequence information between the at least two fourth calling objects and the first form parameter to obtain third marking information, wherein the third marking information represents the corresponding relation between the at least two fourth calling objects and the first form parameter;
and obtaining an updated target program according to the locally preset code template, the third marking information and the second marking information.
5. The method of claim 3, wherein updating the object program based on the updated software development kit comprises:
acquiring a configuration file of the updated software development kit;
if the updated software development kit is an updated basic software development kit, acquiring a configuration file of the basic software development kit;
covering the configuration file of the basic software development kit based on the configuration file of the updated software development kit to obtain an updated basic software development kit;
scanning the configuration file of the updated basic software development kit, and determining calling sequence information between at least two fifth calling objects in the updated basic software development kit;
marking the at least two fifth calling objects based on the calling sequence information between the at least two fifth calling objects and the second form parameter to obtain fourth marking information, wherein the fourth marking information represents the corresponding relation between the at least two fifth calling objects and the second form parameter;
and obtaining an updated target program according to the locally preset code template, the first mark information and the fourth mark information.
6. The method of claim 2, wherein updating the object program based on the updated software development kit comprises:
extracting at least two third calling objects of the updated software development kit;
and updating the target program according to the at least two third calling objects to obtain the updated target program.
7. The method of claim 6, wherein updating the target program according to the at least two third invocation objects comprises:
determining a conflict object which conflicts with the at least two third call objects from the at least two first call objects and the at least two second call objects;
and updating the program information corresponding to the conflict object in the target program based on the at least two third calling objects.
8. The method of claim 6, wherein updating the target program according to the at least two third invocation objects comprises:
determining a new object different from the at least two first call objects and the at least two second call objects from the at least two third call objects;
determining first calling sequence information between the newly added object and the at least two first calling objects; or determining second calling sequence information between the newly added object and the at least two second calling objects;
determining an adding position of program information corresponding to the newly added object in the target program based on the first calling sequence information or the second calling sequence information;
and updating the target program based on the program information corresponding to the newly added object and the adding position.
9. The method of any one of claims 1 to 8, wherein before generating the target program based on the locally preset code template, the target software development kit and the base software development kit, the method further comprises:
displaying a download progress display page, wherein the download progress display page comprises download progress information corresponding to the target software development kit and the basic software development kit;
correspondingly, the generating the target program based on the locally preset code template, the target software development kit and the basic software development kit includes:
and under the condition that the downloading progress information indicates that the software package is completely downloaded, generating a target program based on a locally preset code template, the target software development kit and the basic software development kit.
10. The method according to any one of claims 1 to 8, further comprising:
displaying a target page, wherein the target page comprises a selection control of at least one software development toolkit;
if a selection instruction for the at least one selection control is detected, determining a target software development kit corresponding to the selection instruction;
correspondingly, the sending of the tool package downloading request corresponding to the target software development tool package to the server includes:
and if a trigger instruction aiming at the confirmation control of the target page is detected, sending a tool package downloading request to a server.
11. The method of claim 10, further comprising:
displaying an initial page, wherein the initial page comprises an information configuration control and a confirmation control corresponding to a target program;
if an editing instruction for the information configuration control is detected, configuration information corresponding to the information configuration control is obtained, wherein the configuration information comprises a custom name, a unique identifier and a saving path corresponding to a target program;
and if the trigger instruction aiming at the confirmation control is detected, verifying the configuration information, and displaying the target page under the condition that the verification is passed.
12. A program processing method, characterized in that the method comprises:
receiving a tool package downloading request corresponding to a target software development package sent by a client;
determining a basic software development kit on which the target software development kit depends based on a preset kit dependency relationship;
sending the target software development kit and the base software development tool to a client;
receiving a software package updating query request sent by a client under the condition that a triggering instruction for a program running control is detected, and determining updating information corresponding to the target software development tool;
and under the condition that the update information corresponding to the target software development tool indicates that the update exists, sending an updated software development tool package to the client.
13. A program processing apparatus, characterized in that the apparatus comprises:
the first sending module is used for sending a tool package downloading request corresponding to the target software development tool package to the server;
the first receiving module is used for receiving the target software development kit and a basic software development kit which are sent by the server, wherein the basic software development kit is determined by the server based on preset kit dependency information;
the generating module is used for generating a target program based on a locally preset code template, the target software development kit and the basic software development kit, and jumping to a program debugging page corresponding to the target program, wherein the program debugging page comprises a program running control;
the second sending module is used for sending a software package updating query request to the server side if a triggering instruction aiming at the program running control is detected;
the second receiving module is used for receiving an updated software development kit sent by the server under the condition that the update information corresponding to the target software development kit indicates that update exists;
and the updating module is used for updating the target program based on the updated software development kit to obtain an updated target program and operating the updated target program.
14. A program processing apparatus, characterized in that the apparatus comprises:
the first receiving module is used for receiving a tool package downloading request corresponding to a target software development kit sent by a client, determining a basic software development kit depended by the target software development kit based on a preset tool package dependency relationship, and sending the target software development kit and the basic software development kit to the client;
the second receiving module is used for receiving a software package updating query request sent by the client under the condition that a triggering instruction for the program running control is detected, and determining the updating information corresponding to the target software development tool;
and the sending module is used for sending the updated software development kit to the client under the condition that the update information corresponding to the target software development kit indicates that the update exists.
15. Program processing device, characterized in that it comprises a processor and a memory in which at least one instruction or at least one program is stored, which at least one instruction or at least one program is loaded by the processor and executed to implement the program processing method according to any one of claims 1 to 11 or 12.
16. A computer-readable storage medium, in which at least one instruction or at least one program is stored, which is loaded and executed by a processor to implement the program processing method according to any one of claims 1 to 11 or claim 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110208480.0A CN114968292A (en) | 2021-02-24 | 2021-02-24 | Program processing method, device and equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110208480.0A CN114968292A (en) | 2021-02-24 | 2021-02-24 | Program processing method, device and equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114968292A true CN114968292A (en) | 2022-08-30 |
Family
ID=82973071
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110208480.0A Pending CN114968292A (en) | 2021-02-24 | 2021-02-24 | Program processing method, device and equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114968292A (en) |
-
2021
- 2021-02-24 CN CN202110208480.0A patent/CN114968292A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107967159B (en) | Method for configuring file application and server | |
CN109814854B (en) | Project framework generation method, device, computer equipment and storage medium | |
CN105630684B (en) | Software Development Kit recognition methods and device | |
WO2020015191A1 (en) | Business rule releasing and managing method, electronic device and readable storage medium | |
CN111068328A (en) | Game advertisement configuration table generation method, terminal device and medium | |
CN112769706B (en) | Componentized routing method and system | |
CN111142884A (en) | Applet version deployment method and device, electronic equipment and storage medium | |
CN109814957B (en) | Label adding method and device for IOS (input/output system) | |
CN112702195A (en) | Gateway configuration method, electronic device and computer readable storage medium | |
CN110716786B (en) | Page display method, system and storage medium | |
CN113704110A (en) | Automatic testing method and device for user interface | |
CN114691132A (en) | ARXML file generation method, device, equipment and storage medium | |
CN114443294B (en) | Big data service component deployment method, system, terminal and storage medium | |
CN112052037A (en) | Application software development method, device, equipment and medium | |
CN112000334A (en) | Page development method, device, server and storage medium | |
US20190073198A1 (en) | Multi-flavored software execution from a singular code base | |
CN113961228A (en) | Change reminding method, device, equipment and storage medium | |
CN110727416B (en) | Development framework generation method and related device | |
CN111610990B (en) | Method, device and related system for upgrading application program | |
CN115794214A (en) | Application module metadata management method, device, storage medium and device | |
CN114968292A (en) | Program processing method, device and equipment and computer readable storage medium | |
CN114021133A (en) | Code processing method and device, electronic equipment and storage medium | |
CN114253595A (en) | Code warehouse management method and device, computer equipment and storage medium | |
CN112714148A (en) | Interface configuration method, device, equipment and medium | |
CN112394980B (en) | Model simulation method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |