CN109992501A - The availability inspection of small routine can use small routine list generation method and device - Google Patents

The availability inspection of small routine can use small routine list generation method and device Download PDF

Info

Publication number
CN109992501A
CN109992501A CN201711488817.8A CN201711488817A CN109992501A CN 109992501 A CN109992501 A CN 109992501A CN 201711488817 A CN201711488817 A CN 201711488817A CN 109992501 A CN109992501 A CN 109992501A
Authority
CN
China
Prior art keywords
small routine
sdk
list
apilevel
host program
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.)
Granted
Application number
CN201711488817.8A
Other languages
Chinese (zh)
Other versions
CN109992501B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201711488817.8A priority Critical patent/CN109992501B/en
Publication of CN109992501A publication Critical patent/CN109992501A/en
Application granted granted Critical
Publication of CN109992501B publication Critical patent/CN109992501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present application provides the availability inspection method and device of a kind of small routine, which comprises determines apiLevel the and SDK list of host program;Determine apiLevel the and SDK list that small routine relies on;Judge apiLevel the and SDK list that the small routine relies on, with apiLevel the and SDK list of the host program whether matching;If matching, it is determined that the small routine can be used in the host program;If mismatching, it is determined that the small routine is unavailable in the host program.In the embodiment of the present application, a kind of detection method of small routine availability is proposed.An apiLevel, which is set, by the SDK to application program, according to apiLevel the and SDK list of apiLevel and SDK list and application program that small routine is relied on, detects the availability of small routine when increasing small routine to application program.Developer is met in self-developed application program to solve, and detects the demand of small routine availability.

Description

