Method, device and medium for generating multi-channel published application

By obtaining the application's platform information, creating an initial application package, and configuring product content, the cumbersome multi-channel packaging problem in existing technologies is solved, and efficient multi-channel application package generation is achieved.

CN115421772BActive Publication Date: 2025-12-23CHONGQING CHANGAN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211054214.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2025-12-23
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

In the current application development process, multiple packaging processes are required for different channels and platforms, resulting in low development efficiency.

Method used

By obtaining the application's platform information, an initial application package is created, and product content and reference fields are configured according to the platform information to generate a target application package for multi-channel distribution.

Benefits of technology

It enables the generation of multiple application packages from a single codebase, improving development efficiency and simplifying the packaging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115421772B_ABST
    Figure CN115421772B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of software development, and provides a generation method of an application program of multi-channel release, which comprises the following steps: acquiring different platform information of application program release; creating corresponding initial application program packages according to the different platform information; configuring product content corresponding to the initial application program packages according to channel type information in the initial application program packages; and packaging the product content and the corresponding initial application program packages to generate target application program packages of multi-channel release. The application can facilitate the packaging processing of project codes of the application program.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of software development, in particular to a generation method and device of an application program published through multiple channels, equipment and a medium. BACKGROUND

[0002] In the existing application program development process, the project code of the application program can only be packaged into one application program package. If only some slight modifications are made to the project code of the application program, such as configuring different channel package names, adapting to different model configuration files, or even modifying part of the source code, the project code of the application program needs to be repackaged. If there are too many channels or the configuration is complex, the packaging process is relatively cumbersome. SUMMARY

[0003] In view of the above-mentioned shortcomings of the prior art, the present application provides a generation method, device, equipment and medium of an application program published through multiple channels, which can facilitate the packaging process of the project code of the application program.

[0004] The present application provides a generation method of an application program published through multiple channels, which comprises the following steps:

[0005] Obtaining different platform information of the application program publication;

[0006] According to different platform information, creating a corresponding initial application program package;

[0007] According to the channel type information in the different initial application program packages, configuring the corresponding product content;

[0008] Corresponding the product content to the corresponding initial application program package, and performing packaging processing to generate a target application program package published through multiple channels.

[0009] In an embodiment of the present application, the step of obtaining different platform information of the application program publication comprises:

[0010] Obtaining an application program;

[0011] According to the application program, obtaining various platform information of the publication.

[0012] In an embodiment of the present application, the step of creating a corresponding initial application program package according to different platform information comprises:

[0013] According to different platform information, generating corresponding flavor dimension information in the application program to specify the corresponding platform information;

[0014] According to different platform information, generating corresponding product flavor information in the application program;

[0015] According to different platform information, corresponding channel type information is generated in the application program;

[0016] The flavor dimension information, the product flavor information and the channel type information are packaged to create a corresponding initial application program package.

[0017] In an embodiment of the present application, the step of packaging the product content and the corresponding initial application program package to generate a target application program package for multi-channel release includes:

[0018] According to different initial application program packages, corresponding reference fields are preset to correspond the reference fields to the product content to distinguish different functions in different initial application program packages;

[0019] The initial application program package, the product content and the reference field are packaged to generate a corresponding target application program package for multi-channel release.

[0020] In an embodiment of the present application, the step of presetting corresponding reference fields according to different initial application program packages to correspond the reference fields to the product content to distinguish different functions in different initial application program packages includes:

[0021] According to different backend access interface address information in the initial application program package, a corresponding reference field is generated;

[0022] The reference field is corresponded to the product content to distinguish different functions in different initial application program packages.

[0023] In an embodiment of the present application, the step of presetting corresponding reference fields according to different initial application program packages to correspond the reference fields to the product content to distinguish different functions in different initial application program packages includes:

[0024] According to different backend access interface address information in the initial application program package, a corresponding reference field is added in the form of a placeholder;

[0025] The reference field is corresponded to the product content to distinguish different functions in different initial application program packages.

[0026] In an embodiment of the present application, after the step of packaging the product content and the corresponding initial application program package to generate a target application program package for multi-channel release, the step of:

