Skip to content

Commit

Permalink
* Check minimal apk for JRuby 1.6.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
donv committed Sep 24, 2012
1 parent 0a3459d commit 9b5723d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/minimal_app_test.rb
Expand Up @@ -13,6 +13,7 @@ def teardown
cleanup_app cleanup_app
end end


# APK was larger than 3.2MB: 3.3MB. JRuby: 1.6.7.2, ANDROID_TARGET: 10.
# APK was larger than 4.4MB: 4.7MB. JRuby: 1.7.0.preview2, ANDROID_TARGET: 10. # APK was larger than 4.4MB: 4.7MB. JRuby: 1.7.0.preview2, ANDROID_TARGET: 10.
# APK was larger than 3.2MB: 3.5MB. JRuby: 1.6.7, ANDROID_TARGET: 15. # APK was larger than 3.2MB: 3.5MB. JRuby: 1.6.7, ANDROID_TARGET: 15.
# APK was larger than 4.6MB: 4.9MB. JRuby: 1.7.0.preview2, ANDROID_TARGET: 15. # APK was larger than 4.6MB: 4.9MB. JRuby: 1.7.0.preview2, ANDROID_TARGET: 15.
Expand All @@ -21,6 +22,7 @@ def test_minimal_apk_is_less_than_3_mb
apk_size = BigDecimal(File.size("#{APP_DIR}/bin/RubotoTestApp-debug.apk").to_s) / (1024 * 1024) apk_size = BigDecimal(File.size("#{APP_DIR}/bin/RubotoTestApp-debug.apk").to_s) / (1024 * 1024)
upper_limit = { upper_limit = {
'1.6.7' => 3.5, '1.6.7' => 3.5,
'1.6.7.2' => 3.5,
'1.6.8' => 3.5, '1.6.8' => 3.5,
'1.7.0.preview1' => 4.6, '1.7.0.preview1' => 4.6,
'1.7.0.preview2' => ANDROID_TARGET < 15 ? 4.7 : 4.9, '1.7.0.preview2' => ANDROID_TARGET < 15 ? 4.7 : 4.9,
Expand Down

0 comments on commit 9b5723d

Please sign in to comment.