Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2020-06-09
SUNING CLOUD COMPUTING CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. If the Android project is too large, the compilation will be slow, which will seriously affect the development efficiency;
[0006] 2. All functions are released in a unified manner, and the release cycle is long, which cannot meet market demand in time;
[0007] 3. The user needs to download the application installation package and install it, which takes a long time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Android application plug-in implementation method and device, equipment and storage medium
  • Android application plug-in implementation method and device, equipment and storage medium
  • Android application plug-in implementation method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an Android application plug-in implementation method, device and equipment and a storage medium, and belongs to the technical field of computers, an Android application comprises a host project and a plug-in project, and the method comprises the steps that after the host project is compiled to generate an APK file of the host application, compiling the plug-in project; in the process of compiling the plug-in project, modifying a resource ID in a code file of the plug-in project; if the dependency file of the plug-in project is simultaneously depended on by the host project, deleting the dependency file of the plug-in project, and generating a plug-in APK file after compiling is finished; modifying a resource ID in a resource file of the plug-in APK file; and when judging that the resource corresponding to the resource ID referenced by the plug-in project in the plug-in APK file does not exist due to deletion of the dependent file, replacing the resource ID referenced by the plug-in project with the resource ID corresponding to the resource in the host project to generate a final plug-in APK file, and publishing the final plug-in APK file. According to the embodiment of the invention, the method can achieve the instant research and development and instant publishing when achieving the plug-in of the Android application.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for realizing plug-in of Android applications. Background technique [0002] At present, smart terminals have become necessary electronic devices in the daily life of most users. With the rapid development of smart terminal technology, the functions of the smart terminal are becoming more and more perfect, and various application programs can be installed to meet the various usage needs of users. [0003] In the prior art, Android applications usually need to generate an application installation package through operations such as compiling the Android project and packaging, and publish the application installation package to the Android application store, and wait for the user to download the application installation package from the Android application store and install it. After that, the application functions can be...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41G06F9/445G06F9/448
CPCG06F8/41G06F9/44521G06F9/4482Y02D10/00
Inventor 李呈武
Owner SUNING CLOUD COMPUTING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products