Skip to content

Commit

Permalink
RC2.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Cabal-Ugaz committed Feb 20, 2015
2 parents f3518e1 + 1e87be6 commit 9d56202
Show file tree
Hide file tree
Showing 333 changed files with 13,393 additions and 5,607 deletions.
698 changes: 329 additions & 369 deletions BinaryProjects/ANSDK.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions BinaryProjects/AppNexusSDK/AppNexusSDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,9 @@

#import <UIKit/UIKit.h>

//! Project version number for AppNexusSDK.
FOUNDATION_EXPORT double AppNexusSDKVersionNumber;

//! Project version string for AppNexusSDK.
FOUNDATION_EXPORT const unsigned char AppNexusSDKVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <AppNexusSDK/PublicHeader.h>

#import <AppNexusSDK/ANAdConstants.h>
#import <AppNexusSDK/ANAdProtocol.h>
#import <AppNexusSDK/ANAdView.h>
Expand Down
53 changes: 53 additions & 0 deletions BinaryProjects/buildANSDKCocoaTouchFramework.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
OUTDIR=`pwd`/out
OUTDIR_DEVICE=`pwd`/out_device
OUTDIR_SIMULATOR=`pwd`/out_simulator
LOGDIR=$OUTDIR/log
BUILDDIR=$OUTDIR/build
SCHEMENAME="AppNexusSDK"

rm -fr $OUTDIR > /dev/null 2>&1
rm -fr $OUTDIR_DEVICE > /dev/null 2>&1
rm -fr $OUTDIR_SIMULATOR > /dev/null 2>&1

function buildDevice {
echo "Building framework for device:" $1
LOGFILE=$LOGDIR/$1.log
xcodebuild -project "ANSDK.xcodeproj" -scheme $1 -configuration "Release" -sdk "iphoneos" CONFIGURATION_BUILD_DIR=$OUTDIR SYMROOT=$BUILDDIR OBJROOT=$BUILDDIR > $LOGFILE 2>&1 || { echo "Error in build check log $LOGFILE"; exit;}
mkdir -p $OUTDIR/$1
mv $OUTDIR/$1.framework $OUTDIR/$1/$1.framework
}

function buildSim {
echo "Building framework for simulator:" $1
LOGFILE=$LOGDIR/$1.log
xcodebuild -project "ANSDK.xcodeproj" -scheme $1 -configuration "Release" -sdk "iphonesimulator" CONFIGURATION_BUILD_DIR=$OUTDIR SYMROOT=$BUILDDIR OBJROOT=$BUILDDIR > $LOGFILE 2>&1 || { echo "Error in build check log $LOGFILE"; exit;}
mkdir -p $OUTDIR/$1
mv $OUTDIR/$1.framework $OUTDIR/$1/$1.framework
}

### device
mkdir -p $LOGDIR
buildDevice $SCHEMENAME
rm -rf $OUTDIR/Intermediates
rm -rf $BUILDDIR
mv $OUTDIR $OUTDIR_DEVICE

### simulator

mkdir -p $LOGDIR
buildSim $SCHEMENAME
rm -rf $OUTDIR/Intermediates
rm -rf $BUILDDIR
mv $OUTDIR $OUTDIR_SIMULATOR

### combine
echo 'Combining framework architectures'

mkdir -p $OUTDIR/$SCHEMENAME
cp -a $OUTDIR_DEVICE/$SCHEMENAME/$SCHEMENAME.framework $OUTDIR/$SCHEMENAME
lipo -create $OUTDIR_DEVICE/$SCHEMENAME/$SCHEMENAME.framework/$SCHEMENAME $OUTDIR_SIMULATOR/$SCHEMENAME/$SCHEMENAME.framework/$SCHEMENAME -output $OUTDIR/$SCHEMENAME/$SCHEMENAME.framework/$SCHEMENAME
rm -rf $OUTDIR_DEVICE/$SCHEMENAME/$SCHEMENAME.framework

rm -fr $OUTDIR_DEVICE > /dev/null 2>&1
rm -fr $OUTDIR_SIMULATOR > /dev/null 2>&1
rm -rf `pwd`/build
43 changes: 41 additions & 2 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,43 @@
## RC 1.21
## RC 2.1

+ MS-856, MS-868, MS-875, MS-916, MS-918, MS-925 Implemented AppNexus Native Ad Console Support.

