A multi-platform adaptation method for application programs

By building cross-platform user interface and interactive logic, the operation efficiency and compatibility problems caused by code differences in multi-platform development are solved, and the efficient operation and security of applications on different platforms are achieved.

CN118520471BActive Publication Date: 2024-11-15HUANENG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410985890.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-15
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

Existing applications need to write different code for each platform in multi-platform development, resulting in slow running or consuming more memory and storage space, and compatibility issues are difficult to solve.

Method used

By determining the basic structure and functional requirements of the target application, building a database based on the markup language and style sheets supported by mainstream browsers, using the CSS framework and JavaScript library to build a cross-platform user interface and interaction logic, and obtaining the differences and characteristics of different platforms. Adjust the code to achieve multi-platform adaptation.

Benefits of technology

Avoid writing different code for each platform, improve application operation efficiency and security, and ensure cross-platform compatibility and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520471B_ABST
    Figure CN118520471B_ABST
Patent Text Reader

Abstract

The present invention provides a multi-platform adaptation method for an application, which belongs to the technical field of front-end development, and includes: determining the basic structure and functional requirements of a target application; determining the markup languages ​​and style sheets supported by all mainstream browsers based on the basic structure and functional requirements, and building a database; building a cross-platform user interface and interaction logic based on the database using a CSS framework and a JavaScript library; obtaining the differences and characteristics between different platforms based on the user interface and interaction logic, and determining specific restrictions and rules for different systems based on the differences and characteristics; adjusting the code of the target application based on the specific restrictions and rules to achieve multi-platform adaptation of the target application. The method solves the problem that multi-platform applications usually need to write different codes for each platform, which may cause the application to run slowly on some platforms or occupy more memory and storage space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of front-end development, and in particular to a multi-platform adaptation method for an application program. Background Art

[0002] With the popularity of mobile devices, more and more applications need to support multiple platforms. When developing applications, it is necessary to consider factors such as the characteristics, compatibility and user experience of various platforms to ensure that the application can run well on different platforms.

[0003] Existing applications need to consider the differences and compatibility issues between different platforms according to different platforms. At the same time, due to the differences and compatibility issues, multi-platform applications usually need to write different codes for each platform, which may cause the application to run slowly on some platforms or take up more memory and storage space.

[0004] Therefore, the present invention proposes a multi-platform adaptation method for an application program. Summary of the invention

[0005] The present invention provides a multi-platform adaptation method for an application, which is used to solve the problem in the prior art that applications need to consider the differences and compatibility issues between different platforms according to different platforms. At the same time, due to the differences and compatibility issues, multi-platform applications usually need to write different codes for each platform, which may cause the application to run slowly on some platforms or occupy more memory and storage space.

[0006] In one aspect, the present invention provides a method for adapting an application to multiple platforms, comprising:

[0007] Step 1: Determine the basic structure and functional requirements of the target application;

[0008] Step 2: Determine the markup languages ​​and style sheets supported by all mainstream browsers based on the basic structure and functional requirements, and build a database;

[0009] Step 3: Building a cross-platform user interface and interaction logic based on the database using a CSS framework and JavaScript library;

[0010] Step 4: Obtain the differences and characteristics between different platforms according to the user interface and interaction logic, and determine specific restrictions and rules of different systems according to the differences and characteristics;

[0011] Step 5: Based on the specific restrictions and rules, the code of the target application is adjusted to achieve multi-platform adaptation of the target application.

[0012] According to a multi-platform adaptation method of an application provided by the present invention, determining the basic structure and functional requirements of a target application includes:

[0013] Determine the purpose and scope of application of the target application;

[0014] Determine the functions and features of the application based on the stated purpose and scope of application;

[0015] Setting functional modules based on the functions and characteristics;

[0016] The basic structure and functional requirements of the target application are determined based on the functional modules.

[0017] According to a multi-platform adaptation method of an application provided by the present invention, based on the basic structure and functional requirements, markup languages ​​and style sheets supported by all mainstream browsers are determined, and a database is constructed, including:

