Skip to content

Commit

Permalink
fix: pass necessary parameter to helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgerardojacinto committed Feb 28, 2024
1 parent 7c928dc commit aa02e3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/androidCopyPreferencesPermissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function addHealthConnectPermissionsToXmlFiles(configParser, projectRoot, parser
arrayElement.appendChild(newItem);
*/

addEntryToManifestAndPermissionsXml(manifestXmlDoc, permissionsXmlDoc, 'android.permission.health.READ_HEART_RATE');
addEntryToManifestAndPermissionsXml(manifestXmlDoc, permissionsXmlDoc, arrayElement, 'android.permission.health.READ_HEART_RATE');
}

if (heartRate == "ReadWrite" || heartRate == "Write") {
Expand Down Expand Up @@ -1127,7 +1127,7 @@ function addHealthConnectPermissionsToXmlFiles(configParser, projectRoot, parser

}

function addEntryToManifestAndPermissionsXml(manifestXmlDoc, permissionsXmlDoc, permission) {
function addEntryToManifestAndPermissionsXml(manifestXmlDoc, permissionsXmlDoc, arrayElement, permission) {

console.log("entered addEntryToManifestAndPermissionsXml");

Expand Down

0 comments on commit aa02e3f

Please sign in to comment.