APP development method and device

文档序号:700998 发布日期:2021-04-13 浏览:2次 中文

阅读说明:本技术 一种app开发方法和装置 (APP development method and device ) 是由 李军锋 梁强 乌兰 连守财 张立 李跃海 于 2021-01-15 设计创作,主要内容包括:本发明公开了一种APP开发方法和装置,属于APP开发领域;在接收到用户的APP生成请求后,根据预设的APP启动项目模板对数据进行处理得到安装包,然后将安装包上传到文件服务器生成APP。本申请提供的方法,在开发APP时无需投入大量人力物力。只需要根据预设APP启动项目模板对数据进行处理即可得到APP安装包,开发效率高,开发成本低。(The invention discloses an APP development method and device, belonging to the field of APP development; after receiving an APP generation request of a user, processing data according to a preset APP starting project template to obtain an installation package, and uploading the installation package to a file server to generate an APP. The method provided by the application does not need to invest a large amount of manpower and material resources when developing the APP. Only need start the project template according to predetermineeing the APP and handle data and can obtain the APP installation package, and development efficiency is high, and development cost is low.)

1. An APP development method is characterized by comprising the following steps:

receiving an APP generation request of a user, wherein the APP generation request comprises data required by APP development, and the data comprises: picture and certificate resources, configuration information and functional components;

processing the data according to a preset APP starting project template to obtain an installation package;

and uploading the installation package to a file server to generate an APP.

2. The method of claim 1, wherein: the receiving the APP generation request of the user comprises:

and receiving an APP generation request of a user through a webpage.

3. The method of claim 1, wherein: the processing the data according to a preset APP starting project template to obtain an installation package comprises the following steps:

copying an APP starting project template;

replacing corresponding data in the template according to the data;

configuring a certificate path and a password;

and executing the packaging command to generate an installation package.

4. The method of claim 3, wherein: the copying APP startup project template further comprises:

the templates are named with an ID to ensure that the templates are unique.

5. The method of claim 3, wherein: the replacing the corresponding data in the template according to the data comprises:

identifying the data;

and replacing different data to different positions of the template according to the identification result.

6. The method of claim 5, wherein: the placing different data into different positions of the template according to the recognition result comprises:

copying the picture and certificate resources in the data to a preset position of the template, wherein the picture and certificate resources comprise: starting an APP picture and starting a guide picture;

writing the configuration information into a preset position of the template, wherein the configuration information comprises: name, package name, BunldeID, password, and certificate path;

and writing the service component path managed by the functional component into the build.grale or the project file of the template.

7. The method of claim 3, wherein: the generating a packed command according to the information comprises:

judging whether a certificate exists or not;

if yes, directly configuring a certificate path and a password; if not, a certificate file is generated, and a certificate path and a password are reconfigured.

8. The method of claim 3, wherein: the executing the packaged command to generate the installation package comprises:

executing the gradle command to generate an android APP installation package; and/or the presence of a gas in the gas,

and executing the xcodebuild + xcrun command to generate an apple APP installation package.

9. The method of claim 8, further comprising:

executing the gradle command to generate an apk file;

and executing the command of xcodebuild + xcrun to generate the ipa file.

10. An APP development device, comprising:

a request receiving module, configured to receive an APP generation request of a user, where the APP generation request includes data required by APP development, and the data includes: picture and certificate resources, configuration information and functional components;

the installation package obtaining module is used for processing the data according to a preset APP starting project template to obtain an installation package;

and the APP generation module is used for uploading the installation package to a file server to generate an APP.

Technical Field

The present invention relates to an APP development technology, and in particular, to an APP development method and apparatus.

Background

With the continuous development of information technology and software industry, business service requirements and life requirements of people are continuously changed, and in order to meet the huge requirements, enterprises and public institutions of all levels, such as government departments, merchants, tourist attractions, schools and business companies, have the requirements for developing APP of the users.

In order to meet the different requirements, APP software companies often invest a large amount of manpower and material resources to develop and manufacture each APP, and also invest a large amount of manpower when releasing or updating versions. Invisibly, these phenomena have greatly increased the operating costs of companies, and are inefficient, difficult to generate in vast quantities as in the sea's commercial competition, and difficult to create revenue.

Disclosure of Invention

In order to overcome the defects of the prior art, the invention provides an APP development method and device, and aims to solve the problems that a large amount of manpower and material resources are required to be input, the development efficiency is low and the cost is high in the conventional APP development mode.

The technical scheme adopted by the invention for solving the technical problems is as follows:

on the one hand, the method comprises the following steps of,

an APP development method comprises the following steps:

receiving an APP generation request of a user, wherein the APP generation request comprises data required by APP development, and the data comprises: picture and certificate resources, configuration information and functional components;

processing the data according to a preset APP starting project template to obtain an installation package;

and uploading the installation package to a file server to generate an APP.

Further, the receiving the APP generation request of the user includes:

and receiving an APP generation request of a user through a webpage.

