Software project framework construction methods, devices, equipment, media, and program products
By utilizing visual operations and underlying scripts to build project files and frameworks in mobile application development across different operating systems, the problems of low efficiency and high cost in cross-platform development have been solved, achieving efficient and unified project framework construction and improving user experience.
Patent Information
- Application Number
- CN202510630243.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2026-11-17
AI Technical Summary
When developing mobile application projects across different mobile operating systems, there are problems such as low development efficiency, high cost, and inconsistent user experience. In particular, cross-platform compatibility development ignores personalized needs, resulting in high maintenance costs and low development efficiency.
By receiving visual operations from the target operating system, calling the underlying scripts associated with that operating system, building the associated project files, and constructing the project framework based on these files, the system achieves automated construction of native application development, while taking into account the personalized needs of different operating systems.
It reduces later maintenance costs, improves development efficiency, enhances the application experience on different operating system platforms, and avoids the situation of inconsistent functions across multiple platforms.
Smart Images

Figure CN123114451A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, specifically to the field of application development technology, and in particular to a method, apparatus, device, medium, and program product for constructing a software project framework. Background Technology
[0002] Currently, when developing mobile application projects for different mobile operating systems (such as iOS (iPhone Operating System), Android, and HarmonyOS), each operating system is typically developed as a completely independent project. This results in lower development efficiency, higher costs, and inconsistent user experiences. Summary of the Invention
[0003] This disclosure provides a method for constructing a software project framework, a device for constructing a software project framework, an electronic device, a computer-readable storage medium, and a computer program product.
[0004] In a first aspect, embodiments of this disclosure propose a method for constructing a software project framework, comprising: in response to receiving a visual operation for a target operating system, invoking a first underlying script; wherein the visual operation is used to trigger the construction of a project framework associated with native application development of the target operating system; constructing a project file associated with the target operating system based on the first underlying script; and constructing a project framework based on the project file.
[0005] Secondly, this disclosure provides a software project framework construction apparatus, comprising: a calling module, a file construction module, and a framework construction module. The calling module is configured to call a first underlying script in response to a native application development request triggered by a visual operation targeting a target operating system; wherein the native application development request is used to trigger the construction of a project framework associated with native application development, and the visual operation interface is associated with multiple operating systems, including the target operating system; the file construction module is configured to construct a project file associated with the target operating system based on the first underlying script; and the framework construction module is configured to construct a project framework based on the project file.
[0006] Thirdly, embodiments of this disclosure provide an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to implement the software project framework construction method described in any implementation of the first aspect.
[0007] Fourthly, embodiments of this disclosure provide a non-transitory computer-readable storage medium storing computer instructions that enable a computer to implement a software project framework construction method as described in any implementation of the first aspect.
[0008] Fifthly, embodiments of this disclosure provide a computer program product including a computer program that, when executed by a processor, can implement the software project framework construction method as described in any implementation of the first aspect.
[0009] The software project framework construction scheme provided in this disclosure can set corresponding visual operations for a specific operating system, i.e., the target operating system. Upon receiving the visual operation corresponding to the target operating system, it triggers the construction of the project framework associated with the native application development of that target operating system. Specifically, it can call a first underlying script associated with the target operating system to build the project file associated with that target operating system, thereby efficiently building the project framework associated with the native application development of that target operating system using that project file. In this way, the personalized needs of different operating systems can be taken into account during the project framework construction stage associated with the native application development of different operating systems, and the situation of asynchronous functions across multiple platforms can be avoided. This reduces later maintenance costs, and by automating the construction of the project framework associated with the native application development of the target operating system, it can improve development efficiency and enhance the user experience of using applications on different operating system platforms.
[0010] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0011] Other features, objects, and advantages of this disclosure will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0012] Figure 1 This refers to the project framework construction process for cross-platform hybrid development projects in related technologies;
[0013] Figure 2 This is an exemplary system architecture to which this disclosure can be applied;
[0014] Figure 3 A flowchart illustrating a software project framework construction method provided in this disclosure embodiment;
[0015] Figure 4 A flowchart illustrating another software project framework construction method provided in this disclosure embodiment;
[0016] Figure 5 A flowchart illustrating a method for constructing a software project framework in an application scenario, as provided in an embodiment of this disclosure;
[0017] Figure 6 A structural block diagram of a software project framework construction device provided in this disclosure embodiment;
[0018] Figure 7 This is a schematic diagram of the structure of an electronic device suitable for executing a software project framework construction method, provided as an embodiment of the present disclosure. Detailed Implementation
[0019] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding; these should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description. It should be noted that, unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other.
[0020] It should be noted that the collection, acquisition, storage, processing, transmission, provision, disclosure, and application of user personal information (such as identity authentication information) involved in the technical solution disclosed herein are all carried out with the user's knowledge and explicit authorization, comply with the provisions of relevant laws and regulations, and do not violate public order and good morals.
[0021] Currently, when developing mobile application projects for different mobile operating systems (such as iOS (iPhone Operating System), Android, HarmonyOS, MIUI (a third-party mobile operating system based on Android with deep optimization, customization, and development), Pantanal (a cross-platform, cross-terminal Internet of Things system based on Android), the development projects for different operating systems are usually completely independent, and each project and project framework is developed independently.
[0022] To improve development efficiency, enhance user experience, and shorten development cycles in the face of different operating systems, cross-platform development technologies have emerged. These technologies allow developers to write code once and run applications on multiple platforms, but they have shortcomings in performance and user experience. Specifically, cross-platform, cross-operating system compatible mobile application development projects work by integrating a single super project. This super project completes development on one end by calling the native system's (e.g., native iOS operating system) Application Programming Interface (API), enabling adaptation to various operating systems. Figure 1 As shown, however, the development and maintenance costs are high. Furthermore, the extensive underlying rendering and interaction can lead to issues like lag and slow loading. It prioritizes compatibility across different operating systems while neglecting their individual requirements. Additionally, each platform operates relatively independently from initial project setup to later functionalities, resulting in differences in project framework, technical solutions, and functional handling. This leads to issues like inconsistent maintenance across multiple platforms, resulting in high maintenance costs, low development efficiency, and a negative impact on the user experience across different platforms.
[0023] Therefore, there is a need for a software project framework construction solution that can at least reduce maintenance costs and improve development efficiency and user experience.
[0024] The specific implementation methods of the present disclosure will now be described in detail with reference to the accompanying drawings.
[0025] Figure 2 An exemplary system architecture 200 is shown, in which embodiments of the software project framework construction method, software project framework construction apparatus, electronic device, computer-readable storage medium and computer program product of the present disclosure can be applied.
[0026] like Figure 2 As shown, system architecture 200 may include terminal devices 201, 202, and 203, a network 204, and a server 205. Network 204 serves as the medium for providing communication links between terminal devices 202, 202, and 203 and server 205. Network 204 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0027] Users can use terminal devices 201, 202, and 203 to interact with server 205 via network 204 to receive or send messages, etc. Various applications for enabling information communication between the terminal devices 201, 202, and 203 and server 205 can be installed. These applications include software development applications, software project framework building applications, and software management applications.
[0028] Terminal devices 201, 202, and 203 and server 205 can be either hardware or software. When terminal devices 201, 202, and 203 are hardware, they can be various electronic devices with displays, including but not limited to smartphones, tablets, laptops, and desktop computers. When terminal devices 201, 202, and 203 are software, they can be installed in the aforementioned electronic devices, and can be implemented as multiple software programs or software modules, or as a single software program or software module; no specific limitation is made here. When server 205 is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server. When server 205 is software, it can be implemented as multiple software programs or software modules, or as a single software program or software module; no specific limitation is made here.
[0029] Server 205 can provide various services through its built-in applications. For example, it can provide an application that automates the construction or setup of software project frameworks for multiple platforms or systems. When running this software project framework building application, Server 205 can achieve the following: It can set corresponding visual operations for a specific operating system (i.e., the target operating system). Upon receiving the visual operation corresponding to the target operating system, it triggers the construction of the project framework associated with the native application development of that target operating system. Specifically, it can call the first underlying script associated with the target operating system to build the project file associated with that target operating system. This allows for the efficient construction of the project framework associated with the native application development of that target operating system. In this way, the personalized needs of different operating systems can be taken into account during the construction phase of the project framework associated with the native application development of different operating systems, and the situation of asynchronous functions across multiple platforms can be avoided. This reduces later maintenance costs, improves development efficiency, and enhances the user experience of using applications on different operating system platforms.
[0030] It should be noted that, in addition to being obtainable from terminal devices 201, 202, and 203 via network 204, data related to the software project framework can also be pre-stored locally on server 205 through various means. Therefore, when server 205 detects that this data is already stored locally (e.g., when starting to process previously retained data related to the construction of the software project framework), it can choose to directly obtain this data from locally. In this case, the exemplary system architecture 200 may also exclude terminal devices 201, 202, and 203 and network 204.
[0031] Since building a software project framework requires significant computing resources and power, the software project framework building methods provided in the subsequent embodiments of this disclosure are generally executed by a server 205 with strong computing power and abundant computing resources. Correspondingly, the software project framework building device is also generally located within the server 205. However, it should also be noted that when terminal devices 201, 202, and 203 also possess sufficient computing power and resources, they can also complete the aforementioned calculations performed by the server 205 through the software project framework building application installed on them, thereby outputting the same results as the server 205. Especially when multiple terminal devices with different computing capabilities exist simultaneously, but the software project framework building application determines that the terminal device has strong computing power and abundant remaining computing resources, it can allow the terminal device to perform the aforementioned calculations, thereby appropriately reducing the computing pressure on the server 205. Accordingly, the software project framework building device can also be located within the terminal devices 201, 202, and 203. In this case, the exemplary system architecture 200 may also exclude the server 205 and the network 204.
[0032] It should be understood that Figure 2 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0033] Please refer to Figure 3 , Figure 3 A flowchart of a software project framework construction method provided in this disclosure embodiment, wherein process 300 includes the following steps:
[0034] Step 301: In response to receiving a visual operation for the target operating system, the first underlying script is invoked.
[0035] This step is intended for the implementation body of the software project framework construction method (e.g., Figure 2 The server 105 or terminal devices 201, 202, 203 shown receive visual operations for the target operating system, and upon receiving the corresponding visual operation, invoke a first underlying script matching the target operating system. The target operating system can be any one of multiple operating systems, depending on the specific needs of the software project framework. In some optional implementations of this disclosure, the multiple operating systems can include, but are not limited to, at least two of iOS, Android, and HarmonyOS. The underlying scripts corresponding to different operating systems can be stored separately in script folders corresponding to each operating system, and these script folders can contain underlying scripts developed for different types of native applications.
[0036] In some optional implementations of the embodiments of this disclosure, the above-mentioned visualization operation may be a click operation on a button (or icon) related to the construction of the project framework of the target operating system, or a drag operation on a preset icon for the construction of the project framework of the target operating system, so as to trigger the construction of the project framework associated with the native application development of the target operating system.
[0037] In some optional implementations of the embodiments of this disclosure, the aforementioned first underlying script is a script pre-written for the target operating system. Specifically, it can be designed according to the characteristics of the target operating system and the specifications of native application development. It may include the basic logic and instruction set required to build the project framework, such as indicating, but not limited to, the name of the software project (e.g., the name of the operating system's native application), the operating system identifier, the operating system version number (exemplarily, indicating the minimum supported operating system version), the development language, the project's root path (indicating the directory or operation where project files are stored, facilitating file management and referencing during development), the type of the software project (e.g., indicating the development of an application), and the project's source code location (indicating that code writing and management during project development revolve around this location). For example, in response to the target operating system being Android, the first underlying script may include, but is not limited to, Shell scripts or Python scripts; in response to the target operating system being iOS, the first underlying script may include, but is not limited to, Shell scripts, Python scripts, or Ruby scripts; in response to the target operating system being HarmonyOS, the first underlying script may include, but is not limited to, Shell scripts, Python scripts, or TypeScript scripts.
[0038] Step 302: Based on the first underlying script, construct the project file associated with the target operating system.
[0039] In this embodiment, after invoking the first underlying script, a project file associated with the target operating system can be constructed based on, for example, the development requirements of the target operating system's native applications. For example, this project file may include, but is not limited to, basic information related to the target operating system, file structure, configuration parameters, etc., wherein the basic information may include, but is not limited to, the version number of the target operating system, supported programming languages, project template path, etc.
[0040] Step 303: Build the project framework based on the project files.
[0041] In this embodiment, a corresponding project framework can be efficiently built in the early stages of developing native applications for the target operating system based on the pre-constructed project files. In some optional implementations of this disclosure, the project framework may include, but is not limited to, the module division of the native application and the file organization method, to facilitate the development of native applications for the target operating system.
[0042] The software project framework construction method provided in this disclosure can set corresponding visual operations for a specific operating system, i.e., the target operating system. Upon receiving the visual operation corresponding to the target operating system, it triggers the construction of a project framework associated with the native application development of that target operating system. Specifically, it can call a first low-level script associated with the target operating system to construct the project file associated with that target operating system, thereby efficiently constructing the project framework associated with the native application development of that target operating system using that project file. In this way, the personalized needs of different operating systems can be taken into account during the construction phase of the project framework associated with the native application development of different operating systems, and the situation of asynchronous functions across multiple platforms can be avoided. This reduces later maintenance costs, and by automating the construction of the project framework associated with the native application development of the target operating system, it can improve development efficiency and enhance the user experience of using applications on different operating system platforms.
[0043] Please refer to Figure 4 , Figure 4 A flowchart of another software project framework construction method provided in this disclosure embodiment, wherein process 400 includes the following steps:
[0044] Step 401: In response to receiving a visual operation for the target operating system, the first underlying script is invoked.
[0045] Step 402: Based on the first underlying script, build the project file associated with the target operating system.
[0046] The above steps 401-402 and as follows Figure 3 The steps 301-302 shown are the same. For the same parts, please refer to the corresponding parts of the previous embodiment. They will not be repeated here.
[0047] Step 403: Call the second underlying script.
[0048] Step 404: Build a common file associated with multiple operating systems based on the second underlying script.
[0049] This second-level script supports cross-operating system development, ensuring stable operation across different operating system environments. For example, this second-level script can be written in a general-purpose scripting language such as JavaScript. The public file can include general utility classes, public resources (or cross-platform resources), and other similar content.
[0050] Step 405: Build the project framework based on project files and common files.
[0051] In this embodiment, after building the corresponding project files based on the first underlying script associated with the target operating system, a second underlying script can be called to build common files associated with multiple operating systems, including the target operating system. Furthermore, based on the built project files and common files, the project framework associated with native application development for the target operating system can be automatically built. Thus, in the process of building a project framework for native application development for a specific operating system, both the construction of project files specific to that specific operating system and the construction of common files applicable to multiple different operating systems (i.e., cross-system) are taken into account. This achieves efficient project framework construction, ensures the integrity and reliability of the built project framework associated with native application development for the target operating system, reduces maintenance costs, and minimizes repetitive operations in project framework construction.
[0052] Furthermore, in some optional implementations of this disclosure, the software project framework construction method may further include the following: obtaining project information corresponding to native application development for the target operating system based on visual operations; wherein, the project information includes project root path information. In this embodiment, the corresponding project information can also be obtained through the visual operations for the target operating system, and this project information includes, but is not limited to, root path information, for the purpose of automating the construction of the project framework. Further, based on this, step 405 above can be specifically executed as follows: obtaining the project framework by storing the project files and public files respectively in preset locations in the file structure directory indicated by the project root path information. In this embodiment, during the construction process of the project framework associated with native application development for the target operating system, it is necessary to store the constructed project files and public files respectively in corresponding locations in the file structure directory to ensure the accuracy of the project framework construction.
[0053] Furthermore, in some optional implementations of the embodiments of this disclosure, the process of building the project framework based on the aforementioned project files and public files may further include integrating the project files and public files to construct the project framework. Specifically, the association with the public files can be established by modifying the configuration parameters in the project files. Simultaneously, the calling relationships and interface definitions of each module in the project files can be adjusted according to the business logic defined in the public files, thereby achieving the integration of the project files and public files, and ultimately realizing the automated construction of the complete project framework. Thus, the project framework includes both target operating system-specific functions and configurations, and also integrates general parts that can be used across operating systems.
[0054] Furthermore, in some optional implementations of this disclosure, the software project framework construction method may further include: in response to receiving a file query request, querying project files and public files in the file structure directory; and in response to finding the project files and public files, determining that the project framework has been successfully constructed. In this embodiment, when the project files built based on the first underlying script and the public files built based on the second underlying script can be found in the file structure directory, it can be accurately and efficiently determined that the automated construction of the project framework associated with native application development for the target operating system has been successful. For example, for iOS system application development projects, the existence of the xcodeproj file can be used to determine whether the project framework has been successfully created.
[0055] In the above Figure 3 or Figure 4 Based on the corresponding embodiments, in some optional implementations of the embodiments of this disclosure, the step of calling the first underlying script in step 301 or 401 above can be specifically executed as follows: determining the script configuration item associated with the target operating system in the preset interface based on the visual operation; wherein, the preset interface is pre-set with script configuration items associated with multiple operating systems including the target operating system respectively; and calling the first underlying script based on the script configuration item associated with the target operating system.
[0056] In this embodiment, visual operations can be received through a pre-created visual interface for project framework construction, i.e., a preset interface. Specifically, the preset interface has pre-set script configuration items associated with multiple operating systems, including the target operating system. Thus, based on the received visual operation, the script configuration item associated with the target operating system can be determined in the preset interface, and the corresponding underlying script can be accurately and efficiently called through the script configuration item associated with the target operating system. For example, the aforementioned visual operation can be executed based on the preset interface. Taking clicking the "Create Project Framework for Operating System A" button as an example, a click event listener corresponding to the button can be defined in the interface layout file of the preset interface. The preset interface can include buttons corresponding to the construction of project frameworks for multiple operating systems. When the button corresponding to the construction of the project framework for operating system A is clicked, the listener will capture the click event to trigger the construction of the corresponding project framework.
[0057] In some optional implementations of the embodiments of this disclosure, the above-mentioned script configuration items may include, but are not limited to, one or more of the following: operating system identifier, operating system version number (for example, indicating the minimum version of the supported operating system), and project root path (used to indicate the operation or file directory where the file is stored, so as to facilitate the management and reference of the file during development).
[0058] Furthermore, in some optional implementations of the embodiments of this disclosure, the software project framework construction method may further include: displaying the construction progress of the project framework on the aforementioned preset interface. This allows for a direct display of the construction progress of the project framework, facilitating timely awareness of the construction progress. For example, the construction progress of the project framework may be displayed statically or dynamically as a percentage on the preset interface.
[0059] To enhance understanding, this disclosure also provides a specific implementation scheme based on a particular application scenario. Please refer to the example below. Figure 5 In the process 500 shown, this specific implementation provides a visual interface (corresponding to the preset interface in the above embodiments). Through this visual interface, one can select the platform or operating system to be developed (corresponding to the target operating system in the above embodiments). For details, please refer to... Figure 5 The process 501 shown can be used to develop operating systems or platforms including but not limited to iOS, Android, HarmonyOS, etc.
[0060] Furthermore, users can complete the information using this visual interface, filling in project information including project name and creation path, as well as developer information (such as the email address used to receive message notifications), etc. Figure 5The process shown is 502.
[0061] Furthermore, terminal commands or low-level scripts can be run to create or add files corresponding to the platform to be developed (such as...). Figure 5 The project files and public files shown are used to build the project framework, such as... Figure 5 The process shown is 503. Specifically, in one implementation, the creation of corresponding common files can be automatically triggered after running the underlying script used to create the project files, such as... Figure 5 The processes shown are 503-1 and 503-2; in another implementation, the project files and common files can be built separately by running different scripts, such as... Figure 5 The processes 503-1 and 503-3 are shown. Specifically, this may also involve storing the corresponding files in the appropriate locations within the file structure directory.
[0062] Furthermore, it can also respond in real time to the creation progress and / or results of the project framework and display them in a visual interface, such as... Figure 5 The process shown is 504.
[0063] Furthermore, subsequent project development processes can be initiated based on the created project framework, such as... Figure 5 The process 505 shown can also respond in real time to the progress and / or results of project development and display them in a visual interface, such as... Figure 5 The process shown is 506.
[0064] In this specific implementation scheme, for the creation of mobile native projects for multiple platforms, compatibility design and dynamic configuration of automated construction and deployment of mobile projects are implemented. Specifically, by using commands or scripts to create development projects, configurations, frameworks, etc. for different platforms, the project development efficiency is improved. By providing a unified project framework foundation, the maintenance of developed applications becomes simpler and more efficient, ensuring the uniformity of application projects across different platforms. This ensures consistency in subsequent development, innovation, and modification, reducing development and maintenance costs.
[0065] Further reference Figure 6 As an implementation of the methods shown in the above figures, this disclosure provides an embodiment of a software project framework construction apparatus, which is similar to... Figure 3 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.
[0066] like Figure 6 As shown, the software project framework building device 600 of this embodiment may include: a calling module 601, a file building module 602, and a framework building module 603.
[0067] Specifically, the calling module 601 is configured to call the first underlying script in response to a native application development request for the target operating system triggered by a visual operation; wherein the native application development request is used to trigger the construction of a project framework associated with native application development, and the visual operation interface is associated with multiple operating systems including the target operating system; the file construction module 602 is configured to construct a project file associated with the target operating system based on the first underlying script; and the framework construction module 603 is configured to construct a project framework based on the project file.
[0068] In this embodiment, the specific processing of the calling module 601, the file building module 602, and the framework building module 603 in the software project framework building device 600, and the resulting technical effects, can be referred to respectively. Figure 3 The relevant descriptions of steps 301-303 in the corresponding embodiments will not be repeated here.
[0069] In some optional implementations of this embodiment, the calling module 601 is further configured to call a second underlying script; the file building module 602 is further configured to build a public file associated with multiple operating systems based on the second underlying script; and the framework building module 603 is further configured to build a project framework based on the project file and the public file.
[0070] In some optional implementations of this embodiment, the software project framework building device 600 further includes an acquisition module (not shown in the figure), which is configured to acquire project information corresponding to the native application development for the target operating system based on visual operations; wherein, the project information includes project root path information; and the framework building module 603 is further configured to obtain the project framework by storing the project files and public files respectively in a preset location in the file structure directory indicated by the project root path information.
[0071] In some optional implementations of this embodiment, the software project framework building apparatus 600 further includes a query module and a determination module (not shown in the figure). The query module is configured to query project files and public files in the file structure directory in response to receiving a file query request; the determination module is configured to determine that the project framework has been successfully built in response to finding the project files and public files.
[0072] In some optional implementations of this embodiment, the above-mentioned calling module 601 is further specifically configured to: determine the script configuration items associated with the target operating system in a preset interface based on visual operations; wherein, the preset interface is pre-set with script configuration items associated with multiple operating systems including the target operating system respectively; and call the first underlying script based on the script configuration items associated with the target operating system.
[0073] In some optional implementations of this embodiment, the software project framework building device 600 further includes a display module (not shown in the figure), which is configured to display the construction progress of the project framework in a preset interface.
[0074] In some optional implementations of this embodiment, the aforementioned multiple operating systems include at least two of the following: iOS, Android, and HarmonyOS.
[0075] This embodiment exists as a device embodiment corresponding to the above method embodiment. The software project framework building device 600 provided in this embodiment can set corresponding visual operations for a specific operating system, i.e., the target operating system. Upon receiving the visual operation corresponding to the target operating system, it triggers the construction of the project framework associated with the native application development of the target operating system. Specifically, it can build the project file associated with the target operating system by calling the first low-level script associated with the target operating system. Thus, the project file can efficiently build the project framework associated with the native application development of the target operating system. In this way, the personalized needs of different operating systems can be taken into account during the project framework construction stage associated with the native application development of different operating systems, and the situation of asynchronous functions on multiple platforms can be avoided. This can reduce the later maintenance costs. Furthermore, by realizing the automated construction of the project framework associated with the native application development of the target operating system, development efficiency can be improved and the user experience of using the application on the platform corresponding to different operating systems can be enhanced.
[0076] According to embodiments of this disclosure, this disclosure also provides an electronic device, the electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to implement the software project framework construction method described in any of the above embodiments.
[0077] According to embodiments of this disclosure, this disclosure also provides a computer-readable storage medium storing computer instructions that enable a computer to implement the software project framework construction method described in any of the above embodiments when executed.
[0078] According to embodiments of this disclosure, this disclosure also provides a computer program product, including a computer program that, when executed by a processor, can implement the software project framework construction method described in any of the above embodiments.
[0079] Figure 7A schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0080] like Figure 7 As shown, the electronic device 700 includes a processing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. The RAM 703 may also store various programs and data required for the operation of the electronic device 700. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0081] Multiple components in electronic device 700 are connected to I / O interface 705, including: input unit 706, such as keyboard, mouse, etc.; output unit 707, such as various types of displays, speakers, etc.; storage unit 708, such as disk, optical disk, etc.; and communication unit 709, such as network card, modem, wireless transceiver, etc. Communication unit 709 allows electronic device 700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0082] Processing unit 701 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processing unit 701 performs the various methods and processes described above, such as software project framework construction methods. For example, in some embodiments, the software project framework construction method can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by processing unit 701, one or more steps of the software project framework construction method described above can be performed. Alternatively, in other embodiments, processing unit 701 can be configured to perform software project framework construction methods by any other suitable means (e.g., by means of firmware).
[0083] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0084] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0085] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0086] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0087] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0088] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and Virtual Private Server (VPS) services, such as high management difficulty and weak business scalability.
[0089] According to the technical solution of this disclosure, a corresponding visual operation can be set for a specific operating system, i.e., the target operating system. Upon receiving the visual operation corresponding to the target operating system, the construction of a project framework associated with the native application development of the target operating system is triggered. Specifically, this can be achieved by calling a first underlying script associated with the target operating system to build a project file associated with the target operating system. This allows for the efficient construction of the project framework associated with the native application development of the target operating system. In this way, the personalized needs of different operating systems can be considered during the construction phase of the project framework associated with the native application development of different operating systems, and the situation of asynchronous functions across multiple platforms can be avoided. This reduces later maintenance costs. Furthermore, by automating the construction of the project framework associated with the native application development of the target operating system, development efficiency and the user experience of using applications on different operating system platforms can be improved.
[0090] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0091] It should also be understood that expressions such as "comprising," "including," "having," "containing," and / or "comprising" are open-ended rather than closed-ended expressions in this disclosure, indicating the presence of the stated features, elements, and / or components, but not excluding the presence of one or more other features, elements, components, and / or combinations thereof. Furthermore, when expressions such as "at least one of..." appear after a list of listed features, they modify the entire list of features, not just individual elements in the list. Additionally, when describing embodiments of this disclosure, the word "may" is used to mean "one or more embodiments of this disclosure." And the term "exemplary" is intended to refer to an example or illustration.
[0092] Unless otherwise specified, all terms used herein (including engineering and technical terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure pertains. It should also be understood that, unless expressly stated in this disclosure, terms as defined in common dictionaries shall be interpreted as having the meaning consistent with their meaning in the context of the relevant art, and not as having an idealized or overly formalized meaning.
[0093] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A method for constructing a software project framework, comprising: In response to receiving a visualization operation for the target operating system, a first underlying script is invoked; wherein the visualization operation is used to trigger the construction of a project framework associated with the native application development of the target operating system; Based on the first underlying script, construct a project file associated with the target operating system; Based on the project files, construct the project framework.
2. The method according to claim 1, further comprising: Call the second underlying script; Based on the second underlying script, a common file associated with the multiple operating systems is constructed; The step of constructing the project framework based on the project file includes: The project framework is constructed based on the project files and the public files.
3. The method according to claim 2, further comprising: Based on the visualization operation, project information corresponding to native application development for the target operating system is obtained; wherein, the project information includes project root path information; and The step of constructing the project framework based on the project files and the public files includes: The project framework is obtained by storing the project files and the public files in preset locations within the file structure directory indicated by the project root path information.
4. The method according to claim 3, further comprising: In response to receiving a file query request, the project file and the public file are queried in the file structure directory; Upon finding the project files and public files, it is determined that the project framework has been successfully built.
5. The method of claim 3, wherein, The invocation of the first underlying script includes: Based on the visualization operation, script configuration items associated with the target operating system are determined in a preset interface; wherein, the preset interface is pre-set with script configuration items associated with multiple operating systems, including the target operating system; The first underlying script is invoked based on the script configuration items associated with the target operating system.
6. The method according to claim 5, further comprising: The construction progress of the project framework is displayed on the preset interface.
7. The method of claim 1, wherein, The multiple operating systems include at least two of the following: iOS, Android, and HarmonyOS.
8. A software project framework construction apparatus, comprising: The calling module is configured to call a first underlying script in response to a native application development request for a target operating system triggered by a visual operation; wherein the native application development request is used to trigger the construction of a project framework associated with native application development, and the visual operation interface is associated with multiple operating systems including the target operating system; The file building module is configured to build project files associated with the target operating system based on the first underlying script; The framework building module is configured to build the project framework based on the project files.
9. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the software project framework construction method according to any one of claims 1-7.
10. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the software project framework construction method according to any one of claims 1-7.
11. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the software project framework construction method according to any one of claims 1-7.