+ MS-932 Introduced namespaced `ANGender` enum values (e.g. `ANGenderMale`). Deprecated existing values (e.g. `MALE`).

+ Updated to meet MRAID 2.0 compliance standards

### Other Feature Additions:

+ MS-868 Added dependency on StoreKit framework, App Store URLs will open directly in the app instead of opening in the AppStore app when `opensInNativeBrowser` is set to NO on the ad view.

+ MS-900 Added dependency on EventKitUI framework, user will be presented with a calendar event edit screen if an ad calls `mraid.createCalendarEvent`

+ UIWebView performance enhancements

### Bug fixes:

+ MS-888 Clear AmazonAdView delegate on dealloc

+ MS-902 Fixed malformed URL issue caused by mediated networks not present in app

+ MS-934 Allow background color for banner to be set from .nib file or storyboard

### Includes the following mediated network SDKs:

+ Google SDK Version 7.0.0

+ Amazon SDK Version 2.1.9

+ Facebook SDK Version 3.23

+ Millennial Media SDK Version 5.4.1

+ MoPub SDK Version 3.4.0

Note: The AdMob and DFP mediation adapters have been updated to work with the new framework distribution mechanism for the Google Ads SDK (in version 7.0.0).


## RC 1.21 (2.0)

+ AppNexus Native API 1.0, with support for MoPub and Facebook mediation.

Expand Down Expand Up @@ -96,4 +135,4 @@ To enable Amazon monetization, your app must register itself with Amazon when yo

...

[ANAdapaterBaseAmazone setAmazonAppKey: "YOUR APP KEY"];
[ANAdAdapterBaseAmazon setAmazonAppKey: "YOUR APP KEY"];
4 changes: 4 additions & 0 deletions mediation/mediatedviews/Amazon/ANAdAdapterBannerAmazon.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,8 @@ - (BOOL)willHandleAdViewResize:(AmazonAdView *)view toFrame:(CGRect)frame {
return NO;
}

- (void)dealloc {
self.adView.delegate = nil; // clearing unsafe_unretained property
}

@end
10 changes: 6 additions & 4 deletions mediation/mediatedviews/Amazon/ANAdAdapterBaseAmazon.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,21 @@ - (AmazonAdOptions *)adOptionsForTargetingParameters:(ANTargetingParameters *)ta
options.usesGeoLocation = YES;
}
switch (targetingParameters.gender) {
case MALE:
case ANGenderMale:
[options setAdvancedOption:kANAdAdapterBaseAmazonGenderMaleValue
forKey:kANAdAdapterBaseAmazonGenderKey];
break;
case FEMALE:
case ANGenderFemale:
[options setAdvancedOption:kANAdAdapterBaseAmazonGenderFemaleValue
forKey:kANAdAdapterBaseAmazonGenderKey];
break;
default:
break;
}
[options setAdvancedOption:targetingParameters.age
forKey:kANAdAdapterBaseAmazonAgeKey];
if (targetingParameters.age) {
[options setAdvancedOption:targetingParameters.age
forKey:kANAdAdapterBaseAmazonAgeKey];
}
return options;
}

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

// Standard Amazon Ad Sizes for phones.
extern const CGSize AmazonAdSize_320x50;
extern const CGSize AmazonAdSize_300x50;
extern const CGSize AmazonAdSize_300x250;

// Standard Amazon Ad Sizes for tablets.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

Facebook Audience Network for iOS
=================================

Documentation is available at https://developers.facebook.com/docs/audience-network.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,18 @@ extern FBAdSize const kFBAdSizeHeight90Banner;
*/
extern FBAdSize const kFBAdSizeInterstital;

/*!
@abstract Represents the flexible rectangle ad size, where width depends on
its container width, and height is fixed as 250pt.
*/
extern FBAdSize const kFBAdSizeHeight250Rectangle;

/*!
@class FBAdView
@abstract A customized UIView to represent a Facebook ad (a.k.a. banner ad).
*/
@interface FBAdView : UIView <UIWebViewDelegate>
@interface FBAdView : UIView

/*!
@method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
#import "FBNativeAd.h"
#import "FBAdImage.h"

#define FB_AD_SDK_VERSION @"3.20.0"
#define FB_AD_SDK_VERSION @"3.23.0"
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,18 @@ extern FBAdSize const kFBAdSizeHeight90Banner;
*/
extern FBAdSize const kFBAdSizeInterstital;

