examples icon indicating copy to clipboard operation
examples copied to clipboard

Modernize Gradle Configuration, Dependencies, and Upgrade Gradle to 8…

Open jawad111 opened this issue 1 year ago • 2 comments

Modernize Gradle Configuration, Dependencies, and Upgrade to Gradle 8.1.4

This pull request resolves build issues and modernizes the project's build system by:

  • Upgrading Gradle to 8.1.4 and using the Kotlin DSL.
  • Updating compile and target SDK versions to 34.
  • Refreshing key dependencies, including AppCompat and Guava.
  • Improving JNI libraries configuration and packaging options.
  • Ensuring Kotlin Stdlib version consistency.

These changes enhance compatibility with the latest Android platform, improve build efficiency, and reduce the final APK size. They also leverage modern Gradle features for a more maintainable and optimized build process.

Considerations:

  • Verify compatibility with the updated dependencies.
  • Thoroughly test functionality across different devices.

Changes Made:

To be more specific, here's a summary of the changes:

  • Gradle: Updated to 8.1.4, enabling new features and Kotlin DSL usage.
  • SDK Versions: compileSdk and targetSdk are now 34 for latest Android support.
  • Dependencies: AppCompat, Guava, and support design library updated for better compatibility.
  • JNI Libraries: Improved configuration for proper packaging within the APK.
  • Kotlin: Resolution strategy ensures consistent Kotlin Stdlib versions.
  • Packaging: Optimized to reduce APK size and improve debug build efficiency.

jawad111 avatar Sep 30 '24 12:09 jawad111

could it be implemented to all code examples or only to superresolution ?

zoldaten avatar Oct 15 '24 13:10 zoldaten

could it be implemented to all code examples or only to superresolution ?

Perhaps. I have not tried it on other examples yet.

jawad111 avatar Oct 22 '24 08:10 jawad111