Skip to content

Instantly share code, notes, and snippets.

View SteveKennedy's full-sized avatar

Steve Kennedy SteveKennedy

View GitHub Profile
@SteveKennedy
SteveKennedy / removeAdFramework.js
Last active August 1, 2021 13:35
Cordova Hook - Removes Ad Framework From Plugin.XML
// This Cordova Hook (script) removes "AdSupport.framework" and "libAdIdAccess" references
// from the cordova-plugin-google-analytics plugin, as well as removes it from
// references found in the corresponding node_module and .project.pbxproj.
// The authoritive source is found at: https://gist.github.com/SteveKennedy
module.exports = function (ctx) {
console.log("Attempting To Remove Ad (IDFA) References from project....")
var pluginName = 'cordova-plugin-google-analytics';