From dec3948a8620c31a4d67252259b3917ff60e272e Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 13 Sep 2021 15:09:45 -0500 Subject: [PATCH] Removed appodeal - unmaintained --- src/@ionic-native/plugins/appodeal/index.ts | 606 -------------------- 1 file changed, 606 deletions(-) delete mode 100644 src/@ionic-native/plugins/appodeal/index.ts diff --git a/src/@ionic-native/plugins/appodeal/index.ts b/src/@ionic-native/plugins/appodeal/index.ts deleted file mode 100644 index 8f48e70c7..000000000 --- a/src/@ionic-native/plugins/appodeal/index.ts +++ /dev/null @@ -1,606 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; -import { Observable } from 'rxjs'; - -/** - * @name Appodeal - * @description - * Plugin to serve ads through native Appodeal SDKs - * - * @usage - * ```typescript - * import { Appodeal } from '@ionic-native/appodeal/ngx'; - * - * constructor(private appodeal: Appodeal) { - * - * const appKey = ''; - * appodeal.initialize(appKey, appodeal.AD_TYPES.REWARDED_VIDEO); - * appodeal.show(appodeal.AD_TYPES.REWARDED_VIDEO); - * - * } - * ``` - */ -@Plugin({ - pluginName: 'Appodeal', - plugin: 'https://github.com/appodeal/appodeal-cordova-plugin.git', - pluginRef: 'Appodeal', - repo: 'https://github.com/appodeal/appodeal-cordova-plugin', - platforms: ['iOS', 'Android'], -}) -@Injectable() -export class Appodeal extends IonicNativePlugin { - // available types of advertisements - readonly AD_TYPES = { - INTERSTITIAL: 1, - SKIPPABLE_VIDEO: 2, - BANNER: 4, - BANNER_BOTTOM: 8, - BANNER_TOP: 16, - REWARDED_VIDEO: 128, - NON_SKIPPABLE_VIDEO: 256, - }; - - /** - * initialize Appodeal SDK - * @param {string} appKey - * @param {number} adType - */ - @Cordova() - initialize(appKey: string, adType: number): void {} - - /** - * check if SDK has been initialized - * @returns {Promise} - */ - @Cordova() - isInitialized(): Promise { - return; - } - - /** - * show ad of specified type - * @param {number} adType - * @returns {Promise} - */ - @Cordova() - show(adType: number): Promise { - return; - } - - /** - * show ad of specified type with placement options - * @param {number} adType - * @param {any} placement - * @returns {Promise} - */ - @Cordova() - showWithPlacement(adType: number, placement: any): Promise { - return; - } - - /** - * hide ad of specified type - * @param {number} adType - */ - @Cordova() - hide(adType: number): void {} - - /** - * confirm use of ads of specified type - * @param {number} adType - * @returns {Promise} - */ - @Cordova() - canShow(adType: number): Promise { - return; - } - - /** - * check if ad of specified type has been loaded - * @param {number} adType - * @returns {Promise} - */ - @Cordova() - isLoaded(adType: number): Promise { - return; - } - - /** - * check if ad of specified - * @param {number} adType - * @returns {Promise} - */ - @Cordova() - isPrecache(adType: number): Promise { - return; - } - - /** - * - * @param {number} adType - * @param autoCache - */ - @Cordova() - setAutoCache(adType: number, autoCache: any): void {} - - /** - * forcefully cache an ad by type - * @param {number} adType - */ - @Cordova() - cache(adType: number): void {} - - /** - * - * @param {boolean} set - */ - @Cordova() - setTriggerOnLoadedOnPrecache(set: boolean): void {} - - /** - * enable or disable Smart Banners - * @param {boolean} enabled - */ - @Cordova() - setSmartBanners(enabled: boolean): void {} - - /** - * enable or disable banner backgrounds - * @param {boolean} enabled - */ - @Cordova() - setBannerBackground(enabled: boolean): void {} - - /** - * enable or disable banner animations - * @param {boolean} enabled - */ - @Cordova() - setBannerAnimation(enabled: boolean): void {} - - /** - * - * @param value - */ - @Cordova() - set728x90Banners(value: any): void {} - - /** - * enable or disable logging - * @param {boolean} logging - */ - @Cordova() - setLogLevel(logging: boolean): void {} - - /** - * enable or disable testing mode - * @param {boolean} testing - */ - @Cordova() - setTesting(testing: boolean): void {} - - /** - * reset device ID - */ - @Cordova() - resetUUID(): void {} - - /** - * get version of Appdeal SDK - */ - @Cordova() - getVersion(): Promise { - return; - } - - /** - * - * @param {string} network - * @param {number} adType - */ - @Cordova() - disableNetwork(network?: string, adType?: number): void {} - - /** - * - * @param {string} network - * @param {number} adType - */ - @Cordova() - disableNetworkType(network?: string, adType?: number): void {} - - /** - * disable Location permissions for Appodeal SDK - */ - @Cordova() - disableLocationPermissionCheck(): void {} - - /** - * disable Storage permissions for Appodeal SDK - */ - @Cordova() - disableWriteExternalStoragePermissionCheck(): void {} - - /** - * enable event listeners - * @param {boolean} enabled - */ - @Cordova() - enableInterstitialCallbacks(enabled: boolean): void {} - - /** - * enable event listeners - * @param {boolean} enabled - */ - @Cordova() - enableSkippableVideoCallbacks(enabled: boolean): void {} - - /** - * enable event listeners - * @param {boolean} enabled - */ - @Cordova() - enableNonSkippableVideoCallbacks(enabled: boolean): void {} - - /** - * enable event listeners - * @param {boolean} enabled - */ - @Cordova() - enableBannerCallbacks(enabled: boolean): void {} - - /** - * enable event listeners - * @param {boolean} enabled - */ - @Cordova() - enableRewardedVideoCallbacks(enabled: boolean): void {} - - /** - * - * @param {string} name - name of rule - * @param {boolean} value - */ - @Cordova() - setCustomBooleanRule(name: string, value: boolean): void {} - - /** - * - * @param {string} name - name of rule - * @param {number} value - */ - @Cordova() - setCustomIntegerRule(name: string, value: number): void {} - - /** - * set rule with float value - * @param {string} name - * @param {number} value - */ - @Cordova() - setCustomDoubleRule(name: string, value: number): void {} - - /** - * set rule with string value - * @param {string} name - name of rule - * @param {string} value - */ - @Cordova() - setCustomStringRule(name: string, value: string): void {} - - /** - * set ID preference in Appodeal for current user - * @param id - */ - @Cordova() - setUserId(id: any): void {} - - /** - * set Email preference in Appodeal for current user - * @param email - */ - @Cordova() - setEmail(email: any): void {} - - /** - * set Birthday preference in Appodeal for current user - * @param birthday - */ - @Cordova() - setBirthday(birthday: any): void {} - - /** - * et Age preference in Appodeal for current user - * @param age - */ - @Cordova() - setAge(age: any): void {} - - /** - * set Gender preference in Appodeal for current user - * @param gender - */ - @Cordova() - setGender(gender: any): void {} - - /** - * set Occupation preference in Appodeal for current user - * @param occupation - */ - @Cordova() - setOccupation(occupation: any): void {} - - /** - * set Relation preference in Appodeal for current user - * @param relation - */ - @Cordova() - setRelation(relation: any): void {} - - /** - * set Smoking preference in Appodeal for current user - * @param smoking - */ - @Cordova() - setSmoking(smoking: any): void {} - - /** - * set Alcohol preference in Appodeal for current user - * @param alcohol - */ - @Cordova() - setAlcohol(alcohol: any): void {} - - /** - * set Interests preference in Appodeal for current user - * @param interests - */ - @Cordova() - setInterests(interests: any): void {} - - @Cordova({ - eventObservable: true, - event: 'onInterstitialLoaded', - element: 'document', - }) - onInterstitialLoaded(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onInterstitialFailedToLoad', - element: 'document', - }) - onInterstitialFailedToLoad(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onInterstitialShown', - element: 'document', - }) - onInterstitialShown(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onInterstitialClicked', - element: 'document', - }) - onInterstitialClicked(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onInterstitialClosed', - element: 'document', - }) - onInterstitialClosed(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onSkippableVideoLoaded', - element: 'document', - }) - onSkippableVideoLoaded(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onSkippableVideoFailedToLoad', - element: 'document', - }) - onSkippableVideoFailedToLoad(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onSkippableVideoShown', - element: 'document', - }) - onSkippableVideoShown(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onSkippableVideoFinished', - element: 'document', - }) - onSkippableVideoFinished(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onSkippableVideoClosed', - element: 'document', - }) - onSkippableVideoClosed(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onRewardedVideoLoaded', - element: 'document', - }) - onRewardedVideoLoaded(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onRewardedVideoFailedToLoad', - element: 'document', - }) - onRewardedVideoFailedToLoad(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onRewardedVideoShown', - element: 'document', - }) - onRewardedVideoShown(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onRewardedVideoFinished', - element: 'document', - }) - onRewardedVideoFinished(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onRewardedVideoClosed', - element: 'document', - }) - onRewardedVideoClosed(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onNonSkippableVideoLoaded', - element: 'document', - }) - onNonSkippableVideoLoaded(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onNonSkippableVideoFailedToLoad', - element: 'document', - }) - onNonSkippableVideoFailedToLoad(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onNonSkippableVideoShown', - element: 'document', - }) - onNonSkippableVideoShown(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onNonSkippableVideoFinished', - element: 'document', - }) - onNonSkippableVideoFinished(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onNonSkippableVideoClosed', - element: 'document', - }) - onNonSkippableVideoClosed(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onBannerClicked', - element: 'document', - }) - onBannerClicked(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onBannerFailedToLoad', - element: 'document', - }) - onBannerFailedToLoad(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onBannerLoaded', - element: 'document', - }) - onBannerLoaded(): Observable { - return; - } - - @Cordova({ - eventObservable: true, - event: 'onBannerShown', - element: 'document', - }) - onBannerShown(): Observable { - return; - } - - @Cordova() - getRewardParametersForPlacement(placement: string): Promise { - return; - } - - @Cordova() - getRewardParameters(): Promise { - return; - } - - @Cordova() - canShowWithPlacement(adType: string, placement: string): Promise { - return; - } - - @Cordova({ - platforms: ['Android'], - }) - showTestScreen(value: any): void {} - - @Cordova() - muteVideosIfCallsMuted(value: any): Promise { - return; - } - - @Cordova() - setChildDirectedTreatment(value: boolean): Promise { - return; - } -}