Taracque / cordova-plugin-braintree

:credit_card: A Cordova plugin for the Braintree mobile payment processing SDK.
MIT License
27 stars 42 forks source link

cordova > 7 changed config.xml path #53

Open tisdall opened 6 years ago

tisdall commented 6 years ago

The code is currently only looking for the file in the old path. It needs to be changed to something like the following to work with newer versions:

def config
if (file('src/main/res/xml/config.xml').exists()) {
    // Cordova >= 7
    config = file('src/main/res/xml/config.xml').getText()
} else {
    config = file('res/xml/config.xml').getText()
}