我正在开发一个包含sbt插件的库.当然,我正在使用sbt来构建这个(多项目)库.我的(简化)项目如下:
myProject/ # Top level of library
-> models # One project in the multi-project sbt build.
-> src/main/scala/... # Defines common models for both sbt-plugin and framework
-> sbt-plugin # The sbt plugin build
-> src/main/scala/...
-> framework # The framework. Ideally, the sbt plugin is run as part of
-> src/main/scala/... # compiling this directory.
-> project/ # Multi-project build configuration
Run Code Online (Sandbox Code Playgroud)
有没有办法让myProject/sbt-plugin中定义的sbt-plugin在统一版本中挂钩到myProject/framework的构建中?
注意:类似(但更简单)的问题:如何使用使用它的项目在多项目构建中开发sbt插件?
在Android中,如何将Bitmap对象转换为android.media.image对象?我的代码是:
Bitmap frame;
ByteArrayOutputStream stream = new ByteArrayOutputStream();
frame.compress(Bitmap.CompressFormat.JPEG, 100, stream);
byte[] byteArray = stream.toByteArray();
Run Code Online (Sandbox Code Playgroud)
如何在android.media.image中写入bytearray?
谢谢,