[0018] Determine a basic composition rule of the application based on the basic structure, and determine a markup language supported by all mainstream browsers according to the basic composition rule;

[0019] Determining a cascading style sheet for the application based on the functional requirements;

[0020] The markup languages ​​are classified and organized, and a relational database is constructed according to the classified markup languages ​​and cascading style sheets.

[0021] According to a multi-platform adaptation method of an application provided by the present invention, a cross-platform user interface and interaction logic are constructed based on the database using a CSS framework and a JavaScript library, including:

[0022] determining specific requirements of the application based on the database;

[0023] Based on the specific requirements, define styles and properties of components provided by the JavaScript library using a CSS preprocessor and an external style sheet;

[0024] Build cross-platform user interfaces based on component styles, properties, and modules provided by CSS frameworks;

[0025] factors determining screen size, compatibility, and touch screen support for different devices and browsers based on the cross-platform user interface;

[0026] According to the above factors, corresponding JavaScript codes are written to implement cross-platform interaction logic.

[0027] According to a multi-platform adaptation method of an application provided by the present invention, the differences and characteristics between different platforms are obtained according to the user interface and the interaction logic, and specific restrictions and rules of different systems are determined according to the differences and characteristics, including:

[0028] Obtain user operation behaviors on various platforms;

[0029] Determine user interface and interaction logic data of different platforms according to the operation behavior;

[0030] Conduct multi-angle analysis on the user interface and interaction logic data;

[0031] Differences and characteristics between different platforms are determined based on the analysis results, and specific limitations and rules of different systems are determined based on the differences and characteristics.

[0032] According to a multi-platform adaptation method of an application provided by the present invention, the code of the target application is adjusted based on the specific restrictions and rules to achieve multi-platform adaptation of the target application, including:

[0033] Obtain target platforms and systems that are compatible with target applications;

[0034] Analyze the existing code of the target application and obtain the differences in functions and features of the existing code on different platforms and systems based on the analysis results;

[0035] The code of the target application is expanded according to the different points to achieve multi-platform adaptation of the target application.

[0036] According to a multi-platform adaptation method of an application provided by the present invention, the code of the target application is expanded according to the different points to achieve multi-platform adaptation of the target application, including:

[0037] Determine the characteristic parameters of different functional items according to different points;

[0038] Retrieve multiple extension codes of different functional characteristics, and extract meta-operation parameters of each extension code;

[0039] Each extended code is expressed in a mixed manner using meta-operation parameters and hardware language;

[0040] Determine whether there are parameters that need to be configured when each extended code uses the meta-operation. If so, configure the corresponding parameters and build the original instruction thread of each extended code according to the meta-operation parameters.

[0041] Divide the original instruction threads into interleaving sequences in the respective control libraries of the multiple platforms to generate an interleaving scheme;

[0042] The processor executes the initial boot program to import a secondary boot program having a larger addressing bit number than the initial boot program from the serial memory;

[0043] Executing the secondary boot program, the secondary boot program controls the processor to import the interleaving scheme from the serial memory and obtain the execution result;

[0044] Determine a code execution success rate of the interleaving scheme of each extended code on each platform according to the execution results;

[0045] The target application is code-extended using the target extension code whose code execution success rate is greater than or equal to a preset probability.

[0046] According to a multi-platform adaptation method of an application provided by the present invention, determining the application purpose and application scope of a target application includes:

[0047] Identify the business domain of the target application;

[0048] Determine the service type of the target application according to the business domain of the target application and the preset service business attributes;

[0049] The core processing logic of the target application is determined according to the service type, and the application scope of the target application is determined according to the core processing logic.

[0050] Compared with the prior art, the present invention has the following beneficial effects:

[0051] Determine the markup language and style sheets supported by the main browsers through the basic structure and functional requirements of the target application, build the user interface and interaction logic, and determine the specific restrictions and rules of different platforms. This can avoid the need to write different codes for each platform, causing the application to run slowly on some platforms or take up more memory and storage space. At the same time, it ensures the security of the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 It is a flowchart of a multi-platform adaptation method of an application program provided by an embodiment of the present invention;

