CN111475148A - Third-party dependent library isolation method and device, electronic equipment and storage medium - Google Patents

Third-party dependent library isolation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111475148A
CN111475148A CN201910069342.1A CN201910069342A CN111475148A CN 111475148 A CN111475148 A CN 111475148A CN 201910069342 A CN201910069342 A CN 201910069342A CN 111475148 A CN111475148 A CN 111475148A
Authority
CN
China
Prior art keywords
task
library
party
dependency
isolation method
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
Application number
CN201910069342.1A
Other languages
Chinese (zh)
Inventor
张志强
黄鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910069342.1A priority Critical patent/CN111475148A/en
Publication of CN111475148A publication Critical patent/CN111475148A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Abstract

The invention provides a third-party dependent library isolation method and device for android engineering, electronic equipment and a storage medium, and relates to the technical field of computers. The third-party dependent library isolation method comprises the following steps: responding to a task dependence third-party dependence library in the android project, and acquiring identification information of the task and a corresponding dependence relation; determining the type of the task according to the identification information; when the task is determined to be the target task, acquiring the third-party dependent library; and adding the third-party dependency library on which the task depends to the target task through the dependency relationship. The technical scheme of the embodiment of the invention can hide the specific implementation of the third-party dependent library and simultaneously does not influence the compiling process.

Description

Third-party dependent library isolation method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a third-party dependent library isolation method, a third-party dependent library isolation device, electronic equipment and a computer readable storage medium for android engineering.
Background
With the rapid development of intelligent terminal devices, people pay more and more attention to the development process of related systems and application programs used on the intelligent terminal devices.
In the existing android project, when a third party dependency library is depended on, all classes or interfaces of the third party dependency library can be directly exposed to a relying party, the specific implementation of the third party dependency library cannot be hidden, so that other people can easily obtain the labor results of developers developing the third party dependency library, and the working enthusiasm of the developers is reduced.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
Embodiments of the present invention provide a third-party dependent library isolation method, a third-party dependent library isolation apparatus, an electronic device, and a computer-readable storage medium for android engineering, so as to overcome, at least to a certain extent, a problem that a specific implementation of a third-party dependent library cannot be hidden in the prior art.
Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.
According to a first aspect of the embodiments of the present invention, there is provided a third party dependent library isolation method for android engineering, including: responding to a task dependence third-party dependence library in the android project, and acquiring identification information of the task and a corresponding dependence relation; determining the type of the task according to the identification information; when the task is determined to be the target task, acquiring the third-party dependent library; and adding the third-party dependency library on which the task depends to the target task through the dependency relationship.
In some example embodiments of the present invention, based on the foregoing, the method further comprises: when the task is determined not to be the target task, acquiring an interface function library corresponding to the third-party dependency library; adding the interface function library to the task.
In some example embodiments of the present invention, based on the foregoing scheme, when it is determined that the task is not the target task, the obtaining the interface function library corresponding to the third party dependent library further includes: and when the type corresponding to the task is determined not to be the target task, the integrated development environment prompts the dependent request instruction of the task.
In some example embodiments of the present invention, based on the foregoing solution, the dependency relationship includes a build tool plug-in, and acquiring the third-party dependency library further includes: acquiring a third party dependency library edited by a developer; and uploading the third-party dependency library to a target storage position for storage through a construction tool plug-in.
In some example embodiments of the present invention, based on the foregoing scheme, the determining the type of the task according to the identification information includes: and determining the type of the task through the identification information based on the construction tool plug-in.
In some example embodiments of the present invention, based on the foregoing, the method further comprises: and configuring the construction tool plug-in based on the listener in the android project.
In some example embodiments of the present invention, based on the foregoing scheme, the interface function library includes files in Jar format.
According to a second aspect of the embodiments of the present invention, there is provided a third party dependent library isolation apparatus, including: the first obtaining unit is used for responding to a task dependence third-party dependence library in the android project and obtaining identification information of the task and a corresponding dependence relation; the determining unit is used for determining the type of the task according to the identification information; the second acquisition unit is used for acquiring the third-party dependency library when the task is determined to be the target task; and the execution unit is used for adding the third-party dependency library depended by the task to the target task through the dependency relationship.
In an exemplary embodiment of the present invention, based on the foregoing scheme, the third party dependent library isolation apparatus includes: the interface function library acquisition unit is used for acquiring an interface function library corresponding to the third-party dependency library when the task is determined not to be the target task; and the interface function library adding unit is used for adding the interface function library to the task.
In an exemplary embodiment of the present invention, based on the foregoing scheme, the interface function library obtaining unit is configured to: and when the type corresponding to the task is determined not to be the target task, the integrated development environment IDE prompts the dependent request instruction of the task.
In an exemplary embodiment of the present invention, based on the foregoing scheme, the first acquisition unit is configured to: acquiring a third party dependency library edited by a developer; and uploading the third-party dependency library to a target storage position for storage through the construction tool plug-in.
In an exemplary embodiment of the present invention, based on the foregoing, the determination unit is configured to: and determining the type of the task through the identification information based on the construction tool plug-in.
In an exemplary embodiment of the present invention, based on the foregoing scheme, the third party dependent library isolation apparatus is configured to: and configuring the construction tool plug-in based on the listener in the android project.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including: a processor; and a memory having computer readable instructions stored thereon that, when executed by the processor, implement any of the third party dependent library isolation methods described above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a third party dependent library isolation method according to any one of the above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
according to the third-party dependency library isolation method in the embodiment of the invention, when a task in an android project depends on a third-party dependency library, identification information corresponding to the task and a corresponding dependency relationship are obtained, the type of the task is determined according to the obtained identification information, when the task is determined to be a target task, the third-party dependency library is obtained, and the third-party dependency library is added to the corresponding target task through the corresponding dependency relationship. On one hand, the task type of the request for relying on the third-party dependency library is determined through the identification information, the specific implementation of the third-party dependency library can be hidden, the labor achievement of third-party dependency library developers is protected, and the working enthusiasm of the developers is improved; on the other hand, when the target task is determined during the task, the third-party dependency base is added into the target task, so that the compiling of the target task is not influenced while the specific implementation of the third-party dependency base is hidden, and the efficiency of android engineering development 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 invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 schematically illustrates a schematic diagram of a third party dependent library isolation method according to some embodiments of the invention;
FIG. 2 schematically illustrates a schematic diagram of an overall process of relying on a third party dependent library, in accordance with some embodiments of the invention;
FIG. 3 schematically illustrates a schematic diagram of a build tool plug-in configuration phase according to some embodiments of the invention;
FIG. 4 schematically illustrates a schematic of a third party dependent library isolation device, in accordance with some embodiments of the invention;
FIG. 5 schematically illustrates a structural schematic of a computer system of an electronic device according to some embodiments of the invention;
FIG. 6 schematically illustrates a schematic diagram of a computer-readable storage medium according to some embodiments of the invention.
Detailed Description
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.
Furthermore, 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 provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
Furthermore, the drawings are merely schematic illustrations and are not necessarily drawn to scale. The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. 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 means and/or microcontroller means.
In the existing technical scheme, the dependence mode of Android (Android) engineering on a third-party dependence library is as follows: in the construction of a tool plug Android Gradle plug 2.X, when a keyword Complite depends on a third-party dependent library, the specific implementation of the third-party dependent library is visible when an application program is packaged, and the third-party dependent library is compiled into a final application program package APK; when the keyword Provided depends on the third-party dependency library, the specific implementation of the third-party dependency library is visible in the development stage, but the specific implementation of the third-party dependency library is not packaged into the APK during final compiling. The two dependence modes can directly expose all classes or interfaces and the like of the third-party dependence library to the dependence party, the specific implementation of the third-party dependence library cannot be hidden, so that other people can easily obtain the labor achievement of developers developing the third-party dependence library, and the working enthusiasm of the developers is reduced.
Based on this, in the present exemplary embodiment, first, a third-party dependent library isolation method for android engineering is provided, and the method may be applied to a terminal device with an android development platform, such as a computer. FIG. 1 schematically illustrates a third party dependent library isolation method flow diagram according to some embodiments of the invention. Referring to fig. 1, the third party dependent library isolation method may include the steps of:
step S110, responding to a task dependence third-party dependence library in the android project, and acquiring identification information of the task and a corresponding dependence relation;
step S120, determining the type of the task according to the identification information;
step S130, when the task is determined to be the target task, the third-party dependency library is obtained;
step S140, adding the third-party dependency library on which the task depends to the target task through the dependency relationship.
According to the third-party dependent library isolation method in the embodiment, on one hand, the task type of the request for relying on the third-party dependent library is determined through the identification information, the specific implementation of the third-party dependent library can be hidden, the labor achievement of third-party dependent library developers is protected, and the working enthusiasm of the developers is improved; on the other hand, when the target task is determined during the task, the third-party dependency base is added into the target task, so that the compiling of the target task is not influenced while the specific implementation of the third-party dependency base is hidden, and the efficiency of android engineering development is improved.
Next, the third-party dependent library isolation method in the present exemplary embodiment will be further explained.
In step S110, in response to the task dependency third-party dependency library in the android project, the identification information of the task and the corresponding dependency relationship are obtained.
In an exemplary embodiment of the present invention, an Android project may refer to a program code for developing and manufacturing a related Application on an Android (Android) platform, and may include Application program engineering Application and library engineering L ibrary, which are implemented by a programming language Java.
Specifically, the system plug-in monitors a source code in the android project, and records identification information of a task and a corresponding dependency relationship when monitoring that the task in the source code of the android project depends on a third-party dependency library.
In step S120, the type of the task is determined according to the identification information.
In an exemplary embodiment of the present invention, the type of the task may refer to a specific task corresponding to different phases of the android project, for example, the type of the task may be a task corresponding to a development phase in the android project, or a task corresponding to a compilation phase in the android project. According to the identification information of the task obtained in step S110, the type corresponding to the task is determined through a preset relationship table or the name of the task, which is not particularly limited in the present invention.
Optionally, the type of the task is determined by the identification information based on the building tool plug-in. And identifying the identification information through the corresponding dependency relationship acquired in the step S110 to determine the type corresponding to the task. For example, the dependency relationship may be a preconfigured construction tool plug-in Gradle, and the construction tool plug-in detects whether the task needs to be added to the specific implementation of the third-party dependency library according to the identification information of the task to determine the type of the corresponding task.
In step S130, when it is determined that the task is a target task, the third party dependency library is acquired.
In an exemplary embodiment of the invention, the target task may include a specifically implemented task that needs to be added to the third party dependency library, e.g., the target task type is a compilation task. And when the type of the task is determined to be the target task, acquiring a third party dependency library on which the target task depends through the dependency relationship. Specifically, the target storage location may be a Maven repository (a tool for managing binary files, and a website with relevant authorities is provided for developers all over the world), or may be a local folder, which is not particularly limited in the present invention. And when the type of the task is determined to be the target task, acquiring the corresponding third-party dependent library from the target storage position through the construction tool plug-in Gradle.
Optionally, a third-party dependency library edited by a developer is obtained, and the third-party dependency library is uploaded to a target storage location for storage through a construction tool plug-in Gradle. The third-party dependency library is uploaded by the construction tool plug-in Gradle, so that the construction tool plug-in Gradle can quickly and accurately acquire the third-party dependency library of the target storage position according to the dependency relationship when the type of the task is judged to be the target task, and the compiling efficiency is improved.
In another exemplary embodiment of the invention, when the type of the task is determined not to be the target task, the interface function library corresponding to the third-party dependency library is obtained through the dependency relationship corresponding to the task (for example, the building tool plug-in Gradle), and the interface function library is added to the task. When the type of the task is determined to be the specific implementation without the need of a third-party dependency library, the corresponding dependent interface function is added to the corresponding task, the specific implementation of the third-party dependency library is hidden, meanwhile, editing, reading and the like of the task by the android project developer are not affected, and the use experience of the android project developer is improved.
It should be noted that the file type in the interface function library may be a Jar format file, and when the file format of the interface function library is a Jar format, the interface function library can only depend on a third party dependent library without compiling, that is, the foregoing dependency mode by the keyword provideds.
Specifically, when it is determined that the type corresponding to the task is not the target task, the integrated development environment IDE prompts a request-dependent instruction of the task. An Integrated Development Environment (IDE) is an application program for providing a program Development Environment. When the type of the task is determined not to be the target task, when the dependency of a third-party dependency library in the source code of the task is monitored, a prompt is made for the dependency or calling instruction, for example, a red marking prompt is made. The integrated development environment prompts the task dependent request instruction, so that developers can better understand the task source code, and the use experience of the developers is improved.
Referring to FIG. 2, FIG. 2 schematically illustrates a schematic diagram of an overall process of relying on a third party dependent library according to some embodiments of the invention, as described in detail below.
Step S210, editing a third party dependency library by a third party developer in a standard Android development mode according to specific requirements;
step S220, acquiring a third party dependency library developed by a third party developer, and uploading the third party dependency library through a construction tool plug-in Gradle;
step S230, storing the third-party dependency library into a Maven warehouse (remote warehouse) or a personal service built by a company (individual);
step S240, acquiring a third party dependency library dependent on the task from a Maven warehouse (remote warehouse) or a private server built by a company (individual) through a construction tool plug-in;
step S250, storing the third-party dependency library acquired by the construction tool plug-in into a local warehouse or a local folder for subsequent use;
step S260, when the task type is determined to be the target task, the construction tool plug-in obtains a corresponding third party dependent library from a local warehouse or a local folder;
and step S270, the construction tool plug-in adds the third-party dependency base to the corresponding target task according to the identification information and the dependency relationship of the task.
In step S140, the third party dependency library on which the task depends is added to the target task through the dependency relationship.
In an exemplary embodiment of the invention, when the task is determined to be a target task, the third party dependency library on which the task depends is added to the target task through the dependency relationship.
For example, the code of the building tool plug-in may include but is not limited to adding a core code in the listener L isterer:
Figure BDA0001956747760000081
Figure BDA0001956747760000091
specific implementation of core code concepts referring to fig. 3, fig. 3 schematically illustrates a schematic diagram of the build tool plug-in configuration phase according to some embodiments of the invention, as described in detail below.
Step S310, acquiring identification information of the current starting task and a corresponding dependency relationship;
step S320, judging whether the type of the starting task is a target task which needs to be specifically realized by a third-party dependent library;
step S330, when the type of the task is determined to be the target task, acquiring a third party dependency base on which the target task depends through the dependency relationship, and adding the specific implementation of the third party dependency base to the target task through the dependency relationship;
step S340, finishing the detection of the starting task in the current round;
and step S350, when the task type is determined not to be the target task, directly finishing the detection of the self wheel to the starting task.
It is noted that although the steps of the methods of the present invention are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
In addition, in the present exemplary embodiment, a third party dependent library isolation apparatus is also provided. Referring to fig. 4, the third-party dependent library isolation apparatus 400 includes: a first acquisition unit 410, a determination unit 420, a second acquisition unit 430, and an addition unit 440. Wherein: the first obtaining unit 410 is configured to obtain, in response to a task dependency third-party dependency library in the android project, identification information of the task and a corresponding dependency relationship; the determining unit 420 is configured to determine the type of the task according to the identification information; the second obtaining unit 430 is configured to obtain the third-party dependent library when it is determined that the task is a target task; the adding unit 440 is configured to add the third party dependency library on which the task depends to the target task through the dependency relationship.
In an exemplary embodiment of the present invention, based on the foregoing scheme, the third party dependent library isolation apparatus 400 includes: the interface function library acquisition unit is used for acquiring an interface function library corresponding to the third-party dependency library when the task is determined not to be the target task; and the interface function library adding unit is used for adding the interface function library to the task.
In an exemplary embodiment of the present invention, based on the foregoing scheme, the interface function library obtaining unit is configured to: and when the type corresponding to the task is determined not to be the target task, the integrated development environment IDE prompts the dependent request instruction of the task.
In an exemplary embodiment of the present invention, based on the foregoing scheme, the first obtaining unit 410 is configured to: acquiring a third party dependency library edited by a developer; and uploading the third-party dependency library to a target storage position for storage through the construction tool plug-in.
In an exemplary embodiment of the present invention, based on the foregoing scheme, the determining unit 420 is configured to: and determining the type of the task through the identification information based on the construction tool plug-in.
In an exemplary embodiment of the present invention, based on the foregoing scheme, the third party dependent library isolation apparatus 400 is configured to: and configuring the construction tool plug-in based on the listener in the android project.
The specific details of each module of the third-party dependent library isolation device are described in detail in the corresponding third-party dependent library isolation method, and therefore are not described herein again.
It should be noted that although in the above detailed description reference is made to a number of modules or units of the third party dependent library isolated device, such partitioning 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 invention. 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.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the third-party dependent library isolation 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 500 according to such an embodiment of the invention is described below with reference to fig. 5. The electronic device 500 shown in fig. 5 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. 5, the electronic device 500 is embodied in the form of a general purpose computing device. The components of the electronic device 500 may include, but are not limited to: the at least one processing unit 510, the at least one memory unit 520, a bus 530 connecting various system components (including the memory unit 520 and the processing unit 510), and a display unit 540.
Wherein the storage unit stores program code that is executable by the processing unit 510 to cause the processing unit 510 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 510 may execute step S110 shown in fig. 1, and in response to a task in the android project relying on a third-party dependency library, obtain identification information of the task and a corresponding dependency relationship; step S120, determining the type of the task according to the identification information; step S130, when the task is determined to be the target task, the third-party dependency library is obtained; step S140, adding the third-party dependency library on which the task depends to the target task through the dependency relationship.
The storage unit 520 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)521 and/or a cache memory unit 522, and may further include a read only memory unit (ROM) 523.
The storage unit 520 may also include a program/utility 524 having a set (at least one) of program modules 525, such program modules 525 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.
Bus 530 may be one or more of any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 500 may also communicate with one or more external devices 570 (e.g., keyboard, pointing device, Bluetooth device, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 500, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 500 to communicate with one or more other computing devices.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
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-mentioned "exemplary methods" section of the present description, when said program product is run on the terminal device.
Referring to fig. 6, a program product 600 for implementing the third party dependent library isolation method described above is depicted, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer, in accordance with an embodiment of the present invention. 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 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, as well as conventional procedural programming languages, such as the "C" language or similar programming languages.
Furthermore, the above-described figures are merely 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 understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
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 limited only by the appended claims.

Claims (10)

1. A third party dependent library isolation method for android engineering, comprising:
responding to a task dependence third-party dependence library in the android project, and acquiring identification information of the task and a corresponding dependence relation;
determining the type of the task according to the identification information;
when the task is determined to be the target task, acquiring the third-party dependent library;
and adding the third-party dependency library on which the task depends to the target task through the dependency relationship.
2. The third party dependent library isolation method of claim 1, further comprising:
when the task is determined not to be the target task, acquiring an interface function library corresponding to the third-party dependency library;
adding the interface function library to the task.
3. The third party dependent library isolation method according to claim 2, wherein when it is determined that the task is not the target task, obtaining the interface function library corresponding to the third party dependent library further comprises:
and when the type corresponding to the task is determined not to be the target task, the integrated development environment prompts the dependent request instruction of the task.
4. The third party dependency library isolation method of claim 1, wherein the dependency relationships include build tool plug-ins, and wherein obtaining the third party dependency library further comprises:
acquiring a third party dependency library edited by a developer;
and uploading the third-party dependency library to a target storage position for storage through the construction tool plug-in.
5. The third party dependent library isolation method of claim 4, wherein the determining the type of the task from the identification information comprises:
and determining the type of the task through the identification information based on the construction tool plug-in.
6. The third party dependent library isolation method of claim 4, wherein the method further comprises:
and configuring the construction tool plug-in based on the listener in the android project.
7. The third party dependent library isolation method of claim 2, wherein the library of interface functions comprises a Jar formatted file.
8. A third party dependent library isolation apparatus, comprising:
the first obtaining unit is used for responding to a task dependence third-party dependence library in the android project and obtaining identification information of the task and a corresponding dependence relation;
the determining unit is used for determining the type of the task according to the identification information;
the second acquisition unit is used for acquiring the third-party dependency library when the task is determined to be the target task;
and the execution unit is used for adding the third-party dependency library depended by the task to the target task through the dependency relationship.
9. An electronic device, comprising:
a processor; and
a memory having stored thereon computer readable instructions that, when executed by the processor, implement the third party dependent library isolation method of any of claims 1 to 7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the third party dependent library isolation method according to any one of claims 1 to 7.
CN201910069342.1A 2019-01-24 2019-01-24 Third-party dependent library isolation method and device, electronic equipment and storage medium Pending CN111475148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910069342.1A CN111475148A (en) 2019-01-24 2019-01-24 Third-party dependent library isolation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910069342.1A CN111475148A (en) 2019-01-24 2019-01-24 Third-party dependent library isolation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111475148A true CN111475148A (en) 2020-07-31

Family

ID=71743738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910069342.1A Pending CN111475148A (en) 2019-01-24 2019-01-24 Third-party dependent library isolation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111475148A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612533A (en) * 2020-12-03 2021-04-06 山东云海国创云计算装备产业创新中心有限公司 BMC setup option modification method based on CentOS in ARM server
CN113268224A (en) * 2021-06-07 2021-08-17 上海数禾信息科技有限公司 Jar package caching method and device for Maven warehouse and computer equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612533A (en) * 2020-12-03 2021-04-06 山东云海国创云计算装备产业创新中心有限公司 BMC setup option modification method based on CentOS in ARM server
CN112612533B (en) * 2020-12-03 2024-02-09 山东云海国创云计算装备产业创新中心有限公司 BMC setup option modification method based on CentOS in ARM server
CN113268224A (en) * 2021-06-07 2021-08-17 上海数禾信息科技有限公司 Jar package caching method and device for Maven warehouse and computer equipment
CN113268224B (en) * 2021-06-07 2024-02-27 上海数禾信息科技有限公司 Jar packet caching method and device of Maven warehouse and computer equipment

Similar Documents

Publication Publication Date Title
CN110990020A (en) Software compiling method and device, electronic equipment and storage medium
CN107992307B (en) Function compiling method and device
CN111782300B (en) Data processing method, device, equipment and system
CN109062563B (en) Method and device for generating page
CN111638906B (en) SDK (software development kit) access method, device and system
CN111124480B (en) Method and device for generating application program package, electronic equipment and storage medium
CN109446753A (en) Detect method, apparatus, computer equipment and the storage medium of pirate application program
CN107797996B (en) Entry translation method and device
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN113986402A (en) Function calling method and device, electronic equipment and storage medium
CN113778445A (en) Cross-platform component generation method and device, electronic equipment and storage medium
CN111475148A (en) Third-party dependent library isolation method and device, electronic equipment and storage medium
US8875093B2 (en) Instantiating a coding competition to develop a program module in a networked computing environment
CN106598662B (en) Android-based application loading method and device
CN111506904B (en) Method and device for online bug repair
CN111240987B (en) Method and device for detecting migration program, electronic equipment and computer readable storage medium
CN110737588A (en) automatic point burying method, device, medium and electronic equipment
CN106778270B (en) Malicious application detection method and system
CN112052051A (en) Plug-in processing method, device, equipment and storage medium
CN114461223A (en) Code generation method and device and terminal equipment
CN114327742A (en) Cloud platform and program code processing method based on cloud platform
CN111782196A (en) MVP architecture-based development method and device
US9477448B2 (en) Screen-oriented computing program refactoring
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN103544017A (en) Method and device for achieving LAMMPS calculation tasks

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