test/ruboto_gen_test.rb in ruboto-0.9.0 vs test/ruboto_gen_test.rb in ruboto-0.10.0.rc.0

- old
+ new

@@ -54,19 +54,19 @@ apk_size = BigDecimal(File.size("#{APP_DIR}/bin/RubotoTestApp-debug.apk").to_s) / 1024 version = " PLATFORM: #{RUBOTO_PLATFORM}" version << ", ANDROID_TARGET: #{ANDROID_TARGET}" if RUBOTO_PLATFORM == 'STANDALONE' upper_limit = { - '1.6.7' => ANDROID_TARGET < 15 ? 5800.0 : 5900.0, + '1.6.7' => 5900.0, + '1.6.8' => 5900.0, '1.7.0' => ANDROID_TARGET < 15 ? 7400.0 : 7600.0, '1.7.1.dev' => ANDROID_TARGET < 15 ? 7400.0 : 7600.0, }[JRUBY_JARS_VERSION.to_s] || 7600.0 version << ", JRuby: #{JRUBY_JARS_VERSION.to_s}" else upper_limit = { - 7 => 67.0, - 10 => 64.0, - 15 => 68.0, + 10 => 62.0, + 15 => 63.0, }[ANDROID_TARGET] || 64.0 end lower_limit = upper_limit * 0.9 assert apk_size <= upper_limit, "APK was larger than #{'%.1f' % upper_limit}KB: #{'%.1f' % apk_size.ceil(1)}KB.#{version}" assert apk_size >= lower_limit, "APK was smaller than #{'%.1f' % lower_limit}KB: #{'%.1f' % apk_size.floor(1)}KB. You should lower the limit.#{version}"