[0054] Figure 2 It is a flowchart of determining the basic structure and functional requirements of a target application provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] Embodiment 1:

[0057] An embodiment of the present invention provides a multi-platform adaptation method for an application program, such as Figure 1 As shown, the method mainly includes the following steps:

[0058] Step 1: Determine the basic structure and functional requirements of the target application;

[0059] Step 2: Determine the markup languages ​​and style sheets supported by all mainstream browsers based on the basic structure and functional requirements, and build a database;

[0060] Step 3: Building a cross-platform user interface and interaction logic based on the database using a CSS framework and JavaScript library;

[0061] Step 4: Obtain the differences and characteristics between different platforms according to the user interface and interaction logic, and determine specific restrictions and rules of different systems according to the differences and characteristics;

[0062] Step 5: Based on the specific restrictions and rules, the code of the target application is adjusted to achieve multi-platform adaptation of the target application.

[0063] In this embodiment, the basic structure of the application includes: a user interface, an application logic layer, a database layer, a backend service, and a frontend framework.

[0064] In this embodiment, the functional requirements include: user login and identity authentication, data entry and collection, data display and visualization, data management and query.

[0065] In this embodiment, the markup languages ​​supported by mainstream browsers include, for example, Hypertext Markup Language, Scripting Language, and Extensible Markup Language.

[0066] In this embodiment, the style sheet is a separate file for describing the appearance and style of elements in documents such as HTML or XML, and can use inline styles, block-level styles and style rules to control web page elements.

[0067] In this embodiment, the database is a software system for storing and managing data, and can organize, manage and retrieve data through a unified data model.

[0068] In this embodiment, the CSS framework is a code library that uses a set of predefined CSS classes and components to quickly build web applications. These frameworks usually provide a large number of style and layout options, as well as some built-in features such as responsive design, animation, and transition effects.

[0069] In this embodiment, the JavaScript library is a set of pre-written JavaScript codes embedded in the HTML document, which provides specific functions, can decompose complex functions into smaller, reusable code modules, and quickly build interactive applications on the web page.

[0070] In this embodiment, the user interface is the main way for the application to interact with the user, allowing the user to complete complex tasks through simple operations, including: title, navigation bar, input box, button.

[0071] In this embodiment, the interaction logic refers to a series of rules and processes followed by the program in the process of interacting with the user, which determines how the user interacts with the computer system and how the system responds to the user's operation.

[0072] In this embodiment, the differences and characteristics between different platforms include: operating system, programming language, and application architecture.

[0073] In this embodiment, the specific restrictions and rules between different systems mainly include:

[0074] Security: Different systems have different security and privacy protection requirements. For example, the Android platform has higher requirements for application security and requires security checks and authentication of applications, while the iOS platform pays more attention to the privacy protection of user data and has strict requirements for application data encryption and secure storage.

[0075] Compatibility: There may be compatibility issues between different systems. For example, some functions are valid on one platform but may not be valid on another platform. Therefore, when developing applications, you need to consider the compatibility of the target system.

[0076] Performance: Performance on different systems varies. For example, the multitasking capability of the Android platform is weak, so the performance of the application will be affected when processing a large number of tasks. On the iOS platform, due to its closed ecosystem, the performance of the application is usually more stable.

[0077] The beneficial effects of the above technical solution are: determining the markup language and style sheet supported by the main browser through the basic structure and functional requirements of the target application, building the user interface and interaction logic, and determining the specific restrictions and rules of different platforms, which can avoid the need to write different codes for each platform, causing the application to run slowly on some platforms or occupy more memory and storage space, and at the same time, ensure the security of the application.

[0078] Embodiment 2:

[0079] Based on Example 1, the embodiment of the present invention determines the basic structure and functional requirements of the target application, such as Figure 2 As shown, including:

[0080] S01: Determine the application purpose and scope of the target application;

