- vector<string> platforms = list_filtered(platforms_dir, "^android-[1-9][0-9]*$");
-
- for(vector<string>::const_iterator i=platforms.begin(); i!=platforms.end(); ++i)
- supported_api_levels.insert(lexical_cast<unsigned>(i->substr(8)));
+ supported_api_levels = 0;
+ for(const string &p: list_filtered(platforms_dir, "^android-[1-9][0-9]*$"))
+ {
+ unsigned api = lexical_cast<unsigned>(p.substr(8));
+ if(api>63)
+ builder.get_logger().log("problems", format("API level %d is too high", api));
+ else
+ supported_api_levels |= 1<<api;
+ }