Application loading method, user terminal, and storage medium
Abstract
An application loading method, a user terminal and a storage medium are provided. The method includes in response to a function enabling instruction, matching a corresponding independent functional component of an application. The application is packaged in advance to include a plurality of different functional components based on differences in functions to be implemented, and the plurality of different functional components include the independent functional component. The method also includes obtaining an executable file corresponding to the independent functional component. Further, the method includes loading the executable file corresponding to the independent functional component.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . An application loading method applied to a user terminal, the method comprising:
in response to a function enabling instruction, matching a corresponding independent functional component of an application, wherein the application is packaged in advance to include a plurality of different functional components based on differences in functions to be implemented, and the plurality of different functional components include the independent functional component; obtaining an executable file corresponding to the independent functional component; and loading the executable file corresponding to the independent functional component.
2 . The method according to claim 1 , wherein:
the plurality of different functional components further include a basic functional component, wherein the method further includes:
when detecting that the application is started, obtaining an executable file corresponding to the basic functional component, and
loading the executable file corresponding to the basic functional component into a memory of the user terminal.
3 . The method according to claim 2 , wherein loading the executable file corresponding to the independent functional component includes:
incorporating the executable file corresponding to the independent functional component into the executable file corresponding to the basic functional component.
4 . The method according to claim 1 , wherein in response to the function enabling instruction, matching the corresponding independent functional component of the application includes:
querying whether an extracted independent functional component has an executable file corresponding to a first function; when the extracted independent functional component does not have the executable file corresponding to the first function, obtaining an unextracted independent functional component corresponding to the first function in the application; and when the extracted independent functional component has the executable file corresponding to the first function, obtaining the extracted independent functional component.
5 . The method according to claim 1 , wherein in response to the function enabling instruction, matching the corresponding independent functional component of the application includes:
querying whether an extracted independent functional component has an executable file corresponding to a first function; determining whether the executable file corresponding to the first function is valid; when the extracted independent functional component does not have the executable file corresponding to the first function or the existed executable file corresponding to the first function is invalid, obtaining an unextracted independent functional component corresponding to the first function in the application; and when the extracted independent functional component has the executable file corresponding to the first function, and the executable file corresponding to the first function is valid, obtaining the extracted independent functional component.
6 . The method according to claim 5 , wherein obtaining the executable file corresponding to the independent functional component includes one of:
extracting the unextracted independent functional component corresponding to the first function to obtain the executable file corresponding to the first function; and obtaining the executable file corresponding to the first function from the extracted independent functional component.
7 . The method according to claim 1 , after loading the executable file corresponding to the independent functional component, further including:
acquiring component contents corresponding to the independent functional component; and loading the component contents.
8 . A user terminal, comprising:
a memory, configured to store program instructions for an application loading method, and a processor, coupled to the memory and, when executing the program instructions, configured to: in response to a function enabling instruction, match a corresponding independent functional component of an application, wherein the application is packaged in advance to include a plurality of different functional components based on differences in functions to be implemented, and the plurality of different functional components include the independent functional component; obtain an executable file corresponding to the independent functional component; and load the executable file corresponding to the independent functional component.
9 . The user terminal according to claim 8 , wherein:
the plurality of different functional components further include a basic functional component, wherein the processor is further configured to:
when detecting that the application is started, obtain an executable file corresponding to the basic functional component, and
load the executable file corresponding to the basic functional component into a memory of the user terminal.
10 . The user terminal according to claim 9 , wherein, when loading the executable file, the processor is further configured to:
incorporate the executable file corresponding to the independent functional component into the executable file corresponding to the basic functional component.
11 . The user terminal according to claim 8 , wherein the processor is further configured to:
query whether an extracted independent functional component has an executable file corresponding to a first function; and acquire an unextracted independent functional component corresponding to the first function in the application, and to acquire the extracted independent functional component.
12 . The user terminal according to claim 11 , wherein the processor is further configured to:
determine whether the executable file corresponding to the first function is valid.
13 . The user terminal according to claim 12 , wherein the executable file is obtained by the processor configured to:
extract the unextracted independent functional component corresponding to the first function to obtain the executable file corresponding to the first function; and obtain the executable file corresponding to the first function from the extracted independent functional component.
14 . The user terminal according to claim 8 , wherein the processor is further configured to:
acquire component contents corresponding to the independent functional component; and load the component contents.
15 . A non-transitory computer-readable storage medium containing computer-executable program instructions for, when executed by a processor, performing an application loading method, the method comprising:
in response to a function enabling instruction, matching a corresponding independent functional component of an application, wherein the application is packaged in advance to include a plurality of different functional components based on differences in functions to be implemented, and the plurality of different functional components include the independent functional component; obtaining an executable file corresponding to the independent functional component; and loading the executable file corresponding to the independent functional component.
16 . The storage medium according to claim 15 , wherein:
the plurality of different functional components further include a basic functional component, wherein the method further includes: when detecting that the application is started, obtaining an executable file corresponding to the basic functional component, and loading the executable file corresponding to the basic functional component into a memory of the user terminal.
17 . The storage medium according to claim 16 , wherein loading the executable file corresponding to the independent functional component includes:
incorporating the executable file corresponding to the independent functional component into the executable file corresponding to the basic functional component.
18 . The storage medium according to claim 15 , wherein in response to the function enabling instruction, matching the corresponding independent functional component of the application includes:
querying whether an extracted independent functional component has an executable file corresponding to a first function; when the extracted independent functional component does not have the executable file corresponding to the first function, obtaining an unextracted independent functional component corresponding to the first function in the application; and when the extracted independent functional component has the executable file corresponding to the first function, obtaining the extracted independent functional component.
19 . The storage medium according to claim 15 , wherein in response to the function enabling instruction, matching the corresponding independent functional component of the application includes:
querying whether an extracted independent functional component has an executable file corresponding to a first function; determining whether the executable file corresponding to the first function is valid; when the extracted independent functional component does not have the executable file corresponding to the first function or the existed executable file corresponding to the first function is invalid, obtaining an unextracted independent functional component corresponding to the first function in the application; and when the extracted independent functional component has the executable file corresponding to the first function, and the executable file corresponding to the first function is valid, obtaining the extracted independent functional component.
20 . The storage medium according to claim 19 , wherein obtaining the executable file corresponding to the independent functional component includes one of:
extracting the unextracted independent functional component corresponding to the first function to obtain the executable file corresponding to the first function; and obtaining the executable file corresponding to the first function from the extracted independent functional component.Join the waitlist — get patent alerts
Track US2019004828A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.