<commit_before>/*
 Copyright (C) 2015 Sonar Systems - All Rights Reserved
 You may use, distribute and modify this code under the
 terms of the MIT license
 
 Any external frameworks used have their own licenses and
 should be followed as such.
 */
//
//  IOSHelper.h
//  Sonar Cocos Helper
//
//  Created by Sonar Systems on 03/03/2015.
//
//

#import "SCHDefinitions.h"

#import "SCHSettings.h"

#import <Foundation/Foundation.h>
#import "AppController.h"

#if SCH_IS_iADS_ENABLED == true
    #import <iAd/iAd.h>
#endif

#if SCH_IS_CHARTBOOST_ENABLED == true
    #import <Chartboost/Chartboost.h>
#endif

#if SCH_IS_REVMOB_ENABLED == true
    #import <RevMobAds/RevMobAds.h>
#endif

#if SCH_IS_AD_MOB_ENABLED == true
    #import <GoogleMobileAds/GoogleMobileAds.h>
#endif

#if SCH_IS_EVERYPLAY_ENABLED == true
    #import <Everyplay/Everyplay.h>
#endif

#if SCH_IS_MOPUB_ENABLED == true
    #import <MPAdView.h>
    #import <MPInterstitialAdController.h>
#endif

@protocol SCHEmptyProtocol
@end

@interface IOSHelper : NSObject
<
SCHEmptyProtocol
#if SCH_IS_iADS_ENABLED == true
, ADBannerViewDelegate
#endif

#if SCH_IS_CHARTBOOST_ENABLED == true
, ChartboostDelegate
#endif

#if SCH_IS_REVMOB_ENABLED == true
, RevMobAdsDelegate
#endif

#if SCH_IS_SOCIAL_ENABLED == true
, UIPopoverControllerDelegate
#endif

#if SCH_IS_EVERYPLAY_ENABLED == true
, EveryplayDelegate
#endif

#if SCH_IS_MOPUB_ENABLED == true
, MPAdViewDelegate
, MPInterstitialAdControllerDelegate
#endif
>
{
    AppController *appController;
    UIView *view;
    
#if SCH_IS_iADS_ENABLED == true
    ADBannerView *adView;
    
    BOOL isBannerVisible;
    BOOL isBannerLoaded;
    BOOL isBannerToBeShown;
    
    int bannerPosition;
#endif
    
#if SCH_IS_REVMOB_ENABLED == true
    BOOL isRevMobInitialised;
#endif
    
#if SCH_IS_AD_MOB_ENABLED == true
    GADInterstitial *adMobInterstitial;
    GADBannerView *adMobBottomBanner;
    GADBannerView *adMobTopBanner;
    BOOL isAdMobFullscreenLoaded;
    BOOL isAdMobBottomBannerDisplayed;
    BOOL isAdMobTopBannerDisplayed;
#endif
    
#if SCH_IS_MOPUB_ENABLED == true
    BOOL isMopubBannerDisplayed;
#endif
<<<<<<< HEAD
=======
    
#if SCH_IS_MOPUB_ENABLED == true
    BOOL isMopubBannerDisplayed;
#endif
>>>>>>> origin/master
   
}

#if SCH_IS_MOPUB_ENABLED == true
@property (nonatomic, strong) MPAdView *adView;
@property (nonatomic, strong) MPInterstitialAdController *interstitialLaunch;
@property (nonatomic, strong) MPInterstitialAdController *interstitialEndlevel;
#endif

@property (nonatomic, strong) UIPopoverController *popover;

+( id )instance;

-( void )initialise;

#if SCH_IS_iADS_ENABLED == true
-( void )showiAdBanner;
-( void )showiAdBanner:( int ) position;
-( void )hideiAdBanner:( int ) position;
-( void )hideiAdBannerPermanently:( int ) position;
#endif<commit_msg>Update IOSHelper.h<commit_after>/*
 Copyright (C) 2015 Sonar Systems - All Rights Reserved
 You may use, distribute and modify this code under the
 terms of the MIT license
 
 Any external frameworks used have their own licenses and
 should be followed as such.
 */
//
//  IOSHelper.h
//  Sonar Cocos Helper
//
//  Created by Sonar Systems on 03/03/2015.
//
//

#import "SCHDefinitions.h"

#import "SCHSettings.h"

#import <Foundation/Foundation.h>
#import "AppController.h"

#if SCH_IS_iADS_ENABLED == true
    #import <iAd/iAd.h>
#endif

#if SCH_IS_CHARTBOOST_ENABLED == true
    #import <Chartboost/Chartboost.h>
#endif

#if SCH_IS_REVMOB_ENABLED == true
    #import <RevMobAds/RevMobAds.h>
#endif

#if SCH_IS_AD_MOB_ENABLED == true
    #import <GoogleMobileAds/GoogleMobileAds.h>
#endif

#if SCH_IS_EVERYPLAY_ENABLED == true
    #import <Everyplay/Everyplay.h>
#endif

#if SCH_IS_MOPUB_ENABLED == true
    #import <MPAdView.h>
    #import <MPInterstitialAdController.h>
#endif

@protocol SCHEmptyProtocol
@end

@interface IOSHelper : NSObject
<
SCHEmptyProtocol
#if SCH_IS_iADS_ENABLED == true
, ADBannerViewDelegate
#endif

#if SCH_IS_CHARTBOOST_ENABLED == true
, ChartboostDelegate
#endif

#if SCH_IS_REVMOB_ENABLED == true
, RevMobAdsDelegate
#endif

#if SCH_IS_SOCIAL_ENABLED == true
, UIPopoverControllerDelegate
#endif

#if SCH_IS_EVERYPLAY_ENABLED == true
, EveryplayDelegate
#endif

#if SCH_IS_MOPUB_ENABLED == true
, MPAdViewDelegate
, MPInterstitialAdControllerDelegate
#endif
>
{
    AppController *appController;
    UIView *view;
    
#if SCH_IS_iADS_ENABLED == true
    ADBannerView *adView;
    
    BOOL isBannerVisible;
    BOOL isBannerLoaded;
    BOOL isBannerToBeShown;
    
    int bannerPosition;
#endif
    
#if SCH_IS_REVMOB_ENABLED == true
    BOOL isRevMobInitialised;
#endif
    
#if SCH_IS_AD_MOB_ENABLED == true
    GADInterstitial *adMobInterstitial;
    GADBannerView *adMobBottomBanner;
    GADBannerView *adMobTopBanner;
    BOOL isAdMobFullscreenLoaded;
    BOOL isAdMobBottomBannerDisplayed;
    BOOL isAdMobTopBannerDisplayed;
#endif
    
#if SCH_IS_MOPUB_ENABLED == true
    BOOL isMopubBannerDisplayed;
#endif
   
}

#if SCH_IS_MOPUB_ENABLED == true
@property (nonatomic, strong) MPAdView *adView;
@property (nonatomic, strong) MPInterstitialAdController *interstitialLaunch;
@property (nonatomic, strong) MPInterstitialAdController *interstitialEndlevel;
#endif

@property (nonatomic, strong) UIPopoverController *popover;

+( id )instance;

-( void )initialise;

#if SCH_IS_iADS_ENABLED == true
-( void )showiAdBanner;
-( void )showiAdBanner:( int ) position;
-( void )hideiAdBanner:( int ) position;
-( void )hideiAdBannerPermanently:( int ) position;
#endif
{'fraction_non_alphanumeric': 0.09380659181455994, 'fraction_numerical': 0.004346251358203549, 'mean_word_length': 4.735202492211838, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3716336', 'n_tokens_mistral': 2109, 'n_tokens_neox': 2028, 'n_words': 456}