CN106951236B - Plug-in development method and device - Google Patents

Plug-in development method and device Download PDF

Info

Publication number
CN106951236B
CN106951236B CN201710132454.8A CN201710132454A CN106951236B CN 106951236 B CN106951236 B CN 106951236B CN 201710132454 A CN201710132454 A CN 201710132454A CN 106951236 B CN106951236 B CN 106951236B
Authority
CN
China
Prior art keywords
party application
resource
application program
plug
identification information
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.)
Active
Application number
CN201710132454.8A
Other languages
Chinese (zh)
Other versions
CN106951236A (en
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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201710132454.8A priority Critical patent/CN106951236B/en
Publication of CN106951236A publication Critical patent/CN106951236A/en
Application granted granted Critical
Publication of CN106951236B publication Critical patent/CN106951236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms

Abstract

The invention discloses a method and a device for developing a plug-in, which relate to the technical field of computers and mainly aim to improve the development efficiency of the plug-in, and the main technical scheme of the invention is as follows: acquiring resource identification information corresponding to the regulated resources in the target plug-in; the target plug-in accesses the resource by using an interface provided by the system; searching a resource name corresponding to the resource identification information; acquiring resource identification information corresponding to the resource name in a third-party application program; modifying the resource identification information in the target plug-in into resource identification information corresponding to the resource name in a third-party application program; and packaging the modified target plug-in for integrated use of the third-party application program. The invention is mainly used for developing plug-ins.

Description

Plug-in development method and device
Technical Field
The invention relates to the technical field of computers, in particular to a plug-in development method and device.
Background
With the increase of the number of Application (APP) users and the improvement of experience requirements, new functions need to be added or functions need to be repaired continuously, so that the problem of large code amount and the requirement of dynamic release functions are faced in development, and then plug-in is generated, that is, functions of products are packaged into plug-in release and loaded by a container serving as an Application main body.
However, when the plug-in involves resource calling in the execution process, the corresponding resource is called by using the resource identifier, but the resource identifier of the same resource compiled through the interface provided by the system is different from the resource identifier compiled through the third-party application program, so the plug-in cannot directly access the resource through the interface provided by the system.
At present, in order to call a resource in a plug-in, the resource in the plug-in needs to be accessed through a resource identifier agreed with a third-party application program, that is, the resource identifier compiled by the third-party application program needs to be modified into a resource identifier compiled by an interface by the third-party application program. However, modifying the compiled resource identifier into the resource identifier compiled by the interface is cumbersome, and if a plurality of plug-ins have resource identifier conflicts, the third-party application cannot adapt to the plurality of plug-ins. The development efficiency of the existing plug-in is low.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for developing a plug-in, and mainly aims to improve the development efficiency of the plug-in.
According to an aspect of the present invention, there is provided a method for developing a plug-in, including:
acquiring resource identification information corresponding to the regulated resources in the target plug-in; the target plug-in accesses the resource by using an interface provided by the system;
searching a resource name corresponding to the resource identification information;
acquiring resource identification information corresponding to the resource name in a third-party application program;
modifying the resource identification information in the target plug-in into resource identification information corresponding to the resource name in a third-party application program;
and packaging the modified target plug-in for integrated use of the third-party application program.
According to another aspect of the present invention, there is provided a development apparatus of a plug-in, including:
the acquisition unit is used for acquiring resource identification information corresponding to the regulated resources in the target plug-in; the target plug-in accesses the resource by using an interface provided by the system;
the searching unit is used for searching the resource name corresponding to the resource identification information;
the acquiring unit is further configured to acquire resource identification information corresponding to the resource name in a third-party application program;
the modification unit is used for modifying the resource identification information in the target plug-in into the resource identification information corresponding to the resource name in the third-party application program;
and the packaging unit is used for packaging the modified target plug-in so as to be used for the integration of the third-party application program.
Compared with the prior art that the plug-in accesses the resources in the plug-in through the resource identification agreed with the third-party application program, the plug-in development method and the plug-in development device provided by the invention firstly access the resource development target plug-in through the interface provided by the system normally, and then automatically modify the calling processing of the resources in the target plug-in, namely modify the resource identification information of the resources accessed in the plug-in into the corresponding resource identification information of the resources in the third-party application program, thereby solving the problem that the plug-in cannot directly access the resources through the interface provided by the system and improving the development efficiency of the plug-in.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating a method for developing a plug-in according to an embodiment of the present invention;
FIG. 2 is a block diagram of a development device for a plug-in provided by an embodiment of the present invention;
fig. 3 shows a block diagram of another development device for plug-ins according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present application, there is provided a plug-in development method embodiment, it should be noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
In order to provide an implementation scheme for improving the development efficiency of the plug-in, embodiments of the present invention provide a method and an apparatus for developing a plug-in, and a preferred embodiment of the present invention is described below with reference to the drawings of the specification.
An embodiment of the present invention provides a method for developing a plug-in, as shown in fig. 1, the method includes:
101. and acquiring resource identification information corresponding to the dispatched resource in the target plug-in.
The resource identification information is used for uniquely identifying the resource in the target plug-in, and the target plug-in accesses the resource by using an interface provided by the system. For example, r.drawable.test represents resource identification information named as a test picture, and the r.drawable.test is an int value and represents a unique identification code of the test resource.
It should be noted that, in the embodiment of the present invention, the target plug-in uses an interface provided by the system to access the resource, for example, through the interface provided by the system: context, get, drawable, access to the test resource, and if the r.drawable, test is 1 when the plug-in engineering is compiled, then the interface provided by the system is compiled to be: getdrawable (1).
102. And searching the resource name corresponding to the resource identification information.
In the embodiment of the invention, different resource names correspond to different resource identification information, and after the resource identification information corresponding to the regulated resource in the target plug-in is obtained, the resource name corresponding to the resource identification information is searched. For example, the called resources obtained from the target plug-in are: context.getDracable.test, wherein R.Dracable.test is the resource identification information corresponding to the resource to be regulated, and then the resource name of the resource to be regulated is searched for as test through R.Dracable.test.
103. And acquiring resource identification information corresponding to the resource name in a third-party application program.
It should be noted that the result of the compilation of the called resource in the plug-in is different from the result of the compilation in the third-party application. Such as at plug-in engineering compilation: and R.dry.test is 1, and the system provides an interface and is compiled into: getdrawable (1), third party application compile time: when r.dry.test is 5, the code segment context.getdrawable (1) compiled by the plug-in cannot access the test picture, because the resource identification information of the resource picture in the third-party application is 5, not 1.
Therefore, after finding the resource name corresponding to the resource identification information, the embodiment of the present invention needs to obtain the resource identification information corresponding to the resource name in the third-party application program, so as to modify the resource identification information in the target plug-in into the resource identification information corresponding to the resource name in the third-party application program in the subsequent step. The embodiment of the invention can acquire the corresponding resource identification information of the resource name in the third-party application program through a reflection mechanism; or acquiring resource identification information corresponding to the resource name in a third-party application program through a preset mapping table, wherein the preset mapping table stores the resource name and the resource identification information corresponding to the resource name in the third-party application program.
104. And modifying the resource identification information in the target plug-in into the resource identification information corresponding to the resource name in the third-party application program.
For the embodiment of the invention, the resource identification information in the target plug-in is modified into the resource identification information corresponding to the resource name in the third-party application program, so that the code segment compiled by the plug-in can access the corresponding resource in the third-party application program.
For example, through the interface provided by the system: the resource name test corresponding to the r.usable.test is first obtained, and then the test resource is accessed according to the context.usable.getusable.getusable ("test"), that is, the resource identification information in the third-party application is dynamically accessed by using a reflection mechanism and the like through the resource name "test" in the embodiment of the present invention, for example, the resource identification information accessed in the instance is 5, and if the resource identification information compiled by the third application is 6, the resource identification information accessed is 6.
105. And packaging the modified target plug-in for integrated use of the third-party application program.
Compared with the method for developing the plug-in, which accesses the resources in the plug-in through the resource identification agreed with the third-party application program at present, the method for developing the plug-in firstly accesses the resource development target plug-in through the interface provided by the system normally, and then automatically modifies the calling processing of the resources in the target plug-in, namely, modifies the resource identification information of the resources accessed in the plug-in into the corresponding resource identification information of the resources in the third-party application program, thereby solving the problem that the plug-in cannot directly access the resources through the interface provided by the system and improving the development efficiency of the plug-in.
In order to better explain the development method of the plug-in provided by the embodiment of the invention, the following embodiment refines and expands the steps.
For the embodiment of the invention, after the third-party application program is integrated and uses the template plug-in, the test parameter information needs to be sent to the third-party application program integrated with the target plug-in, and then the test feedback information of the third-party application program aiming at the test parameter information is received, wherein the test parameter information is provided by a plug-in developer. In the embodiment of the invention, the test process does not need the participation of a service provider of the third-party application program, and can be completed only by the developer of the target plug-in, so that the service provider of the third-party application program can obtain the target plug-in which can be directly used without investing in manpower and time resources, the development efficiency and the test efficiency of the plug-in are effectively improved, and because the development work and the test work of the target plug-in are completed by the developer, the error occurrence probability is greatly reduced, and the period for providing the plug-in for the service provider can be effectively shortened.
The test parameter information includes any parameter information for testing the function of the plug-in, and specifically, the implementation manner in which the test device provides the test parameter information specified by the developer of the target plug-in to the third-party application integrated with the target plug-in includes but is not limited to:
1) the third party application program is installed in the user equipment outside the test equipment, the target plug-in is integrated in the third party application program, the test equipment establishes connection with the user equipment, and test parameter information appointed by a developer of the target plug-in is sent to the user equipment according to the connection.
2) The implementation manner that the test device provides the test parameter information specified by the developer of the plug-in to the third-party application program includes, but is not limited to:
a) and when the third-party application program is determined to be started in the test equipment, sending the test parameter information to the third-party application program integrated with the target plug-in.
The test device can determine whether the third-party application integrated with the target plug-in is started in various ways. For example, the test device obtains a current active application by calling a system function, and determines whether the active application includes a third-party application program.
b) And when the third-party application program is determined not to be started in the test equipment, starting the third-party application program, and sending the test parameter information to the third-party application program integrated with the plug-in.
The test equipment can start the third-party application program in various modes. For example, the test equipment directly calls a system function to start a third party application; as another example, the test equipment launches the third party application in accordance with a command entered by an operator in a command line window.
For the embodiment of the invention, the test feedback information comprises any feedback information which comes from a third-party application program and is obtained after the function of the plug-in is tested based on the test parameter information; preferably, the test feedback information includes, but is not limited to: information for indicating whether the target plug-in is normally started, information for indicating whether the tested function is normally operated, index information corresponding to the tested function, and the like.
Further, an embodiment of the present invention provides a device for developing a plug-in, as shown in fig. 2, the device includes: an acquisition unit 21, a search unit 22, a modification unit 23, and a packing unit 24.
An obtaining unit 21, configured to obtain resource identification information corresponding to a resource to be provisioned in a target plugin; the target plug-in accesses the resource by using an interface provided by the system;
and the resource identification information is used for uniquely identifying the resource in the target plug-in. For example, r.drawable.test represents resource identification information named as a test picture, and the r.drawable.test is an int value and represents a unique identification code of the test resource.
It should be noted that, in the embodiment of the present invention, the target plug-in uses an interface provided by the system to access the resource, for example, through the interface provided by the system: context, get, drawable, access to the test resource, and if the r.drawable, test is 1 when the plug-in engineering is compiled, then the interface provided by the system is compiled to be: getdrawable (1).
A searching unit 22, configured to search for a resource name corresponding to the resource identification information;
in the embodiment of the invention, different resource names correspond to different resource identification information, and after the resource identification information corresponding to the regulated resource in the target plug-in is obtained, the resource name corresponding to the resource identification information is searched. For example, the called resources obtained from the target plug-in are: context.getDracable.test, wherein R.Dracable.test is the resource identification information corresponding to the resource to be regulated, and then the resource name of the resource to be regulated is searched for as test through R.Dracable.test.
The obtaining unit 21 is further configured to obtain resource identification information corresponding to the resource name in a third-party application program;
it should be noted that the result of the compilation of the called resource in the plug-in is different from the result of the compilation in the third-party application. Such as at plug-in engineering compilation: and R.dry.test is 1, and the system provides an interface and is compiled into: getdrawable (1), third party application compile time: when r.dry.test is 5, the code segment context.getdrawable (1) compiled by the plug-in cannot access the test picture, because the resource identification information of the resource picture in the third-party application is 5, not 1.
Therefore, after finding the resource name corresponding to the resource identification information, the embodiment of the present invention needs to obtain the resource identification information corresponding to the resource name in the third-party application program, so as to modify the resource identification information in the target plug-in into the resource identification information corresponding to the resource name in the third-party application program in the subsequent step. The embodiment of the invention can acquire the corresponding resource identification information of the resource name in the third-party application program through a reflection mechanism; or acquiring resource identification information corresponding to the resource name in a third-party application program through a preset mapping table, wherein the preset mapping table stores the resource name and the resource identification information corresponding to the resource name in the third-party application program.
A modifying unit 23, configured to modify the resource identification information in the target plug-in to be resource identification information corresponding to the resource name in a third-party application;
for the embodiment of the invention, the resource identification information in the target plug-in is modified into the resource identification information corresponding to the resource name in the third-party application program, so that the code segment compiled by the plug-in can access the corresponding resource in the third-party application program.
For example, through the interface provided by the system: the resource name test corresponding to the r.usable.test is first obtained, and then the test resource is accessed according to the context.usable.getusable.getusable ("test"), that is, the resource identification information in the third-party application is dynamically accessed by using a reflection mechanism and the like through the resource name "test" in the embodiment of the present invention, for example, the resource identification information accessed in the instance is 5, and if the resource identification information compiled by the third application is 6, the resource identification information accessed is 6.
And the packaging unit 24 is used for packaging the modified target plug-in for the integrated use of the third-party application program.
Compared with the prior art that the plug-in accesses the resources in the plug-in through the resource identification agreed with the third-party application program, the plug-in development device provided by the embodiment of the invention firstly accesses the resource development target plug-in through the interface provided by the system normally, and then automatically modifies the calling processing of the resources in the target plug-in, namely modifies the resource identification information of the resources accessed in the plug-in into the corresponding resource identification information of the resources in the third-party application program, thereby solving the problem that the plug-in cannot directly access the resources through the interface provided by the system and improving the development efficiency of the plug-in.
The obtaining unit 21 is specifically configured to obtain, through a reflection mechanism, resource identification information corresponding to the resource name in a third-party application program; or acquiring resource identification information corresponding to the resource name in a third-party application program through a preset mapping table, wherein the preset mapping table stores the resource name and the resource identification information corresponding to the resource name in the third-party application program.
Further, as shown in fig. 3, the apparatus further includes:
the sending unit 25 is used for sending the test parameter information to the third-party application program integrated with the plug-in;
a receiving unit 26, configured to receive test feedback information of the third-party application program for the test parameter information.
For the embodiment of the invention, after the third-party application program is integrated and uses the template plug-in, the test parameter information needs to be sent to the third-party application program integrated with the target plug-in, and then the test feedback information of the third-party application program aiming at the test parameter information is received, wherein the test parameter information is provided by a plug-in developer. In the embodiment of the invention, the test process does not need the participation of a service provider of the third-party application program, and can be completed only by the developer of the target plug-in, so that the service provider of the third-party application program can obtain the target plug-in which can be directly used without investing in manpower and time resources, the development efficiency and the test efficiency of the plug-in are effectively improved, and because the development work and the test work of the target plug-in are completed by the developer, the error occurrence probability is greatly reduced, and the period for providing the plug-in for the service provider can be effectively shortened.
The sending unit 26 is specifically configured to send the test parameter information to the third-party application integrated with the plug-in when it is determined that the third-party application is started in the test equipment. The test device can determine whether the third-party application integrated with the target plug-in is started in various ways. For example, the test device obtains a current active application by calling a system function, and determines whether the active application includes a third-party application program.
The sending unit 26 is specifically configured to start the third-party application program and send the test parameter information to the third-party application program integrated with the plug-in when it is determined that the third-party application program is not started in the test device. The test equipment can start the third-party application program in various modes. For example, the test equipment directly calls a system function to start a third party application; as another example, the test equipment launches the third party application in accordance with a command entered by an operator in a command line window.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the method and apparatus for development of a plug-in according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (10)