[0081] S02: Determine the functions and characteristics of the application program according to the application purpose and application scope;

[0082] S03: Setting function modules based on the functions and characteristics;

[0083] S04: Determine the basic structure and functional requirements of the target application based on the functional modules.

[0084] In this embodiment, the application purpose and application scope of the target application may be determined by, for example, analyzing similar applications on the market to understand the corresponding advantages and disadvantages, market share, and user feedback.

[0085] In this embodiment, the application purpose of the application refers to the intended use for which the software program is designed and developed, such as solving specific problems, providing functions and services. For example, a file transfer application can be used to upload, download, and manage files, assist in work, and provide entertainment and relaxation.

[0086] In this embodiment, the application scope of the application program includes: office automation, communication and social networking, entertainment and relaxation, and life services.

[0087] In this embodiment, the functions of the application are generally closely related to the application field to which they belong, for example: office automation applications generally have the ability to process and create documents, spreadsheets and presentations, as well as tools for sharing files and collaborating with others; communication and social applications generally have social functions such as messaging, video calls, location sharing and contact management; entertainment and relaxation applications generally have functions such as music playback, video playback, games, reading, etc.

[0088] In this embodiment, the functional module refers to a unit that divides the application program according to specific functions and is independently developed and tested. Each functional module is responsible for completing a specific task, such as a user management module and a customer service module.

[0089] The beneficial effects of the above technical solution are: determining the functions and characteristics of the application through the application purpose and application scope of the application, setting functional modules, better understanding user needs, and improving development efficiency. Further, determining the basic structure and functional requirements of the target application can ensure that unified standards and guidelines are followed throughout the application development process, which will help improve the consistency and maintainability of the application.

[0090] Embodiment 3:

[0091] Based on Example 2, the embodiment of the present invention determines the markup languages ​​and style sheets supported by all mainstream browsers based on the basic structure and functional requirements, and constructs a database, including:

[0092] Determine a basic composition rule of the application based on the basic structure, and determine a markup language supported by all mainstream browsers according to the basic composition rule;

[0093] Determining a cascading style sheet for the application based on the functional requirements;

[0094] The markup languages ​​are classified and organized, and a relational database is constructed according to the classified markup languages ​​and cascading style sheets.

[0095] In this embodiment, the basic composition rules of the application program include: demand analysis, system design, coding implementation, and unit testing.

[0096] In this embodiment, the cascading style sheet of the application is determined according to the functional requirements, including: clarifying the application goals and design specifications, such as: what is the goal of the application and how the user interface should be presented, analyzing the page structure and components according to the needs of the application, including the navigation bar, search box, content area, and sidebar, and after determining the page structure and components, formulating a style strategy, including rules for fonts, colors, spacing, and responsive design, and writing a cascading style sheet file according to the style strategy.

[0097] In this embodiment, Cascading Style Sheets is a style sheet language used to describe the appearance and format of documents such as HTML or XML, allowing developers to control the appearance of web pages or applications by specifying various style attributes for elements, such as color, font, layout, etc.

[0098] In this embodiment, a relational database is a technical framework for data storage and management. It uses tables and keys to organize data and uses the SQL language for query and operation. Each row in the table represents a record, and the table itself contains multiple fields (or columns). Each key has a unique name that is used to uniquely identify a record in the table.

[0099] The beneficial effects of the above technical solution are: by determining the basic composition rules of the application through the basic structure, you can quickly start building the core part of the application, thereby determining the markup language supported by the main browser. At the same time, determine the cascading style sheet of the application according to functional requirements, build a relational database, and improve the readability and maintainability of the application.

[0100] Embodiment 4:

[0101] Based on Example 3, the embodiment of the present invention uses a CSS framework and a JavaScript library to build a cross-platform user interface and interaction logic based on the database, including:

[0102] determining specific requirements of the application based on the database;

[0103] Based on the specific requirements, define styles and properties of components provided by the JavaScript library using a CSS preprocessor and an external style sheet;

[0104] Build cross-platform user interfaces based on component styles, properties, and modules provided by CSS frameworks;

[0105] factors determining screen size, compatibility, and touch screen support for different devices and browsers based on the cross-platform user interface;

[0106] According to the above factors, corresponding JavaScript codes are written to implement cross-platform interaction logic.

[0107] In this embodiment, the specific requirements of the application include: functional requirements, performance requirements, such as how quickly the application needs to complete certain tasks, or how high a load it needs to support, scalability requirements, such as: how many people need to support using the application at the same time, whether it needs to support distributed processing, etc.

[0108] In this embodiment, the external style sheet refers to an external CSS file introduced outside the HTML file.

[0109] In this embodiment, a component refers to a software unit with certain functions and configurable characteristics. They are usually designed to be loosely coupled with each other and easy to replace and combine. A component can be any type of entity, including a function library, a class, an object, a service, and an interface.

[0110] The beneficial effects of the above technical solution are: defining the style and properties of components through the specific needs of the application, building a cross-platform user interface, determining the screen size, compatibility and touch screen support factors of different devices and browsers, and implementing cross-platform interaction logic, which can ensure the compatibility and operation effect of the code on different platforms and improve cross-platform usability.

[0111] Embodiment 5:

[0112] Based on Example 4, the embodiment of the present invention obtains the differences and characteristics between different platforms according to the user interface and the interaction logic, and determines specific restrictions and rules of different systems according to the differences and characteristics, including:

[0113] Obtain user operation behaviors on various platforms;

[0114] Determine user interface and interaction logic data of different platforms according to the operation behavior;

[0115] Conduct multi-angle analysis on the user interface and interaction logic data;

[0116] Differences and characteristics between different platforms are determined based on the analysis results, and specific limitations and rules of different systems are determined based on the differences and characteristics.

[0117] In this embodiment, data related to the user interface and interaction logic are collected, including: design documents, prototypes, user stories, scenario descriptions, system restoration, and analysis goals are obtained. For example, the hope is to discover accessibility issues, improve user experience, improve system performance, etc. According to the analysis goals, key factors affecting the user interface and interaction logic are identified, such as: visual design, user experience, system architecture, and for each key factor, a corresponding analysis method is used. For example, for visual design, observation, interviews, questionnaires, etc. can be used; for user experience, behavioral observation, user story mapping, card classification, etc. can be used; for system architecture, code review, system restoration, etc. can be used.

[0118] In this embodiment, the user's operating behaviors on each platform generally refer to the operations and interaction methods performed by the user when using the application. For example, when using the application on a mobile phone, the user may use a finger to touch the screen to navigate menus and perform tasks, or use voice commands to control the application; when using the application on a computer, the user may use a mouse and keyboard to navigate menus and perform tasks, or use handwriting input to enter text or other information.

[0119] In this embodiment, the interaction logic data refers to data used to describe the interaction between applications or systems, generally including data structures, algorithms, rules, etc. These data describe how applications or systems interact with each other to complete specific tasks or operations. For example, in an online shopping application, the interaction logic data may describe processes such as how items are moved in a shopping cart, how orders are generated, and how payments are processed.

[0120] The beneficial effects of the above technical solution are: determining the user interface and interaction logic data of different platforms through the user's operating behavior, analyzing the data from multiple angles, determining the differences and characteristics of different platforms, and laying the foundation for subsequent adjustments to the application code, so that the application can better adapt to each platform.

[0121] Embodiment 6:

[0122] Based on Example 5, the embodiment of the present invention adjusts the code of the target application based on the specific restrictions and rules to achieve multi-platform adaptation of the target application, including:

[0123] Obtain target platforms and systems that are compatible with target applications;

[0124] Analyze the existing code of the target application and obtain the differences in functions and features of the existing code on different platforms and systems based on the analysis results;

[0125] The code of the target application is expanded according to the different points to achieve multi-platform adaptation of the target application.