[0027] If the dependency information exists, a product channel name is added on the dependency information to package the target application package.

[0028] The application further provides a device for generating a multi-channel published application, comprising:

[0029] A platform acquisition module is configured to acquire different platform information of the application publication.

[0030] A first generation module is configured to create an initial application package according to the different platform information.

[0031] A preset module is configured to configure product content corresponding to the initial application package according to channel type information in the initial application package.

[0032] A second generation module is configured to package the product content and the initial application package to generate a target application package for multi-channel publication.

[0033] The application further provides an electronic device, comprising:

[0034] One or more processors;

[0035] A storage device is configured to store one or more programs, which, when executed by the one or more processors, enable the electronic device to implement the method for generating a multi-channel published application.

[0036] The application further provides a computer readable storage medium, which stores a computer program, and when the computer program is executed by a processor of a computer, the computer executes the method for generating a multi-channel published application.

[0037] The application has the following advantages: the application can package multiple application packages through single compilation in a set of codes, without separate compilation, thereby improving development efficiency.

[0038] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the application. BRIEF DESCRIPTION OF DRAWINGS

[0039] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:

[0040] Figure 1 This is a schematic diagram illustrating an implementation environment for processing a multi-channel distributed application, as shown in an exemplary embodiment of this application.

[0041] Figure 2 This is a flowchart illustrating a method for generating a multi-channel published application, as shown in an exemplary embodiment of this application;

[0042] Figure 3 yes Figure 2 The flowchart of step S210 in the illustrated embodiment is shown in an exemplary embodiment;

[0043] Figure 4 yes Figure 2 Step S220 in the illustrated embodiment is a flowchart of an exemplary embodiment;

[0044] Figure 5 yes Figure 2 The flowchart of step S240 in the illustrated embodiment is shown in an exemplary embodiment;

[0045] Figure 6 yes Figure 5 The flowchart of step S510 in the illustrated embodiment is shown in an exemplary embodiment;

[0046] Figure 7 yes Figure 5 A flowchart of step S510 in another exemplary embodiment;

[0047] Figure 8 This is a schematic diagram illustrating the processing procedure of a multi-channel publishing application processing method, as shown in an exemplary embodiment of this application.

[0048] Figure 9 This is a block diagram illustrating a processing apparatus for a multi-channel distributed application, as shown in an exemplary embodiment of this application;

[0049] Figure 10 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation

[0050] The present application will be described with reference to the attached drawings and preferred embodiments, and by illustrating the principles of the application and the practical application to preferred embodiments thereof. Other advantages and benefits of the present application will become apparent to those of ordinary skill in the art upon reading the description of the application below, and it is the intent of the present application that others be able to employ the principles of the application as set forth in the claims below. The preferred embodiments of the present application are not the only ones in which the principles of the present application can be employed. It is intended that the present application be employed in all its forms, both presently disclosed and those hereafter developed.

[0051] It is to be understood that the drawings are designed solely for purposes of illustration and not as a definition of the limits of the application, for which reference solely should be made to the appended claims. It is to be further understood that the

[0052] In the following description, numerous specific details are discussed in order to provide a thorough understanding of the embodiments of the application. However, it will be apparent to one of ordinary skill in the art that the embodiments of the application can be practiced without these specific details. In other instances, well-known structures and devices are not described in exhaustive detail in order to avoid obscuring the embodiments of the application.

[0053] First of all, it needs to be explained that the application can be a mobile phone, computer, etc. Application (app). The app can be published on different platforms, such as the same app can be published on the application market of different platforms such as mobile phone, car machine, TV, computer, etc. For different platforms, the software development kit (Software Development Kit, SDK) of the special application market needs to be integrated, and the application package name of the app needs to be changed. SDK is a collection of development tools used by software engineers to create applications for a specific software package, software framework, hardware platform, operating system, etc. SDK facilitates the creation of applications through compilers, debuggers, software frameworks, etc. For example, the project uses Baidu map SDK, and later switches to Gaode map due to business reasons, and the overall logic remains unchanged, and the SDK implementation part needs to be replaced. For another example, some apps need to be customized for different regions, and the code of the project will have subtle differences, such as customization for different cities. If there is a higher level of customization requirement, multiple dimensions can even be combined to form a customized combination product, such as the difference between platform and map SDK, which can directly generate a combination product, such as mobile phone Baidu version, mobile phone Gaode version, car machine Baidu version, car machine Gaode version, etc.

