Check the availability of types against SDK version
List<interface>, interface[]: at least Tiramisu in Java
ParcelableHolder: at least 31
Build system uses "current" as default min_sdk_version for
aidl_interface modules.
Bug: 205070744
Test: aidl_unittests
Test: aidl_integration_test
Change-Id: I8f7e86c4f87a8fd64b6f5b995000b3e32d7328b0
diff --git a/options.h b/options.h
index a391332..2394395 100644
--- a/options.h
+++ b/options.h
@@ -19,6 +19,8 @@
#include <string>
#include <vector>
+#include <android-base/result.h>
+
#include "diagnostics.h"
namespace android {
@@ -211,6 +213,7 @@
};
std::string to_string(Options::Language language);
+android::base::Result<uint32_t> MinSdkVersionFromString(const std::string& str);
} // namespace aidl
} // namespace android