您可以通过 Android Studio 将 android 应用作为 ARC 应用启动吗? [英] Can you launch an android app as an ARC app through Android studio?

查看:27
本文介绍了您可以通过 Android Studio 将 android 应用作为 ARC 应用启动吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有办法从 Android Studio 启动和/或构建 ARC 应用程序,而无需每次都手动使用 ARC 焊机.

I would like to know if there is a way to launch and/or build an ARC app from Android Studio without having to manually use ARC welder every time.

在开发期间手动执行此操作可能非常麻烦,尤其是在发布期间,您必须对同一应用的约 15 种不同风格执行相同操作.是否有任何工作可以解决此问题,例如 gradle 扩展或其他什么.

It can be pretty cumbersome to do this manually during development, and especially during a release when you have to do the same operation to ~15 different flavors of the same app. Is there anything in to works that solves this issue like a gradle extension or something.

推荐答案

截至撰写本文时,尚未提供官方的自动化 ARC 构建解决方案.这是弧焊机或胸围.

As of the time of this writing, no official automated ARC building solution has been offered. It's ARC Welder or bust.

话虽如此,由于 Chrome 扩展 (CRX) 具有开放规范,而且 CRX 的内容(作为 ZIP 文件)很容易检查,逆向工程 ARC Welder 的功能并创建 Gradle 插件或对于痒痒的人来说,抓挠这件事并不难.

That being said, since the Chrome extension (CRX) has an open specification, and since the contents of the CRX (as a ZIP file) are easy to examine, reverse-engineering what ARC Welder does and creating a Gradle plugin or something would not be that difficult for somebody with the itch to scratch.

当我检查它时,明显的变量位是 icon.png(启动器图标的 96x96 像素版本),vendor/chromium/crx/,以及 manifest.json 文件的 arc_metadata 部分.后者是您的 ARC Welder 设置所在,例如外形和方向.

When I examined it, the obvious variable bits were the icon.png (96x96 px edition of your launcher icon), the APK itself in vendor/chromium/crx/, and the arc_metadata portion of the manifest.json file. The latter is where your ARC Welder settings go, like the form factor and orientation.

当然,任何自制解决方案都需要跟踪对 ARC Welder 的更改,以确保它继续生成有效的 ARC 文件.

Of course, any homebrew solution would need to track changes to ARC Welder to ensure that it kept producing valid ARC files.

这篇关于您可以通过 Android Studio 将 android 应用作为 ARC 应用启动吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