CN113434196B - Method and device for managing application program - Google Patents
Method and device for managing application program Download PDFInfo
- Publication number
- CN113434196B CN113434196B CN202110725376.9A CN202110725376A CN113434196B CN 113434196 B CN113434196 B CN 113434196B CN 202110725376 A CN202110725376 A CN 202110725376A CN 113434196 B CN113434196 B CN 113434196B
- Authority
- CN
- China
- Prior art keywords
- file
- template
- application program
- identification information
- environment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000003860 storage Methods 0.000 claims description 21
- 238000012986 modification Methods 0.000 claims description 18
- 230000004048 modification Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012360 testing method Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000004140 cleaning Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- 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/76—Adapting program code to run in a different environment; Porting
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a method and a device for managing an application program, belonging to the field of local dynamic of a mobile terminal. The method comprises the following steps: acquiring a network domain name of a main engineering network in which the application program is located; and determining an application environment corresponding to the application program based on the network domain name; determining environment data corresponding to the application program according to the determined application program environment; and displaying the determined application environment and the determined environment data. Thereby, knowledge of which application environment the application is currently using and which environment data is used is achieved.
Description
Technical Field
The present invention relates to the field of mobile terminal local dynamics, and in particular, to a method and apparatus for managing an application program.
Background
In the field of local dynamic of a mobile terminal, after a template file is online based on a local dynamic technology, a researcher and a developer locally views the information scene of the pulled template file. Each time the client application program is modified, version compiling is needed, then the client application program is packaged into an app to be issued, and the app is called native development; if a part ui in a page can be issued in a manner that does not require version compiling and packing, then the part is called local dynamization.
The existing flow is as follows: after the template File is pulled, all files are checked through the File Explorer function of the Android Studio, the package folder of the corresponding application program is found, then the dynamic template folder in the package folder is found, and the current File downloading condition can be seen, wherein the downloading condition is just that whether the File is transmitted or not from the network transmission point of view. But it is not known whether the file is complete in download, whether the file is complete in other information (name, version, etc.), where complete in download is logically directed to whether the file can be used correctly and whether the information within the file is complete. The existing process also has the following disadvantages: a) Because of a plurality of application program environments, the environment data which is currently being used cannot be known; b) The file name uses encryption technology for security reasons, and the necessary information of the template file cannot be obtained; c) Because each time an application program is opened to request that all templates be pulled, the situation that some test cases only need to pull part of template files (for example: some template file fails to be pulled, and only the template file which fails to be pulled needs to be retried; d) The operation of removing the local file to be pulled again is complex (the corresponding file folder needs to be found to be deleted manually), and the method is not friendly to research.
Disclosure of Invention
It is an aim of embodiments of the present invention to provide a method and apparatus for managing applications which can be implemented to solve, or at least partially solve, the above problems.
To achieve the above object, an aspect of an embodiment of the present invention provides a method for managing an application program, the method including: acquiring a network domain name of a main engineering network in which the application program is located; and determining an application environment corresponding to the application program based on the network domain name; determining environment data corresponding to the application program according to the determined application program environment; and displaying the determined application environment and the determined environment data.
Optionally, the method further comprises: scanning a parent directory taking a private directory of the application program as a folder and a template folder taking the application program environment as a folder name in equipment for installing the application program, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, wherein the file information comprises at least one of the following: file name, file content, latest modification time, size, file version; and displaying the file information for any one of the above.
Optionally, for any one of the above, the method further comprises: if the file information comprises the file name, analyzing the content at the preset position of the file name to acquire the ID of any one; and displaying the ID.
Optionally, for any one of the above, the method further comprises: if the file information includes the size, judging whether any one is available according to the size; judging whether any one is completely downloaded according to a judging result of whether the any one is available and whether the file information also comprises the file name, the file version and the latest modification time; and displaying the complete judgment result of whether any one is downloaded.
Optionally, for any template file corresponding to the application program, the method further includes: obtaining template identification information of the template file, wherein the template identification information comprises: file timestamp, MD5, file name or ID; based on the template identification information, a template file corresponding to the template identification information is found; and re-pulling or deleting the found template file.
Optionally, finding a template file corresponding to the template identification information based on the template identification information and re-pulling or deleting the found template file includes: under the condition that the downloading of the template file is incomplete or the template identification information is marked and cleared, based on the template identification information, the template file corresponding to the template identification information is found; and re-pulling the found template file.
Optionally, the template file is judged whether to be downloaded in its entirety based on: judging whether a unique character string corresponding to the template file stored in the equipment for installing the application program exists or not, wherein the unique character string can be mapped with the template identification information, and the unique character string is generated by splicing the file timestamp, the MD5, the file name or the ID.
Accordingly, another aspect of an embodiment of the present invention provides an apparatus for managing an application, the apparatus comprising: the network domain name acquisition module is used for acquiring the network domain name of the main engineering network in which the application program is located; the application program environment determining module is used for determining an application program environment corresponding to the application program based on the network domain name; the environment data determining module is used for determining environment data corresponding to the application program according to the determined application program environment; and a display module for displaying the determined application environment and the determined environment data.
Optionally, the apparatus further comprises: the device comprises a scanning module, a template folder, a file information processing module and a storage module, wherein the scanning module is used for scanning a parent directory taking a private directory of an application program as a folder and a template folder taking the application program environment as a folder name in equipment for installing the application program, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, wherein the file information comprises at least one of the following components: file name, file content, latest modification time, size, file version; and the display module is further used for displaying the file information for any one.
Optionally, the apparatus further comprises: the analyzing module is used for analyzing the content at the preset position of the file name to acquire the ID of any one of the file names when the file information comprises the file names; the display module is also used for displaying the ID.
Optionally, the apparatus further comprises: a judging module, configured to, for any one of the following: if the file information includes the size, judging whether any one is available according to the size; judging whether any one is completely downloaded according to a judging result of whether the any one is available or not and whether the file information further comprises the file name, the file version and the latest modification time; the display module is also used for displaying whether any one downloads the complete judging result.
Optionally, the apparatus further comprises: the template identification information acquisition module is used for acquiring template identification information of any template file corresponding to the application program, wherein the template identification information comprises: file timestamp, MD5, file name or ID; the re-pulling or deleting module is used for finding out a template file corresponding to the template identification information based on the template identification information aiming at any template file corresponding to the application program; and re-pulling or deleting the found template file.
Optionally, the re-pulling or deleting module finds a template file corresponding to the template identification information based on the template identification information, and re-pulling or deleting the found template file includes: under the condition that the downloading of the template file is incomplete or the template identification information is marked and cleared, based on the template identification information, the template file corresponding to the template identification information is found; and re-pulling the found template file.
Optionally, the template file is judged whether to be downloaded in its entirety based on: judging whether a unique character string corresponding to the template file stored in the equipment for installing the application program exists or not, wherein the unique character string can be mapped with the template identification information, and the unique character string is generated by splicing the file timestamp, the MD5, the file name or the ID.
Still another aspect of an embodiment of the present invention provides a machine-readable storage medium having stored thereon instructions for causing a machine to perform the above-described method.
In addition, another aspect of the embodiments of the present invention further provides a processor, configured to execute a program, where the program is executed to perform the method described above.
Furthermore, another aspect of the embodiments of the present invention provides a computer program product comprising a computer program/instruction which, when executed by a processor, implements the steps of the above method.
According to the technical scheme, the network domain name of the main engineering network is acquired, the application program environment corresponding to the application program is determined based on the network domain name, the environment data corresponding to the application program is determined based on the determined application program environment, and the determined application program environment and the environment data are displayed, so that the application program can know which application program environment (such as development, test, preview, online application program environment and the like) is currently used and which environment data is used, and richer information is provided.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain, without limitation, the embodiments of the invention. In the drawings:
FIG. 1 is a flow chart of a method for managing an application provided by an embodiment of the present invention; and
Fig. 2 is a block diagram of an apparatus for managing an application according to another embodiment of the present invention.
Description of the reference numerals
1. Network domain name acquisition module 2 application program environment determination module
3. Environmental data determination module 4 display module
Detailed Description
The following describes the detailed implementation of the embodiments of the present invention with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
One aspect of an embodiment of the present invention provides a method for managing an application.
FIG. 1 is a flow chart of a method for managing an application provided by an embodiment of the present invention. As shown in fig. 1, the method includes the following. Optionally, the method can be applied to Android dynamic template file management.
In step S10, a network domain name of a main engineering network in which the application is located is acquired. For example, a monitor is used in the memory of the application program to monitor the change of the main engineering network of the application program, and when the main engineering network is changed, the changed network domain name is synchronized to the application program so as to acquire the network domain name of the main engineering network where the application program is located.
In step S11, an application environment corresponding to the application is determined based on the network domain name. For example, when dev is included in the domain name, the application environment is development; when the domain name comprises test, the application program environment is test; when the domain name comprises a preview, the application program environment is a preview; when an online is included in the domain name, the application environment is online.
In step S12, environment data corresponding to the application program is determined according to the determined application program environment. The environment data is a data set summary of a specific environment which is required to be displayed when the client application program runs. In general, the data seen by the online user comes from a formal environment (namely, the online environment), the development and test environment data cannot be communicated with the online formal environment, and only some mock data are provided for meeting the test requirement. The application environment refers to a use environment (online, dev, etc.) where the application is currently located; the environment data is the general term of a set of data sets corresponding to the application program environment, and includes: interface data, account system, policies, configurations, etc. In addition, the application program environment and the environment data are in one-to-one correspondence, and the environment data corresponding to the application program environment can be known after the application program environment is known.
In step S13, the determined application environment and the determined environment data are displayed.
According to the technical scheme, the network domain name of the main engineering network is acquired, the application program environment corresponding to the application program is determined based on the network domain name, the environment data corresponding to the application program is determined based on the determined application program environment, and the determined application program environment and the environment data are displayed, so that the application program can know which application program environment (such as development, test, preview, online application program environment and the like) is currently used and which environment data is used, and richer information is provided.
Optionally, in an embodiment of the present invention, the method further includes: scanning a parent directory taking a private directory of an application program as a folder and a template folder taking an application program environment as a folder name in equipment for installing the application program, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, wherein the file information comprises at least one of the following: file name, file content, latest modification time, size, file version; and for either, displaying the file information. For example, file information is taken through an API. Thus, the information of the template file is known.
Optionally, in an embodiment of the present invention, the method further includes the following. For any template file with the acquired file information, under the condition that the file information comprises a file name, analyzing the content at the preset position of the file name to acquire the ID of the template file; and displaying the ID. The location of the ID in the file name is known in advance, and the ID is obtained by analyzing the content of the location. For example, the file name is formed by splicing MD5 and ID, the ID is placed at the back of MD5, the ID is known to occupy the second half of the file name in advance, and the ID is obtained by analyzing the content of the second half of the file name. In this way, knowledge of the necessary information ID of the template file is achieved.
Optionally, in an embodiment of the present invention, the method further includes the following. Judging whether the template file is available according to the size of any template file with the acquired file information under the condition that the file information comprises the size; judging whether any one is completely downloaded according to a judging result of whether any one is available or not and whether the file information further comprises a file name, a file version and the latest modification time; and displaying the complete judgment result of whether any one is downloaded. For example, in the case where the size is 0, the template file is not available; in the case where the size is not 0, the template file is available; under the condition that the file information also comprises a file name, a file version and the latest modification time, the information in the file is complete; in the case where the file information does not include all of the file name, the file version, and the latest modification time, the information in the file is incomplete. If the template file is available and the information in the file is complete, downloading the template file is complete; if the template file is not available and/or the information in the file is incomplete, the downloading of the template file is incomplete. Thus, the status of the template file is known, and whether the downloading of the template file is complete is known.
Optionally, in an embodiment of the present invention, the method further includes the following. For any template file corresponding to the application program, the method further comprises the following steps: obtaining template identification information of a template file, wherein the template identification information comprises: file timestamp, MD5, file name or ID; based on the template identification information, finding a template file corresponding to the template identification information; and re-pulling or deleting the found template file. In this way, the operations of cleaning up the local template file and re-pulling the template file are simplified. Specifically, when deleting based on the template identification information, when receiving an instruction for deleting a certain template file on the application program, the template identification information corresponding to the template file is taken out from the memory of the application program; finding a unique character string which can be mapped with the template identification information in equipment for installing an application program, wherein the unique character string is generated by splicing a file time stamp, MD5, a file name or ID of a template file; finding a storage address corresponding to the unique character string through the unique character string which can be mapped with the template identification information, wherein the storage address is the storage address of the template file in the equipment for installing the application program; and finding a template file through the found storage address, wherein the template file is the template file to be deleted, and executing the deleting operation on the template file. The template identification information comprises a file timestamp, MD5, a file name or ID of the template file, the unique character string comprises the file timestamp, MD5, the file name or ID of the template file, and the mapping of the template identification information and the unique character string means that the file timestamp, MD5, the file name or ID in the template identification information and the file timestamp, MD5, the file name or ID in the unique character string can be in one-to-one correspondence. The template file corresponding to the unique character string which can be mapped with the template identification information is the template file corresponding to the template identification information.
Optionally, in an embodiment of the present invention, finding a template file corresponding to the template identification information based on the template identification information and re-pulling or deleting the found template file includes: under the condition that the downloading of the template file is incomplete or the template identification information is marked and cleared, the template file corresponding to the template identification information is found based on the template identification information; and re-pulling the found template file. And re-pulling is performed under the condition that the template identification information is marked and cleared, so that the situation that all template files are required to be pulled every time an application program is opened can be realized, and test cases for pulling part of the template files are met.
Among them, the case of re-pulling the template file for the template identification information cleared by the flag may include the following. When a certain template file is needed, for example, when a certain template file is needed to be used for generating a certain UI interface, template identification information corresponding to the template file is found in the memory of an application program, if the template identification information is marked and cleared, the template file corresponding to the template identification information is found from a preset template file management platform based on the template identification information, and the found template file is pulled again. The template identification information comprises a file time stamp, MD5, a file name or ID, the template identification information and the template files are in one-to-one correspondence in a preset template file management platform, and a unique template file can be determined from the preset template file management platform, wherein the template file is the template file corresponding to the marked and cleared template identification information; the template file determined from the preset template file management platform is stored to the storage address of the template file corresponding to the template identification information which is previously stored with the marked clear, wherein the storage address can be found through a unique character string which can be mapped with the template identification information which is marked clear, and particularly, the content described in the related embodiment of the 'deleted template file' is referred to. In addition, when a certain template file is used but the template identification information thereof is marked for removal, the template file which is now stored in the device for installing the application program can be found for use based on the marked template identification information, for example, the template file stored in the device can be found as described in the related embodiment of "delete template file" described above; and when the template file is reused next time, the re-pulled template file is used.
In addition, the case of re-pulling the template file for incomplete download of the template file may include the following. When a certain template file is needed to be used but the downloading of the template file is judged to be incomplete, a template file corresponding to the template identification information is found from a preset template file management platform based on the template identification information of the template file in a memory of an application program, and the found template file is redrawn, wherein the template identification information comprises a file timestamp, MD5, a file name or ID, a unique template file can be determined from the preset template file management platform, and the template file is judged to be downloaded to the template file corresponding to the incomplete template file; the template file determined from the preset template file management platform is stored to the storage address of the template file corresponding to the template identification information stored previously, wherein the storage address can be found through a unique character string which can be mapped with the template identification information, and in particular, see the description of the related embodiment of the "deleting the template file" above.
Optionally, in the embodiment of the present invention, whether the template file is completely downloaded may be determined based on the following contents: judging whether a unique character string corresponding to a template file stored in equipment for installing an application program exists or not, wherein the unique character string can be mapped with template identification information, and the unique character string is generated by splicing a file time stamp, MD5, a file name or ID. Specifically, judging whether a unique character string which can be mapped with the template identification information corresponding to the template file exists in the unique character string corresponding to the template file stored in the equipment for installing the application program, and if the unique character string which can be mapped with the template identification information corresponding to the template file exists, indicating that the template file is completely downloaded; if the unique character string which can be mapped with the template identification information corresponding to the template file does not exist, the incomplete downloading of the template file is indicated.
In summary, aiming at the defects in the prior art, the technical scheme provided by the embodiment of the invention can realize the following advantages: a. the information of the template file is displayed, so that the current state of the template file can be visually seen; b. intuitively seeing the current data environment; c. the management (adding and deleting) of the template files is conveniently supported, the learning cost is avoided, and various testing requirements are met; d. the file can be pulled at any time, and the latest template is updated at any time.
Accordingly, another aspect of an embodiment of the present invention provides an apparatus for managing an application.
Fig. 2 is a block diagram of an apparatus for managing an application according to another embodiment of the present invention. As shown in fig. 2, the apparatus includes a network domain name acquisition module 1, an application environment determination module 2, an environment data determination module 3, and a display module 4. The network domain name acquisition module 1 is used for acquiring a network domain name of a main engineering network in which an application program is located; the application program environment determining module 2 is used for determining an application program environment corresponding to an application program based on the network domain name; the environment data determining module 3 is configured to determine environment data corresponding to the application program according to the determined application program environment; the display module 4 is used for displaying the determined application environment and the determined environment data.
Optionally, in an embodiment of the present invention, the apparatus further includes: the device comprises a scanning module, a template folder, a file information processing module and a storage module, wherein the scanning module is used for scanning a parent directory taking a private directory of an application program as a folder and a template folder taking an application program environment as a folder name in equipment for installing the application program, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, wherein the file information comprises at least one of the following: file name, file content, latest modification time, size, file version; and the display module is also used for displaying file information for any one.
Optionally, in an embodiment of the present invention, the apparatus further includes: the analyzing module is used for analyzing the content at the preset position of the file name to acquire the ID of any one of the file names when the file information comprises the file name; the display module is also used for displaying the ID.
Optionally, in an embodiment of the present invention, the apparatus further includes: a judging module, configured to, for any one of: if the file information includes the size, judging whether any one is available according to the size; judging whether any one is completely downloaded according to the judging result of whether any one is available or not and whether the file information also comprises a file name, a file version and the latest modification time; the display module is also used for displaying whether any one downloads the complete judging result.
Optionally, in an embodiment of the present invention, the apparatus further includes: the template identification information acquisition module is used for acquiring template identification information of a template file aiming at any template file corresponding to an application program, wherein the template identification information comprises: file timestamp, MD5, file name or ID; the re-pulling or deleting module is used for finding out a template file corresponding to the template identification information based on the template identification information aiming at any template file corresponding to the application program; and re-pulling or deleting the found template file.
Optionally, in an embodiment of the present invention, the re-pulling or deleting module finds a template file corresponding to the template identification information based on the template identification information, and re-pulling or deleting the found template file includes: under the condition that the downloading of the template file is incomplete or the template identification information is marked and cleared, the template file corresponding to the template identification information is found based on the template identification information; and re-pulling the found template file.
Optionally, in the embodiment of the present invention, the template file is judged whether to be downloaded completely based on the following: judging whether a unique character string corresponding to a template file stored in equipment for installing an application program exists or not, wherein the unique character string can be mapped with template identification information, and the unique character string is generated by splicing a file time stamp, MD5, a file name or ID.
The specific working principle and benefits of the device for managing an application program provided by the embodiment of the present invention are similar to those of the method for managing an application program provided by the embodiment of the present invention, and will not be described herein.
The device for managing the application program comprises a processor and a memory, wherein the network domain name acquisition module, the application program environment determination module and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel may set one or more kernel parameters to learn which application environment and which environment data the application is currently using.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
An embodiment of the present invention provides a machine storage medium having stored thereon a program which, when executed by a processor, implements the method for managing an application described in the above embodiment.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program runs to execute the method for managing the application program in the embodiment.
The embodiment of the invention provides an electronic device, which comprises a processor, a memory and a program stored on the memory and capable of running on the processor, wherein the following steps are realized when the processor executes the program: acquiring a network domain name of a main engineering network in which an application program is located; determining an application program environment corresponding to the application program based on the network domain name; determining environment data corresponding to the application program according to the determined application program environment; and displaying the determined application environment and the determined environment data. Optionally, scanning a template folder with a private directory of an application program as a parent directory of the folder and an application program environment as a folder name in a device for installing the application program, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, wherein the file information comprises at least one of the following: file name, file content, latest modification time, size, file version; and for either, displaying the file information. Optionally, for any one, the method further comprises: in the case that the file information includes a file name, resolving the content at a preset position of the file name to acquire an ID of either one; and displaying the ID. Optionally, for any one, the method further comprises: in the case that the file information includes a size, judging whether any one is available according to the size; judging whether any one is completely downloaded according to a judging result of whether any one is available or not and whether the file information further comprises a file name, a file version and the latest modification time; and displaying the complete judgment result of whether any one is downloaded. Optionally, for any template file corresponding to the application program, the method further includes: obtaining template identification information of a template file, wherein the template identification information comprises: file timestamp, MD5, file name or ID; based on the template identification information, finding a template file corresponding to the template identification information; and re-pulling or deleting the found template file. Optionally, finding a template file corresponding to the template identification information based on the template identification information and re-pulling or deleting the found template file includes: under the condition that the downloading of the template file is incomplete or the template identification information is marked and cleared, the template file corresponding to the template identification information is found based on the template identification information; and re-pulling the found template file. Optionally, the template file is judged whether to be downloaded in its entirety based on: judging whether a unique character string corresponding to a template file stored in equipment for installing an application program exists or not, wherein the unique character string can be mapped with template identification information, and the unique character string is generated by splicing a file time stamp, MD5, a file name or ID. The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: acquiring a network domain name of a main engineering network in which an application program is located; determining an application program environment corresponding to the application program based on the network domain name; determining environment data corresponding to the application program according to the determined application program environment; and displaying the determined application environment and the determined environment data. Optionally, scanning a template folder with a private directory of an application program as a parent directory of the folder and an application program environment as a folder name in a device for installing the application program, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, wherein the file information comprises at least one of the following: file name, file content, latest modification time, size, file version; and for either, displaying the file information. Optionally, for any one, the method further comprises: in the case that the file information includes a file name, resolving the content at a preset position of the file name to acquire an ID of either one; displaying the ID; for either, the method further comprises: in the case that the file information includes a size, judging whether any one is available according to the size; judging whether any one is completely downloaded according to a judging result of whether any one is available or not and whether the file information further comprises a file name, a file version and the latest modification time; and displaying the complete judgment result of whether any one is downloaded. Optionally, for any template file corresponding to the application program, the method further includes: obtaining template identification information of a template file, wherein the template identification information comprises: file timestamp, MD5, file name or ID; based on the template identification information, finding a template file corresponding to the template identification information; and re-pulling or deleting the found template file. Optionally, finding a template file corresponding to the template identification information based on the template identification information and re-pulling or deleting the found template file includes: under the condition that the downloading of the template file is incomplete or the template identification information is marked and cleared, the template file corresponding to the template identification information is found based on the template identification information; and re-pulling the found template file. Optionally, the template file is judged whether to be downloaded in its entirety based on: judging whether a unique character string corresponding to a template file stored in equipment for installing an application program exists or not, wherein the unique character string can be mapped with template identification information, and the unique character string is generated by splicing a file time stamp, MD5, a file name or ID.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.
Claims (8)
1. A method for managing an application, the method comprising:
Acquiring a network domain name of a main engineering network in which the application program is located;
determining an application program environment corresponding to the application program based on the network domain name;
Determining environment data corresponding to the application program according to the determined application program environment; and
Displaying the determined application environment and the determined environment data,
Wherein, for any one of at least one template file corresponding to the application environment, the method further comprises:
Obtaining template identification information of the template file, wherein the template identification information comprises: file timestamp, MD5, file name or ID;
based on the template identification information, a template file corresponding to the template identification information is found; and
The found template file is re-pulled or deleted,
Wherein, based on the template identification information, finding a template file corresponding to the template identification information and re-pulling or deleting the found template file comprises:
Under the condition that the downloading of the template file is incomplete or the template identification information is marked and cleared, based on the template identification information, the template file corresponding to the template identification information is found; and
And re-pulling the found template file.
2. The method according to claim 1, characterized in that the method further comprises:
scanning a parent directory taking a private directory of the application program as a folder and a template folder taking the application program environment as a folder name in equipment for installing the application program, and acquiring file information of any one of at least one template file corresponding to the application program environment from the template folder, wherein the file information comprises at least one of the following: file name, file content, latest modification time, size, file version; and
For either one of the file information is displayed.
3. The method of claim 2, wherein for any one of the above, the method further comprises:
If the file information comprises the file name, analyzing the content at the preset position of the file name to acquire the ID of any one; and
And displaying the ID.
4. The method of claim 2, wherein for any one of the above, the method further comprises:
If the file information includes the size, judging whether any one is available according to the size;
Judging whether any one is completely downloaded according to a judging result of whether the any one is available and whether the file information also comprises the file name, the file version and the latest modification time; and
And displaying the complete judging result of whether any one is downloaded.
5. The method of claim 1, wherein the template file is determined whether the download is complete based on:
Judging whether a unique character string corresponding to the template file stored in the equipment for installing the application program exists or not, wherein the unique character string can be mapped with the template identification information, and the unique character string is generated by splicing the file timestamp, the MD5, the file name or the ID.
6. An apparatus for managing an application, the apparatus comprising:
the network domain name acquisition module is used for acquiring the network domain name of the main engineering network in which the application program is located;
An application program environment determining module, configured to determine an application program environment corresponding to the application program based on the network domain name;
the environment data determining module is used for determining environment data corresponding to the application program according to the determined application program environment;
The display module is used for displaying the determined application program environment and the determined environment data;
The template identification information acquisition module is used for acquiring the template identification information of at least one template file corresponding to the application program environment, wherein the template identification information comprises: file timestamp, MD5, file name or ID; and
A re-pulling or deleting module, configured to find a template file corresponding to the template identification information based on the template identification information for any one of at least one template file corresponding to the application program environment, and re-pull or delete the found template file,
Wherein, based on the template identification information, finding a template file corresponding to the template identification information and re-pulling or deleting the found template file comprises:
Under the condition that the downloading of the template file is incomplete or the template identification information is marked and cleared, based on the template identification information, the template file corresponding to the template identification information is found; and
And re-pulling the found template file.
7. A machine-readable storage medium having stored thereon instructions for causing a machine to perform the method of any one of claims 1-5.
8. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110725376.9A CN113434196B (en) | 2021-06-29 | 2021-06-29 | Method and device for managing application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110725376.9A CN113434196B (en) | 2021-06-29 | 2021-06-29 | Method and device for managing application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113434196A CN113434196A (en) | 2021-09-24 |
CN113434196B true CN113434196B (en) | 2024-07-02 |
Family
ID=77757581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110725376.9A Active CN113434196B (en) | 2021-06-29 | 2021-06-29 | Method and device for managing application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113434196B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221593A (en) * | 2019-12-31 | 2020-06-02 | 五八有限公司 | Dynamic loading method and device |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1812848A4 (en) * | 2004-09-15 | 2009-04-29 | Adesso Systems Inc | System and method for managing data in a distributed computer system |
US8359605B2 (en) * | 2009-01-13 | 2013-01-22 | Disney Enterprises, Inc. | System and method for integrated hardware platform for flash applications with distributed objects |
CN106897609B (en) * | 2015-12-17 | 2021-03-26 | 北京奇虎科技有限公司 | Method and device for monitoring dynamically loaded application program |
CN105959138B (en) * | 2016-04-29 | 2019-05-17 | 深圳大数点科技有限公司 | The system and method for micro services Dynamical Deployment based on cloud computing |
CN107133038A (en) * | 2017-04-28 | 2017-09-05 | 广州阿里巴巴文学信息技术有限公司 | A kind of application program changes the method and its device of skin |
CN109814939B (en) * | 2017-11-20 | 2021-10-15 | 华为技术有限公司 | Dynamic loading method, and target file manufacturing method and device |
CN108241500B (en) * | 2018-01-15 | 2022-02-01 | 腾讯科技(深圳)有限公司 | Method, device and system for repairing hardware component and storage medium |
CN110149423B (en) * | 2019-07-04 | 2022-07-22 | 深圳市珍爱捷云信息技术有限公司 | Domain name processing method and device, readable storage medium and electronic equipment |
CN111478985B (en) * | 2020-04-15 | 2022-07-22 | 北京首汽智行科技有限公司 | Service domain name basic information dynamic configuration method |
-
2021
- 2021-06-29 CN CN202110725376.9A patent/CN113434196B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221593A (en) * | 2019-12-31 | 2020-06-02 | 五八有限公司 | Dynamic loading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN113434196A (en) | 2021-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107729352B (en) | Page resource loading method and terminal equipment | |
CN108319460B (en) | Method and device for generating application program installation package, electronic equipment and storage medium | |
CN108563440B (en) | Automatic adding method and device of list controller codes and readable storage medium | |
CN111897623B (en) | Cluster management method, device, equipment and storage medium | |
CN114721783B (en) | Resource file extraction method and device, electronic equipment and storage medium | |
CN111045717B (en) | Method, device, computer equipment and storage medium for acquiring project dependent package | |
CN103793248A (en) | Method and device for upgrading application program | |
CN111159099A (en) | Online data generation method and device, electronic equipment and storage medium | |
CN113268245A (en) | Code analysis method, device and storage medium | |
CN111045941A (en) | Positioning method and device of user interface control and storage medium | |
US20190073198A1 (en) | Multi-flavored software execution from a singular code base | |
US11210110B2 (en) | Application library analytics tool | |
CN113867768A (en) | Operating system processing method and device, electronic equipment and storage medium | |
CN107092472B (en) | Dynamic publishing method and device | |
CN113434196B (en) | Method and device for managing application program | |
CN112346761A (en) | Front-end resource online method, equipment, system and storage medium | |
CN110941471A (en) | Method and device for internationalizing basic data of software system | |
CN112764796A (en) | Installation package generation system | |
CN114153462B (en) | Client source code processing method and device, storage medium and electronic equipment | |
CN111340705B (en) | Application method, device and system of jigsaw software | |
CN113127006B (en) | Service deployment method, device, equipment and storage medium | |
CN110362320B (en) | Command implementation method and device of application development platform | |
CN112764732B (en) | Code generation method and device applied to loading target resource | |
CN110633181B (en) | Visual display method and device | |
CN110377326B (en) | Installation package generation method, installation package generation device, development device and computer readable 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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20240418 Address after: 100000 Room 102, Floor 1, Building 1, No. 2, Chuangye Road, Haidian District, Beijing Applicant after: Seashell Housing (Beijing) Technology Co.,Ltd. Country or region after: China Address before: 101309 room 24, 62 Farm Road, Erjie village, Yangzhen, Shunyi District, Beijing Applicant before: Beijing fangjianghu Technology Co.,Ltd. Country or region before: China |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant |