better detection of Android versions

This commit is contained in:
Laurent Sansonetti
2014-10-22 16:26:07 +02:00
parent 46a7b8b45f
commit 22b0c4dc4d

View File

@@ -39,8 +39,8 @@ ANDROID_NDK = File.join(ENV['HOME'], 'src/android-ndk-r10c')
ANDROID_API_VERSIONS =
if File.exist?(ANDROID_SDK)
Dir.glob(File.join(ANDROID_SDK, 'platforms/android-*')).map do |platform_dir|
platform_dir.scan(/android\-([0-9L]+)$/)[0][0]
end
platform_dir.scan(/android\-([0-9]+)$/)[0]
end.flatten.compact
else
[]
end