[0054] Figure 1is a schematic diagram of an implementation environment of a method for generating an application program of multi-channel publishing according to an example embodiment of the present application. As shown in Figure 1 The smart terminal 110 can obtain different platform information of application program publishing, and then create corresponding initial application program packages according to the different platform information, define preset contents in the corresponding initial application program packages, preset different product contents according to the different initial application program packages, and correspond the product contents to the corresponding initial application program packages, to generate a target application program package of multi-channel publishing. Among them, Figure 1 The smart terminal 110 can be any terminal device supporting installation of navigation map software, such as a smart phone, a vehicle-mounted computer, a tablet computer, a notebook computer, or a wearable device, but is not limited thereto. Figure 1 The server 120 is a server, which can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, and is not limited herein. The smart terminal 110 can communicate with the server 120 through a wireless network such as 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), 5G (fifth generation mobile information technology), and the like, and the present application is not limited thereto. Since each domain of the communication network in the current vehicle system needs to be connected to different backgrounds to obtain Internet services, each domain of the communication network needs different network basic programs, and cannot achieve both connection to the background to obtain network services and network communication services between different domains. To solve these problems, the present application provides a method for generating an application program of multi-channel publishing, a processing device for an application program of multi-channel publishing, an electronic device, a computer readable storage medium, and a computer program product, which will be described in detail below.

[0055] Please refer to Figure 2 , Figure 2 is a flowchart of a method for generating an application program of multi-channel publishing according to an example embodiment of the present application. The method can be applied to Figure 1 the implementation environment shown in the figure, and is specifically executed by the smart terminal 110 in the implementation environment. It should be understood that the method can also be applied to other example implementation environments and specifically executed by devices in other implementation environments, and the present embodiment does not limit the implementation environment to which the method is applied.

[0056] As shown in Figure 2The application further provides a multi-channel publishing application program generation method, which comprises the following steps:

[0057] In an exemplary embodiment, the multi-channel publishing application program generation method comprises steps S210 to S250, which are described in detail as follows:

[0058] In step S210, different platform information of the application program publishing is acquired, wherein the platform information comprises backend access interface address information, package name information and software development kit information.

[0059] In step S220, corresponding initial application program packages are created according to the different platform information.

[0060] In step S230, different product contents are preset according to the different initial application program packages.

[0061] In step S240, the product contents are corresponded to the corresponding initial application program packages for package processing to generate target application program packages for multi-channel publishing.

[0062] Please refer to Figure 3 In an exemplary embodiment, when step S210 is performed, that is, different platform information of the application program publishing is acquired, wherein the platform information comprises backend access interface address information, package name information and software development kit information. Specifically, step S210 can comprise the following steps:

[0063] In step S310, the application program is acquired.

[0064] In step S320, different platform information of the publishing is acquired according to the application program, wherein the platform information comprises backend access interface address information, package name information and software development kit information.

[0065] In an exemplary embodiment, when steps S310 and S320 are executed, the application is obtained, and various platform information for publication is obtained based on the application. The platform information includes backend access interface address information, package name information, and software development kit (SDK) information. Specifically, the application can be a mobile app or a computer program, such as navigation software or map software. After obtaining the application to be published, the platform information to be published can be determined based on the application. For example, when publishing navigation software, it can be published on different platforms such as mobile platforms and in-vehicle platforms. Similarly, when publishing map software, it can be published on different platforms such as Baidu Maps, Gaode Maps, and Google Maps. Therefore, various platform information for publication can be obtained based on the application to be published. The platform information can include backend access interface address information, package name information, and software development kit (SDK) information. The backend access interface can be a URL address provided by a machine deployed on the server for dynamic data interaction. The typical workflow involves the backend and frontend negotiating and defining a data interface format to form a document, and the backend implementing the interface. The backend access interface address information can be the storage address information of the backend access interface. Package name information can be the name of the APK file generated when the application is released on different platforms. Some software creates a folder with the package name during use and then stores data in it. For example, the package name of "Mobile QQ" is com.tencent.mobileqq. After the software is installed, the package name is located in the / data / app directory (not / system / data / app). Software Development Kit (SDK) information can be a collection of development tools used to create application software for specific software packages, software frameworks, hardware platforms, operating systems, etc. Generally speaking, a Software Development Kit (SDK) is the SDK used to develop applications for the Windows platform. It facilitates application creation through compilers, debuggers, software frameworks, etc. It can be as simple as some files that provide application programming interface (API) for a programming language, but it may also include complex hardware that can communicate with some embedded system.

[0066] Please see Figure 4 As shown, in an exemplary embodiment, when step S220 is executed, a corresponding initial application package is created based on different platform information. Specifically, step S220 may include the following steps:

[0067] Step S410: Generate corresponding flavor dimension information within the application based on different platform information to specify the corresponding platform information;

[0068] Step S420: Generate corresponding product flavor information within the application based on different platform information;

[0069] Step S430, according to different platform information, generating corresponding channel type information in the application program;

[0070] Step S440, packaging the flavor dimension information, product flavor information and channel type information, and creating a corresponding initial application package.

[0071] In an exemplary embodiment, when performing step S410, step S420 and step S430, that is, according to different platform information, generating corresponding flavor dimension information in the application program to specify the corresponding platform information, according to different platform information, generating corresponding product flavor information and channel type information in the application program. Specifically, after determining the platform information to be published, the corresponding flavor dimension information can be generated in the application program according to different platform information, and each flavor dimension information corresponds to a platform information. For example, the flavor dimension (flavorDimensions) attribute can be added in the build.gradle in the directory of the application program to specify the product channel name of the corresponding platform information. At the same time, the corresponding product flavor information and channel type information can also be generated in the application program according to different platform information. For example, product flavor (productFlavors) can also be added in the build.gradle in the directory of the application program, and channel type can also be added in the build.gradle in the directory of the application program. Among them, the product flavor corresponds to the flavor dimension, and one product flavor is associated with one flavor dimension. The product channel name can be the name of the platform to be published.

[0072] In an exemplary embodiment, when performing step S440, that is, packaging the flavor dimension information, product flavor information and channel type information, and creating a corresponding initial application package. Specifically, after generating the corresponding flavor dimension information, product flavor information and channel type information according to a platform information, the flavor dimension information, product flavor information and channel type information can be packaged, and the corresponding initial application package apk will be automatically generated by the script in the compilation process. The remaining platform information can be processed in the same way until all platform information generates the corresponding initial application package apk.

[0073] In an exemplary embodiment, when step S230 is executed, different product content is preset according to different initial application packages. Specifically, the product content can be configured according to the channel type information within different initial application packages. After the initial application package is generated, product-specific fields and content can be configured according to different platform information to generate specific product content. The product content only participates in the compilation process of that product. The product content can be the differentiated content of the differentiated product, differentiated functions can be developed in the corresponding product channels, and different variables can be defined according to different platform information to achieve differentiated content and distinguish different platforms.

[0074] Please see Figure 5 As shown, in an exemplary embodiment, when step S240 is performed, the product content is packaged with the corresponding initial application package to generate a target application package for multi-channel distribution. Specifically, step S240 may include the following steps:

[0075] Step S510: Preset corresponding reference fields according to different initial application packages so that the reference fields correspond to the corresponding product content, so as to distinguish different functions in different initial application packages;

[0076] Step S520: Package the initial application package, product content, and referenced fields to generate the corresponding target application package for multi-channel distribution.

[0077] In an exemplary embodiment, when step S510 is executed, corresponding reference fields are preset according to different initial application packages, so that the reference fields correspond to the corresponding product content, thereby distinguishing different functions within different initial application packages. Specifically, after the product content is generated, a reference field can be created to correspond to the corresponding product content. For example, a unique reference can be provided by adding a buildConfigField field to distinguish different functions within different initial application packages.

[0078] In an exemplary embodiment, when step S520 is performed, the initial application package, product content and reference field are packaged to generate a target application package for multi-channel release. Specifically, after the reference field is generated, the initial application package, product content and reference field are packaged to generate a target application package for multi-channel release. Then a new product name directory can be created under the source code of the application to store the customized code for the platform. For different platforms, different product name directories can be created to store different target application packages for multi-channel release to prevent interference between different target application packages for multi-channel release.

[0079] Referring to FIG. 6, in an exemplary embodiment, when step S510 is performed, the reference field is preset according to different initial application packages, so that the reference field corresponds to the corresponding product content to distinguish different functions in different initial application packages. Specifically, step S510 can include the following steps: Figure 6

[0080] Step S610, generating a corresponding reference field according to the back-end access interface address information in different initial application packages;

[0081] Step S620, corresponding the reference field to the corresponding product content to distinguish different functions in different initial application packages.

[0082] In an exemplary embodiment, when steps S610 and S620 are performed, the reference field is generated according to the back-end access interface address information in different initial application packages, and the reference field is corresponded to the corresponding product content to distinguish different functions in different initial application packages. Specifically, when a specific reference is provided by adding a buildConfigField field, the reference field can be generated according to the back-end access interface address information of different product configurations, and the reference field can be corresponded to the corresponding product content to distinguish different functions in different initial application packages. The product configuration can read the corresponding field from the BuildConfig.class class for code logic implementation.

[0083] Referring to FIG. 6, in an exemplary embodiment, when step S510 is performed, the reference field is preset according to different initial application packages, so that the reference field corresponds to the corresponding product content to distinguish different functions in different initial application packages. Specifically, step S510 can include the following steps: Figure 7

[0084] ​​Step S710, according to the backend access interface address information in different initial application packages, a corresponding reference field is added in the form of a placeholder inside;

[0085] Step S720, the reference field is corresponded to the corresponding product content to distinguish different functions in different initial application packages.

[0086] In an exemplary embodiment, when steps S710 and S720 are performed, that is, according to the backend access interface address information in different initial application packages, a corresponding reference field is added in the form of a placeholder inside, the reference field is corresponded to the corresponding product content to distinguish different functions in different initial application packages. Specifically, when a specific reference is provided by adding a buildConfigField field, a manifestPlaceholders field can also be added to reference in the form of a placeholder in the androidmanifest to generate a corresponding reference field, which is corresponded to the corresponding product content to distinguish different functions in different initial application packages, and can also be customized.

[0087] In an exemplary embodiment, when step S250 is performed, that is, it is judged whether there is corresponding dependency information, if there is dependency information, the product channel name is added on the dependency information to package the target application package for multi-channel release, if there is no dependency information, the target application package for multi-channel release is not packaged. Specifically, different platforms may require different dependencies, when there is dependency information, the product name is only needed before the dependency, and the dependency only acts on the compilation and packaging of the product. For example, if the current product is a Baidu Map version, it can depend on the Baidu Map api, and if the product is a Gaode Map api, it can be configured in the same way to distinguish the two products. Of course, if there is a higher level of customization requirement, the sourceSets attribute can be configured to increase the product name res and src configuration of the code and resource directory, which is only visible to the product and does not participate in the compilation of other products.

[0088] Please refer to Figure 8 In an exemplary embodiment, in the processing process of the application generation method, the application package APK 810 can be obtained first, then the hardened APK 820 can be generated by hardening the application package APK 810, the hardened APK 820 can be packaged for multi-channel to generate multiple channels 830, and then each channel 830 can be signed to generate a corresponding sdk, so as to achieve the purpose of the application for multi-channel release.

[0089] Figure 9 is a structural block diagram of a processing device of a multi-channel published application program shown in an exemplary embodiment of the present application. The device can be applied in Figure 1 the implementation environment shown and specifically configured in the intelligent terminal 110. The device can also be applied in other exemplary implementation environments and specifically configured in other devices, and the present embodiment does not limit the implementation environment to which the device is applied. The exemplary multi-channel published application program processing device can include a platform acquisition module 910, a first generation module 920, a preset module 930, a second generation module 940, and a judgment module 950.

[0090] In an exemplary embodiment, the platform acquisition module 910 can be used to acquire different platform information of the application program publication, wherein the platform information includes backend access interface address information, package name information, and software development kit information. The platform acquisition module 910 can be specifically used to acquire the application program, and according to the application program, acquire various types of platform information published, wherein the platform information includes backend access interface address information, package name information, and software development kit information.

[0091] In an exemplary embodiment, the first generation module 920 can be used to create a corresponding initial application program package according to different platform information. The first generation module 920 can be specifically used to generate corresponding flavor dimension information in the application program according to different platform information, to specify corresponding platform information, generate corresponding product flavor information in the application program according to different platform information, generate corresponding channel type information in the application program according to different platform information, package process the flavor dimension information, the product flavor information, and the channel type information, and create a corresponding initial application program package.

[0092] In an exemplary embodiment, the preset module 930 can be used to preset different product contents according to different initial application program packages. Specifically, after the initial application program package is generated, a specific product content can be generated by configuring product unique fields and contents according to different platform information. The product content only participates in the compilation process of the product. The product content can be a differentiated content of the differentiated product, can develop a differentiated function in the corresponding product channel, and can define different variables according to different platform information to realize differentiated content and distinguish different platforms.

[0093] In an example embodiment, the second generation module 940 can be configured to correspond the product content to the corresponding initial application package to generate the target application package for multi-channel distribution. Specifically, the second generation module 940 can be configured to preset the corresponding reference field according to different initial application packages, so that the reference field corresponds to the corresponding product content to distinguish different functions in different initial application packages, and to package the initial application package, the product content and the reference field to generate the corresponding target application package for multi-channel distribution.

[0094] In an example embodiment, the judgment module 950 can be configured to judge whether there is corresponding dependency information. If there is dependency information, the product channel name is added on the dependency information to package the target application package for multi-channel distribution. If there is no dependency information, the target application package for multi-channel distribution is not packaged. Specifically, different platforms can require different dependencies. When there is dependency information, the product name is only needed to be added in front of the dependency, and the dependency only acts on the compilation and packaging of the product. For example, if the current product is a Baidu map version, it can depend on the API of Baidu map. If the product is the API of Gaode map, it can be configured in the same way to distinguish the two products.

[0095] It should be noted that the processing apparatus of the application program for multi-channel distribution provided in the above embodiments and the generation method of the application program for multi-channel distribution provided in the above embodiments belong to the same concept. The specific manner in which each module and unit performs operations has been described in detail in the method embodiments, which will not be repeated here. The processing apparatus of the application program for multi-channel distribution provided in the above embodiments can allocate the above functions to different functional modules according to the needs in actual application, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above, and this is not limited herein.

[0096] Embodiments of the present application also provide an electronic device, comprising: one or more processors; a storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the generation method of the application program for multi-channel distribution provided in each of the above embodiments.

[0097] Figure 10 The structure of the computer system of the electronic device suitable for implementing the embodiments of the present application is shown. It should be noted that, Figure 10 The computer system 1000 of the electronic device shown is only an example and should not limit the functions and use range of the embodiments of the present application.

[0098] As Figure 10As shown, the computer system 1000 includes a central processing unit (CPU) 1001 which can perform various suitable actions and processes in accordance with programs stored in a read-only memory (ROM) 1002 or loaded from a storage section 1008 into a random access memory (RAM) 1003, such as performing the methods described in the above embodiments. Various programs and data required for the operation of the system are also stored in the RAM 1003. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0099] Connected to the I / O interface 1005 are an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as necessary. A removable recording medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 1010 as necessary, so that a computer program read therefrom is installed into the storage section 1008 as necessary.

[0100] In particular, in accordance with the embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, the embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing a computer program for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 1009, and / or installed from the removable recording medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, various functions defined in the system of the present application are performed.

