Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweeping update of gradle and dependency versions. #1858

Merged
merged 13 commits into from
Sep 11, 2018

Conversation

dbrant
Copy link
Collaborator

@dbrant dbrant commented Aug 26, 2018

This updates all of the dependencies of the project to their latest versions. Everyone should please upgrade to the latest version of Android Studio, update your build tools, and keep your version of Gradle and the Kotlin plugin up to date.

This updates all of the dependencies of the project to their latest
versions. Everyone should please upgrade to the latest version of Android
Studio, update your build tools, and keep your version of Gradle and the
Kotlin plugin up to date.
@commons-app commons-app deleted a comment Aug 28, 2018
.travis.yml Outdated
script:
- ./gradlew clean check connectedCheck jacocoTestReport
Copy link
Collaborator

@whym whym Aug 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this change removes connected tests (tests under app/src/androitTests) and code coverage checks from Travis build scripts. Why do they have to go?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@whym whoops, I've put this back in the subsequent commits. I think I must have removed this while getting stuff working locally.

@misaochan
Copy link
Member

Note to the person testing this: Please make sure that you give the app a thorough overall test on the ProdRelease build variant, as we have had issues with library and gradle updates causing issues in Release builds that wasn't apparent on Debug builds.

@codecov-io
Copy link

codecov-io commented Aug 29, 2018

Codecov Report

Merging #1858 into master will increase coverage by <.01%.
The diff coverage is 30%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1858      +/-   ##
=========================================
+ Coverage    3.69%    3.7%   +<.01%     
=========================================
  Files         191     191              
  Lines        9876    9882       +6     
  Branches      885     885              
=========================================
+ Hits          365     366       +1     
- Misses       9484    9489       +5     
  Partials       27      27
Impacted Files Coverage Δ
...a/fr/free/nrw/commons/nearby/NearbyController.java 0% <0%> (ø) ⬆️
...n/java/fr/free/nrw/commons/CommonsApplication.java 29.03% <60%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8451e82...9d884a4. Read the comment docs.

@commons-app commons-app deleted a comment Aug 29, 2018
Copy link
Collaborator

@neslihanturan neslihanturan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me.

@whym
Copy link
Collaborator

whym commented Sep 7, 2018

This has now conflicts to be resolved. @dbrant per 2884bd9 I assume we want to get rid of multidex, right?

translatewiki and others added 4 commits September 9, 2018 16:10
String literals are being used in many places in the code, instead of
proper string resources which are automatically localized. This PR
replaces many of the string literals with pre-packaged resources, or will
add the appropriate string if necessary.
…p#1849)

* Add button on image details to copy wikicode to clipboard

* Make copy wikicode button width the same as the nominate deletion button width by filling in background
@commons-app commons-app deleted a comment Sep 9, 2018
@dbrant
Copy link
Collaborator Author

dbrant commented Sep 9, 2018

It looks like something is pushing the app beyond the dex limit again...

This enables ProGuard minification, which significantly shrinks the APK
(for both debug and release configurations) and vastly decreases the
method count.
@commons-app commons-app deleted a comment Sep 9, 2018
@commons-app commons-app deleted a comment Sep 9, 2018
@dbrant
Copy link
Collaborator Author

dbrant commented Sep 9, 2018

Ready! Note to reviewers: this will now introduce Proguard (for minifying only, not obfuscating) for all builds, including debug, release, and test. This should not have any adverse effects, but there might be an infinitesimal possibility of compile-time or runtime errors if something goes wrong in one or more dependencies.

Note that this also greatly reduces your method count, which will now be a healthy ~45000, allowing you to add dozens more custom libraries if you like 😉.

@misaochan
Copy link
Member

misaochan commented Sep 10, 2018

Thanks for fixing the conflicts, @dbrant !

AFAIK, we disabled Proguard minify due to this issue: https://stackoverflow.com/questions/40232404/google-play-apk-and-android-studio-apk-usb-debug-behaving-differently . Basically, location-based category suggestions were not working on Release builds when we had minify enabled. However, that code has been refactored significantly since then, so I'm all good with having minify back, as long as location-based category suggestions are tested successfully on a Release build variant. :)

@neslihanturan do you think you could do this? Build a prodRelease build, upload a geotagged image for a well-known location, and see if appropriate category suggestions are given?

@neslihanturan
Copy link
Collaborator

@dbrant thank you! Category suggestion works on prodRelease, so I merge this PR.

@neslihanturan neslihanturan merged commit fc30f1b into commons-app:master Sep 11, 2018
@dbrant dbrant deleted the lib_update branch September 12, 2018 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants