Facing issue with support of cordova plugin in multiple cordova version.
Under plugin.gradle file below are entries.
import java.util.regex.Pattern
def doExtractStringFromManifest(name) {
def manifestFile = file(android.sourceSets.main.manifest.srcFile)
def pattern = Pattern.compile(name + "=\"(.*?)\"")
def matcher = pattern.matcher(manifestFile.getText())
matcher.find()
return matcher.group(1)
}
android {
sourceSets {
main {
manifest.srcFile './src/main/AndroidManifest.xml'
}
}
defaultConfig {
applicationId = doExtractStringFromManifest("package")
}
}
Facing an issue of AndroidManifest.xml file not found under [email protected] version based code where code structure is having AndroidManifest.xml file outside of src/main folder in 'app' module
Facing issue will building project using 'cordova build android' and through file not found at path.
So how to support both cordova plugin from same plugin?