apache / cordova-android

Apache Cordova Android
https://cordova.apache.org/
Apache License 2.0
3.59k stars 1.52k forks source link

Missing privateHelpers.extractStringFromManifest method. #1686

Closed premmavelil closed 2 months ago

premmavelil commented 4 months ago

It is seen that privateHelpers.extractStringFromManifest is remove in 12.x. Could you provide an alternative api to read the string values from manifest file.

breautek commented 4 months ago

The commit that removed it was in https://github.com/apache/cordova-android/commit/a9d4d4ebd2b3cc6d35be95180043b1465b5a8014

It was a utility method that was no longer used, so it was removed. It was never part of the public API, so I don't foresee it being added back.

Have a look at the cordova.gradle change and you'll see the method function declaration. Likely you can just grab and reimplement that in your plugin code (or wherever it's needed).

A plugin can include custom gradle files via the framework directive: