From 9a1b96462d2e854727935da65e3df06987438ceb Mon Sep 17 00:00:00 2001 From: Nandan B N Date: Sat, 21 Aug 2021 00:23:29 +0530 Subject: [PATCH] feat(play-install-referrer): add plugin (#3718) * Added plugin for cordova-in-app-update android * feat(play-install-referrer) Plugin wrapper for Ionic * Updated play-install-referrer wrapper --- .../plugins/play-install-referrer/index.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/@ionic-native/plugins/play-install-referrer/index.ts diff --git a/src/@ionic-native/plugins/play-install-referrer/index.ts b/src/@ionic-native/plugins/play-install-referrer/index.ts new file mode 100644 index 000000000..b6e28b062 --- /dev/null +++ b/src/@ionic-native/plugins/play-install-referrer/index.ts @@ -0,0 +1,17 @@ +import { Injectable } from '@angular/core'; +import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; + +@Plugin({ + pluginName: 'PlayInstallReferrer', + plugin: 'cordova-plugin-play-installreferrer', + pluginRef: 'installReferrer', + repo: 'https://github.com/swayangjit/cordova-plugin-play-installreferrer', + platforms: ['Android'], +}) +@Injectable() +export class PlayInstallReferrer extends IonicNativePlugin { + @Cordova() + getReferrer(): Promise { + return; + } +}