1. 11 10月, 2017 4 次提交
    • S
      Add @RawRes to load(Integer) in RequestBuilder. · cd8e49c1
      Sam Judd 提交于
      It’s perfectly possible to load a valid image or video frame from raw resources as well as drawables resources.
      cd8e49c1
    • S
      Remove unused constant in Downsampler. · f2f9081c
      Sam Judd 提交于
      f2f9081c
    • J
      Support multiple, ordered, nullable thumbnail requests. · bc1b25ef
      judds 提交于
      I've basically just added a helper method that calls thumbnail()
      recursively for you. It seems like it eliminates some of the especially
      confusing nested thumbnail logic.
      
      Unfortunately it requires @SuppressWarnings("unchecked") whever it's
      used because it uses varags with a parameterized type (RequestBuilder).
      I can't currently use @SafeVarargs because that requires a final method.
      I can't make the method final without preventing mocking in tests
      (minor) and breaking the generated API (major). By splitting out a
      separate base class for RequestBuilder I actually probably can fix this
      in the future, but that's a pretty substantial change that I don't want
      to make right now.
      
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=171694145
      bc1b25ef
    • J
      Fix integer overflow bug in Downsampler when asked to upscale images. · c7383b2e
      judds 提交于
      This should also be a slight accuracy improvement since we're now using
      a somewhat more efficient density multiplier in some cases, especially
      when downsampling.
      
      Fixes #2459.
      
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=171601510
      c7383b2e
  2. 10 10月, 2017 6 次提交
  3. 08 10月, 2017 1 次提交
    • S
      Avoid including default source sets in repackaged compiler jar. · 7c09fc19
      Sam Judd 提交于
      Unless you override the jar task completely, any files you specified are
      added to the original files, not replaced. To make matters worse, gradle
      does not fail jar tasks when duplicate classes are added by default.
      
      We’ve fixed the immediate issue with compiler’s jar file by excluding classes that do not originate from our repackaged/proguarded jar to 
      avoid duplicate class files.We’ve hopefully also prevented future occurrences by forcing all jar tasks in the project to fail by default 
      if duplicate classes are added.
      
      Fixes #2452.
      7c09fc19
  4. 07 10月, 2017 3 次提交
  5. 06 10月, 2017 3 次提交
  6. 05 10月, 2017 4 次提交
    • S
      Add @CheckResult to RequestManager methods. · 28e461ec
      Sam Judd 提交于
      28e461ec
    • R
      Add @CheckResult to intermediate builder methods · 739cb35b
      Robert Papp 提交于
      739cb35b
    • A
    • R
      Build improvements (#2426) · d96a1e78
      Róbert Papp 提交于
      * Update Gradle version to latest
      
      * Fix typo in dependency name (Gradle was resolving support-annotations:{26})
      
      * Bump Android Gradle Plugin version to latest stable
      
      * Remove deprecation warning during compile.
      (@SuppressWarnings("deprecation") has no effect on imports)
      
      * Force LF as the line separator to make sure checkstyle is runnable on Windows
      
      * Constrain deprecation of GlideModule to a single method (suppresses javac warning)
      
      * Make sure compiledJar's output is unique.
      archivePath was the same as jar's archivePath, which triggered a rebuild and re-proguard every time, even on incremental builds.
      
      * Move quality tool initializations near the tasks
      Extract version constant for PMD
      
      * Minor gradle improvements: warnings, Java compatiblity
      
      * Extract test JVM memory size to gradle.properties
      
      * Enable auto-completion in IDEA by using tasks.create instead of task shorthand
      
      * Reduce amount of hard-coded paths
      
      * Reduce amount of missing files when running findbugs
      
      * Add missing test for setMemoryCategory return value
      
      * Simplify JavaDoc classpath calculation
      
      * Change JavaDoc {@link}s to {@code} as they're not linkable.
      This reduces the noise during build.
      
      * Fix invalid missing references in JavaDoc.
      The equals/hashCode method doesn't exist in the classes, so need to reference the super-class.
      
      * Fix checkstyle, javadoc alignment, typo and codify class-name-like concepts.
      d96a1e78
  7. 04 10月, 2017 2 次提交
  8. 03 10月, 2017 5 次提交
  9. 27 9月, 2017 1 次提交
  10. 26 9月, 2017 8 次提交
  11. 25 9月, 2017 1 次提交
    • R
      Use Dagger 2.11 in imgur sample (#2425) · 7457b9d8
      Róbert Papp 提交于
      * Remove unneeded excludes from imgur sample
      jsr305 is repackaged, so there won't be a conflict on annotationProcessor classpath
      
      * Increment Dagger version to 2.11
      There are breaking API changes (renames) and use the new API to reduce custom code.
      
      * Further simplify injection by using the Dagger library components
      7457b9d8
  12. 22 9月, 2017 2 次提交