Do not throw exception when the Android Gradle Plugin version cannot be identified.
The method that ResChiper uses to detect the Android Gradle Plugin version does not work properly when using the plugins block instead of buildscript. Despite this, the plugin is still able to obfuscate AABs properly. This pull request removes the thrown exception and instead will just list that the Android Gradle Plugin version could not be detected. Here is an example of what the output looks like:
ResChiper Plugin Configuration:
----------------------------------------
- ResChiper version: 0.1.0-rc6
- BundleTool version: 1.17.2
- AGP version: 8.8.0
- Gradle Wrapper: 8.8
----------------------------------------
App Build Information:
----------------------------------------
- Project name: ResChiperTestProject
- AGP version: Failed to get AGP version
- Running Gradle version: 8.11.1
----------------------------------------
Although this is not a proper fix for showing the plugin version, it is a suitable workaround to get the plugin working until a more proper fix is made.
string "Failed to get AGP version" to "Unknown"
string "Failed to get AGP version" to "Unknown"
I just pushed the change.