Further, the processing the data according to a preset APP start project template to obtain an installation package includes:

copying an APP starting project template;

replacing corresponding data in the template according to the data;

configuring a certificate path and a password;

and executing the packaging command to generate an installation package.

Further, the copying the APP start-up project template further includes:

the templates are named with an ID to ensure that the templates are unique.

Further, the replacing the corresponding data in the template according to the data includes:

identifying the data;

and replacing different data to different positions of the template according to the identification result.

Further, the placing different data into different positions of the template according to the recognition result includes:

copying the picture and certificate resources in the data to a preset position of the template, wherein the picture and certificate resources comprise: starting an APP picture and starting a guide picture;

writing the configuration information into a preset position of the template, wherein the configuration information comprises: name, package name, BunldeID, password, and certificate path;

and writing the service component path managed by the functional component into the build.grale or the project file of the template.

Further, the generating a packed command according to the information includes:

judging whether a certificate exists or not;

if yes, directly configuring a certificate path and a password; if not, a certificate file is generated, and a certificate path and a password are reconfigured.

Further, the executing the packed command to generate the installation package comprises:

executing the gradle command to generate an android APP installation package; and/or the presence of a gas in the gas,

and executing the xcodebuild + xcrun command to generate an apple APP installation package.

Further, still include:

executing the gradle command to generate an apk file;

and executing the command of xcodebuild + xcrun to generate the ipa file.

On the other hand, in the case of a liquid,

an APP development apparatus comprising:

a request receiving module, configured to receive an APP generation request of a user, where the APP generation request includes data required by APP development, and the data includes: picture and certificate resources, configuration information and functional components;

the installation package obtaining module is used for processing the data according to a preset APP starting project template to obtain an installation package;

and the APP generation module is used for uploading the installation package to a file server to generate an APP.

This application adopts above technical scheme, possesses following beneficial effect at least:

the technical scheme provides an APP development method and device, after an APP generation request of a user is received, data are processed according to a preset APP starting project template to obtain an installation package, and then the installation package is uploaded to a file server to generate an APP. The method provided by the application does not need to invest a large amount of manpower and material resources when developing the APP. Only need start the project template according to predetermineeing the APP and handle data and can obtain the APP installation package, and development efficiency is high, and development cost is low.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a flowchart of an APP development method provided in an embodiment of the present invention;

fig. 2 is a flowchart of a specific APP development method provided in an embodiment of the present invention;

fig. 3 is a block diagram of an APP development device according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the following detailed description of the technical solutions of the present invention is provided with reference to the accompanying drawings and examples. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without making any creative effort, shall fall within the protection scope of the present application.

Referring to fig. 1, an embodiment of the present invention provides an APP development method, including the following steps:

receiving an APP generation request of a user, wherein the APP generation request comprises data required by APP development, and the data comprises: picture and certificate resources, configuration information and functional components;

processing data according to a preset APP starting project template to obtain an installation package;

and uploading the installation package to a file server to generate an APP.

According to the APP development method provided by the embodiment of the invention, after an APP generation request of a user is received, data is processed according to a preset APP starting project template to obtain an installation package, and then the installation package is uploaded to a file server to generate the APP. The method provided by the embodiment of the invention does not need to invest a large amount of manpower and material resources when developing APP. Only need start the project template according to predetermineeing the APP and handle data and can obtain the APP installation package, and development efficiency is high, and development cost is low.

As a supplementary explanation of the embodiment of the present invention, receiving an APP generation request of a user includes: and receiving an APP generation request of a user through a webpage. The system is deployed in a webpage form, belongs to a network version service program, can be operated at any time and any place as long as the system has the authority, and eliminates the office place limitation of 'only being operated on a company development computer'. Meanwhile, the information collection function is centralized on one management page, and the management page can be operated by a single person without intervention of a large number of developers, so that labor force is greatly liberated. The collected data comprises an APP name, android package name and certificate information, apple BundleID and certificate password, an APP starting picture and a starting guide picture, functional components of APP corresponding services, menu buttons displayed by the APP and the like.

As an optional implementation manner of the embodiment of the present invention, processing data according to a preset APP start-up project template to obtain an installation package includes:

copying an APP starting project template; it should be noted that the template is named by ID to ensure that the template is unique.

Replacing corresponding data in the template according to the data; specifically, data is identified; and replacing different data to different positions of the template according to the recognition result. Further, copying the picture and certificate resource in the data to a preset position of the template, wherein the picture and certificate resource comprises: starting an APP picture and starting a guide picture; writing configuration information into a preset position of the template, wherein the configuration information comprises: name, package name, BunldeID, password, and certificate path; writing the business component path managed by the functional component into the build.

Configuring a certificate path and a password; specifically, whether a certificate exists is judged; if yes, directly configuring a certificate path and a password; if not, a certificate file is generated, and a certificate path and a password are reconfigured.