[0101] It should be noted that the computer-readable medium in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may, for example, be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this application, the computer-readable signal medium can include a data signal propagated in a baseband or as a carrier wave in a propagated data signal, in which the computer-readable computer program is carried. Such a propagated data signal can take on many forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit the program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted in any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination thereof.

[0102] The flowcharts and block diagrams in the drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. Each block in the flowcharts or block diagrams can represent a module, a program segment, or a portion of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in a different order than that shown in the figures. For example, two blocks noted in succession can actually be executed substantially concurrently, or they can sometimes be executed in reverse order, depending on the functionality involved. It should also be noted that each block in the flowcharts or block diagrams, and combinations of blocks in the flowcharts or block diagrams, can be implemented by special-purpose hardware-based systems, which perform the specified functions or operations, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0103] The units described in the embodiments of the present application can be implemented in the form of software, or can be implemented in the form of hardware, and the described units can also be arranged in a processor. In some cases, the names of the units do not constitute a limitation on the units themselves.

[0104] Another aspect of the present application also provides a computer readable storage medium, which stores a computer program. When the computer program is executed by a processor of a computer, the computer executes the method for generating a multi-channel published application. The computer readable storage medium can be included in the electronic device described in the above embodiments, or can exist separately and not be assembled into the electronic device.

[0105] Another aspect of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for generating a multi-channel published application provided in the above embodiments.

[0106] The above embodiments only exemplarily illustrate the principles and effects of the present application, and are not used to limit the present application. Any person skilled in the art can modify or change the above embodiments without departing from the spirit and scope of the present application. Therefore, all equivalent modifications or changes completed by those skilled in the art without departing from the spirit and technical thought of the present application should be covered by the claims of the present application.

Claims

1. A method for generating an application program for multi-channel distribution, characterized by, The method comprises: acquiring different platform information published by an application; creating corresponding initial application packages according to the different platform information; configuring corresponding product content according to channel type information in the different initial application packages; generating corresponding reference fields according to backend access interface address information in the different initial application packages, or adding corresponding reference fields in the form of placeholders in the initial application packages; corresponding the reference fields to the corresponding product content to distinguish different functions in different initial application packages; performing packaging processing on the initial application packages, the product content, and the reference fields to generate target application packages for multi-channel publishing.

2. The method of claim 1, wherein, The step of acquiring different platform information published by an application comprises: acquiring an application; acquiring various types of platform information published according to the application.

3. The method of claim 1, wherein, The step of creating corresponding initial application packages according to the different platform information comprises: generating corresponding flavor dimension information in the application according to the different platform information to specify the corresponding platform information; generating corresponding product flavor information in the application according to the different platform information; generating corresponding channel type information in the application according to the different platform information; performing packaging processing on the flavor dimension information, the product flavor information, and the channel type information to create corresponding initial application packages.

4. The method of claim 1, wherein the application for multi-channel distribution is generated by: After the step of generating target application packages for multi-channel publishing, the method further comprises the step of: determining whether there is corresponding dependency information, if the dependency information exists, adding a product channel name on the dependency information to perform packaging processing on the target application package, and if the dependency information does not exist, not performing packaging processing on the target application package.

5. An application generation apparatus for multi-channel distribution, characterized by comprising: The application of the multi-channel publishing application generation method according to any one of claims 1 to 4, the generation device comprises: a platform acquisition module configured to acquire different platform information published by an application; a first generation module configured to create corresponding initial application packages according to the different platform information; a preset module configured to configure corresponding product content according to channel type information in the different initial application packages; and a second generation module configured to perform packaging processing on the product content and the corresponding initial application packages to generate target application packages for multi-channel publishing.

6. An electronic device, comprising: The electronic device comprises: one or more processors; a storage device configured to store one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the multi-channel publishing application generation method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, A computer program is stored thereon, which, when executed by a processor of a computer, causes the computer to perform the multi-channel publishing application generation method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Cloud configuration-based android game multi-channel packaging method and system

    CN107885506A