Skip to content

Commit

Permalink
[build/1502720775] Automated build
Browse files Browse the repository at this point in the history
  • Loading branch information
gnithin committed Aug 14, 2017
1 parent 53c05e4 commit 94004a3
Show file tree
Hide file tree
Showing 106 changed files with 6,838 additions and 5,599 deletions.
Binary file added Example/.swp
Binary file not shown.
16 changes: 16 additions & 0 deletions Example/MNAdSDKDemo.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.associated-domains</key>
<array/>
<key>com.apple.developer.icloud-container-identifiers</key>
<array/>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)net.media.MNAdSDKDemo</string>
</array>
</dict>
</plist>
381 changes: 347 additions & 34 deletions Example/MNAdSdk.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
version = "1.3">
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
Expand All @@ -26,7 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "NO">
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -48,6 +48,12 @@
ReferencedContainer = "container:MNAdSdk.xcodeproj">
</BuildableReference>
</MacroExpansion>
<CommandLineArguments>
<CommandLineArgument
argument = "-TESTING YES"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
Expand All @@ -71,11 +77,22 @@
ReferencedContainer = "container:MNAdSdk.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable
key = "OS_ACTIVITY_MODE"
value = "disable"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<AdditionalOptions>
</AdditionalOptions>
<LocationScenarioReference
identifier = "Mumbai, India"
referenceType = "1">
</LocationScenarioReference>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
buildConfiguration = "Debug"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
Expand Down
10 changes: 0 additions & 10 deletions Example/MNAdSdk.xcworkspace/contents.xcworkspacedata

This file was deleted.

479 changes: 110 additions & 369 deletions Example/MNAdSdk/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions Example/MNAdSdk/Images.xcassets/arrow.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "arrow.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "[email protected]",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 11 additions & 4 deletions Example/MNAdSdk/MNAdSdk-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>MNSDK Demo</string>
<string>$(DISPLAY_NAME)</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
Expand All @@ -23,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<string>16</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSRequiresIPhoneOS</key>
Expand All @@ -33,13 +31,20 @@
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSCalendarsUsageDescription</key>
<string>Calendar usage permission</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Would you like location to be on all the time?</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Access photo library</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
<string>gamekit</string>
</array>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
Expand All @@ -56,5 +61,7 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
23 changes: 20 additions & 3 deletions Example/MNAdSdk/MNAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,33 @@

#import "MNAppDelegate.h"
@import GoogleMobileAds;
#import <MNetAdSdk/MNet.h>
#import <MNetAdSdk/MNetUser.h>
#import "MNDemoConstants.h"
#import <AFNetworkActivityLogger/AFNetworkActivityLogger.h>

@implementation MNAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

[[AFNetworkActivityLogger sharedLogger] startLogging];
[GADMobileAds configureWithApplicationID:@"ca-app-pub-6365858186554077~2677656745"];
// Override point for customization after application launch.
BOOL isTesting = [[NSUserDefaults standardUserDefaults] boolForKey:@"TESTING"];
if(!isTesting){
MNet *mnetObj = [MNet initWithCustomerId: DEMO_MN_CUSTOMER_ID];

// Adding user details
MNetUser *user = [MNetUser new];
[user addGender:MNetGenderFemale];
[user addKeywords:@"fruits, health, energy"];
[user addYearOfBirth:@"1985"];
[user addName:@"Demo User"];
[user addUserId:@"test-id"];
[mnetObj setUser:user];

//[[MNet getInstance] setIsTest:YES];
}

[GADMobileAds configureWithApplicationID:@"ca-app-pub-6365858186554077~2677656745"];
return YES;
}

Expand Down
29 changes: 23 additions & 6 deletions Example/MNAdSdk/MNDemoConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,30 @@

#import <Foundation/Foundation.h>

#define DEMO_MN_CUSTOMER_ID @"<CUSTOM>"
#define DEMO_MN_CUSTOMER_ID @"<custom_id>"
#define DEMO_MN_MRAID_CUSTOMER_ID @"<custom_id>"
#define DEMO_MN_AD_UNIT_300x250 @"<custom_id>"
#define DEMO_MN_AD_UNIT_300x250_VIDEO @"<custom_id>"
#define DEMO_MN_AD_UNIT_320x50 @"<custom_id>"
#define DEMO_MN_AD_UNIT_450x300 @"<custom_id>"
#define DEMO_MN_AD_UNIT_REWARDED @"<custom_id>"
#define DEMO_MOPUB_AD_UNIT_ID @"<custom_id>"
#define DEMO_DFP_AD_UNIT_ID @"<custom_id>"
#define DEMO_MRAID_AD_UNIT_320x50 @"<custom_id>"

#define DEMO_MN_AD_UNIT_ID @"<CUSTOM>"
#define DEMO_MOPUB_AD_UNIT_ID @"<CUSTOM>"
#define DEMO_DFP_AD_UNIT_ID @"<CUSTOM>"
#define DEMO_AD_MOB_AD_UNIT_ID @"<CUSTOM>"
#define BANNER 1
#define DEMO_DFP_MEDIATION_AD_UNIT_ID @"<custom_id>"
#define DEMO_MOPUB_MEDIATION_AD_UNIT_ID @"<custom_id>"
#define DEMO_AD_MOB_MEDIATION_AD_UNIT_ID @"<custom_id>"

#define DEMO_AD_MOB_HB_AD_UNIT_ID @"<custom_id>"
#define DEMO_MOPUB_INTERSTITIAL_HB_AD_UNIT_ID @"<custom_id>"
#define DEMO_DFP_HB_INTERSTITIAL_AD_UNIT_ID @"<custom_id>"

#define DEMO_DFP_MEDIATION_INTERSTITIAL_AD_UNIT_ID @"<custom_id>"
#define DEMO_MOPUB_MEDIATION_INTERSTITIAL_AD_UNIT_ID @"<custom_id>"
#define DEMO_AD_MOB_MEDIATION_INTERSTITIAL_AD_UNIT_ID @"<custom_id>"

#define DEMO_AD_MOB_AD_UNIT_ID @"<custom_id>"

#define LONGITUDE 100.0
#define LATITUDE 100.0
Expand Down
34 changes: 29 additions & 5 deletions Example/MNAdSdk/MNShowAdViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,45 @@
//

#import <UIKit/UIKit.h>
#import <MNAdSdk/MNetAdView.h>
#import <MoPub/MPAdView.h>
#import <MNetAdSdk/MNetAdView.h>
#import <MNetAdSdk/MNetInterstitialAd.h>
#import <MNetAdSdk/MNetRewardedVideo.h>
#import "MPAdView.h"
#import "MPInterstitialAdController.h"

#define ENUM_VAL(enum) [NSNumber numberWithInt:enum]

@import GoogleMobileAds;

@interface MNShowAdViewController : UIViewController<MPAdViewDelegate, MNetAdViewDelegate,GADBannerViewDelegate>
@interface MNShowAdViewController : UIViewController<MPAdViewDelegate, MPInterstitialAdControllerDelegate, MNetAdViewDelegate,GADBannerViewDelegate, GADInterstitialDelegate, MNetVideoDelegate, MNetInterstitialAdDelegate, MNetInterstitialVideoAdDelegate, MNetRewardedVideoDelegate>

typedef enum{
BNR,
BNR_INTR,
MOPUB_HB,
AD_MOB_HB,
DFP_HB
MOPUB_INTERSTITIAL_HB,
DFP_HB,
DFP_INTERSTITIAL_HB,
BNR_VIDEO,
VIDEO_INTR,
VIDEO_REWARDED,
DFP_MEDIATION,
MOPUB_MEDIATION,
ADMOB_MEDIATION,
DFP_INTERSTITIAL_MEDIATION,
MOPUB_INTERSTITIAL_MEDIATION,
ADMOB_INTERSTITIAL_MEDIATION,
DFP_BANNER_MANUAL_HB,
DFP_INSTERSTITIAL_MANUAL_HB,
MRAID_BANNER,
MRAID_INTERSTITIAL,
}AdType;

@property ( nonatomic) IBOutlet UIView *adView;

@property (nonatomic) IBOutlet UIView *adView;
@property (weak, nonatomic) IBOutlet UIView *topBar;

@property (nonatomic) AdType adType;
@property BOOL isInterstital;

Expand Down
Loading

0 comments on commit 94004a3

Please sign in to comment.