Add min_sdk_version property to apexes
Add a min_sdk_version property apexes. Currently a noop, but will
be used to enforce that dependencies are compatible with the
specified version.
Test: m checkbuild
Bug: 149591522
Merged-In: I923773c90fe15becbffae3986791aa9edde8f8f6
Change-Id: I923773c90fe15becbffae3986791aa9edde8f8f6
(cherry picked from commit 50317874ffbe4722dd75583672a32fc48e478a18)
diff --git a/apex/apex.go b/apex/apex.go
index cf47bac..ed7cb3f 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -1285,6 +1285,9 @@
// rules for making sure that the APEX is truely updatable. This will also disable the size optimizations
// like symlinking to the system libs. Default is false.
Updatable *bool
+
+ // The minimum SDK version that this apex must be compatible with.
+ Min_sdk_version *string
}
type apexTargetBundleProperties struct {