ArkUI-X代码下载
ArkUI-X介绍
方舟开发框架(简称:ArkUI),是一套构建OpenHarmony应用界面的UI开发框架,它提供了简洁自然的UI语法与包括UI组件、动画机制、事件交互等在内的UI开发基础设施,以满足应用开发者的可视化界面开发需求。
ArkUI-X,是扩展ArkUI开发框架到多个OS平台,让开发者基于一套主代码,构建出精美的多平台应用。
ArkUI-X主库地址:https://gitcode.com/arkui-x。
前提条件
-
注册GitCode帐号。
-
注册GitCode SSH公钥,请参考GitCode帮助中心。
-
git config --global user.name "yourname" git config --global user.email "your-email-address" git config --global credential.helper store -
安装GitCode repo工具,可以执行如下命令。
curl -s https://raw.gitcode.com/gitcode-dev/repo/raw/main/repo-py3 > /usr/local/bin/repo #若无权限,可下载至用户目录,并将其配置到环境变量中 chmod a+x /usr/local/bin/repo pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests
下载方法
-
ArkUI-X主干代码获取
方式一(推荐):通过repo + ssh下载(需注册公钥,请参考GitCode帮助中心)。
repo init -u git@gitcode.com:arkui-x/manifest.git -b master --no-repo-verify repo sync -c --no-tags -j12 repo forall -c 'git lfs pull'方式二:通过repo + https下载。
repo init -u https://gitcode.com/arkui-x/manifest.git -b master --no-repo-verify repo sync -c repo forall -c 'git lfs pull' -
ArkUI-X 1.0.0 Release分支代码获取
方式一(推荐):通过repo + ssh下载(需注册公钥,请参考GitCode帮助中心)。
从版本分支获取源码。可获取该版本分支的最新源码,包括版本发布后在该分支的合入。
repo init -u git@gitcode.com:arkui-x/manifest.git -b ArkUI-X-1.0.0-Release --no-repo-verify repo sync -c repo forall -c 'git lfs pull'从版本发布Tag节点获取源码。可获取与版本发布时完全一致的源码。
repo init -u git@gitcode.com:arkui-x/manifest.git -b refs/tags/ArkUI-X-v1.0.0-Release --no-repo-verify repo sync -c repo forall -c 'git lfs pull'方式二:通过repo + https下载。
从版本分支获取源码。可获取该版本分支的最新源码,包括版本发布后在该分支的合入。
repo init -u https://gitcode.com/arkui-x/manifest.git -b ArkUI-X-1.0.0-Release --no-repo-verify repo sync -c repo forall -c 'git lfs pull'从版本发布Tag节点获取源码。可获取与版本发布时完全一致的源码。
repo init -u https://gitcode.com/arkui-x/manifest.git -b refs/tags/ArkUI-X-v1.0.0-Release --no-repo-verify repo sync -c repo forall -c 'git lfs pull'