Template project, in-vehicle application construction method and device, equipment and storage medium
By modifying and generating Android template projects that meet project needs, the problems of low development efficiency and lack of unified architecture specifications in the existing technology are solved, and a more efficient development process and unified architecture are achieved.
Patent Information
- Application Number
- CN202411573062.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-03-04
AI Technical Summary
The development efficiency of existing Android template projects is low and lacks unified architecture specifications, resulting in coding conflicts and other problems during development by multiple people.
By obtaining the project requirements and project templates of the target vehicle, modifying the configuration properties of the project template, and generating target template projects that meet project needs, so that the template project structure is unified and easy for subsequent developers to use directly.
It improves development efficiency, saves development costs, and solves the problems of low development efficiency of template projects and lack of unified architectural specifications.
Smart Images

Figure CN119556892A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software development technology, and in particular to a template project, a vehicle application construction method, a device, a equipment and a storage medium. Background Art
[0002] Android is an open source operating system based on Linux, mainly used in mobile devices such as smartphones and tablets. Android software development is a Java-based development method, usually developed using Android Studio, an application development tool launched by Google. It provides a wealth of APIs and tools to help developers quickly build high-quality Android applications.
[0003] Currently, Android template projects are all created through Android Studio, but this method has the following disadvantages: the template project structure is simple and is not suitable for source code management of large-scale automotive software projects; the template project has no unified architecture specification and does not meet enterprise software development specifications; the template project does not contain commonly used development function components, and some common functions must be re-implemented in each project, resulting in low development efficiency; Android Studio configuration is complex, and the template project structures generated by different versions of Android Studio are different and cannot run compatible, resulting in coding conflicts due to version issues when multiple people are developing. Summary of the invention
[0004] The present application provides a template project, a vehicle application construction method, a device, a equipment and a storage medium to solve the problems in the prior art such as low efficiency of template project development and lack of unified architecture specifications for template projects.
[0005] The first aspect of the present application provides a template project construction method, comprising the following steps: obtaining project requirements and a project template of a target vehicle; modifying configuration properties of the project template based on the project requirements, wherein the configuration properties include at least one of a project name, a module name, and a package name; and generating a target template project that meets the project requirements based on the modified project template.
[0006] Optionally, in one embodiment of the present application, before obtaining the project requirements and project template of the target vehicle, it also includes: obtaining the development standards of the enterprise where the target vehicle is located; building a project template based on the development standards, and uploading the project template to the version control system in the server, wherein the version control system stores the project template.
[0007] Optionally, in one embodiment of the present application, obtaining the project requirements and project template of the target vehicle includes: identifying the type of the version control system; determining a target instruction format for obtaining the project template based on the type, and generating a target operation instruction based on the target instruction format; obtaining the project template from the version control system based on the target operation command, wherein the target operation command includes the address of the project template and the address of the target template project.
[0008] Optionally, in one embodiment of the present application, after generating a target template project that meets the project requirements based on the modified project template, it also includes: obtaining the type of each module in the target template project; if the type of the module is the target type, placing the template in the same file.
[0009] Optionally, in one embodiment of the present application, after obtaining the project requirements and project template of the target vehicle, the method further includes: deleting the version control identification file of the project template or the folder where the project template is located.
[0010] The second aspect of the present application provides a method for constructing a vehicle-machine application, which is constructed using a target template project constructed by the template project construction method of the above embodiment, and includes the following steps: obtaining application requirements of a target vehicle-machine application for a target vehicle; modifying configuration properties of the target template project based on the application requirements, wherein the target template project is constructed based on the template project construction method of the above embodiment; and generating a target vehicle-machine application based on the modified target template project.
[0011] The third aspect of the present application provides a template project construction device, including: a first acquisition module, used to obtain the project requirements and project template of a target vehicle; a first modification module, used to modify the configuration properties of the project template based on the project requirements, wherein the configuration properties include at least one of a project name, a module name, and a package name; a first generation module, used to generate a target template project that meets the project requirements based on the modified project template.
[0012] Optionally, in one embodiment of the present application, it also includes: a construction module, used to obtain the development standards of the enterprise where the target vehicle is located before obtaining the project requirements and project template of the target vehicle; construct a project template based on the development standards, and upload the project template to the version control system in the server, wherein the version control system stores the project template.
[0013] Optionally, in one embodiment of the present application, the first acquisition module is further used to: identify the type of the version control system; determine the target instruction format for acquiring the project template based on the type, and generate a target operation instruction based on the target instruction format; acquire the project template from the version control system based on the target operation command, wherein the target operation command includes the address of the project template and the address of the target template project.
[0014] Optionally, in one embodiment of the present application, it also includes: a placement module, which is used to obtain the type of each module in the target template project after generating a target template project that meets the project requirements based on the modified project template; if the type of the module is the target type, the template is placed in the same file.
[0015] Optionally, in one embodiment of the present application, it further includes: a deletion module, which is used to delete the version control identification file of the project template or the folder where the project template is located after obtaining the project requirements and project template of the target vehicle.
[0016] The fourth aspect of the present application provides a vehicle-machine application construction device, including: a second acquisition module, used to obtain application requirements of a target vehicle-machine application of a target vehicle; a second modification module, used to modify the configuration properties of a target template project based on the application requirements, wherein the target template project is constructed based on the template project construction device of the above embodiment; and a second generation module, used to generate a target vehicle-machine application based on the modified target template project.
[0017] The third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to execute a vehicle application construction method or a template project construction method as described in the above-mentioned embodiments.
[0018] The fourth aspect of the present application provides a computer-readable storage medium on which a computer program or instruction is stored. The computer program or instruction is executed by a processor to execute a vehicle application construction method or a template project construction method as described in the above-mentioned embodiment.
[0019] Therefore, this application has at least the following beneficial effects:
[0020] The embodiment of the present application can modify the general project template according to the project requirements of the target vehicle, wherein the project template is constructed by the developer according to the model of the target vehicle and the development standards of the enterprise where the target vehicle is located, and a template project that meets the project requirements is generated based on the modified project template, so that the template project architecture is unified, and it is convenient for subsequent developers to directly use the generated target template project to develop projects or applications. When developing different projects, there is no need to repeatedly implement general functions or configurations, and only the corresponding configurations need to be changed according to the project requirements, thereby improving development efficiency and saving development costs. As a result, technical problems such as low efficiency of template project development and lack of unified architecture specifications in the prior art are solved.
[0021] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0023] Figure 1 A flowchart of a template project construction method provided according to an embodiment of the present application;
[0024] Figure 2 Flowcharts created for related technology template projects;
[0025] Figure 3 A schematic diagram of the structure of the relevant technical project;
[0026] Figure 4 A specific flow chart of a template project construction method provided according to an embodiment of the present application;
[0027] Figure 5 A schematic diagram of a project directory provided according to an embodiment of the present application;
[0028] Figure 6 A flowchart of a vehicle machine application construction method provided according to an embodiment of the present application;
[0029] Figure 7 This is an example diagram of a template project device provided according to an embodiment of the present application;
[0030] Figure 8 This is an example diagram of a vehicle machine application device provided according to an embodiment of the present application;
[0031] Fig. 9 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0032] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0033] The following describes the template project, vehicle application construction method, device, equipment and storage medium of the embodiment of the present application with reference to the accompanying drawings. In view of the problem mentioned in the above background technology that the current Android template projects are all created through Android Studio, the development efficiency is low and the template project has no unified architecture specification, the present application provides a template project construction method, in which the general project template can be modified according to the target vehicle project requirements, wherein the project template is constructed by the developer according to the model of the target vehicle and the development standard of the enterprise where the target vehicle is located, and a template project that meets the project requirements is generated based on the modified project template, when the template project architecture is unified, and it is convenient for subsequent developers to directly use the generated target template project to develop projects or applications. When developing different projects, there is no need to repeatedly implement common functions or configurations, and only the corresponding configuration needs to be changed according to the project requirements, thereby improving the development efficiency. Thus, the problems of low development efficiency of template projects and no unified architecture specifications for template projects in the prior art are solved.
[0034] Specifically, Figure 1 A flowchart of a template project construction method provided in an embodiment of the present application.
[0035] like Figure 1 As shown, the template project construction method includes the following steps:
[0036] In step S101, the project requirements and project template of the target vehicle are obtained.
[0037] Among them, project requirements can be obtained through the computer's user interface, API or command line tool. The project requirements can be the user's functional requirements, user interface requirements, etc. for the project; the project template is a predefined project structure and configuration to facilitate users to quickly create and initialize.
[0038] In an embodiment of the present application, before obtaining the project requirements and project template of the target vehicle, it also includes: obtaining the development standards of the enterprise where the target vehicle is located; building a project template based on the development standards, and uploading the project template to the version control system in the server, wherein the version control system stores the project template.
[0039] Among them, the development standards may include enterprise-customized signal transmission interface components, universal HMI component libraries, universal project configurations, etc., which are universal standards for the enterprise where the target vehicle is located.
[0040] It can be understood that the embodiment of the present application can construct a project template according to the development standards of the enterprise where the target vehicle is located, so that the project template meets the enterprise-specific requirements of the target vehicle, making the constructed project template more targeted, and uploading the project template to the version control system in the server to facilitate the sharing and use of the project version.
[0041] In an embodiment of the present application, obtaining the project requirements and project template of the target vehicle includes: identifying the type of the version control system; determining a target instruction format for obtaining the project template based on the type, and generating a target operation instruction based on the target instruction format; obtaining the project template from the version control system based on the target operation command, wherein the target operation command includes the address of the project template and the address of the target template project.
[0042] The version control system may be GIT or SVN, etc.
[0043] Due to the different operation types of pulling project templates from different version control systems, the embodiments of the present application can identify the type of version control system, and determine the target instruction format for obtaining the project template based on the type of version control system, and then generate a target operation instruction based on the target instruction format, and obtain the project template from the version control system based on the target operation command, wherein the target operation command includes the address of the project template and the address of the target template project.
[0044] It should be noted that the address of the project template in the target operation instruction is the address of the project template in the version control system, that is, the warehouse address, and the target project template is the address of the target template project that the user needs to build locally, that is, the local path of the project.
[0045] For example, if the version control system is Git, the command to pull the project template from Git is gitclone [warehouse address] [project local path];
[0046] The version control system is SVN, and the operation command for SVN to pull the project template is svn checkout [warehouse address] [project local path].
[0047] In an embodiment of the present application, after obtaining the project requirements and project template of the target vehicle, it also includes: deleting the version control identification file of the project template or the folder where the project template is located.
[0048] It can be understood that after obtaining the project requirements and project version of the target vehicle, the embodiment of the present application deletes the version control identification file (such as the .git folder) in the project template or the folder where the project template is located to ensure that the subsequently generated target template project has no redundant files.
[0049] In step S102, configuration attributes of the project template are modified based on project requirements, wherein the configuration attributes include at least one of a project name, a module name, and a package name.
[0050] It is understandable that the embodiments of the present application can modify the configuration properties of the project template based on project requirements, wherein the configuration properties include at least one of the project name, module name, and package name, so that the project template meets the user's project requirements.
[0051] In step S103, a target template project that meets the project requirements is generated based on the modified project template.
[0052] It can be understood that the embodiment of the present application can generate a target template project that meets the project requirements based on the modified project template, so as to facilitate subsequent developers to directly use the generated target template project to develop projects or applications. When developing different projects, there is no need to repeatedly implement common functions or configurations, but only to change the corresponding configuration according to project requirements, thereby improving development efficiency.
[0053] In an embodiment of the present application, after generating a target template project that meets the project requirements based on the modified project template, it also includes: obtaining the type of each module in the target template project; if the type of the module is the target type, placing the template in the same file.
[0054] The target type is a module that can be packaged into a standalone application.
[0055] It can be understood that the embodiment of the present application can obtain the type of each module in the target template project. If the type of the module is the target type, it is placed in the same file for management and use.
[0056] The following is a specific example to describe the template project construction method of the present application. Taking the in-vehicle Android project as an example, the traditional in-vehicle Android project still relies on Android Studio local creation. The creation process is as follows: Figure 2 As shown, the template project structure created by default (such as Figure 3 The software based on the in-vehicle Android system usually contains the same vehicle signal reading control logic, unified HMI design style, consistent system signature files, etc. in the in-vehicle audio and entertainment system of the same model. If the traditional method is used to create a template project, the development needs to repeatedly implement these functions or configurations, which affects the development efficiency.
[0057] Therefore, if Figure 4 As shown, the template project construction method of the embodiment of the present application manages a set of project templates with the help of a general version control system, pulls the project templates with an automated construction program, and modifies the Android project configuration, so as to realize one-click generation of a vehicle cockpit application software template project. And the generated project keeps the directory (such as Figure 5The structure, software architecture, system signature and basic functions are unified as shown in the figure. Cockpit software developers can quickly develop cockpit software functions on this basis to improve software development efficiency.
[0058] The specific steps are as follows:
[0059] 1. Build a general version control system
[0060] VCS (Version Control System) is a software engineering technology used to manage the modification history of files, directories, or projects during the development process, facilitate viewing the change history, and back up and restore previous versions. This embodiment uses Git as the storage management solution for project templates to ensure the uniqueness and timeliness of project templates.
[0061] 2. Organize project templates
[0062] According to the enterprise software development specifications and architecture specifications, a car Android project template code is compiled. This project template contains basic codes such as customized signal transmission interface components for vehicle model projects, customized vehicle model project general HMI component library, general project configuration, etc., and does not need to include specific business function codes. After passing the internal review, this project template can be uploaded to the version control system and a unique download path will be generated.
[0063] 3. Create an automated build program
[0064] The automated build program is an executable file that can be run in Windows or Mac systems. Click to run the executable file to automatically create an Android unified template project. In the field of software development, there are many ways to create the automated build program, such as Java, Python, C, etc. In order to achieve compatibility processing on different platforms, it is recommended to implement the automated build program in Java. The automated build program mainly realizes the following functions.
[0065] 3.1. Collect customized software (i.e. project requirements) information
[0066] Application software running in the Android cockpit audio and entertainment system must comply with the basic specifications of the Android platform. For example, different applications running in the same system need to have independent package names as important identifiers to distinguish them. All template projects generated by this method are built based on the unique project template managed in the VCS system, so some unique information needs to be customized and modified before creation, such as package name, application name, etc. The automated build program can obtain customized information through the command line or interactive interface.
[0067] 3.2 Pull the project template from the version control system
[0068] In step 2, a project template has been created and submitted to the version control system to generate a unique download path. This process is to pull the project template from the version control system through the unique download path. This requires the use of the operating system's command line operation to pull the project. Different version control systems have different operation commands for pulling projects.
[0069] Git pull operation command: gitclone [warehouse address] [project local path];
[0070] SVN pull operation command: svn checkout [warehouse address] [project local path].
[0071] The project local path is the full path including the project folder name. The project folder name can be automatically generated according to the unified rules based on the information obtained in 3.1, and the folder creation is completed.
[0072] It should be noted that the project template pulled from the version control system is managed by the current system by default, and the template project created by the automated program should be an independent new project, so the program needs to delete the version control identification file or folder, such as the .git\.svn folder, after pulling the project template.
[0073] 3.3. Modify project name, module name, package name, etc.
[0074] Step 3.2 has pulled the project template to the local computer. Now you need to modify the configuration of the project, including the project name, module name, package name, etc.
[0075] In Android engineering projects, the project name is usually configured in the setting.gradle file. The property rootProject.name = "Template", which corresponds to the project name. The automated creation program needs to find the project setting.gradle file and modify the corresponding properties through file read and write matching. Use the unified rules to set the project name according to the information entered in step 3.1.
[0076] In an Android project, there can be multiple modules. Each module can be packaged into an independent application or combined into one application. In order to uniformly manage and distinguish the functions of different modules, all modules that can be packaged into independent applications are placed in the same file in the template project and named according to a unified standard. The template project needs to create a default module, so you need to modify the name of this default module, for example:
[0077] ├─module_app / / application type module storage directory;
[0078] └─app_template.
[0079] In the field of Android application development, the package name is the most important identifier of the Android project. In the same Android system, the package name is the unique identifier of the application. Therefore, when creating a template project, the most important step is to modify the Android package name. The configuration of the Android project package name is located in the module build.gradle file. The independent project package name configuration is completed by reading and writing files to modify the applicationId attribute. At this point, the module project has been created and can run and compile normally. However, in order to maintain the standardization of the code structure, we need to modify the source code directory and the reference path in the template source code. Modify the source code directory under the src directory to be consistent with the package name composition path. At the same time, according to the Java language specification, modify the package reference path in the source code file to be consistent with the package name.
[0080] 4. Run the automated build program
[0081] After the automated build program is created, no subsequent modification is required. All R&D personnel in the team can complete the creation of standard module projects by running this program.
[0082] In summary, the template project construction method of the embodiment of the present application maintains a set of in-vehicle Android application project template codes through a version control system, and generates a set of template projects that conform to the in-vehicle application software development architecture and enterprise specifications through unified processing by an automated program, which can greatly improve software development efficiency, unify software development standards, and save software development costs. This method can be extended to technology stacks outside the field of Android development.
[0083] According to the template project construction method proposed in the embodiment of the present application, a general project template can be modified according to the requirements of the target vehicle project, wherein the project template is constructed by the developer according to the model of the target vehicle and the development standard of the enterprise where the target vehicle is located, and a template project that meets the project requirements is generated based on the modified project template, so that the template project architecture is unified and it is convenient for subsequent developers to directly use the generated target template project to develop projects or applications. When developing different projects, there is no need to repeatedly implement general functions or configurations, and only the corresponding configuration needs to be changed according to the project requirements, which improves development efficiency and saves development costs.
[0084] An embodiment of the present application also provides a method for constructing a vehicle-machine application, which is constructed using a target template project constructed by the template project construction method of the above embodiment. The incomplete details between the two embodiments can be referenced to each other.
[0085] Figure 6 The present invention is a flowchart of a method for constructing a vehicle-mounted computer application according to an embodiment of the present application.
[0086] like Figure 6 As shown, the vehicle machine application construction method includes the following steps:
[0087] In step S201, the application requirements of the target vehicle-mounted computer application of the target vehicle are obtained.
[0088] Among them, application requirements can include specific functional requirements, etc.
[0089] In step S202, configuration properties of the target template project are modified based on application requirements.
[0090] Among them, the target template project is constructed by the template project construction method of the above embodiment.
[0091] It is understandable that the embodiments of the present application can modify the configuration properties of the target template based on application requirements so as to meet the application requirements of the target vehicle application.
[0092] In step S203, a target vehicle application is generated based on the modified target template project.
[0093] It is understandable that the embodiment of the present application can generate a target vehicle application based on the modified target template project, without the need to repeatedly modify the template project, thereby improving the development efficiency of the application.
[0094] According to the vehicle-machine application construction method proposed in the embodiment of the present application, the target project template of the target vehicle can be changed according to the application requirements of the vehicle-machine application of the target vehicle to generate a vehicle-machine application that meets the application requirements, without the need to repeatedly modify the template project, thereby improving the application development efficiency.
[0095] Next, the template project construction device and the vehicle application construction device proposed in the embodiments of the present application are described with reference to the accompanying drawings.
[0096] Figure 7 It is a block diagram of a template project construction device according to an embodiment of the present application.
[0097] like Figure 7 As shown, the template project construction device 10 includes: a first acquisition module 101 , a first modification module 102 and a first generation module 103 .
[0098] Among them, the first acquisition module 101 is used to obtain the project requirements and project template of the target vehicle; the first modification module 102 is used to modify the configuration properties of the project template based on the project requirements, wherein the configuration properties include at least one of the project name, module name and package name; the first generation module 103 is used to generate a target template project that meets the project requirements based on the modified project template.
[0099] In the embodiment of the present application, the device 10 of the embodiment of the present application further includes: a construction module.
[0100] Among them, the construction module is used to obtain the development standards of the company where the target vehicle is located before obtaining the project requirements and project template of the target vehicle; build the project template based on the development standards, and upload the project template to the version control system in the server, wherein the version control system stores the project template.
[0101] In an embodiment of the present application, the first acquisition module 101 is further used to: identify the type of the version control system; determine the target instruction format for acquiring the project template based on the type, and generate a target operation instruction based on the target instruction format; acquire the project template from the version control system based on the target operation command, wherein the target operation command includes the address of the project template and the address of the target template project.
[0102] In the embodiment of the present application, the device 10 of the embodiment of the present application further includes: a placement module.
[0103] Among them, the placement module is used to obtain the type of each module in the target template project after generating the target template project that meets the project requirements based on the modified project template; if the type of the module is the target type, the template is placed in the same file.
[0104] In the embodiment of the present application, the device 10 of the embodiment of the present application further includes: a deletion module.
[0105] The deletion module is used to delete the version control identification file of the project template or the folder where the project template is located after obtaining the project requirements and project template of the target vehicle.
[0106] It should be noted that the aforementioned explanation of the template project construction method embodiment is also applicable to the template project construction device of this embodiment, and will not be repeated here.
[0107] According to the template project construction device proposed in the embodiment of the present application, a general project template can be modified according to the requirements of the target vehicle project, wherein the project template is constructed by the developer according to the model of the target vehicle and the development standard of the enterprise where the target vehicle is located. A template project that meets the project requirements is generated based on the modified project template, so that the template project architecture is unified and it is convenient for subsequent developers to directly use the generated target template project to develop projects or applications. When developing different projects, there is no need to repeatedly implement general functions or configurations, and only the corresponding configuration needs to be changed according to the project requirements, which improves development efficiency and saves development costs.
[0108] Figure 8 It is a block diagram of a vehicle-machine application construction device according to an embodiment of the present application.
[0109] like Figure 8 As shown, the vehicle-machine application construction device 10 includes: a second acquisition module 201 , a second modification module 202 and a second generation module 203 .
[0110] Among them, the second acquisition module 201 is used to obtain the application requirements of the target vehicle-mounted application of the target vehicle; the second modification module 202 is used to modify the configuration properties of the target template project based on the application requirements, wherein the target template project is constructed based on the template project construction device of the above-mentioned embodiment; the second generation module 203 is used to generate the target vehicle-mounted application based on the modified target template project.
[0111] It should be noted that the above explanation of the embodiment of the vehicle-machine application construction method is also applicable to the vehicle-machine application construction device of this embodiment, and will not be repeated here.
[0112] According to the vehicle-machine application construction device proposed in the embodiment of the present application, the target project template of the target vehicle can be changed according to the application requirements of the vehicle-machine application of the target vehicle to generate a vehicle-machine application that meets the application requirements, without the need to repeatedly modify the template project, thereby improving the application development efficiency.
[0113] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0114] A memory 901 , a processor 902 , and a computer program stored in the memory 901 and executable on the processor 902 .
[0115] When the processor 902 executes the program, the template project construction method or the vehicle application construction method provided in the above embodiments is implemented.
[0116] Furthermore, the electronic device further comprises:
[0117] The communication interface 903 is used for communication between the memory 901 and the processor 902 .
[0118] The memory 901 is used to store computer programs that can be executed on the processor 902 .
[0119] The memory 901 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0120] If the memory 901, the processor 902 and the communication interface 903 are implemented independently, the communication interface 903, the memory 901 and the processor 902 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0121] Optionally, in a specific implementation, if the memory 901, the processor 902 and the communication interface 903 are integrated on a chip, the memory 901, the processor 902 and the communication interface 903 can communicate with each other through an internal interface.
[0122] The processor 902 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0123] An embodiment of the present application also provides a computer-readable storage medium on which a computer program or instruction is stored. When the computer program or instruction is executed by a processor, the template project construction method or vehicle application construction method as described above is implemented.
[0124] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0125] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0126] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0127] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one or a combination of multiple of the following technologies known in the art: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0128] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
Claims
1. A template project construction method, characterized in that: The following steps are involved: Obtain project requirements and project templates for target vehicles; Modifying configuration properties of the project template based on the project requirements, wherein the configuration properties include at least one of a project name, a module name, and a package name; A target template project that meets the project requirements is generated based on the modified project template.
2. The template project construction method according to claim 1, characterized in that: Before obtaining the project requirements and project templates for the target vehicle, it also includes: Obtaining the development standards of the enterprise of the target vehicle; A project template is constructed based on the development standard, and the project template is uploaded to a version control system in a server, wherein the version control system stores the project template.
3. The template project construction method according to claim 2, characterized in that: The obtaining of the project requirements and project template of the target vehicle includes: identifying the type of the version control system; Determine a target instruction format for acquiring a project template based on the type, and generate a target operation instruction based on the target instruction format; The project template is obtained from the version control system based on the target operation command, wherein the target operation command includes an address of the project template and an address of the target template project.
4. The template project construction method according to claim 1, characterized in that: After generating a target template project that meets the project requirements based on the modified project template, the method further includes: Get the type of each module in the target template project; If the type of the module is the target type, the template is placed in the same file.
5. The template project construction method according to claim 1, characterized in that: After obtaining the project requirements and project template of the target vehicle, it also includes: Delete the version control identification file of the project template or the folder where the project template is located.
6. A method for constructing a vehicle computer application, characterized in that: The following steps are involved: Obtain application requirements of target vehicle-mounted computer applications of target vehicles; Modifying the configuration properties of the target template project based on the application requirements, wherein the target template project is constructed based on the template project construction method according to any one of claims 1 to 5; The target vehicle application is generated based on the modified target template project.
7. A template project construction device, characterized in that: include: A first acquisition module is used to acquire the project requirements and project template of the target vehicle; A first modification module, used to modify the configuration attributes of the project template based on the project requirements, wherein the configuration attributes include at least one of a project name, a module name, and a package name; The first generating module is used to generate a target template project that meets the project requirements based on the modified project template.
8. A vehicle machine application construction device, characterized in that: include: The second acquisition module is used to acquire the application requirements of the target vehicle computer application of the target vehicle; A second modification module, configured to modify configuration properties of a target template project based on the application requirements, wherein the target template project is constructed based on the template project construction device according to claim 7; The second generating module is used to generate the target vehicle application based on the modified target template project.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle-machine application construction method as described in claim 6, or the template project construction method as described in any one of claims 1-5.
10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: The computer program or instruction is executed by a processor to implement the vehicle application construction method as described in claim 6, or the template project construction method as described in any one of claims 1-5.