Progaurd Rules android Hindi | Reduce app size, make app secure

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024
  • My Laptop For App Development - amzn.to/3PlIqVQ Progaurd Rules android Hindi | Reduce app size, make app secure #minify
    #Shrink, #obfuscate, and #optimize your app
    Support me with any amount you want to gift -
    razorpay.me/@a...
    To make your app as small as possible, you should enable shrinking in your release build to remove unused code and resources. When enabling shrinking, you also benefit from obfuscation, which shortens the names of your app’s classes and members, and optimization, which applies more aggressive strategies to further reduce the size of your app. This page describes how R8 performs these compile-time tasks for your project and how you can customize them.
    When you build your project using #Android Gradle plugin 3.4.0 or higher, the plugin no longer uses #ProGuard to perform compile-time code optimization. Instead, the plugin works with the R8 compiler to handle the following compile-time tasks:
    Code shrinking (or tree-shaking): detects and safely removes unused classes, fields, methods, and attributes from your app and its library dependencies (making it a valuable tool for working around the 64k reference limit). For example, if you use only a few APIs of a library dependency, shrinking can identify library code that your app is not using and remove only that code from your app. To learn more, go to the section about how to shrink your code.
    Resource shrinking:
    removes unused resources from your packaged app, including unused resources in your app’s library dependencies. It works in conjunction with code shrinking such that once unused code has been removed, any resources no longer referenced can be safely removed as well. To learn more, go to the section about how to shrink your resources.
    Obfuscation:
    shortens the name of classes and members, which results in reduced DEX file sizes. To learn more, go to the section about how to obfuscate your code.
    Optimization:
    inspects and rewrites your code to further reduce the size of your app’s DEX files. For example, if R8 detects that the else {} branch for a given if/else statement is never taken, R8 removes the code for the else {} branch. To learn more, go to the section about code optimization.
    Best Laptop For Android Studio And Programming -
    Asus VivoBook15 Best Performer SSD(under 45k) - amzn.to/37etNhY
    Asus VivoBook15 Best Budget(under 35k) - amzn.to/2ZdySTl
    Firebase Full Series Playlist -
    • Firebase Android In Hi...
    Contact me for any business related queries -
    Join Me On Skype - join.skype.com...
    Join Me On Instagram - / ankug6283
    Join me On Telegram - t.me/joinchat/...
    Thanku! - For any Paid work (Don't Ask me for free help) - Instagram - / ankug6283 Abhishek G

Комментарии • 39