1. A method for developing a plug-in, comprising:
acquiring resource identification information corresponding to the regulated resources in the target plug-in; the target plug-in accesses the resource by using an interface provided by the system;
searching a resource name corresponding to the resource identification information;
acquiring resource identification information corresponding to the resource name in a third-party application program;
modifying the resource identification information in the target plug-in into resource identification information corresponding to the resource name in a third-party application program;
and packaging the modified target plug-in for integrated use of the third-party application program.
2. The method according to claim 1, wherein the obtaining resource identification information corresponding to the resource name in a third-party application comprises:
acquiring resource identification information corresponding to the resource name in a third-party application program through a reflection mechanism; or
And acquiring resource identification information corresponding to the resource name in a third-party application program through a preset mapping table, wherein the preset mapping table stores the resource name and the resource identification information corresponding to the resource name in the third-party application program.
3. The method of claim 2, further comprising:
sending the test parameter information to a third-party application program integrated with the target plug-in;
and receiving test feedback information of the third-party application program aiming at the test parameter information.
4. The method of claim 3, wherein sending test parameter information to a third party application integrated with the plug-in comprises:
and when the third-party application program is determined to be started in the test equipment, sending the test parameter information to the third-party application program integrated with the plug-in.
5. The method of claim 3, wherein sending test parameter information to a third party application integrated with the plug-in comprises:
and when the third-party application program is determined not to be started in the test equipment, starting the third-party application program, and sending the test parameter information to the third-party application program integrated with the plug-in.
6. An apparatus for developing a plug-in, comprising:
the acquisition unit is used for acquiring resource identification information corresponding to the regulated resources in the target plug-in; the target plug-in accesses the resource by using an interface provided by the system;
the searching unit is used for searching the resource name corresponding to the resource identification information;
the acquiring unit is further configured to acquire resource identification information corresponding to the resource name in a third-party application program;
the modification unit is used for modifying the resource identification information in the target plug-in into the resource identification information corresponding to the resource name in the third-party application program;
and the packaging unit is used for packaging the modified target plug-in so as to be used for the integration of the third-party application program.
7. The apparatus according to claim 6, wherein the obtaining unit is specifically configured to obtain, through a reflection mechanism, resource identification information corresponding to the resource name in a third-party application; or acquiring resource identification information corresponding to the resource name in a third-party application program through a preset mapping table, wherein the preset mapping table stores the resource name and the resource identification information corresponding to the resource name in the third-party application program.
8. The apparatus of claim 7, further comprising:
the sending unit is used for sending the test parameter information to the third-party application program integrated with the target plug-in;
and the receiving unit is used for receiving the test feedback information of the third-party application program aiming at the test parameter information.
9. The apparatus according to claim 8, wherein the sending unit is specifically configured to send the test parameter information to the third-party application integrated with the plug-in when it is determined that the third-party application is started in the test device.
10. The apparatus according to claim 8, wherein the sending unit is specifically configured to start the third-party application program and send the test parameter information to the third-party application program integrated with the plug-in, when it is determined that the third-party application program is not started in the test device.
CN201710132454.8A 2017-03-07 2017-03-07 Plug-in development method and device Active CN106951236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710132454.8A CN106951236B (en) 2017-03-07 2017-03-07 Plug-in development method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710132454.8A CN106951236B (en) 2017-03-07 2017-03-07 Plug-in development method and device

Publications (2)

Publication Number Publication Date
CN106951236A CN106951236A (en) 2017-07-14
CN106951236B true CN106951236B (en) 2020-06-05

Family

ID=59468273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710132454.8A Active CN106951236B (en) 2017-03-07 2017-03-07 Plug-in development method and device

Country Status (1)

Country Link
CN (1) CN106951236B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381899A (en) * 2020-02-21 2020-07-07 泰康保险集团股份有限公司 Method and apparatus for developing target system
CN112579872B (en) * 2021-03-01 2021-07-09 杭州筋斗腾云科技有限公司 Network resource access intermediary system based on resource plug-in and processing method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214109A (en) * 2010-04-08 2011-10-12 深圳市金蝶中间件有限公司 Method and device for loading plug-ins
CN103942225A (en) * 2013-01-23 2014-07-23 阿里巴巴集团控股有限公司 Method and system for invoking resources of Hybrid App client and client
CN104731625A (en) * 2015-03-27 2015-06-24 北京奇虎科技有限公司 Method, device and mobile terminal for loading plugin

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214109A (en) * 2010-04-08 2011-10-12 深圳市金蝶中间件有限公司 Method and device for loading plug-ins
CN103942225A (en) * 2013-01-23 2014-07-23 阿里巴巴集团控股有限公司 Method and system for invoking resources of Hybrid App client and client
CN104731625A (en) * 2015-03-27 2015-06-24 北京奇虎科技有限公司 Method, device and mobile terminal for loading plugin

