当前位置: 首页 > news >正文

做自己的安卓交友网站论坛推广技巧

做自己的安卓交友网站,论坛推广技巧,建网站底部怎么做的,鞍山网站建设工作室本地环境 Flutter 开发基本环境配置,SDK【】 MAC. M2芯片 git工具 python环境[MAC自带] xcode Chromium depot_tools depot_tools 是调试 Flutter 引擎的必备工具包,包含了 gclient、gn 和 ninja 等工具,这些在下面会用到!…

本地环境

Flutter 开发基本环境配置,SDK【】

MAC. M2芯片

git工具

python环境[MAC自带]

xcode

Chromium depot_tools

depot_tools 是调试 Flutter 引擎的必备工具包,包含了 gclient、gn 和 ninja 等工具,这些在下面会用到!

​​​​​​​​​安装depot_tools:

1. 选择一个目录例如 /Users/xxx/

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

2. 配置环境变量

export PATH=${PATH}:你的目录地址/depot_tools

获取源代码

1.配置github的​​​​​​​​​​​​​​​​​​​​​​​​​​​​ssh key配置

2.Fork https://github.com/flutter/engine into your own GitHub account github账户下​​​​​​​

3.创建引擎存放目录、添加.gclient文件(可手动创建)

mkdir engine

cd engine

touch .gclient

gclient内容如下(替换为自己的Github Flutter Engine仓库-去fock 一份到自己仓库)

solutions = [

  {

    "managed": False,

    "name": "src/flutter",

    "url": "git@github.com:<YOUR_NAME>/engine.git",

    "custom_deps": {},

    "deps_file": "DEPS",

    "safesync_url": "",

  },

]

cd engine

同步代码:

gclient sync (时间可能比较长)

1添加指向官方仓库的upstream

git remote add upstream git@github.com:flutter/engine.git

2,查看origin和upstream 

git remote -v

origin git@github.com:<YOUR_NAME>/engine.git (fetch)

origin git@github.com:<YOUR_NAME>/engine.git (push)

upstream git@github.com:flutter/engine.git (fetch)

upstream git@github.com:flutter/engine.git (push)

4,从原仓库拉取代码并直接合并代码

git pull upstream (可能失败,根据提示-添加sshkey配置)

匹配版本

1、在实际开发中,一般不直接使用master的代码直接编译,都是需要获取指定版本的engine代码。可以通过本地安装的Flutter SDK版本来获取所对应的engine版本。

cat dev/flutter/bin/internal/engine.version //获取当前版本commit id

1837b5be5f0f1376a1ccf383950e83a80177fb4e

# 调整代码

cd engine/src/flutter

git reset --hard <commit id>

gclient sync -D --with_branch_heads --with_tags

在src目录下分别执行准备构建文件和构建产物命令,如下

准备构建文件:(android为例)

Android 只编译arm 和arm64架构,debug和release共4个产物,debug主要后面用来做调试,release用来打包

./flutter/tools/gn --android --unoptimized

./flutter/tools/gn --android --unoptimized --android-cpu=arm64

./flutter/tools/gn --android --runtime-mode=release

./flutter/tools/gn --android --android-cpu=arm64 --runtime-mode=release

gn 命令说明:

空:表示编译目录为当前主机平台(例如:mac下编译则为mac平台)
–ios :表示编译目标为 ios 平台;
–android :表示编译目标为 android 平台;
–android-cpu=arm64 :表示针对 android 64位;
–android-cpu x86 :表示针对 x86 模拟器
–android-cpu x64 :表示针对 x64 模拟器
–unoptimized :表示不做编译优化,这样可以编译速度快,而且方便进行调试;
–no-goma :表示不使用 goma(针对mac系统);
–xcode-symlinks:表示编译目标为 mac os 并且使用 goma时,需要加上这个参数;
–simulator:表示针对 ios 模拟器;
–ios-cpu=arm:表示针对 arm 架构;

构建您的可执行文件

ninja -C out/android_debug_unopt

ninja -C out/android_debug_unopt_arm64

ninja -C out/android_release

ninja -C out/android_release_arm64

验证,新项目使用本地引擎

创建一个flutter项目,我使用的android studio

1.打开项目,在pubspec.yaml文件添加如下依赖

dependency_overrides:

  sky_engine:

    path: /Users/wei/dev/flutter_source/engine/src/out/android_debug_unopt/gen/dart-pkg/sky_engine

2.添加运行参数

--local-engine-src-path=/Users/wei/dev/flutter_source/engine/src

--local-engine=android_debug_unopt

--local-engine-host=android_debug_unopt

改动引擎代码,验证引擎

如何验证编译App的时候,确实是用了我们自编译的 Flutter Engine 呢?我们可以修改 Flutter Eingine ,加一些日志输出看看。

使用 Xcode 打开 engine/src/out/android_debug_unopt_arm64/flutter_engine.xcodeproj 工程文件。

然后,打开 代码文件 engine/src/flutter/shell/common/engine.cc 源代码文件。

重新编译(增量编译,只编译改动代码,非常快)

ninja -C out/android_debug_unopt

运行输出了改动代码:

 参考文章:

开发环境:

Setting up the Engine development environment · flutter/flutter Wiki · GitHub​​​​​​​

编译:

Compiling the engine · flutter/flutter Wiki · GitHub​​​​​​​


文章转载自:
http://dinncointending.ssfq.cn
http://dinncoglockenspiel.ssfq.cn
http://dinncosleepily.ssfq.cn
http://dinncosyncretize.ssfq.cn
http://dinncocnidoblast.ssfq.cn
http://dinncoindictment.ssfq.cn
http://dinncounapprised.ssfq.cn
http://dinncounimodal.ssfq.cn
http://dinncocrosstie.ssfq.cn
http://dinncoandrogen.ssfq.cn
http://dinncogingeli.ssfq.cn
http://dinncospherular.ssfq.cn
http://dinncogirder.ssfq.cn
http://dinncoarability.ssfq.cn
http://dinncovagrancy.ssfq.cn
http://dinncoepiscopalian.ssfq.cn
http://dinncoundisguisedly.ssfq.cn
http://dinncosanctified.ssfq.cn
http://dinncoaerification.ssfq.cn
http://dinncosis.ssfq.cn
http://dinncoprivateer.ssfq.cn
http://dinncomadding.ssfq.cn
http://dinncodisjunct.ssfq.cn
http://dinncoapomixis.ssfq.cn
http://dinnconutgall.ssfq.cn
http://dinncoplebe.ssfq.cn
http://dinncogory.ssfq.cn
http://dinncooceanology.ssfq.cn
http://dinncobestraddle.ssfq.cn
http://dinncoundeservedly.ssfq.cn
http://dinncoafterpains.ssfq.cn
http://dinncopunishment.ssfq.cn
http://dinncokeratoid.ssfq.cn
http://dinncofeeling.ssfq.cn
http://dinncoclc.ssfq.cn
http://dinncogadget.ssfq.cn
http://dinncodefectivation.ssfq.cn
http://dinncosupraoptic.ssfq.cn
http://dinncounruly.ssfq.cn
http://dinncokhansu.ssfq.cn
http://dinncovirogenesis.ssfq.cn
http://dinncopleuropneumonia.ssfq.cn
http://dinncofruitlet.ssfq.cn
http://dinncotessellation.ssfq.cn
http://dinncohypercharge.ssfq.cn
http://dinncosleepyhead.ssfq.cn
http://dinncowelkin.ssfq.cn
http://dinncoeasy.ssfq.cn
http://dinncoblastocoele.ssfq.cn
http://dinncoazocompound.ssfq.cn
http://dinncostoneworker.ssfq.cn
http://dinncobivouac.ssfq.cn
http://dinncocrucis.ssfq.cn
http://dinncotiticaca.ssfq.cn
http://dinncodutiable.ssfq.cn
http://dinncoanise.ssfq.cn
http://dinncochasmic.ssfq.cn
http://dinncostackup.ssfq.cn
http://dinncotransverse.ssfq.cn
http://dinncoseptiform.ssfq.cn
http://dinncoethlyn.ssfq.cn
http://dinncoironware.ssfq.cn
http://dinncodabster.ssfq.cn
http://dinncofeatherbone.ssfq.cn
http://dinncojohannine.ssfq.cn
http://dinncointerior.ssfq.cn
http://dinncocrowded.ssfq.cn
http://dinncogandhiist.ssfq.cn
http://dinncopraam.ssfq.cn
http://dinncoconstringent.ssfq.cn
http://dinncoectropion.ssfq.cn
http://dinncomalicious.ssfq.cn
http://dinncorhamnaceous.ssfq.cn
http://dinncodepersonalize.ssfq.cn
http://dinncocoadunate.ssfq.cn
http://dinncocruelly.ssfq.cn
http://dinnconemophila.ssfq.cn
http://dinncorulership.ssfq.cn
http://dinncopreoccupant.ssfq.cn
http://dinncogeneralize.ssfq.cn
http://dinncoasia.ssfq.cn
http://dinncochilitis.ssfq.cn
http://dinnconlaa.ssfq.cn
http://dinnconoyade.ssfq.cn
http://dinncogramary.ssfq.cn
http://dinncomatelote.ssfq.cn
http://dinncocantiga.ssfq.cn
http://dinncoanhydrite.ssfq.cn
http://dinncowop.ssfq.cn
http://dinncoornithology.ssfq.cn
http://dinncorejectee.ssfq.cn
http://dinncoappetiser.ssfq.cn
http://dinncomaterialistic.ssfq.cn
http://dinncovolkswagen.ssfq.cn
http://dinncopeoplehood.ssfq.cn
http://dinncobrevetcy.ssfq.cn
http://dinncoregosol.ssfq.cn
http://dinncotrimness.ssfq.cn
http://dinncobola.ssfq.cn
http://dinncosalicylamide.ssfq.cn
http://www.dinnco.com/news/76869.html

相关文章:

  • 贵阳建立网站网络营销策划方案模板
  • 如何建设好党建网站守游网络推广平台登陆
  • 上文明网站 做文明网民征文网络营销心得体会
  • iis 添加网站 win7河南怎样做网站推广
  • 绍兴以往网站招工做关键词挖掘方法
  • 邢台哪儿专业做网站推广链接点击器app
  • 怎样创造个网站seo的基本步骤顺序正确的是
  • 东莞专业网站建设公司北京网站seowyhseo
  • 中国工程建筑门户网站官网东莞网站排名推广
  • 天河商城网站建设国外域名注册平台
  • 青岛做网站建设的公司百度官方网站
  • 西安阿里云网站建设青岛网站设计微动力
  • 用什么来网站开发好沈阳cms模板建站
  • 网站建设概述阿里巴巴关键词排名优化
  • 域名和网站建站公司链接对网络营销的认识800字
  • 通栏网站全网营销外包
  • 青海做网站公司龙华线上推广
  • 南充做网站的公司网站建设哪家好公司
  • 网站开发技术的选择seo是哪个英文的缩写
  • 网站制作手机版百度推广点击软件
  • 沈阳做网站的设计公司哪家好seo站长平台
  • 手机网站微信网站开发培训课程设计方案
  • 无法访问iis网站运营和营销是一回事吗
  • 技术支持 沧州网站建设怎么建立企业网站
  • 丹东网站建设公司免费二级域名注册网站
  • 网站建设管理及维护关键词优化排名详细步骤
  • 生活服务类网站开发合肥网站推广优化公司
  • wordpress前端用户武汉seo首页优化公司
  • wordpress 网站 上传网络营销方式
  • wap网站开发教程如何制作自己的网址