CN115485661A - Resource processing method and device, electronic equipment and storage medium - Google Patents
Resource processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115485661A CN115485661A CN202080100573.5A CN202080100573A CN115485661A CN 115485661 A CN115485661 A CN 115485661A CN 202080100573 A CN202080100573 A CN 202080100573A CN 115485661 A CN115485661 A CN 115485661A
- Authority
- CN
- China
- Prior art keywords
- resource
- package
- application
- dynamic
- demand
- 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
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
A resource processing method, a device, a storage medium and an electronic device relate to the technical field of computers, and the method comprises the following steps: receiving application information of an application program installed in a terminal reported by the terminal (S210); according to the application information, a resource index library for determining dynamic modularized on-demand loading of resource packages is constructed (S220); and based on the resource index library, distributing the dynamic modularized on-demand resource package contained in the application bundle package (S230). The limitation can be reduced and the application package can be used completely.
Description
The disclosed embodiments relate to the field of computer technologies, and more particularly, to a resource processing method, a resource processing apparatus, an electronic device, and a computer-readable storage medium.
In the process of application program development, an application program packaging mode represented by application bundling can be adopted to greatly reduce the volume of the application program.
In the related art, a user can only directly download a resource package of an application program, but cannot obtain part of functions thereof, so that the function of dynamically modularizing and loading the resource package as required by the application program cannot be used. Therefore, it is difficult to obtain complete functions, and the method has certain limitations, and affects users to find suitable application packages, and has poor accuracy.
Disclosure of Invention
The embodiment of the disclosure provides a resource processing method, a resource processing device, an electronic device and a computer readable storage medium, which can solve the problem of poor accuracy in a certain program.
According to an aspect of the embodiments of the present disclosure, there is provided a resource processing method, including: receiving application information of an application program installed in a terminal reported by the terminal; according to the application information, a resource index library for determining dynamic modularized on-demand loading of resource packages is constructed; and based on the resource index library, distributing the dynamic modularized on-demand loading resource packages contained in the application bundle package.
According to an aspect of the present disclosure, there is provided a resource processing apparatus including: the information acquisition module is used for receiving application information of an application program which is reported by a terminal and is installed on the terminal; the index base building module is used for building a resource index base for determining dynamic modular on-demand loading resource packages according to the application information; and the resource distribution module is used for carrying out distribution operation on the dynamic modularized on-demand loading resource packages contained in the application bundle package based on the resource index library.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the resource processing method of any one of the above.
According to an aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform any of the resource handling methods described above via execution of the executable instructions.
According to the technical scheme, on one hand, the resource index base can be constructed by using the application information uploaded by the terminal, and then whether the application bundle packet contains the dynamic modular on-demand resource packet or not is judged according to the resource index base, so that the application bundle packets can be effectively distinguished. On the other hand, the dynamic modularized on-demand resource package can be acquired, so that the function of the dynamic modularized on-demand resource package of the application can be used. For the terminal, the limitation that the dynamic modular on-demand resource package cannot be used is avoided, the complete function of the module can be obtained, the terminal can also obtain a proper and accurate application program package, and the accuracy is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Fig. 1 shows a schematic diagram of a system architecture of an embodiment of the present disclosure.
Fig. 2 shows a schematic flow chart of a resource handling method of an embodiment of the present disclosure.
Fig. 3 shows a schematic structural diagram of a resource index library according to an embodiment of the present disclosure.
Fig. 4 shows an application scenario diagram of an embodiment of the present disclosure.
FIG. 5 is a flowchart illustrating a process for non-dynamic modular on-demand loading of resource packages according to an embodiment of the present disclosure.
FIG. 6 is a flowchart illustrating a process for dynamically modular on-demand loading of resource packages according to an embodiment of the present disclosure.
FIG. 7 is a flowchart illustrating another process for dynamically modeling on-demand loading of resource packages according to an embodiment of the present disclosure.
FIG. 8 illustrates yet another process flow diagram for dynamically modular on-demand loading of resource packages in accordance with an embodiment of the disclosure.
Fig. 9 shows a schematic structural diagram of a resource processing apparatus according to an embodiment of the present disclosure.
Fig. 10 shows a schematic diagram of an electronic device for implementing the resource processing method of the embodiment of the present disclosure.
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
A system architecture diagram of the method of an embodiment of the present disclosure is schematically illustrated in fig. 1, and as shown in fig. 1, the system architecture 100 may include a first end 101, a network 102, and a second end 103. The first end 101 may be a client, and may be, for example, various handheld devices (smart phones), tablet computers, desktop computers, vehicle-mounted devices, wearable devices, and the like, which are capable of downloading and installing applications. The network 102 is used to provide a medium for a communication link between the first end 101 and the second end 103, the network 102 may include various connection types, such as a wired communication link, a wireless communication link, and the like, and in the embodiment of the present disclosure, the network 102 between the first end 101 and the second end 103 may be a wired communication link, for example, the communication link may be provided through a serial connection line, or may be a wireless communication link, and the communication link may be provided through a wireless network. The second terminal 103 may be a client terminal, for example, a terminal device with a data processing function, such as a portable computer, a desktop computer, a smart phone, and the like, for performing data processing. When the first end and the second end are both clients, the first end and the second end may be the same client. The second end may also be a server, such as a local server or a cloud server, and the like, which is not limited herein.
It should be understood that the number of first ends, networks and second ends in fig. 1 is merely illustrative. There may be any number of clients, networks, and servers, as desired for an implementation.
It should be noted that the resource processing method provided by the embodiment of the present disclosure may be completely executed by the second end, and accordingly, the resource processing apparatus may be disposed in the second end 103.
Based on the system architecture shown in fig. 1, a resource processing method is provided in the embodiment of the present disclosure. Fig. 2 schematically shows a flowchart of a resource processing method in an embodiment of the present disclosure, and with reference to fig. 2, the method mainly includes steps S210 to S230, and the following is described in detail:
in step S210, application information of an application installed in a terminal reported by the terminal is received.
In the embodiment of the present disclosure, a terminal refers to any one or more terminals, and an application refers to all applications installed on each terminal, for example, application 1, application 2, and the like. The application program may be an application downloaded from any channel, for example, from an application store of the terminal itself or from a third party. The application information refers to all information related to the application program, and can be used for describing information such as resource package downloading of the application program. In the embodiment of the present disclosure, the application information may include, but is not limited to, attribute information and resource information. The attribute information refers to attribute information (download-on-demand attribute) of a dynamic module of a preset application, and the resource information refers to a package name and a version number (software version number and hardware version number) corresponding to a resource package, a file name included in the resource package, and the like.
In the embodiment of the disclosure, the application information may be uploaded to the server by the terminal through checking the update interface. Specifically, the specific process of the terminal determining the application information may include: scanning a dynamic module catalog of a preset application, and scanning an application list of each dynamic module one by one. The preset application refers to a bundle application. bundle is a file format (new upload format) of an application, and suffix is aab. The inside of the resource file contains code and many resource subfiles, such as pictures, audio or video, etc. bundle packages facilitate referencing resources within the package among other items. And the checking updating module in the terminal scans a dynamic module catalogue (split catalogue) of the preset application when scanning the application program installed no matter what channel is passed. Apk may be scanned one by one for on-demand download attributes in the application manifest for each dynamic module split _ xxx. Xml, the application manifest includes configuration information of the application program, and the system needs to run the code of the application program according to the configuration information, and display an interface accordingly. The on-demand download attribute may be represented by onddemand = true to distinguish whether the dynamic on-demand download module needs to be downloaded. That is, the terminal scans the onDemand = true attribute in manifest.xml of split _ xxx.apk one by one.
And step two, if the on-demand download attribute exists in the scanned application list, providing resource marking information for representing dynamic modularized on-demand loading resource packages, and determining the resource information of the dynamic modularized on-demand download resources. If this attribute is found in the application manifest, resource marking information may be added in the check update interface, which may be used to mark the resource (the resource of the preset application) as a dynamic modular on-demand resource package dynamic _ split. The resource marking information may be represented by data or an identifier, and is not particularly limited herein. Meanwhile, resource information corresponding to the preset application resource can be provided, and the resource information can include, but is not limited to, information such as a package name, a version number, a file name and the like of the resource package, so that the application information can be obtained by combining the resource information with the attribute information. After the client obtains the application information, the application information can be uploaded to the server through the check updating interface, so that the server can realize a sharing mechanism of dynamically modularizing and loading the resource package on demand through uploading data on the basis of user data on the terminal.
In step S220, a resource index library for determining dynamic modular on-demand resources is constructed according to the application information.
In the embodiment of the disclosure, after obtaining the application information, the server may construct a resource index library according to the application information. The resource index library can be understood as a database for storing a plurality of resource packages of the corresponding versions of the terminal. The resource index library may be a bundle resource index library, and is used for assisting a resource side of the server to determine whether an application bundle packet obtained by packet capture is a dynamic modular on-demand resource packet (dynamic _ split resource) for a subsequent application bundle packet obtained by packet capture. The dynamically modular on-demand resource package may be part of the functionality of an application package, downloaded according to user requirements. For the resource index library, all resource packages of the terminal corresponding to the model 1 may be stored, all resource packages of the terminal corresponding to the model 2 may be stored, and so on. When the resource index library is constructed, the resource index library can be constructed according to different version numbers of different terminals, and directories corresponding to the terminals of different models can be completely different. And different version numbers of the terminals of the same type respectively correspond to one directory, and the file names under different directories are different.
When the resource index library is constructed, an association relation can be established among the model number, the version number, the package name and the file name of the terminal, so that the resource index library is established. By establishing the resource index library, a large number of file names can be stored, so that whether the resources are dynamically modularized on-demand resource packages or not can be accurately judged according to the resource index library, the function of accurately determining the type of each resource is realized, whether the resources carry the dynamically modularized on-demand resource packages or not can be judged when the resources are put in storage, and accurate distinguishing is carried out. The retrieval speed of the resource packet can be increased, the integrity of data is realized, and the storage performance of the resource packet is improved.
Referring to the schematic diagram of the resource index library shown in fig. 3, for a terminal corresponding to model 1, the version numbers are facebook1.0, facebook2.0, and facebook3.0, respectively. The directory corresponding to each version number may include a plurality of file names, and the plurality of file names may be the same or different, and the specific parameters corresponding to the same file name may also be the same or different. The directory corresponding to facebook1.0 may include, but is not limited to, split _ config.apk, split _ hdpi.apk, split _ arm64.apk, split _ xxx.apk, and so on.
Referring to fig. 4, the application program in the application store is dynamically delivered to the terminal. The application store includes a plurality of dynamically modular application packages, i.e., split apps. The split apps mechanism belongs to a basic component of dynamic distribution, and a bundle is generally adopted to dynamically distribute an application program. The split apps may include, for example, filenames contained in the resource index repository. And the terminal downloads the most suitable split apps respectively, and the android platform can treat the plurality of the installed split apps as one application program. The application service model name of the application store uses the application bundle to generate and provide an optimized application package apk for each user's device configuration, so the user need only download the code and resources it needs to run the application. Multiple apks need not be compiled, signed and managed to support different devices, and users can get smaller, more optimized download packages.
With continued reference to fig. 2, in step S230, a distribution operation is performed on the dynamically modular on-demand resource package included in the application bundle package based on the resource index library.
In the embodiment of the present disclosure, the application bundle package may be a resource package corresponding to any application program. The application bundle package may include dynamic _ split of the dynamic modular on-demand resource package, or may include a non-dynamic modular on-demand resource package (i.e., non-dynamic _ split), and whether the dynamic modular on-demand resource package is included may be determined according to the resource index library. In the embodiments of the present disclosure, after determining the type of the included resource packages, the resource packages may be distributed through three different phases, respectively. Specifically, in the first stage, non-dynamic _ split packet resources are distributed, and the distribution capability of the whole packet of the app bundle is provided (all app packages apk are issued to the user together without aiming at the model, system version and screen resolution, and mainly for capability completion). And in the second stage, flexibly distributing non-dynamic _ split packet resources (providing flexible split packet distribution capability, and distributing proper resources apkl according to different models, system versions and screen resolutions). In the third stage, distributing resources containing dynamic _ split, and if a resource background has a dynamic _ split packet, distributing the dynamic _ split together while distributing the resources; if the resource background does not exist, self-updating is carried out through the wireless network, and downloading of the resources is completed.
For a non-dynamic modular on-demand resource package, the processing procedure may be as shown in fig. 5, and specifically includes the following steps:
step S510, judging whether the time of the application bundle package existing in the resource index library meets the time condition; if yes, go to step S520; if not, the process is ended.
Step S520, matching the application bundle package with the dynamic modularized on-demand resource package in the resource index library to determine whether the application bundle package belongs to the dynamic modularized on-demand resource package. If not, go to step S530.
Step S530, the application bundle package is put on shelf to distribute the non-dynamic modularized on-demand loading resource package.
In the embodiment of the disclosure, before an app bundle package resource (application bundle package) is put in storage from a capture package, whether the application bundle package is a dynamic modular on-demand resource package is retrieved according to a resource index library. Packet grabbing refers to the continuous request of multiple terminals to download application packages. Before determining whether the resource package belongs to the dynamic modular on-demand resource package, it is first determined whether the time for storing the resource into the resource index library satisfies a time condition. The time condition here may be exceeding a time threshold (e.g., exceeding 7 days) to ensure the accuracy of the resource index repository. If the time exceeds 7 days, whether the application bundle package is a dynamic modularized on-demand resource package can be continuously judged.
When determining whether the application bundle package is a dynamic modular on-demand resource package, the application bundle package may be matched with all dynamic modular on-demand resource packages in the resource index library, so as to determine whether the application bundle package belongs to the dynamic modular on-demand resource package according to a matching result. When matching, if the attribute information of the application bundle package is matched with the attribute information of the resource in the resource index library, the successful matching of the two can be determined. The attribute information refers to the on-demand download attribute onddemand = true. That is, as long as the on-demand download attribute matching is successful, it can be determined that it is a dynamic modular on-demand load resource package. If the application bundle package does not belong to the dynamic modular on-demand resource package, the application bundle package can be subjected to racking operation. That is, if the resource can be accurately determined to be a non-dynamic _ split packet, the resource is put on shelf.
In addition, an application distribution strategy based on user shared resources can be adopted to distribute the dynamic modularized on-demand resource package. A flow diagram for distributing a dynamically modular on-demand resource package is schematically illustrated in fig. 6. As shown in fig. 6, mainly includes the following steps:
in step S610, all applications installed in the terminal are automatically scanned.
In step S620, it is determined whether the application bundle package contains a dynamic modular on-demand resource package. If yes, go to step S630; if not, ending.
In step S630, in response to the query request sent by the terminal, it is convenient to determine whether the dynamic modular on-demand resource package exists at the server according to the query request result. If not, go to step S640; if yes, go to step S650.
In step S640, if the query request result indicates that the dynamic modular on-demand resource package does not exist at the server, the application bundle package uploaded by the terminal is received for distribution operation.
In step S650, if the query request result is that it is determined that the dynamic modular on-demand resource package exists at the server, the terminal stops uploading the application bundle package and performs a distribution operation.
In the embodiment of the disclosure, for a terminal corresponding to an application store, all installed application programs on the terminal are automatically scanned while the terminal is opened. And scanning whether the dynamic modularized on-demand loading resource package is in an application bundle package (app bundle package) or not while scanning the installed application program. And if the dynamic _ split packet exists, requesting the server side to obtain an inquiry request result that the server side contains the dynamic modular on-demand resource packet or does not contain the dynamic modular on-demand resource packet, so as to judge whether to upload the application bundle packet according to the inquiry request result. If the server does not have the package, the terminal is required to upload the dynamic modularized on-demand resource package to the server, so that the server can receive the application bundle package uploaded by the terminal to perform distribution operation. If the server side has the packet, the terminal is not required to upload the dynamic modularized on-demand resource packet to the server side, so that the terminal stops uploading, the server side cannot receive the application bundle packet, and the distribution operation cannot be performed through the uploading of the terminal.
Another flow diagram for distributing dynamically modular on-demand resource packages using an application distribution policy based on user shared resources is schematically illustrated in FIG. 7. As shown in fig. 7, mainly includes the following steps:
step S710, for a terminal which is installed with an application bundling package not containing a dynamic modularized on-demand resource package, distributing the dynamic modularized on-demand resource package of the application bundling package to the terminal in an automatic updating mode;
step S720, directly distributing all application program packages for terminals which are not provided with application bundle packages which do not contain dynamic modularized on-demand resource packages.
In the embodiment of the disclosure, for the resource A without the dynamic modularized on-demand resource package installed in the terminal, the dynamic modularized on-demand resource package of the resource A is distributed to the user by using automatic update. That is, if the resource package is updated to the dynamic modularized on-demand corresponding to the resource a, it can be pushed to the terminal. And for the terminal without the resource A, directly distributing all application program packages for the terminal, wherein all the program packages comprise the dynamic modularized on-demand loading resource packages.
Through the technical scheme in fig. 7, the corresponding dynamic modular on-demand resource packages can be distributed to all resources, so that the terminal can use the resource packages conveniently, and the integrity is ensured.
Yet another flow diagram for distributing dynamically modular on-demand resource packages using user-shared resource based application distribution policies is schematically illustrated in FIG. 8. As shown in fig. 8, mainly includes the following steps:
step S810, detecting whether the server side obtains a dynamic modularized on-demand resource package of the application bundle package;
step S820, if not, distributing all application program packages except the dynamic modularized on-demand resource package to the terminal, and distributing the dynamic modularized on-demand resource package in an automatic updating mode;
step S830, if yes, all application program packages including the dynamic modular on-demand resource package are distributed to the terminal.
In the embodiment of the disclosure, if it is detected that the server does not obtain the dynamic modularized on-demand resource package of the application bundle package reported by the user through the terminal, the server first distributes all application program packages except the dynamic modularized on-demand resource package to the requesting terminal; and then distributing the dynamic modularized on-demand resource package after the resource package is loaded in an automatic updating mode. And if the server side obtains the dynamic modularized on-demand resource package of the application bundle package reported by the user through the terminal, directly distributing all application program packages to the requested terminal, wherein all the application program packages comprise the dynamic modularized on-demand resource package.
Through the technical scheme in fig. 8, the application program package distributed to the terminal is determined according to whether the server includes the dynamic modular on-demand resource package, so that the integrity and accuracy of the distributed resource package can be ensured.
According to the technical scheme, the resource index library can be constructed by using the application information uploaded by the terminal, and whether the application bundling packet contains the dynamic modular on-demand resource packet or not is judged according to the resource index library, so that the application bundling packets can be effectively distinguished. In addition, in the embodiment of the present disclosure, the dynamic modularized on-demand resource package may be acquired, so that the function of the dynamic modularized on-demand resource package of the application may be used. For the terminal, the complete function of the module can be obtained, the limitation is avoided, the terminal can also obtain a proper and accurate application program package, and the accuracy is improved.
In the embodiment of the disclosure, other index libraries may also be established based on application information related to user data uploaded by the terminal. The application program installed by the user at the terminal, whether the application program is uploaded to the server from which channels (application stores or application treasures) are downloaded, can establish an other index library for providing tool support for the background.
In the embodiment of the disclosure, a dynamic modularized on-demand resource package sharing mechanism of an application bundle package (app bundle) is created as an application program package apk sharing mechanism of a software store. Here, all applications can be checked through the resource index repository. Even if the user does not belong to the application bundle, the user uploads the application bundle to the server side through the terminal instead of capturing the packet, so that the user does not need to capture the packet through the terminal. Therefore, the efficiency of obtaining the application packages is improved, the number of the applications can be further complemented, the user can find the more desirable application packages more easily, and the accuracy is improved. In addition, in the embodiment of the disclosure, the distribution efficiency of the dynamic modular on-demand resource package is improved by adopting a distribution strategy through the resource index library established by the application information uploaded by the terminal, and the distribution capability of the application bundle package of the application store can be supplemented in stages, so that a large number of resources of the application program can be added to the application store, and the downloading amount of the resource package of the application program can be increased.
In an embodiment of the present disclosure, there is also provided a resource processing apparatus, and referring to fig. 9, the resource processing apparatus 900 may include:
an information obtaining module 901, configured to receive application information of an application installed in a terminal, which is reported by the terminal;
an index library constructing module 902, configured to construct, according to the application information, a resource index library for determining a dynamic modular on-demand resource package;
and the resource distribution module 903 is configured to perform distribution operation on the dynamic modularized on-demand resource package included in the application bundle package based on the resource index library.
In an exemplary embodiment of the present disclosure, the application information is composed of resource information and an on-demand download attribute; and the resource information is determined when the on-demand download attribute exists in an application list of each dynamic module according to the directory by scanning the dynamic module directory of the preset application through the terminal.
In an exemplary embodiment of the present disclosure, the resource distribution module includes: the resource package judging module is used for automatically scanning all application programs installed on the terminal and determining whether the application bundling package contains a dynamic modularized on-demand resource package; and the distribution control module is used for responding to an inquiry request sent by the terminal if the application bundle package is determined to contain the dynamic modularized on-demand resource package, so as to judge whether the application bundle package is distributed through the terminal according to the inquiry request result.
In an exemplary embodiment of the present disclosure, the distribution control module includes: the first distribution module is used for receiving the dynamic modularized on-demand resource package of the application bundle package uploaded by the terminal to perform distribution operation if the query request result indicates that the dynamic modularized on-demand resource package does not exist at the server side; and the distribution stopping module is used for stopping the distribution operation by uploading the application bundle package through the terminal if the query request result is that the dynamic modularized on-demand resource package is determined to exist in the server.
In an exemplary embodiment of the present disclosure, the resource distribution module includes: the second distribution module is used for distributing the dynamic modularized on-demand loading resource package of the application bundling package to the terminal in an automatic updating mode for the terminal which is provided with the application bundling package without the dynamic modularized on-demand loading resource package; and the all-package distribution module is used for directly distributing all the application program packages to the terminal which is not provided with the application bundle package which does not contain the dynamic modular on-demand loading resource package.
In an exemplary embodiment of the present disclosure, the resource distribution module includes: the automatic updating module is used for distributing all application program packages except the dynamic modularized on-demand resource package to the terminal and distributing the dynamic modularized on-demand resource package in an automatic updating mode if the fact that the server side does not obtain the dynamic modularized on-demand resource package of the application bundling package is detected; and the application package distribution module is used for distributing all application program packages including the dynamic modularized on-demand resource packages to the terminal if the situation that the server side obtains the dynamic modularized on-demand resource packages of the application bundle package is detected.
In an exemplary embodiment of the present disclosure, the apparatus further includes: the matching module is used for matching the application bundle package with a dynamic modularized on-demand resource package in the resource index library if the time when the application bundle package exists in the resource index library meets a time condition; and the non-dynamic package distribution module is used for shelving the application bundling package to distribute the non-dynamic modularized on-demand resource package if the application bundling package does not belong to the dynamic modularized on-demand resource package.
It should be noted that, specific details of each module in the resource processing apparatus provided in the embodiment of the present disclosure have been described in specific steps of the resource processing method, and therefore, no further description is given here.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 1000 according to this embodiment of the invention is described below with reference to fig. 10. The electronic device 1000 shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 10, the electronic device 1000 is in the form of a general purpose computing device. The components of the electronic device 1000 may include, but are not limited to: the at least one processing unit 1001, the at least one memory unit 1002, and a bus 1003 connecting different system components (including the memory unit 1002 and the processing unit 1001).
Bus 1003 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
The storage unit 1002 can include readable media in the form of volatile memory, such as Random Access Memory (RAM) 10021 and/or cache memory 10022, which can further include Read Only Memory (ROM) 10023.
The storage unit 1002 may also include a program/utility 10025 having a set (at least one) of program modules 10024, such program modules 10024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 1000 may also communicate with one or more external devices 1004 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 1000, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 1000 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interface 1005. Also, the electronic device 1000 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 1006. As shown, the network adapter 1006 communicates with the other modules of the electronic device 1000 via the bus 1003. It should be appreciated that although not shown in FIG. 10, other hardware and/or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
In the embodiment of the present disclosure, a program product for implementing the above method is also provided, which may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily appreciated that the processes illustrated in the above figures are not intended to indicate or limit the temporal order of the processes. In addition, it is also readily understood that these processes may be performed, for example, synchronously or asynchronously in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.
Claims (10)
- A method for processing resources, comprising:receiving application information of an application program installed in a terminal reported by the terminal;according to the application information, a resource index library for determining dynamic modularized on-demand loading of resource packages is constructed;and based on the resource index library, distributing the dynamic modularized on-demand resource packages contained in the application bundle package.
- The resource processing method according to claim 1, wherein the application information is composed of resource information and on-demand download attributes;the resource information is determined when dynamic module catalogs of preset applications are scanned through the terminal and the on-demand download attributes exist in the application lists of each dynamic module according to the catalogs in a one-by-one scanning mode.
- The method according to claim 1, wherein the performing a distribution operation on the dynamically modular on-demand resource package included in the application bundle package comprises:automatically scanning all application programs installed in the terminal, and determining whether the application bundle package contains a dynamic modularized on-demand resource package;and if the application bundling packet is determined to contain the dynamic modularized on-demand loading resource packet, responding to an inquiry request sent by the terminal so as to judge whether the application bundling packet is distributed through the terminal according to the inquiry request result.
- The resource processing method according to claim 3, wherein the responding to the query request sent by the terminal so as to determine whether to distribute the application bundle package through the terminal according to the query request result comprises:if the query request result indicates that the dynamic modularized on-demand resource package does not exist in the server side, receiving the dynamic modularized on-demand resource package of the application bundle package uploaded by the terminal to perform distribution operation;and if the query request result is that the server side is determined to have the dynamic modularized on-demand resource package, stopping uploading the dynamic modularized on-demand resource package through the terminal to perform distribution operation.
- The method according to claim 1, wherein the performing a distribution operation on the dynamically modular on-demand resource package included in the application bundle package comprises:for a terminal which is installed with an application bundling package not containing a dynamic modularized on-demand loading resource package, distributing the dynamic modularized on-demand loading resource package of the application bundling package to the terminal in an automatic updating mode;and directly distributing all application program packages to the terminals which are not provided with the application bundle packages which do not contain the dynamic modularized on-demand resource packages.
- The method according to claim 1, wherein the performing a distribution operation on the dynamically modular on-demand resource package included in the application bundle package comprises:if the server side is detected not to obtain the dynamic modularized on-demand resource package of the application bundle package, distributing all application program packages except the dynamic modularized on-demand resource package to the terminal, and distributing the dynamic modularized on-demand resource package in an automatic updating mode;and if the server side is detected to obtain the dynamic modularized on-demand resource package of the application bundle package, distributing all application program packages including the dynamic modularized on-demand resource package to the terminal.
- The resource handling method of claim 1, wherein the method further comprises:if the time when the application bundle package exists in the resource index library meets the time condition, matching the application bundle package with a dynamic modularized on-demand resource package in the resource index library;and if the application bundling package does not belong to the dynamic modularized on-demand loading resource package, putting the application bundling package on shelf to distribute the non-dynamic modularized on-demand loading resource package.
- A resource processing apparatus, comprising:the information acquisition module is used for receiving application information of an application program which is reported by a terminal and is installed on the terminal;the index base building module is used for building a resource index base for determining dynamic modular on-demand loading resource packages according to the application information;and the resource distribution module is used for carrying out distribution operation on the dynamic modularized on-demand loading resource packages contained in the application bundle package based on the resource index library.
- A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the resource handling method of any one of claims 1 to 7.
- An electronic device, comprising:a processor; anda memory for storing executable instructions of the processor;wherein the processor is configured to perform the resource handling method of any one of claims 1-7 via execution of the executable instructions.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/090361 WO2021226965A1 (en) | 2020-05-14 | 2020-05-14 | Resource processing method and apparatus, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115485661A true CN115485661A (en) | 2022-12-16 |
Family
ID=78526279
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202080100573.5A Pending CN115485661A (en) | 2020-05-14 | 2020-05-14 | Resource processing method and device, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115485661A (en) |
WO (1) | WO2021226965A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115080068A (en) * | 2022-05-24 | 2022-09-20 | 北京快乐茄信息技术有限公司 | Resource file transmission method, device, equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105094905B (en) * | 2015-07-21 | 2018-09-11 | 北京金山安全软件有限公司 | Method and device for dynamically loading language resources |
CN107707584B (en) * | 2016-08-08 | 2020-12-29 | 腾讯科技(深圳)有限公司 | Application loading method, terminal and platform server |
CN108287758A (en) * | 2017-01-09 | 2018-07-17 | 阿里巴巴集团控股有限公司 | A kind of application resource management method, application method and device |
CN108304207A (en) * | 2018-03-01 | 2018-07-20 | 上海找钢网信息科技股份有限公司 | Mix the resource regeneration method and system of APP application programs |
-
2020
- 2020-05-14 CN CN202080100573.5A patent/CN115485661A/en active Pending
- 2020-05-14 WO PCT/CN2020/090361 patent/WO2021226965A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2021226965A1 (en) | 2021-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111291103B (en) | Interface data analysis method and device, electronic equipment and storage medium | |
CN111045833B (en) | Interface calling method and device | |
CN108196915A (en) | Code process method, equipment and storage medium based on application container engine | |
US20110225563A1 (en) | System for accessing and sharing user defined contents and method of the same | |
US8856365B2 (en) | Computer-implemented method, computer system and computer readable medium | |
US20230023253A1 (en) | Method for processing model parameters, and apparatus | |
CN111338944B (en) | Remote Procedure Call (RPC) interface testing method, device, medium and equipment | |
CN111813685A (en) | Automatic testing method and device | |
CN113535254B (en) | A microservice processing method, deployment method and related device | |
CN116647447A (en) | Application program hot update method and device, intelligent device and storage medium | |
CN115485661A (en) | Resource processing method and device, electronic equipment and storage medium | |
CN111666074B (en) | Web application customization method, related device and system | |
CN114253520B (en) | Interface code generation method and device | |
CN112732581A (en) | SDK detection method, device, electronic equipment, system and storage medium | |
CN112835609A (en) | Method and device for modifying dependent package download address | |
CN117112500B (en) | Resource management method, device, equipment and storage medium | |
CN114528007B (en) | Component processing method, device, electronic device and storage medium | |
US20240330016A1 (en) | Class file processing method and apparatus, device, medium, and product | |
CN116820354B (en) | Data storage method, data storage device and data storage system | |
CN112988528B (en) | Log processing method, device and container group | |
CN115080059B (en) | Edge computing method, device and edge server | |
CN112783834B (en) | Service resource online restocking method and device and electronic equipment | |
CN111314457B (en) | Method and device for setting virtual private cloud | |
CN118672503A (en) | Heterogeneous computing power resource management system storage fusion method for object-oriented storage | |
CN117130752A (en) | Data processing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |