platform_build_soong/sdk
Paul Duffin bb638eba50 Output min_sdk_version to snapshot
The min_sdk_version was added to the java_import in Tiramisu. This
change will propagate the min_sdk_version set on a java_library to the
java_import snapshot. If possible the min_sdk_version will be resolved
into a numerical version to ensure consistent behavior across build
releases.

Bug: 260560424
Test: m nothing
      BUILD_NUMBER=fixed packages/modules/common/build/mainline_modules_sdks.sh
      # Ran above before and after this change and made sure that only
      # Tiramisu, UpsideDownCake and latest were changed and those changes
      # were the addition of a min_sdk_version property.
      #
      # Ran the following command in tm-mainline-prod:
      #     lunch cf_x86_64_phone-userdebug
      #     m ART_MODULE_BUILD_FROM_SOURCE=false nothing`.
      #
      # It failed with:
      #     module "prebuilt_okhttp-norepackage" variant "android_common": should support min_sdk_version(33) for "AdServicesApk": min_sdk_version is not specified.
      #
      # Unpacked the Tiramisu art snapshot generated with this change into
      # tm-mainline-prod and reran the previous command and it succeeded.
Change-Id: I9d9d730845554fc175d17f38c038e4e3c7d39e07
2022-11-26 15:52:32 +00:00
..
Android.bp Support handling build releases in sdk snapshot 2021-10-01 17:17:34 +01:00
bootclasspath_fragment_sdk_test.go Output min_sdk_version to snapshot 2022-11-26 15:52:32 +00:00
bp.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
bp_test.go Replace AssertPanic with AssertPanicMessageContains 2021-03-20 12:08:51 +00:00
build_release.go Add UpsideDownCake to the releases for which snapshots can be built 2022-09-30 09:41:08 +01:00
build_release_test.go Add UpsideDownCake to the releases for which snapshots can be built 2022-09-30 09:41:08 +01:00
cc_sdk_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
compat_config_sdk_test.go Export any platform_compat_config used by apex to sdk snapshot 2022-07-20 14:18:24 +00:00
exports.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
exports_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
java_sdk_test.go Output min_sdk_version to snapshot 2022-11-26 15:52:32 +00:00
license_sdk_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
member_trait.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
member_trait_test.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
member_type.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
sdk.go Remove support for generating versioned snapshots 2022-05-24 20:10:05 +00:00
sdk_test.go Remove support for unused env vars from sdk snapshot generation 2022-11-14 17:45:07 +00:00
systemserverclasspath_fragment_sdk_test.go Output min_sdk_version to snapshot 2022-11-26 15:52:32 +00:00
testing.go Add current build release 2022-08-19 17:39:49 +00:00
update.go Merge "Remove support for unused env vars from sdk snapshot generation" 2022-11-22 15:56:04 +00:00