Skip to content

Upgraded gradle version, fixed what deprecated gradle settings could be fixed - #318

Open
brianjcoan wants to merge 3 commits into
5calls:mainfrom
brianjcoan:gradle_upgrade
Open

Upgraded gradle version, fixed what deprecated gradle settings could be fixed#318
brianjcoan wants to merge 3 commits into
5calls:mainfrom
brianjcoan:gradle_upgrade

Conversation

@brianjcoan

Copy link
Copy Markdown
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization

Description

Gradle was out of date, and reporting deprecated methods, see attached.
Still reports one deprecation issue:
WARNING: The option setting 'android.enableJetifier=true' is deprecated. The current default is 'false'. It will be removed in version 10.0 of the Android Gradle plugin.
However can't fix this one because
The following libraries used by project ':app' depend on legacy support libraries. To disable Jetifier, you will need to use AndroidX-supported versions of these libraries. com.jjoe64:graphview:4.2.2 (Project ':app', configuration 'debugAndroidTestCompileClasspath' -> com.jjoe64:graphview:4.2.2 -> com.android.support:support-v4:27.1.1)

Related Issues

Were the changes tested?

  • Yes, automated tests in all
  • Yes, manually tested: started up the app, hit the "home" link
  • No, and this is why: please replace this line with details on why tests
    have not been included
  • I need help with writing tests

5Calls_gradle.txt

@dektar

dektar commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

The following libraries used by project ':app' depend on legacy support libraries. To disable Jetifier, you will need to use AndroidX-supported versions of these libraries. com.jjoe64:graphview:4.2.2 (Project ':app', configuration 'debugAndroidTestCompileClasspath' -> com.jjoe64:graphview:4.2.2 -> com.android.support:support-v4:27.1.1)

I believe Graphview is used in the stats activity to show historical calls. Does this change break that graph?

Comment thread 5calls/app/build.gradle Outdated
testOptions {
unitTests {
includeAndroidResources = true
returnDefaultValues = true

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this doesn't seem related to the commit message about updating the gradle version. maybe do separately?

distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what do lines 4 and 5 do?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I used the Android Studio gradle upgrade tool, it made these changes.
validateDistributionUrl is a Gradle Wrapper property and task configuration that checks if the specified Gradle distribution URL is valid and reachable before writing it to the properties file.
The networkTimeout property specifies how many milliseconds Gradle will wait during network operations before timing out. It primarily controls the limit when downloading the Gradle wrapper JAR and distribution ZIP files.
Both of the values are the defaults, so I'm guessing not really necessary,
probably the tool bringing one's attention to the new properties.

@brianjcoan

Copy link
Copy Markdown
Contributor Author

I believe Graphview is used in the stats activity to show historical calls. Does this change break that graph?

This PR change doesn't break this, my comment is that I did NOT get rid of the
deprecated option setting 'android.enableJetifier=true' because graphview still depends on it.
That will be a problem if/when upgrading to gradle 10

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.

2 participants