Application configuration method and related apparatus
By dynamically loading application configuration components, the cumbersome application development process is solved, enabling rapid iteration and updates, and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN KAADAS INTELLIGENT TECH CO LTD
- Filing Date
- 2023-12-05
- Publication Date
- 2026-07-21
AI Technical Summary
Existing technologies often involve cumbersome application development processes, making it difficult to respond quickly to rapid iterations and updates of business needs, resulting in a poor user experience.
By obtaining the application's attribute data, it determines whether a matching component exists in the component library. If not, it creates the target component and updates the function code value, enabling the application to dynamically load and configure components at runtime without restarting or compiling.
It enhances the intelligence and convenience of application configuration, enabling rapid iteration and updates, and improving the user experience.
Smart Images

Figure CN117632300B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of application development technology, and in particular to an application configuration method and related apparatus. Background Technology
[0002] Currently, due to the rapid development of the Internet of Things, businesses are placing increasingly higher demands on the rapid innovation and iteration of application development processes, and are also putting forward more stringent requirements on the flexibility, coverage, and timeliness of online businesses.
[0003] In existing technologies, when a new product needs to be added to an application to meet business needs, the developers must redevelop the application and release the new application to the app store. The application can only be shown to users after they update. When business personnel discover defects in the product, they may need to fix the defects through hotfix or re-release the application. For business needs that require rapid iteration, the application may need to be updated repeatedly and retested by the testing side, which is a cumbersome process. Summary of the Invention
[0004] In view of this, this application provides an application configuration method and related apparatus, which can construct the functional components of the application function by the device version of the electronic device that supports the application function, the firmware version that supports the application function, and the functional attributes of the application function. This enables the application to dynamically load the application function, ensuring that the application can dynamically load the configuration components at runtime without restarting or compiling, thereby improving the intelligence and convenience of the system in configuring the application. At the same time, it enables the rapid iteration and update of the application without interrupting the application function, thus improving the user experience.
[0005] In a first aspect, embodiments of this application provide an application configuration method, the method comprising:
[0006] Obtain application attribute data of the target application, the application attribute data including a set of function code values of the target application, function attribute data of the target function of the target application, and runtime environment data, the runtime environment data including a first device version of the electronic device supporting the target function and a first firmware version of the firmware supporting the target function, the set of function code values including at least one function code value corresponding to at least one component;
[0007] Based on the functional attribute data and the runtime environment data, it is determined whether there is a target component in the component library that matches the target function, and the component library includes the at least one component;
[0008] If not, the target component is created based on the functional attribute data and the runtime environment data, and the target component includes functional code that implements the target function;
[0009] Obtain the target function code value of the target function, which is used to call the target component;
[0010] The application attribute data is updated according to the target function code value, and the set of function code values in the updated application attribute data includes the target function code value.
[0011] Secondly, embodiments of this application provide an application configuration device, the device comprising:
[0012] The first acquisition unit is used to acquire application attribute data of the target application. The application attribute data includes a set of function code values of the target application, function attribute data of the target function of the target application, and runtime environment data. The runtime environment data includes a first device version of the electronic device that supports the target function and a first firmware version of the firmware that supports the target function. The set of function code values includes at least one function code value corresponding to at least one component.
[0013] The judgment unit is used to determine whether there is a target component in the component library that matches the target function based on the functional attribute data and the operating environment data, wherein the component library includes the at least one component;
[0014] A component creation unit is used to create the target component based on the functional attribute data and the runtime environment data if no, and the target component includes functional code that implements the target function;
[0015] The second acquisition unit is used to acquire the target function code value of the target function, and the target function code value is used to call the target component;
[0016] An update unit is used to update the application attribute data according to the target function code value, wherein the set of function code values in the updated application attribute data includes the target function code value.
[0017] Thirdly, embodiments of this application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing steps in any method of the first aspect of this application.
[0018] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in any method of the first aspect of this application.
[0019] Fifthly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in any method of the first aspect of this application. The computer program product may be a software installation package.
[0020] As can be seen, through the above application configuration method and related apparatus, firstly, the application attribute data of the target application is obtained. The application attribute data includes a set of function code values of the target application, function attribute data of the target function of the target application, and runtime environment data. The runtime environment data includes a first device version of the electronic device supporting the target function and a first firmware version of the firmware supporting the target function. The set of function code values includes at least one component, and each component includes function code that implements the corresponding function. Then, based on the function attribute data and runtime environment data, it is determined whether there is a target component in the component library that matches the target function. The component library includes at least one component. If not, a target component is created based on the function attribute data and runtime environment data. The target component includes function code that implements the target function. Next, the target function code value of the target function is obtained. The target function code value is used to indicate the target component. Finally, the application attribute data is updated based on the target function code value. After the update, the set of function code values in the application attribute data includes the target function code value. The functional components of an application can be constructed by the device version of the electronic device that supports the application's functions, the firmware version that supports the application's functions, and the functional attributes of the application's functions. This enables the application to dynamically load application functions, ensuring that the application can dynamically load configuration components at runtime without restarting or compiling. This improves the intelligence and convenience of the system in configuring applications. At the same time, it enables rapid iteration and updates of applications without interrupting application functions, thus enhancing the user experience. Attached Figure Description
[0021] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1A system architecture diagram of a program development system provided in this application embodiment;
[0023] Figure 2A A flowchart illustrating an application configuration method provided in an embodiment of this application;
[0024] Figure 2B A schematic diagram of an encoding provided for an embodiment of this application;
[0025] Figure 2C A schematic diagram of an application function code value configuration page provided in an embodiment of this application;
[0026] Figure 3 A flowchart illustrating a function code value definition method provided in an embodiment of this application;
[0027] Figure 4 A flowchart illustrating another application configuration method provided in an embodiment of this application;
[0028] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0029] Figure 6 A functional unit block diagram of an application configuration device provided in this application embodiment;
[0030] Figure 7 A block diagram of the functional units of another application configuration device provided in an embodiment of this application. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0032] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0033] It should be understood that the term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this document indicates that the preceding and following related objects are in an "or" relationship. In the embodiments of this application, "multiple" refers to two or more.
[0034] In the embodiments of this application, "at least one item" or its similar expression refers to any combination of these items, including any combination of a single item or a plurality of items. "One or more" means one or more, while "multiple" means two or more. For example, "at least one item" of a, b, or c can represent the following seven cases: a, b, c; a and b; a and c; b and c; a, b, and c. Each of a, b, and c can be an element or a set containing one or more elements.
[0035] In this application, the term "connection" refers to various connection methods, such as direct connection or indirect connection, to achieve communication between devices. This application does not impose any limitations on this.
[0036] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0037] The relevant content, technical solutions, and beneficial effects involved in the embodiments of this application will be described below.
[0038] I. Application Scenarios, Cloud Platforms, Clients, and Example Descriptions of Program Development Systems
[0039] 1. Application Scenarios
[0040] The embodiments of this application can be applied to the following application scenarios, including but not limited to: processing systems with application development capabilities deployed on cloud platforms, used for the iteration and / or updating of electronic products or applications (including system applications and / or third-party applications) on different platforms, and used for application development, application version upgrades, or situations where application functions need to be added, deleted, or updated. The embodiments of this application can be adjusted and improved according to specific application environments, and are not specifically limited here.
[0041] 2. Cloud Platform
[0042] A cloud platform can support any network device capable of providing application configuration services. Network devices can be base stations, evolved NodeBs (eNodeBs), transmission reception points (TRPs), next-generation NodeBs (gNBs) in 5G mobile communication systems, next-generation base stations in 6G mobile communication systems, base stations in future mobile communication systems, or access nodes in WiFi systems. Network devices can also be modules or units that perform some of the functions of a base station; for example, they can be centralized units (CUs) or distributed units (DUs). Here, the CU performs the functions of the base station's Radio Resource Control (RRC) and Packet Data Convergence Protocol (PDCP), and can also perform the functions of the Service Data Adaptation Protocol (SDAP). The DU performs the functions of the base station's Radio Link Control (RANC) and Medium Access Control (MAC) layers, and can also perform some or all of the physical layer functions. For detailed descriptions of the various protocol layers mentioned above, please refer to the relevant technical specifications of the 3rd Generation Partnership Project (3GPP). Network equipment can be a macro base station, a micro base station, an indoor station, a relay node, or a donor node, etc. In the embodiments of this application, the device used to implement the network equipment function can be the network equipment itself, or a device capable of supporting the network equipment in implementing that function, such as a chip system or a combination of devices or components capable of implementing access network equipment functions. This device can be installed in the network equipment. The embodiments of this application do not limit the specific technology or specific equipment form used in the network equipment.
[0043] 3. Client
[0044] The client can be any terminal device capable of providing application execution services to users. For example, a terminal device is a device with application execution capabilities that can be deployed on land, including indoors or outdoors, handheld, wearable, or vehicle-mounted; it can also be deployed on water (such as ships); and it can be deployed in the air (such as airplanes, balloons, and satellites). In this application's embodiments, the terminal device can be a device equipped with dual microphones, such as a mobile phone, headset, tablet, computer with wireless transceiver capabilities, virtual reality (VR) terminal device, augmented reality (AR) terminal device, wireless terminal in industrial control, vehicle-mounted terminal device, wireless terminal in self-driving, wireless terminal in remote medical care, wireless terminal in smart grids, wireless terminal in transportation safety, wireless terminal in smart cities, wireless terminal in smart homes, wearable terminal devices, etc. The embodiments of this application do not limit the application scenarios. A terminal may also be referred to as a terminal device, user equipment (UE), access terminal device, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal device, mobile device, UE terminal device, terminal device, wireless communication device, UE agent, or UE device, etc. A terminal can be fixed or mobile. In the embodiments of this application, the device used to implement the functions of the terminal device can be the terminal device itself, or it can be any device capable of supporting the terminal device in implementing those functions, such as a chip system or a combination of devices or components capable of implementing the functions of the terminal device. This device can be installed in the terminal device.
[0045] 4. Example Description of the Program Development System
[0046] Please see Figure 1 , Figure 1 This is a system architecture diagram of a program development system provided in an embodiment of this application. For example... Figure 1 As shown, the program development system 10 includes a cloud platform 11 and a client 12. The cloud platform 11 is a server, and the client 12 is a smartphone. The client 12 and the cloud platform 11 can be connected through a communication network, such as a local area network or a wide area network.
[0047] The cloud platform 11 can acquire application attribute data of the target application. This application attribute data includes a set of function code values for the target application, function attribute data of the target function of the target application, and runtime environment data. The runtime environment data includes a first device version of the electronic device supporting the target function and a first firmware version of the firmware supporting the target function. The set of function code values includes at least one component, and each component includes function code implementing the corresponding function. The platform determines whether a target component matching the target function exists in a component library based on the function attribute data and the runtime environment data. The component library includes at least one component. If not, the platform creates the target component based on the function attribute data and the runtime environment data. The target component includes function code implementing the target function. The platform acquires the target function code value, which is used to call the target component. The platform updates the application attribute data based on the target function code value, and the updated application attribute data includes the target function code value in the set of function code values. The client 12 can acquire the updated application attribute data of the target application in real time and run the target application based on the updated application attribute data.
[0048] II. An application configuration method
[0049] The following is a detailed description of an application configuration method according to an embodiment of this application.
[0050] Please see Figure 2A , Figure 2A This is a flowchart illustrating an application configuration method provided in an embodiment of this application. Figure 2A As shown, the application configuration method can be applied to cloud platforms, and the specific steps of the application configuration method are as follows:
[0051] S201. Obtain the application attribute data of the target application.
[0052] The application attribute data includes the function code value set of the target application, the function attribute data of the target function of the target application, and the operating environment data. The operating environment data includes a first device version of the electronic device that supports the target function and a first firmware version of the firmware that supports the target function. The function code value set includes at least one function code value corresponding to at least one component.
[0053] Each component corresponds to a single function, and different components correspond to different functions. There are no specific limitations on the number or content of the first device version and the first firmware version.
[0054] In practice, configuring and managing application attribute data through a cloud platform can achieve at least the following aspects of configuration management.
[0055] Firstly, the aforementioned set of function code values is configured and managed through a cloud platform. The set of function code values is updated promptly based on adjustments to the target application's functionality, ensuring that the set of function code values used by user terminals is updated in a timely and effective manner. Therefore, when a function malfunctions, the cloud platform can delete and / or mark the target function code value corresponding to that function in the aforementioned set as unavailable to prevent users from using the function, thereby avoiding functional errors that could cause user inconvenience and lead to a series of product complaints.
[0056] Optionally, the above method further includes: if the target function is detected to be in an abnormal state, then setting the target function code value of the target function to an unavailable state. The abnormal state of the target function includes, but is not limited to, the program code implementing the target function being tampered with or the program code being unable to run normally.
[0057] Secondly, device versions can be configured and managed through a cloud platform. Users can manage the correspondence between device version numbers and functions through the cloud platform. For example, a V01 version phone supports function G1, while a V02 version phone does not support function G1. A V01 version phone does not support function G2, while a V02 version phone supports function G2. By binding a device version number to a function, it can be indicated that a device with that version number supports that function. Conversely, if a device version number is not bound to a function, it means that a device with that version number does not support that function.
[0058] Thirdly, firmware versions are configured and managed through a cloud platform. Firmware refers to the program written to an erasable programmable read-only memory (EPROM). Users can manage the mapping between firmware version numbers and functions through the cloud platform. For example, firmware version F1 supports function G3, while firmware version F2 does not support function G3; firmware version F1 does not support function G4, while firmware version F2 supports function G4. A firmware version number can be bound to a function to indicate that the firmware version supports that function. Conversely, if a firmware version number is not bound to a function, it means that the firmware version does not support that function.
[0059] S202. Based on the above functional attribute data and the above operating environment data, determine whether there is a target component in the component library that matches the above target function.
[0060] The aforementioned component library includes at least one of the aforementioned components, and each component includes program code that implements the corresponding function.
[0061] S203. If not, then create the target component based on the above functional attribute data and the above operating environment data.
[0062] The implementation method for creating the target component based on the aforementioned functional attribute data and operating environment data may be as follows: generating a component creation request based on the aforementioned functional attribute data and operating environment data; sending the component creation request to the terminal device where the first user is located; receiving feedback information from the terminal device, the feedback information including the target component.
[0063] Obviously, after creating the target component, the cloud platform will store the target component in the component library to ensure that the target component can be retrieved from the component library to complete the target function corresponding to the target component.
[0064] The aforementioned target component includes functional code that implements the aforementioned target function.
[0065] S204. Obtain the target function code value of the above target function.
[0066] The aforementioned target function code value is used to call the aforementioned target component.
[0067] The cloud platform supports free mapping configuration of function code value sets. Administrators can freely configure function code values in the cloud platform. The input function code value will automatically generate a JSON file. The JSON file is used to store simple data structures and objects, which can be used for data exchange in applications.
[0068] When a client makes a request, the newly added function code value will be returned to the client according to the serialization order. Specifically, the cloud platform can freely choose different possible level orders and set the dependency relationship of the function code value list. When the client makes a request, it can receive data that presents the corresponding serialization relationship. In the open programmable system of the cloud platform, when a child function code value is selected, the parent function code value will also be selected.
[0069] The target functions include multiple levels of functions. There is no specific limit to the total number of target function levels or the number of functions in each level. The total number of levels and the number of functions in each level can be configured through the cloud platform according to actual needs.
[0070] In one possible example, the target function includes a first-level function (i.e., a level 1 function), a second-level function (i.e., a level 2 function), and a third-level function (i.e., a level 3 function). The target function code value includes a first-level code value (i.e., a level 1 code value), a second-level code value (i.e., a level 2 code value), and a third-level code value (i.e., a level 3 code value). The first-level code value is used to indicate the first-level function, the second-level code value is used to indicate the second-level function, and the third-level code value is used to indicate the third-level function. The first-level function is the parent function of the second-level function. The second-level function is used to constrain the main object of the first-level function, and the third-level function is used to constrain at least one operation mode for implementing the second-level function.
[0071] Level 1, Level 2, and Level 3 code values can be configured through the cloud platform. Level 1 and Level 2 code values are type code values, which are defined. When defining Level 1 and Level 2 code values, the cloud platform provides a separate entry point for adding them. Because these code values are basic type code values, permissions for this part are controlled. Only specified user roles can add Level 1 and Level 2 code values. Level 3 code values are code values for specific functions. This part of the code values has a dependency relationship with Level 1 and Level 2 code values. The dependency relationship is that if there is a subclass, there must be a parent class.
[0072] The aforementioned function code values may be, but are not limited to, hexadecimal code values.
[0073] Please see Figure 2B and Figure 2C , Figure 2B This is a schematic diagram of an encoding provided in an embodiment of this application. Figure 2C This is a schematic diagram of an application function code value configuration page provided in an embodiment of this application. Figure 2B and Figure 2CAs shown, the primary functions include lock / unlock functionality (corresponding primary code value A103) and activity log (corresponding primary code value A104). Secondary functions under the lock / unlock functionality include Bluetooth lock / unlock functionality (corresponding secondary code value A00) and WiFi lock / unlock functionality (corresponding secondary code value A10). Tertiary functions under the Bluetooth lock / unlock functionality include Bluetooth unlock (corresponding secondary code value 0) and Bluetooth lock (corresponding secondary code value 1). Tertiary functions under the WiFi lock / unlock functionality include WiFi unlock (corresponding secondary code value 0) and WiFi lock (corresponding secondary code value 1). Secondary functions under the activity log include activity log synchronization (corresponding secondary code value A00) and activity log operation list (corresponding secondary code value A10). Tertiary functions under the activity log synchronization functionality include Bluetooth synchronization, i.e., APP synchronization server (corresponding secondary code value 0), and activity log operation... The three-level functions under list(Operation) include view (corresponding to the three-level code value of 0), delete (corresponding to the three-level code value of 1), and clear (corresponding to the three-level code value of 2). When the three-level function Bluetooth unlock is selected, it will automatically associate the two-level function Bluetooth lock / unlock and the one-level function Bluetooth lock / unlock. The function code value for the three-level function Bluetooth unlock is A103A000. Similarly, the function code value for the three-level function Bluetooth lock is A103A001, the function code value for the three-level function WiFi unlock is A103A100, the function code value for the three-level function WiFi lock is A103A101, the function code value for the three-level function Bluetooth synchronization is A104A000, the function code value for the three-level function view is A104A100, the function code value for the three-level function delete is A104A101, and the function code value for the three-level function clear is A104A102.
[0074] The following is a detailed description of a method for defining target function code values according to an embodiment of this application.
[0075] Please see Figure 3 , Figure 3 This is a flowchart illustrating a method for defining function code values according to an embodiment of this application. Figure 3 As shown, the function code value definition method (i.e., the method for obtaining the target function code value of the above-mentioned target function) specifically includes the following steps:
[0076] Step S31: Open the first entry point to the first user whose user level is equal to the first level.
[0077] The user level of application senior developers can be preset to Level 1. Senior developers can be marked with the Level 1 user ID after passing the senior developer certification.
[0078] Step S32: Obtain the first level code value entered by the first user through the first entry point.
[0079] The first entry point mentioned above is used to define the first level code value.
[0080] Step S33: Open the second entry point to the second user whose user level is higher than or equal to the second level.
[0081] The second level is lower than the first level.
[0082] Application junior developers can be pre-set to Level 2 user status. Junior developers can be marked with a Level 2 user ID after passing the junior developer certification.
[0083] Step S34: Obtain the second-level code value input by the second user through the second entry point.
[0084] The second entry point is used to define the second-level code value of the second-level function.
[0085] Step S35: Open the third entry point to third users whose user level is higher than or equal to the third level.
[0086] The third level mentioned above is lower than the second level mentioned above.
[0087] Application users can be pre-set to Level 3 user status. After successful login authentication, application users can be identified using this Level 3 user identifier.
[0088] Step S36: Obtain the third-level code value input by the third user through the third entry point mentioned above.
[0089] The aforementioned third entry point is used to define the aforementioned third-level code value for the aforementioned third-level function.
[0090] Step S37: Generate the target function code value of the target function based on the first level code value, the second level code value and the third level code value.
[0091] The process of generating the target function code value based on the first-level code value, the second-level code value, and the third-level code value includes: concatenating the first-level code value, the second-level code value, and the third-level code value to obtain the target function code value; and binding the first device version and the first firmware version to the target function code value.
[0092] Binding the first device version and the first firmware version to the target function code value indicates that the device of the first device version supports the target function, and the firmware of the first firmware version supports the target function.
[0093] As can be seen in this example, by configuring user permissions through encoding permissions, the cloud platform can enable users of different levels to have different permissions to write function code values, thereby improving the reliability of function code value writing.
[0094] S205. Update the application attribute data according to the target function code value.
[0095] The updated application attribute data includes the target function code value.
[0096] In practical applications, in response to a startup operation for a target application, the terminal device determines whether a configuration backup of the target application exists locally. If no configuration backup exists locally, it requests the latest configuration from the cloud platform. If a configuration backup exists locally, it requests the latest second configuration version number and configuration information from the cloud platform. The first configuration version number in the configuration backup is compared with the second configuration version number to obtain a comparison result. If the comparison result shows that the first configuration version number and the second configuration version number are the same, the target application is launched. If the comparison result shows that the first configuration version number and the second configuration version number are different, the latest configuration is requested from the cloud platform.
[0097] In one possible example, the above method further includes: if it is detected that the above operating environment data has been updated, the updated operating environment data includes a second device version of an electronic device that does not support the above target function and / or a second firmware version that does not support the above target function; determining that the above second device version and / or second firmware version is unbound to the above target function.
[0098] Specifically, when the second device version is bound to the target function, the second device version is unbound from the target function; when the second firmware version is bound to the target function, the second firmware version is unbound from the target function; when the second device version is not bound to the target function, no processing is performed on the second device version and the target function; when the second firmware version is not bound to the target function, no processing is performed on the second firmware version and the target function.
[0099] As can be seen in this example, the cloud platform can be used to update the functionality of applications supported by different device versions and / or different firmware versions, thereby improving the ease of application configuration.
[0100] It should be noted that when a problem occurs with one of the above functions, the component corresponding to that function can be marked as unavailable, and / or the access point for that function can be removed to prevent users from using that function.
[0101] III. Another Application Configuration Method
[0102] The following is a detailed description of another application configuration method according to an embodiment of this application.
[0103] Please see Figure 4 , Figure 4 This is a flowchart illustrating another application configuration method provided in an embodiment of this application. Figure 4 As shown, the application configuration method specifically includes the following steps:
[0104] S401. Obtain the application attribute data of the target application.
[0105] The application attribute data includes the function code value set of the target application, the function attribute data of the target function of the target application, and the operating environment data. The operating environment data includes a first device version of the electronic device that supports the target function and a first firmware version of the firmware that supports the target function. The function code value set includes at least one component, and each component includes function code that implements the corresponding function.
[0106] S402. Based on the above functional attribute data and the above operating environment data, determine whether there is a target component in the component library that matches the above target function.
[0107] The aforementioned component library includes at least one component.
[0108] S403. If not, then create the target component based on the above functional attribute data and the above operating environment data.
[0109] The aforementioned target component includes functional code that implements the aforementioned target function.
[0110] S404. Open the first entry point to the first user whose user level is equal to the first level.
[0111] S405. Obtain the first level code value entered by the first user through the first entry point.
[0112] The first entry point is used to define the first level code value.
[0113] S406. Open a second entry point to a second user whose user level is higher than or equal to the second level.
[0114] S407. Obtain the second level code value input by the second user through the second entry point, wherein the second level is lower than the first level.
[0115] The second entry point is used to define the second-level code value of the second-level function.
[0116] S408. Open the third entry point to third users whose user level is higher than or equal to the third level.
[0117] S409. Obtain the third-level code value input by the third user through the third entry point mentioned above.
[0118] The aforementioned third entry point is used to define the third-level code value of the aforementioned third-level function.
[0119] S410. Generate the target function code value of the target function based on the first level code value, the second level code value and the third level code value.
[0120] The aforementioned target function code value is used to call the aforementioned target component.
[0121] S411. Update the application attribute data according to the target function code value. After the update, the set of function code values in the application attribute data includes the target function code value.
[0122] As can be seen, the above application configuration method first involves obtaining the application attribute data of the target application. This data includes a set of function code values for the target application, function attribute data for the target function of the target application, and runtime environment data. The runtime environment data includes a first device version of the electronic device supporting the target function and a first firmware version of the firmware supporting the target function. The set of function code values includes at least one component, and each component includes function code that implements the corresponding function. Next, based on the function attribute data and runtime environment data, it is determined whether a target component matching the target function exists in the component library. The component library includes at least one component. If not, a target component is created based on the function attribute data and runtime environment data. The target component includes function code that implements the target function. Then, the target function code value for the target function is obtained, and this target function code value is used to indicate the target component. Finally, the application attribute data is updated based on the target function code value. After the update, the set of function code values in the application attribute data includes the target function code value. The functional components of an application can be constructed by the device version of the electronic device that supports the application's functions, the firmware version that supports the application's functions, and the functional attributes of the application's functions. This enables the application to dynamically load application functions, ensuring that the application can dynamically load configuration components at runtime without restarting or compiling. This improves the intelligence and convenience of the system in configuring applications. At the same time, it enables rapid iteration and updates of applications without interrupting application functions, thus enhancing the user experience.
[0123] For steps not described in detail above, please refer to Figure 2A The steps of the Chinese method are not described in detail here.
[0124] IV. Exemplary Description of an Electronic Device
[0125] The following is combined with Figure 5 An electronic device according to an embodiment of this application will be described. Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. The electronic device 500 includes a processor 501, a memory 502, and a communication bus 503 for connecting the processor 501 and the memory 502.
[0126] In some possible implementations, memory 502 includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM), which is used to store program code executed by electronic device 500 and data transmitted.
[0127] In some possible implementations, the electronic device 500 also includes a communication interface for receiving and sending data.
[0128] In some possible implementations, processor 501 may be one or more central processing units (CPUs). If processor 501 is a central processing unit (CPU), the central processing unit (CPU) may be a single-core central processing unit (CPU) or a multi-core central processing unit (CPU).
[0129] In some possible implementations, processor 501 may be a baseband chip, a chip, a central processing unit (CPU), a general-purpose processor, a DSP, an ASIC, an FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
[0130] In a specific implementation, the processor 501 in the electronic device 500 executes the computer program or instructions 521 stored in the memory 502 to perform the following operations:
[0131] Obtain application attribute data of the target application, the application attribute data including a set of function code values of the target application, function attribute data of the target function of the target application, and runtime environment data, the runtime environment data including a first device version of the electronic device supporting the target function and a first firmware version of the firmware supporting the target function, the set of function code values including at least one function code value corresponding to at least one component;
[0132] Based on the functional attribute data and the runtime environment data, it is determined whether there is a target component in the component library that matches the target function, and the component library includes the at least one component;
[0133] If not, the target component is created based on the functional attribute data and the runtime environment data, and the target component includes functional code that implements the target function;
[0134] Obtain the target function code value of the target function, which is used to call the target component;
[0135] The application attribute data is updated according to the target function code value, and the set of function code values in the updated application attribute data includes the target function code value.
[0136] Using the above-described application configuration method and related apparatus, firstly, application attribute data of the target application is obtained. This application attribute data includes a set of function code values for the target application, function attribute data of the target function of the target application, and runtime environment data. The runtime environment data includes a first device version of the electronic device supporting the target function and a first firmware version of the firmware supporting the target function. The set of function code values includes at least one component, and each component includes function code that implements the corresponding function. Next, based on the function attribute data and runtime environment data, it is determined whether a target component matching the target function exists in the component library. The component library includes at least one component. If not, a target component is created based on the function attribute data and runtime environment data. The target component includes function code that implements the target function. Then, the target function code value of the target function is obtained, and the target function code value is used to indicate the target component. Finally, the application attribute data is updated based on the target function code value. After the update, the set of function code values in the application attribute data includes the target function code value. The functional components of an application can be constructed by the device version of the electronic device that supports the application's functions, the firmware version that supports the application's functions, and the functional attributes of the application's functions. This enables the application to dynamically load application functions, ensuring that the application can dynamically load configuration components at runtime without restarting or compiling. This improves the intelligence and convenience of the system in configuring applications. At the same time, it enables rapid iteration and updates of applications without interrupting application functions, thus enhancing the user experience.
[0137] It should be noted that the specific implementation of each operation can be described in the corresponding description of the method embodiments shown above. The electronic device 500 can be used to execute the above method embodiments of this application, and will not be described again here.
[0138] V. Exemplary Description of an Application Configuration Device
[0139] The above primarily describes the solutions of the embodiments of this application from the perspective of the method execution process. It is understood that, in order to achieve the above functions, the electronic device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments provided herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0140] This application embodiment can divide the electronic device into functional units according to the above method example. For example, each function can be divided into a separate functional unit, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0141] When dividing each function into modules according to its corresponding function. Figure 6 This application provides a functional unit block diagram of an application configuration device 600, which is applied to a cloud platform and includes:
[0142] The first acquisition unit 610 is used to acquire application attribute data of the target application. The application attribute data includes a set of function code values of the target application, function attribute data of the target function of the target application, and runtime environment data. The runtime environment data includes a first device version of the electronic device that supports the target function and a first firmware version of the firmware that supports the target function. The set of function code values includes at least one function code value corresponding to at least one component.
[0143] The judgment unit 620 is used to determine whether there is a target component in the component library that matches the target function based on the functional attribute data and the operating environment data, wherein the component library includes the at least one component;
[0144] The component creation unit 630 is used to create the target component based on the functional attribute data and the runtime environment data if no, and the target component includes functional code that implements the target function;
[0145] The second acquisition unit 640 is used to acquire the target function code value of the target function, and the target function code value is used to call the target component;
[0146] The update unit 650 is used to update the application attribute data according to the target function code value, wherein the set of function code values in the updated application attribute data includes the target function code value.
[0147] As can be seen, through the above application configuration method and related apparatus, firstly, the application attribute data of the target application is obtained. The application attribute data includes a set of function code values of the target application, function attribute data of the target function of the target application, and runtime environment data. The runtime environment data includes a first device version of the electronic device supporting the target function and a first firmware version of the firmware supporting the target function. The set of function code values includes at least one component, and each component includes function code that implements the corresponding function. Then, based on the function attribute data and runtime environment data, it is determined whether there is a target component in the component library that matches the target function. The component library includes at least one component. If not, a target component is created based on the function attribute data and runtime environment data. The target component includes function code that implements the target function. Next, the target function code value of the target function is obtained. The target function code value is used to indicate the target component. Finally, the application attribute data is updated based on the target function code value. After the update, the set of function code values in the application attribute data includes the target function code value. The functional components of an application can be constructed by the device version of the electronic device that supports the application's functions, the firmware version that supports the application's functions, and the functional attributes of the application's functions. This enables the application to dynamically load application functions, ensuring that the application can dynamically load configuration components at runtime without restarting or compiling. This improves the intelligence and convenience of the system in configuring applications. At the same time, it enables rapid iteration and updates of applications without interrupting application functions, thus enhancing the user experience.
[0148] It should be noted that the specific implementation of each operation can be described in the corresponding description of the method embodiments shown above. The application configuration device 600 can be used to execute the method embodiments of this application, and will not be described again here.
[0149] VI. Exemplary Description of Another Application Configuration Device
[0150] When using integrated units, the following is combined with Figure 7Another application configuration device in the embodiments of this application will be described in detail. The application configuration device 700 is applied to a cloud platform. The application configuration device 700 includes a processing unit 701 and a communication unit 702. The processing unit 701 is used to perform any step as described in the above method embodiments, and when performing data transmission, it can selectively call the communication unit 702 to complete the corresponding operation.
[0151] The application configuration device 700 may further include a storage unit 703 for storing program code and data. The processing unit 701 may be a processor, the communication unit 702 may be a wireless communication module, and the storage unit 703 may be a memory.
[0152] The processing unit 701 is specifically configured to: obtain application attribute data of a target application through the communication unit 702, the application attribute data including a set of function code values of the target application, function attribute data of the target function of the target application, and runtime environment data, the runtime environment data including a first device version of an electronic device supporting the target function and a first firmware version of firmware supporting the target function, the set of function code values including at least one function code value corresponding to at least one component; determine whether a target component matching the target function exists in a component library based on the function attribute data and the runtime environment data, the component library including the at least one component; if not, create the target component based on the function attribute data and the runtime environment data, the target component including function code implementing the target function; obtain the target function code value of the target function through the communication unit 702, the target function code value being used to call the target component; update the application attribute data based on the target function code value, the updated application attribute data including the target function code value in the set of function code values.
[0153] As can be seen, through the above application configuration method and related apparatus, firstly, the application attribute data of the target application is obtained. The application attribute data includes a set of function code values of the target application, function attribute data of the target function of the target application, and runtime environment data. The runtime environment data includes a first device version of the electronic device supporting the target function and a first firmware version of the firmware supporting the target function. The set of function code values includes at least one component, and each component includes function code that implements the corresponding function. Then, based on the function attribute data and runtime environment data, it is determined whether there is a target component in the component library that matches the target function. The component library includes at least one component. If not, a target component is created based on the function attribute data and runtime environment data. The target component includes function code that implements the target function. Next, the target function code value of the target function is obtained. The target function code value is used to indicate the target component. Finally, the application attribute data is updated based on the target function code value. After the update, the set of function code values in the application attribute data includes the target function code value. The functional components of an application can be constructed by the device version of the electronic device that supports the application's functions, the firmware version that supports the application's functions, and the functional attributes of the application's functions. This enables the application to dynamically load application functions, ensuring that the application can dynamically load configuration components at runtime without restarting or compiling. This improves the intelligence and convenience of the system in configuring applications. At the same time, it enables rapid iteration and updates of applications without interrupting application functions, thus enhancing the user experience.
[0154] It should be noted that the specific implementation of each operation can be described in the corresponding description of the method embodiments shown above. The application configuration device 700 can be used to execute the above method embodiments of this application, and will not be described again here.
[0155] VII. Other Examples
[0156] This application also provides a chip, including a processor, a memory, and a computer program or instructions stored in the memory, wherein the processor executes the computer program or instructions to implement the steps described in the above method embodiments.
[0157] This application also provides a chip module, including a transceiver component and a chip. The chip includes a processor, a memory, and a computer program or instructions stored in the memory, wherein the processor executes the computer program or instructions to implement the steps described in the above method embodiments.
[0158] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes an electronic device.
[0159] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may include an electronic device.
[0160] It should be noted that, for the sake of simplicity, the above embodiments are all described as a series of actions. Those skilled in the art should understand that this application is not limited to the described order of actions, as some steps in the embodiments of this application can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions, steps, modules, or units involved are not necessarily essential to the embodiments of this application.
[0161] In the above embodiments, the descriptions of each embodiment in this application have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0162] The steps of the methods or algorithms described in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in RAM, flash memory, ROM, EPROM, electrically erasable programmable read-only memory (EEPROM), registers, hard disk, portable hard disk, read-only optical disk (CD-ROM), or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside in an ASIC. Furthermore, the ASIC can reside in a terminal device or management device. Alternatively, the processor and storage medium can exist as discrete components in the terminal device or management device.
[0163] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in the embodiments of this application can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).
[0164] The modules / units included in the various devices and products described in the above embodiments can be software modules / units, hardware modules / units, or a combination of both. For example, for devices and products applied to or integrated into a chip, all modules / units can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs that run on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits. For devices and products applied to or integrated into a chip module, all modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units can be implemented using hardware methods such as circuits. The implementation is achieved through a software program that runs on a processor integrated within the chip module. The remaining modules / units (if any) can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into terminal equipment, each of their modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components within the terminal equipment. Alternatively, at least some modules / units can be implemented using a software program that runs on a processor integrated within the terminal equipment, while the remaining modules / units (if any) can be implemented using hardware methods such as circuits.
[0165] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the embodiments of this application. It should be understood that the above descriptions are merely specific embodiments of the embodiments of this application and are not intended to limit the protection scope of the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solutions of the embodiments of this application should be included within the protection scope of the embodiments of this application.
Claims
1. An application configuration method, characterized in that, The method includes: Obtain application attribute data of the target application, the application attribute data including a set of function code values of the target application, function attribute data of the target function of the target application, and runtime environment data, the runtime environment data including a first device version of the electronic device supporting the target function and a first firmware version of the firmware supporting the target function, the set of function code values including at least one function code value corresponding to at least one component; Based on the functional attribute data and the runtime environment data, it is determined whether there is a target component in the component library that matches the target function, and the component library includes the at least one component; If not, the target component is created based on the functional attribute data and the runtime environment data, and the target component includes functional code that implements the target function; Obtain the target function code value of the target function, which is used to call the target component; the target function includes a first-level function, a second-level function, and a third-level function, and the target function code value includes a first-level code value, a second-level code value, and a third-level code value. The first-level code value is used to indicate the first-level function, the second-level code value is used to indicate the second-level function, and the third-level code value is used to indicate the third-level function. The first-level function is the parent function of the second-level function, the second-level function is used to constrain the main object of the first-level function, and the third-level function is used to constrain at least one operation method for implementing the second-level function. The application attribute data is updated according to the target function code value, and the set of function code values in the updated application attribute data includes the target function code value. The step of obtaining the target function code value of the target function includes: The system opens a first entry point to the first user whose user level is equal to the first level; and obtains the first level code value input by the first user through the first entry point; the first entry point is used to define the first level code value. A second entry point is opened to a second user whose user level is higher than or equal to the second level; and, a second-level code value is obtained by the second user through the second entry point, wherein the second level is lower than the first level; the second entry point is used to define the second-level code value of the second-level function; A third entry point is opened to a third user whose user level is higher than or equal to the third level; and the third level code value input by the third user through the third entry point is obtained; the third level is lower than the second level, and the third entry point is used to define the third level code value of the third level function; The first level code value, the second level code value, and the third level code value are concatenated to obtain the target function code value; Bind the first device version and the first firmware version to the target function code value.
2. The method according to claim 1, characterized in that, The method further includes: If it is detected that the operating environment data has been updated, the updated operating environment data includes a second device version of an electronic device that does not support the target function and / or a second firmware version that does not support the target function; Determine that the second device version and / or the second firmware version are not bound to the target function.
3. The method according to claim 1, characterized in that, The method further includes: If the target function is detected to be in an abnormal state, the target function code value of the target function is set to an unavailable state.
4. An application configuration device, characterized in that, The apparatus includes units for implementing the method as described in any one of claims 1-3, the apparatus comprising: The first acquisition unit is used to acquire application attribute data of the target application. The application attribute data includes a set of function code values of the target application, function attribute data of the target function of the target application, and runtime environment data. The runtime environment data includes a first device version of the electronic device that supports the target function and a first firmware version of the firmware that supports the target function. The set of function code values includes at least one function code value corresponding to at least one component. The judgment unit is used to determine whether there is a target component in the component library that matches the target function based on the functional attribute data and the operating environment data, wherein the component library includes the at least one component; A component creation unit is used to create the target component based on the functional attribute data and the runtime environment data if no, and the target component includes functional code that implements the target function; The second acquisition unit is used to acquire the target function code value of the target function, and the target function code value is used to call the target component; An update unit is used to update the application attribute data according to the target function code value, wherein the set of function code values in the updated application attribute data includes the target function code value.
5. An electronic device, characterized in that, It includes a processor, a memory, and one or more programs, said one or more programs being stored in the memory and configured to be executed by the processor, said programs including instructions for performing the steps in the method as claimed in any one of claims 1-3.
6. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1-3.