[0126] In this embodiment, to obtain a platform and system that is compatible with the target application, the following steps are performed: determining the operating system and programming language requirements of the application. For example, if the application needs to use the Unix operating system and the C++ programming language, then it may be necessary to run the program on a Linux or Windows platform and write code in C++. The basic requirements required for the application are determined, and available options such as Ubuntu, MacOS, Android, and Windows are obtained. Cloud service providers (such as AWS, Azure, and GCP) and local infrastructure may also be considered. The available options are determined, and the target platform and system that are compatible with the target application are obtained based on the available options.

[0127] In this embodiment, the differences in functions and features of existing codes on different platforms and systems are obtained, including: clarifying goals and requirements, for example, which platforms' codes do you want to compare, whether you want to focus on functions or performance, and selecting appropriate analysis tools based on the goals and requirements. For example, if you need to focus on differences on a specific platform, you can choose a platform simulator or a platform driver framework; if you need to compare the functions of the codes, you can use a static code analysis tool; if you need to compare the performance of the codes, you can use a performance testing tool; according to the selected tools and analysis methods, the code is analyzed for differences, and the differences in the code's behavior, limitations, error handling, etc. on different platforms and systems are recorded.

[0128] In this embodiment, the target platform adapted to the target application refers to a platform that provides support and infrastructure for the application, which may be an operating system, a database management system, a Web server, a cloud service provider, etc.

[0129] In this embodiment, the system adapted to the target application is a system that can interact with and communicate with a specific application or service.

[0130] The beneficial effects of the above technical solution are: obtaining the target platform and system that are compatible with the target application, analyzing the existing code of the application, obtaining the differences in the functions and characteristics of the existing code on different platforms and systems, thereby expanding the code of the application, ensuring the stability of the application, and improving the adaptability of the application.

[0131] Embodiment 7:

[0132] Based on Example 6, the embodiment of the present invention expands the code of the target application according to the different points to achieve multi-platform adaptation of the target application, including:

[0133] Determine the characteristic parameters of different functional items according to different points;

[0134] Retrieve multiple extension codes of different functional characteristics, and extract meta-operation parameters of each extension code;

[0135] Each extended code is expressed in a mixed manner using meta-operation parameters and hardware language;

[0136] Determine whether there are parameters that need to be configured when each extended code uses the meta-operation. If so, configure the corresponding parameters and build the original instruction thread of each extended code according to the meta-operation parameters.

[0137] Divide the original instruction threads into interleaving sequences in the respective control libraries of the multiple platforms to generate an interleaving scheme;

[0138] The processor executes the initial boot program to import a secondary boot program having a larger addressing bit number than the initial boot program from the serial memory;

[0139] Executing the secondary boot program, the secondary boot program controls the processor to import the interleaving scheme from the serial memory and obtain the execution result;

[0140] Determine a code execution success rate of the interleaving scheme of each extended code on each platform according to the execution results;

[0141] The target application is code-extended using the target extension code whose code execution success rate is greater than or equal to a preset probability.

[0142] In this embodiment, the different functional characteristic parameters refer to some variables or parameters defined in the application, which are used to specify the different inputs or conditions required to implement a certain function. These parameters can be changed while the program is running, and their values ​​depend on the user's input or other contextual factors. For example, a game application may include a different functional characteristic parameter for controlling the game speed. If the user wants to increase the difficulty of the game, they can set the game speed faster so that the program will render the scene at the speed specified by this parameter.

[0143] In this embodiment, the heterogeneous functional characteristics refer to that different parts of a software system have different functions, and these functions can be implemented by different codes.

[0144] In this embodiment, the extended code is a code that adds new functions or improves existing functions based on the original code. For example, in a game, there may be some extended codes that are specifically responsible for handling aspects such as physical simulation, audio playback, and graphics rendering in the game, while other extended codes are responsible for interacting with the user interface and managing the logical flow of the game.

[0145] In this embodiment, the meta-operation parameters of the extension code include the following: developer identification, timestamp, version number, and user feedback.

[0146] In this embodiment, the hardware language refers to a method of programming using hardware devices, which can directly communicate with the hardware without writing any software code.

[0147] In this embodiment, the original instruction thread of the extended code is a mechanism in the operating system responsible for managing the program execution process. When a process is loaded into the memory and is ready to be executed, the operating system will allocate the basic blocks of the process (such as code segments, data segments, etc.) to the corresponding locations in the memory. Then, the operating system will determine the thread execution order according to the process scheduling algorithm and allocate CPU time slices to each thread. At this stage, the thread is in a ready state, waiting for the operating system to call.

[0148] In this embodiment, the interleaving sequence in the control library refers to a code sequence written in a programming language and stored in the control library during the software development process. These code sequences can implement specific functions and can be easily integrated with other modules or components. The interleaving sequences in the control library are usually predefined and can be customized through configuration or programming instructions.

[0149] In this embodiment, the interleaving scheme is a scheduling strategy for managing process or thread priorities, in which different processes or threads are assigned to different clock cycles for execution, the length of each clock cycle is fixed, and each process or thread can only be executed once at the beginning of its clock cycle. If a process or thread completes its task before a certain clock cycle, it must be executed again in the next clock cycle to ensure that all processes or threads get a fair chance.

[0150] In this embodiment, serial memory is a computer memory technology that reads and writes multiple data bits sequentially rather than simultaneously.

[0151] In this embodiment, the initial boot program is a set of instructions or codes executed during the startup process of the computer operating system.

[0152] In this embodiment, the preset probability is 90%.

[0153] The beneficial effects of the above technical solution are: through the differences in the characteristic parameters of different functional items, the meta-operation parameters of multiple extended codes are retrieved and extracted, these parameters are mixed with the hardware language and the meta-operation to generate the corresponding original instruction threads, and the threads are distributed to the control libraries of multiple platforms, thereby forming an interleaving scheme, which can improve the reusability of the code and reduce the maintenance cost of the code. Furthermore, through the execution of the processor, a secondary boot program with an addressing bit number greater than the initial boot program is introduced. After the secondary boot program is executed, it controls the processor to import the interleaving scheme from the serial memory, and obtains the execution result, determines the success rate of each extended code on each platform, and applies the target extended code with a probability higher than the preset probability to the target application, which can improve the reliability and security of the code.

[0154] Embodiment 8:

[0155] Based on Example 2, the embodiment of the present invention determines the application purpose and application scope of the target application, including:

[0156] Identify the business domain of the target application;

[0157] Determine the service type of the target application according to the business domain of the target application and the preset service business attributes;

[0158] The core processing logic of the target application is determined according to the service type, and the application scope of the target application is determined according to the core processing logic.

[0159] In this embodiment, the business domain of the application refers to the specific industry or market targeted by the application, such as: finance, healthcare, education, social media, and gaming.

[0160] In this embodiment, the service type of the application program refers to a software service that provides specific functions for the application program, including: file transfer service, message delivery service, identity authentication and authorization service, and cache service.

[0161] In this embodiment, the preset service business attributes refer to the service rules and standards that the user needs to comply with when using the preset service, such as: terms and conditions of use, privacy policy, copyright and legal statement.

[0162] In this embodiment, the core processing logic of the application is the basis for the operation of the application, and can receive, analyze and respond to data input by the user, and display the results back to the user interface.

[0163] In this embodiment, the application scope of the application program includes: communication tools, entertainment applications, educational applications, and business applications.

[0164] The beneficial effects of the above technical solution are: determining the service type of the application through the business domain and preset business attributes of the target application, ensuring that the application has the required infrastructure and functions to meet business needs, reduce errors and speed up the development process, and further, determining the application scope of the application based on the core processing logic of the application, which can help the application better adapt to the characteristics of different devices and platforms, and ensure that the application can work normally on different devices and platforms.

[0165] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A multi-platform adaptation method for an application program. It is characterized in that include: Step 1: Determine the basic structure and functional requirements of the target application; Step 2: Determine the markup language and style sheet supported by the main browser based on the basic structure and functional requirements, and build a database; Step 3: Building a cross-platform user interface and interaction logic based on the database using a CSS framework and JavaScript library; Step 4: Obtain the differences and characteristics between different platforms according to the user interface and interaction logic, and determine specific restrictions and rules of different systems according to the differences and characteristics; Step 5: Adjust the code of the target application based on the specific restrictions and rules to achieve multi-platform adaptation of the target application; Wherein, step 5 includes: Obtain target platforms and systems that are compatible with target applications; Analyze the existing code of the target application and obtain the differences in functions and features of the existing code on different platforms and systems based on the analysis results; The code of the target application is expanded according to the differences to achieve multi-platform adaptation of the target application, including: Determine the characteristic parameters of different functional items according to different points; Retrieve multiple extension codes of different functional characteristics, and extract meta-operation parameters of each extension code; Each extended code is expressed in a mixed manner using meta-operation parameters and hardware language; Determine whether there are parameters that need to be configured when each extended code uses the meta-operation. If so, configure the corresponding parameters and build the original instruction thread of each extended code according to the meta-operation parameters. Divide the original instruction threads into interleaving sequences in the respective control libraries of the multiple platforms to generate an interleaving scheme; The processor executes the initial boot program to import a secondary boot program having a larger addressing bit number than the initial boot program from the serial memory; Executing the secondary boot program, the secondary boot program controls the processor to import the interleaving scheme from the serial memory and obtain the execution result; Determine a code execution success rate of the interleaving scheme of each extended code on each platform according to the execution results; Extending the target application program with a target extension code whose code execution success rate is greater than or equal to a preset probability; Among them, the differences and characteristics between different platforms include: operating system, programming language, and application architecture; Specific restrictions and rules for different systems include: security, compatibility, and performance.

2. The multi-platform adaptation method of the application according to claim 1, It is characterized in that Determine the basic structural and functional requirements of the target application, including: Determine the purpose and scope of application of the target application; Determine the functions and features of the application based on the stated purpose and scope of application; Setting functional modules based on the functions and characteristics; The basic structure and functional requirements of the target application are determined based on the functional modules.

3. The multi-platform adaptation method of the application according to claim 1, It is characterized in that Based on the basic structure and functional requirements, the markup language and style sheet supported by the main browser are determined, and a database is constructed, including: Determine a basic composition rule of the application based on the basic structure, and determine a markup language supported by the main browser according to the basic composition rule; Determining a cascading style sheet for the application based on the functional requirements; The markup languages ​​are classified and organized, and a relational database is constructed according to the classified markup languages ​​and cascading style sheets.

4. The multi-platform adaptation method of the application according to claim 1, It is characterized in that Based on the database, CSS framework and JavaScript library are used to build cross-platform user interfaces and interaction logic, including: determining specific requirements of the application based on the database; Based on the specific requirements, define styles and properties of components provided by the JavaScript library using a CSS preprocessor and an external style sheet; Build cross-platform user interfaces based on component styles, properties, and modules provided by CSS frameworks; factors determining screen size, compatibility, and touch screen support for different devices and browsers based on the cross-platform user interface; According to the above factors, corresponding JavaScript codes are written to implement cross-platform interaction logic.

5. The multi-platform adaptation method of the application according to claim 1, It is characterized in that The differences and characteristics between different platforms are obtained according to the user interface and interaction logic, and specific restrictions and rules of different systems are determined according to the differences and characteristics, including: Obtain user operation behaviors on various platforms; Determine user interface and interaction logic data of different platforms according to the operation behavior; Conduct multi-angle analysis on the user interface and interaction logic data; Differences and characteristics between different platforms are determined based on the analysis results, and specific limitations and rules of different systems are determined based on the differences and characteristics.

6. The multi-platform adaptation method of the application according to claim 2, It is characterized in that Determine the purpose and scope of the target application, including: Identify the business domain of the target application; Determine the service type of the target application according to the business domain of the target application and the preset service business attributes; The core processing logic of the target application is determined according to the service type, and the application scope of the target application is determined according to the core processing logic.