[Get started quickly with UniAPP X] How to use UniAPPX to develop a native Android mall

What is UniAPPX

uni-app x, the next generation of uni-app, is a cross-platform application development engine.

uni-app x does not use js and webview, it is based on uts language. On the App side, UTS is compiled into Swift on iOS and Kotlin on Android, fully achieving the functions and performance of native applications.
More importantly, UniAPP >

DCloud has the resources to get Hongmeng’s APK-free phone launch plan as soon as possible. We are in close communication with Huawei and will keep the pace right, so don’t worry. You can observe a signal. When WeChat’s Hongmeng next version is finalized, Hongmeng’s APK-free mobile phone will have a clear launch plan. The development language of Hongmeng is arkTS, and uni-app x is uts, which are all variants of ts. It is reliable to compile uni-app x to Hongmeng.
It is unreliable to compile uni-app’s js into arkTS. Unless you program an h5 to run in Hongmeng’s webview, it is estimated that not many people will be able to accept this experience.

How to learn UniAPP X

1. Study official documents

The focus and difficulty here should be the UTS language. Because the UTS language needs to be compiled into the Kotlin language, it has strong type requirements. Students who know TypeScript will adapt faster, but students who are used to js may have difficulty getting started. You can refer to the official component library and easyX to learn more.

2. Learn UTS language

UTS language is a variant of TS. It is recommended to learn TS first. Even ArkTS used for Hongmeng native development is a variant of TS (the author has recently been developing Hongmeng native applications and can quickly get started with TS), which shows the importance of TS. To learn TS, you can refer to the following tutorials:
TypeScript Tutorial

After getting started with TS, you need to focus on the difference between UTS and TS.

  • UTS adds some new proprietary data types for Kotlin and Swift;
  • UTS has some special built-in objects and APIs

In fact, these differences are mainly for native development, but they are much simpler than getting started with Android and iOS native development directly.

3. Pay attention to the Vue specification of UniAPP X

The Vue specification of uni-app And some Vue3 APIs are not supported. If you encounter problems during the development process, you should check the differences highlighted in the official documentation
Vue implementation of UniAPP X

Development of native Android mall

The previous learning is to pave the way for everyone to make the development process smoother. In fact, easyX has encapsulated common e-commerce business components and has launched some templates. Even a novice can directly use easyX to develop a native mall. Let’s see the effect first
Insert image description here
The code on this page can be viewedGitee sample code. You can just copy and paste it directly.

Use easyX component library and template library

There are two ways to use easyX, one is to download the source code from Gitee, the other is to download the source code from the UniAPP plug-in market

After downloading the source code, unzip it, find the components directory, and copy all the contents in this directory to the components directory under your UniAPP X project to use.
eaxyX supports on-demand reference. For the specific use of each component, you can check the relevant easyX component documentation

Of course, you can also directly download the Android apk experience of Android easyX.

easyX demo package download and installation link

easyX is open source under the MIT license, and the component library and template library are still being expanded. It is a treasure trove for students who develop native mall applications. After UniAPPX supports Hongmeng, easyX will be used to develop the Hongmeng native mall. Think about it, it is an amazing development tool.

Application packaging

Android packaging requires a certificate. If you want to save trouble, just use Dcloud's public cloud certificate, which is a fool-proof operation. However, because some people abuse this certificate, many brands of mobile phones now report viruses, so it is still recommended to apply for the certificate yourself.
Free certificate application guide

Application online

If you want to put it on the application markets of Huawei, Xiaomi, Oppo, etc., you need software copyright and application registration. The application period for software copyright is relatively long, about 3 months, and application registration is much faster. Many service providers on the Internet provide these two services. You can also send me a private message. For corporate business, I can provide you with services at the lowest price in the market. For personal business, I can provide you with some free guidance and you can operate it yourself.

I am Liu Ming, a ten-year entrepreneurial veteran and an open source technology enthusiast.
If you have any questions, please send a private message.

Guess you like

Origin blog.csdn.net/weixin_42553583/article/details/134946106