/*!
@abstract Represents the flexible rectangle ad size, where width depends on
its container width, and height is fixed as 250pt.
*/
extern FBAdSize const kFBAdSizeHeight250Rectangle;

/*!
@class FBAdView
@abstract A customized UIView to represent a Facebook ad (a.k.a. banner ad).
*/
@interface FBAdView : UIView <UIWebViewDelegate>
@interface FBAdView : UIView

/*!
@method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
#import "FBNativeAd.h"
#import "FBAdImage.h"

#define FB_AD_SDK_VERSION @"3.20.0"
#define FB_AD_SDK_VERSION @"3.23.0"
45 changes: 45 additions & 0 deletions mediation/mediatedviews/Facebook/FacebookSDK/README-FACEBOOK.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
Facebook SDK for iOS
====================

This open-source library allows you to integrate Facebook into your iOS app.

Learn more about the provided samples, documentation, integrating the SDK into your app, accessing source code, and more at https://developers.facebook.com/ios

NOTE: By default, the Facebook SDK for iOS is installed in ~/Documents/FacebookSDK

TRY IT OUT
----------
1. Download the SDK at https://developers.facebook.com/ios or via Cocoapods by adding the 'Facebook-iOS-SDK' pod.
2. Test your install: build and run the project at ~/Documents/FacebookSDK/Samples/HelloFacebookSample/HelloFacebookSample.xcodeproj
3. Check-out the tutorials available online at: https://developers.facebook.com/docs/getting-started/getting-started-with-the-ios-sdk
4. Start coding! Visit https://developers.facebook.com/ios for tutorials and reference documentation.

FEATURES
--------
* Login - https://developers.facebook.com/docs/facebook-login
* Sharing - https://developers.facebook.com/docs/sharing
* App Links - https://developers.facebook.com/docs/applinks
* Graph API - https://developers.facebook.com/docs/ios/graph

GIVE FEEDBACK
-------------
Please report bugs or issues to https://developers.facebook.com/bugs/

You can also join the Facebook Developers Group on Facebook (https://www.facebook.com/groups/fbdevelopers/) or ask questions on Stack Overflow (http://facebook.stackoverflow.com)

LICENSE
-------
Except as otherwise noted, the Facebook SDK for iOS is licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).

DEVELOPER TERMS
---------------

- By enabling Facebook integrations, including through this SDK, you can share information with Facebook, including information about people’s use of your app. Facebook will use information received in accordance with our Data Use Policy [https://www.facebook.com/about/privacy/], including to provide you with insights about the effectiveness of your ads and the use of your app. These integrations also enable us and our partners to serve ads on and off Facebook.

- You may limit your sharing of information with us by updating the Insights control in the developer tool [https://developers.facebook.com/apps/{app_id}/advanced].

- If you use a Facebook integration, including to share information with us, you agree and confirm that you have provided appropriate and sufficiently prominent notice to and obtained the appropriate consent from your users regarding such collection, use, and disclosure (including, at a minimum, through your privacy policy). You further agree that you will not share information with us about children under the age of 13.

- You agree to comply with all applicable laws and regulations and also agree to our Terms <https://www.facebook.com/policies/>, including our Platform Policies <https://developers.facebook.com/policy/>.and Advertising Guidelines, as applicable <https://www.facebook.com/ad_guidelines.php>.

By using the Facebook SDK for iOS you agree to these terms.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#import "ANBasicConfig.h"
#import ANCUSTOMADAPTERHEADER
#import "GADBannerView.h"
#import <GoogleMobileAds/GoogleMobileAds.h>

@interface ANAdAdapterBannerAdMob : NSObject <ANCUSTOMADAPTERBANNER, GADBannerViewDelegate>

Expand Down
10 changes: 4 additions & 6 deletions mediation/mediatedviews/GoogleAdMob/ANAdAdapterBannerAdMob.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#import "ANAdAdapterBannerAdMob.h"
#import "ANLogging.h"

#import "GADAdMobExtras.h"

@interface ANAdAdapterBannerAdMob ()
@property (nonatomic, readwrite, strong) GADBannerView *bannerView;
@end
Expand Down Expand Up @@ -79,13 +77,13 @@ - (GADRequest *)createRequestFromTargetingParameters:(ANTARGETINGPARAMETERS *)ta

ANGENDER gender = targetingParameters.gender;
switch (gender) {
case MALE:
case ANGenderMale:
request.gender = kGADGenderMale;
break;
case FEMALE:
case ANGenderFemale:
request.gender = kGADGenderFemale;
break;
case UNKNOWN:
case ANGenderUnknown:
request.gender = kGADGenderUnknown;
default:
break;
Expand All @@ -98,7 +96,7 @@ - (GADRequest *)createRequestFromTargetingParameters:(ANTARGETINGPARAMETERS *)ta
accuracy:location.horizontalAccuracy];
}

GADAdMobExtras *extras = [GADAdMobExtras new];
GADExtras *extras = [[GADExtras alloc] init];
extras.additionalParameters = targetingParameters.customKeywords;
[request registerAdNetworkExtras:extras];

Expand Down
4 changes: 1 addition & 3 deletions mediation/mediatedviews/GoogleAdMob/ANAdAdapterBannerDFP.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

#import "ANBasicConfig.h"
#import ANCUSTOMADAPTERHEADER
#import "DFPBannerView.h"
#import "DFPSwipeableBannerView.h"
#import "GADBannerViewDelegate.h"
#import <GoogleMobileAds/GoogleMobileAds.h>

@interface ANAdAdapterBannerDFP : NSObject <ANCUSTOMADAPTERBANNER, GADBannerViewDelegate>

Expand Down
9 changes: 4 additions & 5 deletions mediation/mediatedviews/GoogleAdMob/ANAdAdapterBannerDFP.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

#import "ANAdAdapterBannerDFP.h"
#import "ANLogging.h"
#import "DFPExtras.h"

@interface ANAdAdapterBannerDFP ()
@property (nonatomic, readwrite, strong) DFPBannerView *dfpBanner;
Expand Down Expand Up @@ -79,13 +78,13 @@ - (GADRequest *)createRequestFromTargetingParameters:(ANTARGETINGPARAMETERS *)ta

ANGENDER gender = targetingParameters.gender;
switch (gender) {
case MALE:
case ANGenderMale:
request.gender = kGADGenderMale;
break;
case FEMALE:
case ANGenderFemale:
request.gender = kGADGenderFemale;
break;
case UNKNOWN:
case ANGenderUnknown:
request.gender = kGADGenderUnknown;
default:
break;
Expand All @@ -98,7 +97,7 @@ - (GADRequest *)createRequestFromTargetingParameters:(ANTARGETINGPARAMETERS *)ta
accuracy:location.horizontalAccuracy];
}

DFPExtras *extras = [DFPExtras new];
GADExtras *extras = [[GADExtras alloc] init];
NSMutableDictionary *extrasDictionary = [targetingParameters.customKeywords mutableCopy];

NSString *age = targetingParameters.age;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#import "ANBasicConfig.h"
#import ANCUSTOMADAPTERHEADER
#import "GADInterstitial.h"
#import <GoogleMobileAds/GoogleMobileAds.h>

@interface ANAdAdapterInterstitialAdMob : NSObject <ANCUSTOMADAPTERINTERSTITIAL, GADInterstitialDelegate>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

#import "ANAdAdapterInterstitialAdMob.h"
#import "ANLogging.h"
#import "GADAdMobExtras.h"

@interface ANAdAdapterInterstitialAdMob ()

Expand Down Expand Up @@ -61,13 +60,13 @@ - (GADRequest *)createRequestFromTargetingParameters:(ANTARGETINGPARAMETERS *)ta

ANGENDER gender = targetingParameters.gender;
switch (gender) {
case MALE:
case ANGenderMale:
request.gender = kGADGenderMale;
break;
case FEMALE:
case ANGenderFemale:
request.gender = kGADGenderFemale;
break;
case UNKNOWN:
case ANGenderUnknown:
request.gender = kGADGenderUnknown;
default:
break;
Expand All @@ -80,7 +79,7 @@ - (GADRequest *)createRequestFromTargetingParameters:(ANTARGETINGPARAMETERS *)ta
accuracy:location.horizontalAccuracy];
}

GADAdMobExtras *extras = [GADAdMobExtras new];
GADExtras *extras = [[GADExtras alloc] init];
extras.additionalParameters = targetingParameters.customKeywords;
[request registerAdNetworkExtras:extras];

Expand Down
Loading

0 comments on commit 9d56202

Please sign in to comment.