Android application plug-in implementation method and device, equipment and storage medium
An implementation method and plug-in technology, applied in the computer field, can solve problems such as slow compilation, long release cycle, and long time consumption, and achieve the effects of avoiding physical interference, meeting market demand, and high research and development efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0071] The embodiment of the present invention provides a plug-in implementation method for an Android application, the Android application includes a host project and a plug-in project, such as figure 1 As shown, the method may include:
[0072] Step S11, after compiling the host project to generate the APK file of the host application, compiling the plug-in project.
[0073] In this embodiment, in order to solve the problem of slow compilation due to the large size of the Android project, the Android application can be split into a host project and multiple plug-in projects, and compiled separately. Here, a plug-in project is usually for a business module, and the plug-in project may include new functions that need to be delivered to the application program or bugs that need to be fixed in real time.
[0074] Specifically, Android Studio may be used to compile the host project, and after compiling and generating the host application APK file, Android Studio may be used to c...
Embodiment 2
[0107] The embodiment of the present invention provides a plug-in implementation method for an Android application, the Android application includes a host project and a plug-in project, such as figure 2 As shown, the method may include:
[0108] Step S21, after compiling the host project to generate the APK file of the host application, compiling the plug-in project.
[0109] Specifically, for the implementation process of step S21, reference may be made to step S11, which will not be repeated here.
[0110] Step S22 , in the process of compiling the plug-in project, if the dependent file of the plug-in project is also depended on by the host project, delete the dependent file of the plug-in project, and generate the plug-in APK file after compiling.
[0111] Step S23, in the plug-in APK file, determine whether the resource corresponding to the resource ID referenced by the plug-in project does not exist due to deletion of the dependent file, and if so, use the resource ID ...
Embodiment 3
[0120] The embodiment of the present invention provides a device for realizing plug-in of Android application, and Android application includes host project and plug-in project, such as image 3 As shown, the device includes:
[0121] The compiling module 31 is used to compile the plug-in project after compiling the host project to generate the APK file of the host application;
[0122] The first modification module 32 is used to modify the resource ID in the code file of the plug-in project to a legal resource ID type belonging to a non-system resource ID type and a non-application resource ID type during the process of compiling the plug-in project;
[0123] The file deletion module 33 is also used to delete the dependent files of the plug-in project if the dependent files of the plug-in project are also relied on by the host project;
[0124] The first generating module 34 is used to generate the plug-in APK file after compiling;
[0125] The second modification module 35...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com