The availability inspection of small routine can use small routine list generation method and device
Technical field
This application involves field of computer technology, more particularly to a kind of availability inspection method of small routine, Yi Zhong little Availability check device, one kind of program can use small routine list generation device with small routine list generation method and one kind.
Background technique
Internet of Things is the leap again after internet.Into after the internet of things era, data and thousands of times of application Growth, old development scheme is difficult to meet business demand gradually.It all can be realized in exploration in the industry and quickly develop, quickly repair The features such as multiple, heat deployment, and ensure the technical solution of user experience, small routine is one of representative therein.
Small routine is can to issue from server, without installing the application program that can be executed in special container.
The SDK (Software Develop Kit, software development kit) for providing running environment is the base of small routine operation Plinth, and there is also version iterations by SDK itself.Therefore the SDK of different editions, represents the running environment of different abilities, and then lead The availability issue for having caused small routine can not normally be executed based on the small routine of highest version SDK exploitation on the SDK of lowest version. And under open business scenario, the demand of more SDK causes the running environment of Native client to divide further.
As the client terminal quantity of the increase and integrated SDK of small routine quantity is continuously increased, how small routine is solved Availability issue will be the key that can the ecological of small routine final molding.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present application and overcomes the above problem or at least partly in order to provide one kind Availability inspection method, a kind of availability check device of small routine, one kind of a kind of small routine to solve the above problems are available Small routine list generation method and one kind can use small routine list generation device.
To solve the above-mentioned problems, the embodiment of the present application discloses a kind of availability inspection method of small routine, comprising:
Determine apiLevel the and SDK list of host program;
Determine apiLevel the and SDK list that small routine relies on;
Judge apiLevel the and SDK list that the small routine relies on, is arranged with the apiLevel and SDK of the host program Table whether matching;
If matching, it is determined that the small routine can be used in the host program;
If mismatching, it is determined that the small routine is unavailable in the host program.
Preferably, the small routine includes: JavaScript small routine;ApiLevel that the determining small routine relies on and The step of SDK list includes:
Determine the basis JavaScript SDK and JavaScript function SDK that the JavaScript small routine relies on;
Associated Native container SDK is determined according to the basis the JavaScript SDK;
The apiLevel that the JavaScript small routine relies on is determined according to the Native container SDK;
The Native function SDK relied on is determined according to the JavaScript function SDK;
According to the Native function SDK of the associated Native container SDK and the dependence, determine described in The SDK list that JavaScript small routine relies on.
The embodiment of the present application also discloses a kind of availability inspection method of small routine, comprising:
Obtain the available small routine list of host program;It is described to be detected as can be used in advance with recording have in small routine list Small routine, the apiLevel of apiLevel and SDK list that the available small routine is relied on and the host program and SDK list match;
Determine current small routine whether in the small routine freelist;
If so, determining that the current small routine can be used in the host program;
If not, it is determined that the current small routine is unavailable in the host program.
Preferably, it is described obtain host program available small routine list the step of include:
Determine the version identifier of host program;
The version identifier is sent to server;
Receive the available small routine list corresponding with the version identifier of host program that the server returns.
Preferably, described to be generated in the following way with small routine list:
Configure apiLevel the and SDK list of host program;
It determines in preset small routine list, apiLevel the and SDK list that each small routine relies on;
From the preset small routine list, apiLevel and SDK list and the host program are determined The target small routine of apiLevel and SDK list match;
The target small routine is added to available small routine list.
Preferably, the generating mode with small routine list further include:
Determine whether the host program has the small routine formerly configured;
If the host program has the small routine formerly configured, the available of the small routine formerly configured is judged Property;
If unavailable, removal processing is carried out to the small routine formerly configured;
If available, the small routine formerly configured is added to available small routine list.
Preferably, it is described configuration host program apiLevel and SDK list the step of include:
Configure the current version identifications of host program;
ApiLevel and SDK list is configured to the host program of current version identifications.
Preferably, the small routine includes: JavaScript small routine;ApiLevel that the determining small routine relies on and The step of SDK list includes:
Determine the basis JavaScript SDK and JavaScript function SDK that the JavaScript small routine relies on;
Associated Native container SDK is determined according to the basis the JavaScript SDK;
The apiLevel that the JavaScript small routine relies on is determined according to the Native container SDK;
The Native function SDK relied on is determined according to the JavaScript function SDK;
According to the Native function SDK of the associated Native container SDK and the dependence, determine described in The SDK list that JavaScript small routine relies on.
Preferably, the step of availability of the judgement small routine formerly configured includes:
Judge whether the small routine formerly configured lacks the Native function SDK of dependence.
The embodiment of the present application, which also discloses one kind, can use small routine list generation method, comprising:
Configure apiLevel the and SDK list of host program;
It determines in preset small routine list, apiLevel the and SDK list that each small routine relies on;
From the preset small routine list, apiLevel and SDK list and the host program are determined The target small routine of apiLevel and SDK list match;
The target small routine is added to available small routine list.
Preferably, further includes:
Determine whether the host program has the small routine formerly configured;
If the host program has the small routine formerly configured, the available of the small routine formerly configured is judged Property;
If unavailable, removal processing is carried out to the small routine formerly configured;
If available, the small routine formerly configured is added to available small routine list.
Preferably, it is described configuration host program apiLevel and SDK list the step of include:
Configure the current version identifications of host program;
ApiLevel and SDK list is configured to the host program of current version identifications.
Preferably, the small routine includes: JavaScript small routine;ApiLevel that the determining small routine relies on and The step of SDK list includes:
Determine the basis JavaScript SDK and JavaScript function SDK that the JavaScript small routine relies on;
Associated Native container SDK is determined according to the basis the JavaScript SDK;
The apiLevel that the JavaScript small routine relies on is determined according to the Native container SDK;
The Native function SDK relied on is determined according to the JavaScript function SDK;
According to the Native function SDK of the associated Native container SDK and the dependence, determine described in The SDK list that JavaScript small routine relies on.
Preferably, the step of availability of the judgement small routine formerly configured includes:
Judge whether the small routine formerly configured lacks the Native function SDK of dependence.
The embodiment of the present application also discloses a kind of availability check device of small routine, comprising:
Host program information determination module, for determining apiLevel the and SDK list of host program;
Small routine information determination module, apiLevel the and SDK list relied on for determining small routine;
Judgment module, apiLevel the and SDK list relied on for judging the small routine, with the host program ApiLevel and SDK list whether matching;
First availability determining module, if for apiLevel the and SDK list that the small routine relies on, with the host The matching of the apiLevel and SDK list of program, it is determined that the small routine can be used in the host program;
Second availability determining module, if for apiLevel the and SDK list that the small routine relies on, with the host ApiLevel the and SDK list of program mismatches, it is determined that the small routine is unavailable in the host program.
Preferably, the small routine includes: JavaScript small routine;The small routine information determination module includes:
First external member determines submodule, the basis JavaScript relied on for determining the JavaScript small routine SDK and JavaScript function SDK;
Second external member determines submodule, for determining associated Native container according to the basis the JavaScript SDK SDK;
Grade determines submodule, for determining that the JavaScript small routine relies on according to the Native container SDK ApiLevel;
Third external member determines submodule, for determining the Native function of relying on according to the JavaScript function SDK SDK;
4th external member determines submodule, for the Native according to associated the Native container SDK and the dependence Function SDK determines the SDK list that the JavaScript small routine relies on.
The embodiment of the present application also discloses a kind of availability check device of small routine, comprising:
Freelist obtains module, for obtaining the available small routine list of host program;It is described to use small routine list Middle record has is detected as available small routine in advance, apiLevel the and SDK list and institute that the available small routine is relied on State apiLevel the and SDK list match of host program;
Small routine determining module, for determining current small routine whether in the small routine freelist;
First availability determining module, if for the current small routine in the small routine freelist, it is determined that The current small routine can be used in the host program;
Second availability determining module, if for the current small routine not in the small routine freelist, really The fixed current small routine is unavailable in the host program.
Preferably, the freelist acquisition module includes:
Version identifier determines submodule, for determining the version identifier of host program;
Version identifier sending submodule, for the version identifier to be sent to server;
Freelist receiving submodule, for receiving the corresponding with the version identifier of host program of the server return Small routine list can be used.
Preferably, described to be generated with small routine list by following module:
Host program information collocation module, for configuring apiLevel the and SDK list of host program;
Small routine information determination module, for determining in preset small routine list, what each small routine relied on ApiLevel and SDK list;
Target small routine determining module, for determining apiLevel and SDK list from the preset small routine list With the target small routine of the apiLevel and SDK list match of the host program;
First object small routine adding module, for the target small routine to be added to available small routine list.
Preferably, the generation module with small routine list further include:
First small routine determining module, for determining whether the host program has the small routine formerly configured;
Third availability determining module, if there is the small routine that formerly configures for the host program, described in judgement The availability of the small routine formerly configured;
Remove module, if unavailable for the small routine formerly configured, to the small routine formerly configured into Row removal processing;
Second target small routine adding module is formerly matched if available for the small routine formerly configured by described The small routine set is added to available small routine list.
Preferably, the host program information collocation module includes:
Version identifier configures submodule, for configuring the current version identifications of host program;
Host program information configuration submodule configures apiLevel and SDK for the host program to current version identifications List.
Preferably, the small routine includes: JavaScript small routine;The small routine information determination module includes:
First external member determines submodule, the basis JavaScript relied on for determining the JavaScript small routine SDK and JavaScript function SDK;
Second external member determines submodule, for determining associated Native container according to the basis the JavaScript SDK SDK;
Grade determines submodule, for determining that the JavaScript small routine relies on according to the Native container SDK ApiLevel;
Third external member determines submodule, for determining the Native function of relying on according to the JavaScript function SDK SDK;
4th external member determines submodule, for the Native according to associated the Native container SDK and the dependence Function SDK determines the SDK list that the JavaScript small routine relies on.
Preferably, the third availability determining module includes:
External member judging submodule, for judging whether the small routine formerly configured lacks the Native function of dependence SDK。
The embodiment of the present application, which also discloses one kind, can use small routine list generation device, comprising:
Host program information collocation module, for configuring apiLevel the and SDK list of host program;
Small routine information determination module, for determining in preset small routine list, what each small routine relied on ApiLevel and SDK list;
Target small routine determining module, for determining apiLevel and SDK list from the preset small routine list With the target small routine of the apiLevel and SDK list match of the host program;
First object small routine adding module, for the target small routine to be added to available small routine list.
Preferably, further includes:
First small routine determining module, for determining whether the host program has the small routine formerly configured;
Availability judgment module judges described first if having the small routine formerly configured for the host program The availability of the small routine of configuration;
Remove module, if unavailable for the small routine formerly configured, to the small routine formerly configured into Row removal processing;
Second target small routine adding module is formerly matched if available for the small routine formerly configured by described The small routine set is added to available small routine list.
Preferably, the host program information collocation module includes:
Version identifier configures submodule, for configuring the current version identifications of host program;
Host program information configuration submodule configures apiLevel and SDK for the host program to current version identifications List.
Preferably, the small routine includes: JavaScript small routine;The small routine information determination module includes:
First external member determines submodule, the basis JavaScript relied on for determining the JavaScript small routine SDK and JavaScript function SDK;
Second external member determines submodule, for determining associated Native container according to the basis the JavaScript SDK SDK;
Grade determines submodule, for determining that the JavaScript small routine relies on according to the Native container SDK ApiLevel;
Third external member determines submodule, for determining the Native function of relying on according to the JavaScript function SDK SDK;
4th external member determines submodule, for the Native according to associated the Native container SDK and the dependence Function SDK determines the SDK list that the JavaScript small routine relies on.
Preferably, the availability judgment module includes:
External member judging submodule, for judging whether the small routine formerly configured lacks the Native function of dependence SDK。
The embodiment of the present application also discloses a kind of device, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that described device executes one or more method as described above.
The embodiment of the present application also discloses one or more machine readable medias, is stored thereon with instruction, when by one or When multiple processors execute, so that device executes one or more method as described above.
The embodiment of the present application includes the following advantages:
In the embodiment of the present application, a kind of detection method of small routine availability is proposed.It is set by the SDK to application program A fixed apiLevel, when increasing small routine to application program, according to apiLevel the and SDK list that small routine is relied on And apiLevel the and SDK list of application program, detect the availability of small routine.Developer is met at itself to solve In the application program of exploitation, the demand of small routine availability is detected.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the availability inspection method embodiment 1 of small routine of the application;
Fig. 2 is a kind of step flow chart of the availability inspection method embodiment 2 of small routine of the application;
Fig. 3 is a kind of step flow chart that can use small routine list generation method embodiment of the application;
Fig. 4 is a kind of flow chart that can use small routine list generation method in the embodiment of the present application;
Fig. 5 is a kind of structural block diagram of the availability check device embodiment 1 of small routine of the application;
Fig. 6 is a kind of structural block diagram of the availability check device embodiment 2 of small routine of the application;
Fig. 7 is a kind of structural block diagram that can use small routine list generation device embodiment of the application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.
Under open scene, developer is different for the demand of open platform, and certain developers need complete Function, and more developers only need the function of a portion.In order to meet this Part Development person for SDK access at Originally, the requirement in terms of runnability, SDK provider would generally provide multiple SDK using function as dimension, and developer can basis The business of oneself needs, and integrates the SDK needed, without accessing complete SDK, so that different application programs is integrated with difference SDK.
Under the environment of mobile terminal, Native (mean primary language, under the environment of mobile terminal, be commonly referred to as Android and IOS) SDK of application program can be characterized using apiLevel, guarantee compatibility between each SDK of the same apiLevel. When newly-increased or removal SDK or some SDK characteristic occurs newly-increased or modification or deletes, apiLevel adds an expression.
The SDK at the end Native, being commonly referred to as the end Android SDK and iOS SDK, JavaScript also has JavaScript SDK。
One of the core concepts of the embodiments of the present application is that the SDK to application program sets an apiLevel.Work as correspondence When increasing small routine with program, according to the apiLevel of apiLevel and SDK list and application program that small routine is relied on With SDK list, the availability of small routine is detected.
Referring to Fig.1, a kind of step flow chart of the availability inspection method embodiment 1 of small routine of the application is shown, It can specifically include following steps:
Step 101, apiLevel the and SDK list of host program is determined;
In the embodiment of the present application, host program refers to that the Native application program configured with small routine (can be The application program of android system is also possible to the application program of iOS system).
ApiLevel the and SDK list of host program is preconfigured by program developer, includes collection in SDK list At all SDK for arriving application program.Developer can choose the SDK for being integrated into application program, and right to these SDK setting one The apiLevel answered.
Availability illustrates that can small routine meet expected execution in specific application program, obtains meeting expected As a result.
In the embodiment of the present application, judge that small routine, can be by the developer of host program in the availability of host program It tests when configuring small routine to host program, is also possible to be examined when needing and running small routine in host program It tests.
Step 102, apiLevel the and SDK list that small routine relies on is determined;
The running environment of small routine is provided by SDK.In the embodiment of the present application, apiLevel and SDK list is used to come Indicate the running environment of small routine.
In the embodiment of the present application, small routine may include: JavaScript small routine.JavaScript small routine is to adopt With the small routine of JavaScript scripting language.
The step 102 may include following sub-step:
Sub-step S11 determines the basis JavaScript SDK and JavaScript that the JavaScript small routine relies on Function SDK;
Sub-step S12 determines associated Native container SDK according to the basis the JavaScript SDK;
Sub-step S13 determines what the JavaScript small routine relied on according to the Native container SDK apiLevel;
Sub-step S14 determines the Native function SDK relied on according to the JavaScript function SDK;
Sub-step S15 determines institute according to the Native function SDK of the associated Native container SDK and the dependence State the SDK list of JavaScript small routine dependence.
JavaScript small routine relies on the certain basis JavaScript SDK, and the basic SDK of JavaScript can be associated with To specific Native container SDK.
Native container SDK, which refers to, provides the SDK of the script running environment of small routine, is the basis that small routine executes, opens Originator must integrate.The basic SDK at the end JavaScript can be associated with specific container SDK, can be with according to Native container SDK Further determine that the apiLevel of host program.
Native function SDK, which refers to, provides the SDK of small routine certain capabilities, and different function SDK has different abilities, example If bluetooth SDK can assign the ability that small routine carries out Bluetooth communication, what developer can need according to the service access of oneself SDK.The functional SDK in the end JavaScript can correspond to the function SDK at the end Native.The end Native includes the end Android and iOS End, Native function SDK include the end the Android end function SDK and iOS function SDK.
JavaScript small routine is the Native function SDK of associated Native container SDK and dependence, is constituted Native SDK required for JavaScript small routine.
Other than JavaScript small routine, the small routine in the embodiment of the present application can also include: based on lua script The lua small routine that language is write.
In the embodiment of the present application, either JavaScript small routine or lua small routine, are relied on ApiLevel and SDK list can also can be obtained by developer's manual configuration of small routine by relevant analytical It arrives.
Step 103, apiLevel the and SDK list that the small routine relies on is judged, with the host program ApiLevel and SDK list whether matching;
Host program may determine that apiLevel the and SDK list that small routine relies on, with the apiLevel of host program and SDK list whether matching.
If small routine rely on apiLevel be less than or equal to host program apiLevel, and small routine rely on SDK list is included in the SDK list of host program, then is judged as matching.Other situations are all judged as mismatch.
Step 104, if matching, it is determined that the small routine can be used in the host program;
Step 105, if mismatching, it is determined that the small routine is unavailable in the host program.
In the embodiment of the present application, a kind of detection method of small routine availability is proposed.It is set by the SDK to application program A fixed apiLevel, when increasing small routine to application program, according to apiLevel the and SDK list that small routine is relied on And apiLevel the and SDK list of application program, detect the availability of small routine.Developer is met at itself to solve In the application program of exploitation, the demand of small routine availability is detected.
Referring to Fig. 2, a kind of step flow chart of the availability inspection method embodiment 2 of small routine of the application is shown, It can specifically include following steps:
Step 201, the available small routine list of host program is obtained;It is described to have preparatory inspection with record in small routine list Surveying is available small routine, apiLevel the and SDK list that the available small routine is relied on and the host program ApiLevel and SDK list match;
In the embodiment of the present application, the developer of host program can pre-generate the available small routine for host program List.
In the embodiment of the present application, the step 201 may include following sub-step:
Sub-step S21 determines the version identifier of host program;
Host program confirms that the version identifier of itself, version identifier can be the version number of developer's setting, be also possible to Other can indicate the mark of application program uniqueness.
The version identifier is sent to server by sub-step S22;
A request can be generated in host program, and version identifier is added to request, then sends the requests to service Device.
Sub-step S23 receives the available small routine column corresponding with the version identifier of host program that the server returns Table.
Developer can send the available small routine list of host program in server and be managed.When server connects When receiving the version identifier that host program reports, corresponding available small routine list is searched, then can be returned with small routine list Back to host program.
In the embodiment of the present application, it can be may include steps of with the generating mode of small routine list:
Step 301, apiLevel the and SDK list of host program is configured;
Developer can create a version number to host program, then select when development platform develops host program Need apiLevel.Development platform can show the apiLevel of all supports, and developer can therefrom select required apiLevel。
The business of developer's realization according to required for small routine, selection need integrated SDK.For example, developer thinks Realize the realization page of a bluetooth blood glucose meter, developer needs the energy for scanning and connecting using bluetooth inside small routine Power, then developer just needs integrated bluetooth SDK.
In the embodiment of the present application, the step 301 may include following sub-step:
Sub-step S31 configures the current version identifications of host program;
Sub-step S32 configures apiLevel and SDK list to the host program of current version identifications.
Developer identifies host program configuration version in development platform, then matches to the host program of current version identifications Set apiLevel and SDK list.
Step 302, it determines in preset small routine list, apiLevel the and SDK list that each small routine relies on;
It can recorde all small routines that developer has access right in preset small routine list, small routine can be with It is independently developed by developer, it is also possible to purchase.
If developer needs to add small routine toward available small routine list, developer can be from preset small routine list Selection small routine is added.
In selection, developer can in development platform, determine each small routine in preset small routine list according to Bad apiLevel and SDK list.
In the embodiment of the present application, the small routine includes: JavaScript small routine;The preset small routine of the determination The step of apiLevel and SDK list that each small routine in list relies on, can specifically include:
Determine the basis JavaScript SDK and JavaScript function SDK that the JavaScript small routine relies on;Root Associated Native container SDK is determined according to the basis the JavaScript SDK;According to Native container SDK determination The apiLevel that JavaScript small routine relies on;The Native function of relying on is determined according to the JavaScript function SDK SDK;According to the Native function SDK of the associated Native container SDK and the dependence, determine that the JavaScript is small The SDK list that program relies on.
Other than JavaScript small routine, the small routine in the embodiment of the present application can also include: based on lua script The lua small routine that language is write.
In the embodiment of the present application, either JavaScript small routine or lua small routine, are relied on ApiLevel and SDK list can also can be obtained by developer's manual configuration of small routine by relevant analytical It arrives.
Step 303, from the preset small routine list, apiLevel and SDK list and the host program are determined ApiLevel and SDK list match target small routine;
Developer can determine apiLevel the and SDK list and state host program that small routine relies in development platform ApiLevel and SDK list match target small routine.
If the apiLevel that small routine relies on is identical as the apiLevel of host program, and the SDK column that small routine relies on Table is included in the SDK list of host program, then is judged as matching.
Step 304, the target small routine is added to available small routine list.
Developer can be in development platform, by apiLevel the and SDK list of dependence and the host program The target small routine of apiLevel and SDK list match is added to available small routine list.
In the embodiment of the present application, can also be able to include: with the generating mode of small routine list
Step 305, determine whether the host program has the small routine formerly configured;
The small routine formerly configured refers to before the SDK of host program changes, to the small routine of host program configuration.? After the SDK of host program changes, developer need that host program is arranged new apiLevel and redefining can be used it is small Program listing.
The small routine formerly configured can recorde in the available small routine list before the SDK change of host program, because Available small routine list before this basis can determine whether host program has the small routine formerly configured.
Step 306, if the host program has the small routine formerly configured, judge the small routine formerly configured Availability;
If host program has the small routine formerly configured, judge the small routine formerly configured in current host program In availability.
Specifically, can be come by judging whether the small routine formerly configured lacks the Native function SDK of dependence Detect the availability of the small routine formerly configured.
Step 307, if it is unavailable, removal processing is carried out to the small routine formerly configured;
If the small routine formerly configured is unavailable, developer can be removed in development platform this formerly configure it is small Program.
In practice, developer can be replaced using the function small routine similar with the small routine formerly configured, or The small routine formerly configured is updated, is replaced using updated small routine.It is formerly configured using the replacement of other small routines When small routine, replacement method can be with reference to the step of above-mentioned addition new small routine.
Developer is it is also contemplated that modify the SDK of host program, with the small routine for supporting this formerly to configure again.
Step 308, if having availability, the small routine formerly configured is added to available small routine list.
If the small routine formerly configured still has availability, the small routine that this can be formerly configured is added to current Small routine list can be used.
Step 202, determine current small routine whether in the small routine freelist;
When opening small routine in host program, host program determines whether current small routine is available in the small routine In list.
Step 203, if so, determining that the current small routine can be used in the host program;
If current small routine is in small routine freelist, it is determined that current small routine can be used in host program, host Program directly initiates the small routine.
Step 204, if not, it is determined that the current small routine is unavailable in the host program.
If current small routine portion is in small routine freelist, it is determined that current small routine is unavailable in host program, Host program can be generated prompting message and inform that user's small routine is unavailable.
Referring to Fig. 3, a kind of step flow chart that can use small routine list generation method embodiment of the application, tool are shown Body may include steps of:
Step 401, apiLevel the and SDK list of host program is configured;
In the embodiment of the present application, the step 401 may include: the current version identifications for configuring host program;To working as The host program of preceding version identifier configures apiLevel and SDK list.
Step 402, it determines in preset small routine list, apiLevel the and SDK list that each small routine relies on;
In the embodiment of the present application, the small routine includes: JavaScript small routine;The step 402 may include:
Determine the basis JavaScript SDK and JavaScript function SDK that the JavaScript small routine relies on;Root Associated Native container SDK is determined according to the basis the JavaScript SDK;According to Native container SDK determination The apiLevel that JavaScript small routine relies on;The Native function of relying on is determined according to the JavaScript function SDK SDK;According to the Native function SDK of the associated Native container SDK and the dependence, determine that the JavaScript is small The SDK list that program relies on.
Other than JavaScript small routine, the small routine in the embodiment of the present application can also include: based on lua script The lua small routine that language is write.
In the embodiment of the present application, either JavaScript small routine or lua small routine, are relied on ApiLevel and SDK list can also can be obtained by developer's manual configuration of small routine by relevant analytical It arrives.
Step 403, from the preset small routine list, apiLevel and SDK list and the host program are determined ApiLevel and SDK list match target small routine;
Step 404, the target small routine is added to available small routine list.
In the embodiment of the present application, the method can also include:
Determine whether the host program has the small routine formerly configured;It is formerly configured if the host program has Small routine then judges the availability of the small routine formerly configured;If unavailable, to the small routine formerly configured into Row removal processing;If available, the small routine formerly configured is added to available small routine list.
In the embodiment of the present application, the step of availability of the judgement small routine formerly configured may include: Judge whether the small routine formerly configured lacks the Native function SDK of dependence.
In order to make those skilled in the art can better understand that the embodiment of the present application, below by an example to this Shen Please embodiment be illustrated:
A kind of flow chart that can use small routine list generation method in the embodiment of the present application is shown referring to Fig. 4.
Developer enters development platform, creates a version number to the application program of oneself in development platform.
Development platform can show the apiLevel of all supports, and developer can therefrom select required apiLevel.
The business of developer's realization according to required for small routine, selection need the SDK gathered.
Developer can record according to configuration, judge whether application program has the small routine formerly configured.If having The small routine first configured then judges the availability of the small routine formerly configured.It is specifically as follows: the small routine that judgement formerly configures Whether the Native function SDK of dependence is lacked;If lacking, judge that the small routine formerly configured is unavailable, if not lacking, The small routine formerly configured is available.
For the not available small routine formerly configured, developer can remove or replace this and not available formerly configure Small routine.For example, developer can be replaced using the function small routine similar with the small routine formerly configured, or update The small routine first configured is replaced using updated small routine.
For the available small routine formerly configured, developer can be added in new available small routine list.
If necessary to newly-increased small routine, developer can filter out current with application program from preset small routine list ApiLevel and SDK list match small routine.The small routine being obtained by filtration is added to available small routine list.
What is recorded in preset small routine list is the small routine that developer has access right, for example, developer oneself The small routine of exploitation, or the small routine of purchase.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, the embodiment of the present application is not limited by the described action sequence, because according to According to the embodiment of the present application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and related movement not necessarily the application is implemented Necessary to example.
Referring to Fig. 5, a kind of structural block diagram of the availability check device embodiment 1 of small routine of the application is shown, is had Body may include following module:
Host program information determination module 501, for determining apiLevel the and SDK list of host program;
Small routine information determination module 502, apiLevel the and SDK list relied on for determining small routine;
Judgment module 503, apiLevel the and SDK list relied on for judging the small routine, with the host program ApiLevel and SDK list whether matching;
First availability determining module 504, if for apiLevel the and SDK list that the small routine relies on, and it is described The matching of the apiLevel and SDK list of host program, it is determined that the small routine can be used in the host program;
Second availability determining module 505, if for apiLevel the and SDK list that the small routine relies on, and it is described ApiLevel the and SDK list of host program mismatches, it is determined that the small routine is unavailable in the host program.
In the embodiment of the present application, the small routine includes: JavaScript small routine;The small routine information determines mould Block 502 may include:
First external member determines submodule, the basis JavaScript relied on for determining the JavaScript small routine SDK and JavaScript function SDK;
Second external member determines submodule, for determining associated Native container according to the basis the JavaScript SDK SDK;
Grade determines submodule, for determining that the JavaScript small routine relies on according to the Native container SDK ApiLevel;
Third external member determines submodule, for determining the Native function of relying on according to the JavaScript function SDK SDK;
4th external member determines submodule, for the Native according to associated the Native container SDK and the dependence Function SDK determines the SDK list that the JavaScript small routine relies on.
Referring to Fig. 6, a kind of structural block diagram of the availability check device embodiment 2 of small routine of the application is shown, is had Body may include following module:
Freelist obtains module 601, for obtaining the available small routine list of host program;It is described to be arranged with small routine Record has and is detected as available small routine in advance in table, apiLevel the and SDK list that the available small routine is relied on ApiLevel the and SDK list match of the host program;
Small routine determining module 602, for determining current small routine whether in the small routine freelist;
First availability determining module 603, if for the current small routine in the small routine freelist, really The fixed current small routine can be used in the host program;
Second availability determining module 604, if for the current small routine not in the small routine freelist, Determine that the current small routine is unavailable in the host program.
In the embodiment of the present application, the freelist acquisition module 601 may include:
Version identifier determines submodule, for determining the version identifier of host program;
Version identifier sending submodule, for the version identifier to be sent to server;
Freelist receiving submodule, for receiving the corresponding with the version identifier of host program of the server return Small routine list can be used.
In the embodiment of the present application, described can be generated by following module with small routine list:
Host program information collocation module, for configuring apiLevel the and SDK list of host program;
Small routine information determination module, for determining in preset small routine list, what each small routine relied on ApiLevel and SDK list;
Target small routine determining module, for determining apiLevel and SDK list from the preset small routine list With the target small routine of the apiLevel and SDK list match of the host program;
First object small routine adding module, for the target small routine to be added to available small routine list.
In the embodiment of the present application, described be able to include: with the generation module of small routine list
First small routine determining module, for determining whether the host program has the small routine formerly configured;
Third availability determining module, if there is the small routine that formerly configures for the host program, described in judgement The availability of the small routine formerly configured;
Remove module, if unavailable for the small routine formerly configured, to the small routine formerly configured into Row removal processing;
Second target small routine adding module is formerly matched if available for the small routine formerly configured by described The small routine set is added to available small routine list.
In the embodiment of the present application, the host program information collocation module includes:
Version identifier configures submodule, for configuring the current version identifications of host program;
Host program information configuration submodule configures apiLevel and SDK for the host program to current version identifications List.
In the embodiment of the present application, the small routine includes: JavaScript small routine;The small routine information determines mould Block includes:
First external member determines submodule, the basis JavaScript relied on for determining the JavaScript small routine SDK and JavaScript function SDK;
Second external member determines submodule, for determining associated Native container according to the basis the JavaScript SDK SDK;
Grade determines submodule, for determining that the JavaScript small routine relies on according to the Native container SDK ApiLevel;
Third external member determines submodule, for determining the Native function of relying on according to the JavaScript function SDK SDK;
4th external member determines submodule, for the Native according to associated the Native container SDK and the dependence Function SDK determines the SDK list that the JavaScript small routine relies on.
In the embodiment of the present application, the third availability determining module includes:
External member judging submodule, for judging whether the small routine formerly configured lacks the Native function of dependence SDK。
Referring to Fig. 7, a kind of structural block diagram that can use small routine list generation device embodiment of the application is shown, specifically May include following module:
Host program information collocation module 701, for configuring apiLevel the and SDK list of host program;
Small routine information determination module 702, for determining in preset small routine list, what each small routine relied on ApiLevel and SDK list;
Target small routine determining module 703, for determining apiLevel and SDK from the preset small routine list The target small routine of the apiLevel and SDK list match of list and the host program;
First object small routine adding module 704, for the target small routine to be added to available small routine list.
In the embodiment of the present application, the device can also include:
First small routine determining module, for determining whether the host program has the small routine formerly configured;
Availability judgment module judges described first if having the small routine formerly configured for the host program The availability of the small routine of configuration;
Remove module, if unavailable for the small routine formerly configured, to the small routine formerly configured into Row removal processing;
Second target small routine adding module is formerly matched if available for the small routine formerly configured by described The small routine set is added to available small routine list.
In the embodiment of the present application, the host program information collocation module 701 may include:
Version identifier configures submodule, for configuring the current version identifications of host program;
Host program information configuration submodule configures apiLevel and SDK for the host program to current version identifications List.
In the embodiment of the present application, stating small routine includes: JavaScript small routine;The small routine information determination module 702 may include:
First external member determines submodule, the basis JavaScript relied on for determining the JavaScript small routine SDK and JavaScript function SDK;
Second external member determines submodule, for determining associated Native container according to the basis the JavaScript SDK SDK;
Grade determines submodule, for determining that the JavaScript small routine relies on according to the Native container SDK ApiLevel;
Third external member determines submodule, for determining the Native function of relying on according to the JavaScript function SDK SDK;
4th external member determines submodule, for the Native according to associated the Native container SDK and the dependence Function SDK determines the SDK list that the JavaScript small routine relies on.
In the embodiment of the present application, the availability judgment module includes:
External member judging submodule, for judging whether the small routine formerly configured lacks the Native function of dependence SDK。
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
The embodiment of the present application also provides a kind of devices, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that described device executes method described in the embodiment of the present application.
The embodiment of the present application also provides one or more machine readable medias, are stored thereon with instruction, when by one or When multiple processors execute, so that device executes method described in the embodiment of the present application.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiments of the present application may be provided as method, apparatus or calculating Machine program product.Therefore, the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present application is referring to according to the method for the embodiment of the present application, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although preferred embodiments of the embodiments of the present application have been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and all change and modification within the scope of the embodiments of the present application.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to the availability inspection of the availability inspection method, a kind of small routine of a kind of small routine provided herein Device, one kind can use small routine list generation device with small routine list generation method and one kind, be described in detail, this Specific case is applied in text, and the principle and implementation of this application are described, the explanation of above example is only intended to Help understands the present processes and its core concept;At the same time, for those skilled in the art, the think of according to the application Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair The limitation of the application.

Claims (30)

1. a kind of availability inspection method of small routine characterized by comprising
Determine apiLevel the and SDK list of host program;
Determine apiLevel the and SDK list that small routine relies on;
ApiLevel the and SDK list that the small routine relies on is judged, with apiLevel the and SDK list of the host program Whether match;
If matching, it is determined that the small routine can be used in the host program;
If mismatching, it is determined that the small routine is unavailable in the host program.
2. the method according to claim 1, wherein the small routine includes: JavaScript small routine;It is described Determine that the step of apiLevel and SDK list that small routine relies on includes:
Determine the basis JavaScript SDK and JavaScript function SDK that the JavaScript small routine relies on;
Associated Native container SDK is determined according to the basis the JavaScript SDK;
The apiLevel that the JavaScript small routine relies on is determined according to the Native container SDK;
The Native function SDK relied on is determined according to the JavaScript function SDK;
According to the Native function SDK of the associated Native container SDK and the dependence, determine that the JavaScript is small The SDK list that program relies on.
3. a kind of availability inspection method of small routine characterized by comprising
Obtain the available small routine list of host program;It is described can in small routine list record have be detected as in advance it is available small Program, the apiLevel and SDK of apiLevel and SDK list and the host program that the available small routine is relied on are arranged Table matching;
Determine current small routine whether in the small routine freelist;
If so, determining that the current small routine can be used in the host program;
If not, it is determined that the current small routine is unavailable in the host program.
4. according to the method described in claim 3, it is characterized in that, the step of the available small routine list for obtaining host program Suddenly include:
Determine the version identifier of host program;
The version identifier is sent to server;
Receive the available small routine list corresponding with the version identifier of host program that the server returns.
5. according to the method described in claim 3, it is characterized in that, described can be generated in the following way with small routine list:
Configure apiLevel the and SDK list of host program;
It determines in preset small routine list, apiLevel the and SDK list that each small routine relies on;
From the preset small routine list, determine apiLevel and SDK list and the host program apiLevel and The target small routine of SDK list match;
The target small routine is added to available small routine list.
6. according to the method described in claim 5, it is characterized in that, the generating mode with small routine list further include:
Determine whether the host program has the small routine formerly configured;
If the host program has the small routine formerly configured, the availability of the small routine formerly configured is judged;
If unavailable, removal processing is carried out to the small routine formerly configured;
If available, the small routine formerly configured is added to available small routine list.
7. according to the method described in claim 5, it is characterized in that, the apiLevel and SDK list of the configuration host program The step of include:
Configure the current version identifications of host program;
ApiLevel and SDK list is configured to the host program of current version identifications.
8. according to the method described in claim 5, it is characterized in that, the small routine includes: JavaScript small routine;It is described Determine that the step of apiLevel and SDK list that small routine relies on includes:
Determine the basis JavaScript SDK and JavaScript function SDK that the JavaScript small routine relies on;
Associated Native container SDK is determined according to the basis the JavaScript SDK;
The apiLevel that the JavaScript small routine relies on is determined according to the Native container SDK;
The Native function SDK relied on is determined according to the JavaScript function SDK;
According to the Native function SDK of the associated Native container SDK and the dependence, determine that the JavaScript is small The SDK list that program relies on.
9. according to the method described in claim 6, it is characterized in that, the availability of the judgement small routine formerly configured The step of include:
Judge whether the small routine formerly configured lacks the Native function SDK of dependence.
10. one kind can use small routine list generation method characterized by comprising
Configure apiLevel the and SDK list of host program;
It determines in preset small routine list, apiLevel the and SDK list that each small routine relies on;
From the preset small routine list, determine apiLevel and SDK list and the host program apiLevel and The target small routine of SDK list match;
The target small routine is added to available small routine list.
11. according to the method described in claim 10, it is characterized by further comprising:
Determine whether the host program has the small routine formerly configured;
If the host program has the small routine formerly configured, the availability of the small routine formerly configured is judged;
If unavailable, removal processing is carried out to the small routine formerly configured;
If available, the small routine formerly configured is added to available small routine list.
12. according to the method described in claim 10, it is characterized in that, apiLevel and the SDK column of the configuration host program The step of table includes:
Configure the current version identifications of host program;
ApiLevel and SDK list is configured to the host program of current version identifications.
13. according to the method described in claim 10, it is characterized in that, the small routine includes: JavaScript small routine;Institute Stating the step of apiLevel and SDK list that determining small routine relies on includes:
Determine the basis JavaScript SDK and JavaScript function SDK that the JavaScript small routine relies on;
Associated Native container SDK is determined according to the basis the JavaScript SDK;
The apiLevel that the JavaScript small routine relies on is determined according to the Native container SDK;
The Native function SDK relied on is determined according to the JavaScript function SDK;
According to the Native function SDK of the associated Native container SDK and the dependence, determine that the JavaScript is small The SDK list that program relies on.
14. according to the method for claim 11, which is characterized in that the judgement small routine formerly configured can be used The step of property includes:
Judge whether the small routine formerly configured lacks the Native function SDK of dependence.
15. a kind of availability check device of small routine characterized by comprising
Host program information determination module, for determining apiLevel the and SDK list of host program;
Small routine information determination module, apiLevel the and SDK list relied on for determining small routine;
Judgment module, apiLevel the and SDK list relied on for judging the small routine, with the host program ApiLevel and SDK list whether matching;
First availability determining module, if for apiLevel the and SDK list that the small routine relies on, with the host program ApiLevel and SDK list matching, it is determined that the small routine can be used in the host program;
Second availability determining module, if for apiLevel the and SDK list that the small routine relies on, with the host program ApiLevel and SDK list mismatch, it is determined that the small routine is unavailable in the host program.
16. device according to claim 15, which is characterized in that the small routine includes: JavaScript small routine;Institute Stating small routine information determination module includes:
First external member determines submodule, for determine the basis JavaScript SDK that the JavaScript small routine relies on and JavaScript function SDK;
Second external member determines submodule, for determining associated Native container SDK according to the basis the JavaScript SDK;
Grade determines submodule, for determining what the JavaScript small routine relied on according to the Native container SDK apiLevel;
Third external member determines submodule, for determining the Native function SDK relied on according to the JavaScript function SDK;
4th external member determines submodule, for the Native function according to the associated Native container SDK and the dependence SDK determines the SDK list that the JavaScript small routine relies on.
17. a kind of availability check device of small routine characterized by comprising
Freelist obtains module, for obtaining the available small routine list of host program;It is described to be remembered in small routine list Record has is detected as available small routine in advance, apiLevel the and SDK list that the available small routine is relied on and the place ApiLevel the and SDK list match of main program;
Small routine determining module, for determining current small routine whether in the small routine freelist;
First availability determining module, if for the current small routine in the small routine freelist, it is determined that described Current small routine can be used in the host program;
Second availability determining module, if for the current small routine not in the small routine freelist, it is determined that institute It is unavailable in the host program to state current small routine.
18. device according to claim 17, which is characterized in that the freelist obtains module and includes:
Version identifier determines submodule, for determining the version identifier of host program;
Version identifier sending submodule, for the version identifier to be sent to server;
Freelist receiving submodule, for receiving the corresponding with the version identifier of host program available of the server return Small routine list.
19. device according to claim 17, which is characterized in that described raw by following module with small routine list At:
Host program information collocation module, for configuring apiLevel the and SDK list of host program;
Small routine information determination module, for determining in preset small routine list, apiLevel that each small routine relies on and SDK list;
Target small routine determining module, for determining apiLevel and SDK list and institute from the preset small routine list State the target small routine of the apiLevel and SDK list match of host program;
First object small routine adding module, for the target small routine to be added to available small routine list.
20. device according to claim 19, which is characterized in that described also to be wrapped with the generation module of small routine list It includes:
First small routine determining module, for determining whether the host program has the small routine formerly configured;
Third availability determining module judges described first if having the small routine formerly configured for the host program The availability of the small routine of configuration;
Remove module moves the small routine formerly configured if unavailable for the small routine formerly configured Except processing;
Second target small routine adding module is formerly configured described if available for the small routine formerly configured Small routine is added to available small routine list.
21. device according to claim 19, which is characterized in that the host program information collocation module includes:
Version identifier configures submodule, for configuring the current version identifications of host program;
Host program information configuration submodule configures apiLevel and SDK list for the host program to current version identifications.
22. device according to claim 19, which is characterized in that the small routine includes: JavaScript small routine;Institute Stating small routine information determination module includes:
First external member determines submodule, for determine the basis JavaScript SDK that the JavaScript small routine relies on and JavaScript function SDK;
Second external member determines submodule, for determining associated Native container SDK according to the basis the JavaScript SDK;
Grade determines submodule, for determining what the JavaScript small routine relied on according to the Native container SDK apiLevel;
Third external member determines submodule, for determining the Native function SDK relied on according to the JavaScript function SDK;
4th external member determines submodule, for the Native function according to the associated Native container SDK and the dependence SDK determines the SDK list that the JavaScript small routine relies on.
23. device according to claim 20, which is characterized in that the third availability determining module includes:
External member judging submodule, for judging whether the small routine formerly configured lacks the Native function SDK of dependence.
24. one kind can use small routine list generation device characterized by comprising
Host program information collocation module, for configuring apiLevel the and SDK list of host program;
Small routine information determination module, for determining in preset small routine list, apiLevel that each small routine relies on and SDK list;
Target small routine determining module, for determining apiLevel and SDK list and institute from the preset small routine list State the target small routine of the apiLevel and SDK list match of host program;
First object small routine adding module, for the target small routine to be added to available small routine list.
25. device according to claim 24, which is characterized in that further include:
First small routine determining module, for determining whether the host program has the small routine formerly configured;
Availability judgment module judges the first configuration if having the small routine formerly configured for the host program Small routine availability;
Remove module moves the small routine formerly configured if unavailable for the small routine formerly configured Except processing;
Second target small routine adding module is formerly configured described if available for the small routine formerly configured Small routine is added to available small routine list.
26. device according to claim 24, which is characterized in that the host program information collocation module includes:
Version identifier configures submodule, for configuring the current version identifications of host program;
Host program information configuration submodule configures apiLevel and SDK list for the host program to current version identifications.
27. device according to claim 24, which is characterized in that the small routine includes: JavaScript small routine;Institute Stating small routine information determination module includes:
First external member determines submodule, for determine the basis JavaScript SDK that the JavaScript small routine relies on and JavaScript function SDK;
Second external member determines submodule, for determining associated Native container SDK according to the basis the JavaScript SDK;
Grade determines submodule, for determining what the JavaScript small routine relied on according to the Native container SDK apiLevel;
Third external member determines submodule, for determining the Native function SDK relied on according to the JavaScript function SDK;
4th external member determines submodule, for the Native function according to the associated Native container SDK and the dependence SDK determines the SDK list that the JavaScript small routine relies on.
28. device according to claim 25, which is characterized in that the availability judgment module includes:
External member judging submodule, for judging whether the small routine formerly configured lacks the Native function SDK of dependence.
29. a kind of device characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made The methods for obtaining the one or more that described device is executed as described in claim 1-2 or 3-9 or 10-14.
30. one or more machine readable medias, are stored thereon with instruction, when executed by one or more processors, so that Device executes one or more methods as described in claim 1-2 or 3-9 or 10-14.
CN201711488817.8A 2017-12-29 2017-12-29 Availability check of small program, available small program list generating method and device Active CN109992501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711488817.8A CN109992501B (en) 2017-12-29 2017-12-29 Availability check of small program, available small program list generating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711488817.8A CN109992501B (en) 2017-12-29 2017-12-29 Availability check of small program, available small program list generating method and device

Publications (2)

Publication Number Publication Date
CN109992501A true CN109992501A (en) 2019-07-09
CN109992501B CN109992501B (en) 2022-06-10

Family

ID=67111072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711488817.8A Active CN109992501B (en) 2017-12-29 2017-12-29 Availability check of small program, available small program list generating method and device

Country Status (1)

Country Link
CN (1) CN109992501B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880857A (en) * 2020-07-17 2020-11-03 百度在线网络技术(北京)有限公司 Method, device and equipment for issuing small program and storage medium
CN112463515A (en) * 2019-09-09 2021-03-09 北京国双科技有限公司 Data acquisition method and device based on small program, storage medium and electronic equipment
CN113238785A (en) * 2021-06-18 2021-08-10 腾讯科技(深圳)有限公司 Application program updating method, related device, equipment and storage medium
CN115443460A (en) * 2020-04-10 2022-12-06 苹果公司 Registered applications for electronic devices
CN111880857B (en) * 2020-07-17 2024-06-07 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for issuing small program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183414A (en) * 2007-12-07 2008-05-21 白杰 Program detection method, device and program analyzing method
US20130347046A1 (en) * 2012-06-25 2013-12-26 Silent Communication Ltd. Systems, Apparatuses, Methods and Computer Executable Code for Facilitating Broadcast, Publication and/or Sharing of Video from a User Device to one or more Other User Devices in a Social Networking Environment
CN105653335A (en) * 2015-12-31 2016-06-08 北京锐安科技有限公司 Plug-in procedure control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183414A (en) * 2007-12-07 2008-05-21 白杰 Program detection method, device and program analyzing method
US20130347046A1 (en) * 2012-06-25 2013-12-26 Silent Communication Ltd. Systems, Apparatuses, Methods and Computer Executable Code for Facilitating Broadcast, Publication and/or Sharing of Video from a User Device to one or more Other User Devices in a Social Networking Environment
CN105653335A (en) * 2015-12-31 2016-06-08 北京锐安科技有限公司 Plug-in procedure control method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463515A (en) * 2019-09-09 2021-03-09 北京国双科技有限公司 Data acquisition method and device based on small program, storage medium and electronic equipment
CN115443460A (en) * 2020-04-10 2022-12-06 苹果公司 Registered applications for electronic devices
CN111880857A (en) * 2020-07-17 2020-11-03 百度在线网络技术(北京)有限公司 Method, device and equipment for issuing small program and storage medium
CN111880857B (en) * 2020-07-17 2024-06-07 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for issuing small program
CN113238785A (en) * 2021-06-18 2021-08-10 腾讯科技(深圳)有限公司 Application program updating method, related device, equipment and storage medium
CN113238785B (en) * 2021-06-18 2023-10-20 腾讯科技(深圳)有限公司 Application program updating method, related device, equipment and storage medium

