updatable_modules.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (C) 2022 The Android Open Source Project
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package android
  15. // This file contains branch specific constants for building updatable modules.
  16. // They are stored in a separate file to minimise the potential of merge
  17. // conflicts between branches when the code from the package is changed.
  18. // The default manifest version for all the modules on this branch.
  19. // This version code will be used only if there is no version field in the
  20. // module's apex_manifest.json. Release branches have their version injected
  21. // into apex_manifest.json by the tooling and will not use the version set
  22. // here. Developers can also set the version field locally in the
  23. // apex_manifest.json to build a module with a specific version.
  24. //
  25. // The value follows the schema from go/mainline-version-codes, and is chosen
  26. // based on the branch such that the builds from testing and development
  27. // branches will have a version higher than the prebuilts.
  28. // Versions per branch:
  29. // * x-dev - xx0090000 (where xx is the branch SDK level)
  30. // * AOSP - xx9990000
  31. // * x-mainline-prod - xx9990000
  32. // * master - 990090000
  33. const DefaultUpdatableModuleVersion = "339990000"