Also Published As

Publication number Publication date
CN106951236A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
KR102096195B1 (en) Plug-in packaging methods, devices, terminals and storage media
CN109325195B (en) Rendering method and system for browser, computer device and computer storage medium
US20120005663A1 (en) Dynamic determination of application server runtime classloading
CN106648755B (en) Method and device for dynamically loading dex in android art environment
EP3032413B1 (en) Code generation method, compiler, scheduling method, apparatus and scheduling system
CN110058998B (en) Software testing method and device
CN108241496B (en) Smooth upgrading method and device for application program
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN111124480B (en) Method and device for generating application program package, electronic equipment and storage medium
CN111124871A (en) Interface test method and device
CN110990001A (en) IVR (Interactive Voice response) process execution method and device
CN107341106B (en) Application compatibility detection method, development terminal and storage medium
CN111221727A (en) Test method, test device, electronic equipment and computer readable medium
CN106951236B (en) Plug-in development method and device
CN113672441A (en) Method and device for testing intelligent equipment
CN108023905B (en) Internet of things application system and method
CN111243580B (en) Voice control method, device and computer readable storage medium
CN105975329A (en) Creating method and device of virtual machine
CN109542775B (en) Test script generation and execution method and device
CN109240696A (en) A kind of Oftware updating method and device
CN113495723B (en) Method, device and storage medium for calling functional component
CN108400906B (en) Automatic testing method and device, storage medium and computer equipment
US9489284B2 (en) Debugging method and computer program product
CN110674024A (en) Electronic equipment integration test system and method thereof
CN105630889B (en) Universal caching method and device

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
GR01 Patent grant
GR01 Patent grant