Status Update
Comments
uc...@google.com <uc...@google.com>
ar...@google.com <ar...@google.com>
da...@google.com <da...@google.com> #2
Checked just in case this was doable and undocumented, but yes, the feature is missing:
Prefab pubishing has strict version requirements
FWIW, it's CMake that has strict requirements. We have to be compatible :(
da...@google.com <da...@google.com> #3
It looks like there isn't a good way to do this without a breaking change to the DSL. All children of the prefab
block are modules (and I don't think there's a way to special case a "version" child). We could add a new prefabPackageVersion
that is outside the prefab
block, but that clutters the DSL and make the build files less ergonomic (especially if we need to add more fields later). I think better is:
prefab {
version "1.0.0"
modules {
foo {
headers "src/main/cpp/include"
}
}
}
But like I said, it's a breaking change. arifs, what's the policy around those? Do I need to wait for a major version or something?
kr...@gmail.com <kr...@gmail.com> #4
Understood and agreed. Thank you for looking at this.
da...@google.com <da...@google.com> #5
FWIW once I can make a breaking change it looks like it's a very easy fix.
Description
Android Studio 4.1.2
Build #AI-201.8743.12.41.7042882, built on December 19, 2020
Runtime version: 1.8.0_242-release-1644-b3-6915495 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.7
GC: ParNew, ConcurrentMarkSweep
Memory: 4012M
Cores: 12
Registry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true
Non-Bundled Plugins: org.intellij.plugins.markdown, com.intellij.marketplace, org.jetbrains.kotlin, com.jetbrains.kmm
Prefab pubishing has strict version requirements, for which, incidently, an error is not shown until the prefab artifact is consumed (not when it's published). Our Android artifact versions are not compliant. It should be possible to override the version in the prefab configuration block.