diff --git a/.gitattributes b/.gitattributes index 915d1ed51d121f1986c9dfe71cf1745c1a11286d..7d94e0961337f83b1b3f764a7e123a0a999561f8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ # Dart sources have to be normalized so that source offsets in kernel files # with source embedded in them match across all platforms. -*.dart text eol=lf \ No newline at end of file +*.dart text eol=lf +*.patch* text eol=lf \ No newline at end of file diff --git a/OAT.xml b/OAT.xml index 2e84930cccbbb65d5ed5a9f8d5aecb683bc7519b..d1c59fbe8b2e35818aaa218487c0109c32300fcf 100644 --- a/OAT.xml +++ b/OAT.xml @@ -142,9 +142,11 @@ used to filter file path. + + diff --git a/README.en.md b/README.en.md index 1b57e89b92d73492261975d2ceeef0cfe3262632..571606e841ab216d0059f77bddcd84949b22a9d6 100644 --- a/README.en.md +++ b/README.en.md @@ -52,10 +52,14 @@ This warehouse is based on the extension of Flutter's official engine warehouse 3. Synchronize code: In the engine directory, execute `gclient sync`; here the engine source code, official packages repository will be synchronized, and the ohos_setup task will be executed; -4. Download sdk: Download ohos-sdk-full in [the daily build](http://ci.openharmony.cn/workbench/cicd/dailybuild/dailylist), configure the following environment variables: +4. Download sdk: From [HarmonyOS Kit List]( https://developer.harmonyos.com/deveco-developer-suite/enabling/kit?currentPage=1&pageSize=100 )Download supporting development tools, currently not supporting packages downloaded from other channels ```sh -export OHOS_SDK_HOME= +#HarmonyOS SDK, extract the directory after sdk/xxSDK.zip from the development kit package +export HOS_SDK_HOME=/home//ohos/sdk + +#Unzip the bin subdirectory after commandline/commandline tools xxxx.zip in the development kit package +export PATH=$PATH:/home//ohos/command-line-tools/bin ``` 5. Start building: In the engine directory, execute `./ohos` to start building the flutter engine that supports ohos devices. @@ -64,13 +68,24 @@ export OHOS_SDK_HOME= ## FAQ: 1. When running the project, an error of Member notfound:'isOhos' is reported: Please ensure that all dart patches are applied in the src/third_party/dart directory (the patches are located in the src/flutter/attachment/repos directory, and you can use git apply to apply the patch). Recompile the engine after patching - + 2. Prompt Permission denied: Execute chmod +x