Skip to content

Commit 633c193

Browse files
ptomatotriniwiz
andauthored
Gradle build improvements (#1780)
* chore: Upgrade Gradle wrappers to 7.6 The Gradle build in the root folder uses Gradle 7.4 while test-app uses Gradle 7.5. Upgrade both to use 7.6. I have not looked too much into the Gradle 8.x series but it appears there are a lot of features used that are deprecated in 8.x, so for now this just upgrades to the latest in the 7.x series. * chore: Upgrade Gradle plugin Android Studio complains about this every time the IDE is started, so we may as well do what it asks. However, we cannot update to 8.0.0 or later because that requires Gradle 8.0, so unfortunately we still have to live with the error message. * chore: Suppress unused parameter error messages in Kotlin tests Android Studio complains about these when performing a gradle sync. * chore: Move package namespace definitions into gradle files According to Android Studio's build log, defining the package namespace in AndroidManifest.xml is deprecated, and it should be done in build.gradle. * chore: Remove Jetifier Android Studio claims that Jetifier slows down the build, and that it is not used in this project. It may have been used previously to update un-updated external dependencies to use AndroidX, and that may not be necessary anymore. * chore: Replace JavaExec.main property with JavaExec.mainClass The main property is deprecated and should be replaced with mainClass which takes a Property<String> instance (created behind the scenes by using '=') instead of a string. * chore: keep jetifier enabled for now --------- Co-authored-by: Osei Fortune <fortune.osei@yahoo.com>
1 parent 4e58b6f commit 633c193

File tree

14 files changed

+429
-278
lines changed

14 files changed

+429
-278
lines changed

gradle/wrapper/gradle-wrapper.jar

5.91 KB
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Tue May 12 20:24:09 CEST 2020
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip

gradlew

Lines changed: 177 additions & 109 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)