And executing the packaging command to generate an installation package. Executing a gradle command to generate an android APP installation package; and/or executing an xcodebuild + xcrun command to generate an apple APP installation package. Specifically, executing the gradle command to generate an apk file; and executing the command of xcodebuild + xcrun to generate the ipa file.

To illustrate the solution of the present application more clearly, fig. 2 provides a specific development method, which includes the following steps:

1. developing a website, deploying the website on a network, and filling and collecting data information required by the APP, wherein the website comprises functions such as: the method comprises the following steps of APP name filling, android package name and certificate information filling and uploading, apple BundleID and certificate password filling and uploading, APP starting picture and starting guide picture uploading, selecting functional components of APP corresponding services, configuring menu buttons displayed by the APP and the like.

2. And preparing android and apple startup program templates and all service component packages, and deploying the templates and all the service component packages to the appointed position of the server.

3. Android and apple startup procedure templates are copied one by one, naming can be performed through Id, and different APPs are guaranteed to correspond to different folders.

4. And copying the pictures and the certificate file resources in the collected data to a specified position in the template.

5. Writing the configuration information in the collected data into a specified file in the template, such as: name, package name, BunldeID, password, certificate path.

6. And writing the business component path corresponding to the functional component in the collected data into the build.

7. And using the command, entering a template folder, executing a gradle command by android, executing an xcodebuild + xcrun command by the apple, and generating an apk and ipa application installation package.

8. And uploading the apk and ipa files to a file server.

9. And feeding back to an operator whether the current packaging is successful or not.

According to the development method provided by the embodiment of the invention, an operator fills in the name of the APP, the package name and the certificate information of the android, the BundleID and the certificate password of the apple, the APP starting picture and the starting guide picture, the functional components of the corresponding business of the APP, the menu button displayed by the APP and other application information on an information filling page, and stores the application information in the database.

After receiving the information, the APP packaging interface copies a deployed APP startup program template (a folder where the startup program is located, hereinafter referred to as a template), names the APP startup program template with the name or Id of the APP, ensures uniqueness, copies file resources in the information to a specified position of the template, writes configuration information such as package names, BundleID, certificate passwords and the like into a specified file, writes a service component path corresponding to a functional component into a build.

In an embodiment, the present invention further provides an APP development apparatus, as shown in fig. 3, including:

a request receiving module 31, configured to receive an APP generation request of a user, where the APP generation request includes data required by APP development, and the data includes: picture and certificate resources, configuration information and functional components; specifically, the request receiving module receives an APP generation request of a user through a webpage.

The installation package obtaining module 32 is configured to process the data according to a preset APP start project template to obtain an installation package; specifically, the installation package acquisition module copies an APP starting project template; replacing corresponding data in the template according to the data; configuring a certificate path and a password; and executing the packaging command to generate an installation package.

Wherein, copying the APP start-up project template further comprises:

the templates are named with IDs to ensure that the templates are unique.

Further, replacing the corresponding data in the template according to the data includes: identifying data; and replacing different data to different positions of the template according to the recognition result. Specifically, copying a picture and a certificate resource in the data to a preset position of the template, wherein the picture and certificate resource comprises: starting an APP picture and starting a guide picture; writing configuration information into a preset position of the template, wherein the configuration information comprises: name, package name, BunldeID, password, and certificate path; writing the business component path managed by the functional component into the build.

Optionally, generating the packed command according to the information includes: judging whether a certificate exists or not; if yes, directly configuring a certificate path and a password; if not, a certificate file is generated, and a certificate path and a password are reconfigured.

In the actual development process, executing the packaging command to generate the installation package comprises the following steps: executing the gradle command to generate an android APP installation package; and/or executing an xcodebuild + xcrun command to generate an apple APP installation package. Specifically, executing the gradle command to generate an apk file;

and executing the command of xcodebuild + xcrun to generate the ipa file.

And an APP generation module 33, configured to upload the installation package to the file server to generate an APP.

The APP development device provided by the embodiment of the invention comprises a request receiving module, a request generation module and a request generation module, wherein the request receiving module is used for receiving an APP generation request of a user; the installation package obtaining module processes the data according to a preset APP starting project template to obtain an installation package; the APP generation module uploads the installation package to the file server to generate an APP. The development device of the embodiment of the invention uniformly manages the page configuration, is convenient and quick, and the APP packet is executed by the android and apple compiling command, so that the generation of the APP and the release of the product can be completed in a few minutes, thereby saving the time and greatly improving the efficiency. Meanwhile, the page can be uniformly managed by multiple persons to simultaneously operate, and various APPs for releasing different services are generated at the same time, so that the working efficiency and the service competitiveness are improved. Android and apple APP are executed by unified commands, the commands are centralized, generation and release are executed simultaneously, and the uniformity of the android and apple business pace can be guaranteed. The device is operated in a networked mode, and a large number of android and apple application packages can be generated dynamically in unit time.

It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.

It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.

Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.

It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.

It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.

In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.

The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.

In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种环境影响评价报告生成方法及其系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!