Also Published As

Publication number Publication date
CN109992501B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
US20140156813A1 (en) Application migration between clouds
CN109543462B (en) Equipment identification determination method, device, server and storage medium
CN106610839B (en) Method for issuing upgrade package, lightweight upgrade method, device and system
CN111752843B (en) Method, apparatus, electronic device and readable storage medium for determining influence surface
CN107133165B (en) Browser compatibility detection method and device
CN104978258A (en) Software automation test method and system
CN105760184A (en) Method and device for loading component
CN105893075A (en) Update method and device of application
CN109992501A (en) The availability inspection of small routine can use small routine list generation method and device
CN111399840B (en) Module development method and device
CN106055375B (en) Application program installation method and device
CN104216724A (en) Method and system for updating network application program interface
CN109117143A (en) A kind of application dispositions method and system
CN109358898A (en) A kind of information processing method, device, electronic equipment and storage medium
CN111124871A (en) Interface test method and device
CN106776266B (en) Configuration method of test tool and terminal equipment
CN112506518A (en) Compiling method and device based on configuration file
CN103701817A (en) Method and device for generating configuration file
CN113918635A (en) Interface data format conversion method and device
CN107092502B (en) Automatic application configuration method and device based on cloud operating system
CN109359045A (en) A kind of test method, device, equipment and storage medium
CN104657256A (en) Method and device for collecting mapping relation between cases and codes
CN117009248A (en) Machine learning model testing method and device, electronic equipment and storage medium
CN109358813B (en) Capacity expansion method and device for distributed storage system
CN109582396B (en) Task state processing method, device and system and storage medium

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40010747

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant