Skip to content

Commit

Permalink
SDK Version RC1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Cabal-Ugaz committed Jul 29, 2014
2 parents ca47b26 + 145865c commit b196421
Show file tree
Hide file tree
Showing 62 changed files with 3,968 additions and 635 deletions.
294 changes: 154 additions & 140 deletions BinaryProjects/ANSDK.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

199 changes: 100 additions & 99 deletions BinaryProjects/ANSDKGoogleAdMobAdapter.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions BinaryProjects/externalbundle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
##########
# RUN `buildsdk.sh` FIRST!
##########

#####
# This is a build script to build the external bundle
# Bundle Includes:
#
# AN SDK
#
# AN Mediation Adapters for:
# # GoogleAdMob
# # iAd
# # MillennialMedia
#
# External SDKs for:
# # GoogleAdMob SDK
# # MillennialMedia SDK
#
# Not Included:
# # Facebook Adapter + SDK
# # MoPub Adapter + SDK
# # iAd.framework
#
#####

ROOTDIR=`pwd`/..
OUTDIR=`pwd`/out
MEDDIR=$OUTDIR/ANMediationAdapters
EXTDIR=$ROOTDIR/mediation/mediatedviews
GOOGLESDK=$EXTDIR/GoogleAdMob/GoogleAdMobSDK
MMSDK=$EXTDIR/MillennialMedia/MillennialMediaSDK

BUNDIR=$OUTDIR/ANSDKExternalBundle
BUNEXTDIR=$BUNDIR/ANExternalNetworks
BUNGOOGLEDIR=$BUNEXTDIR/GoogleAdMob
BUNMMDIR=$BUNEXTDIR/MillennialMedia

#cleanup
rm -rf $BUNDIR

mkdir -p $BUNGOOGLEDIR
mkdir -p $BUNMMDIR

# Include Google and MM SDKs.
cp $GOOGLESDK/libGoogleAdMobAds.a $BUNGOOGLEDIR
cp $GOOGLESDK/README.txt $BUNGOOGLEDIR

cp -r $MMSDK/MillennialMedia.framework $BUNMMDIR
cp $MMSDK/LICENSE.txt $BUNMMDIR

# Grab all adapters
cp -r $MEDDIR $BUNDIR

# Exclude FB + MP
rm -rf $BUNDIR/ANMediationAdapters/libANSDKFacebookAdapter.a
rm -rf $BUNDIR/ANMediationAdapters/libANSDKMoPubAdapter.a

# Base AN SDK
cp -r $OUTDIR/ANSDK $BUNDIR

# Zip it up
cd $OUTDIR
zip -r ANSDKExternalBundle.zip ANSDKExternalBundle


515 changes: 515 additions & 0 deletions BinaryProjects/old/ANSDKFull.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EC3E5DAF1843EB3E0070315E"
BuildableName = "libANSDKFull.a"
BlueprintName = "ANSDKFull"
ReferencedContainer = "container:ANSDKFull.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
74 changes: 74 additions & 0 deletions BinaryProjects/old/buildsdk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/bin/bash
#
# Simple script to built the AppNexus Advertising SDK binary packages
#
OUTDIR=`pwd`/out
OUTDIR_DEVICE=`pwd`/out_device
OUTDIR_SIMULATOR=`pwd`/out_simulator
LOGDIR=$OUTDIR/log
BUILDDIR=$OUTDIR/build

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

### device

echo "Started building of AN SDK"
LOGFILE=$LOGDIR/ANSDK.log
xcodebuild -project '../ANSDK.xcodeproj/' -scheme 'ANSDK' -configuration 'Release' -sdk iphoneos7.1 CONFIGURATION_BUILD_DIR=$OUTDIR SYMROOT=$BUILDDIR OBJROOT=$BUILDDIR > $LOGFILE 2>&1 || { echo "Error in build check log $LOGFILE"; exit;}
mv $OUTDIR/libANSDK.a $OUTDIR/ANSDK/libANSDK.a

echo "Started building of Full AN SDK"
LOGFILE=$LOGDIR/ANSDKFull.log
xcodebuild -project 'ANSDKFull.xcodeproj/' -scheme 'ANSDKFull' -configuration 'Release' -sdk iphoneos7.1 CONFIGURATION_BUILD_DIR=$OUTDIR > $LOGFILE 2>&1 || { echo "Error in build check log $LOGFILE"; exit;}
mv $OUTDIR/libANSDKFull.a $OUTDIR/ANSDKFull/libANSDKFull.a

rm -rf $OUTDIR/Intermediates
rm -rf $BUILDDIR

mv $OUTDIR $OUTDIR_DEVICE

### simulator

mkdir -p $LOGDIR

echo "Started building of AN SDK"
LOGFILE=$LOGDIR/ANSDK.log
xcodebuild -project '../ANSDK.xcodeproj/' -scheme 'ANSDK' -configuration 'Release' -sdk "iphonesimulator" CONFIGURATION_BUILD_DIR=$OUTDIR SYMROOT=$BUILDDIR OBJROOT=$BUILDDIR > $LOGFILE 2>&1 || { echo "Error in build check log $LOGFILE"; exit;}
mv $OUTDIR/libANSDK.a $OUTDIR/ANSDK/libANSDK.a

echo "Started building of Full AN SDK"
LOGFILE=$LOGDIR/ANSDKFull.log
xcodebuild -project 'ANSDKFull.xcodeproj/' -scheme 'ANSDKFull' -configuration 'Release' -sdk "iphonesimulator" CONFIGURATION_BUILD_DIR=$OUTDIR > $LOGFILE 2>&1 || { echo "Error in build check log $LOGFILE"; exit;}
mv $OUTDIR/libANSDKFull.a $OUTDIR/ANSDKFull/libANSDKFull.a

rm -rf $OUTDIR/Intermediates
rm -rf $BUILDDIR

mv $OUTDIR $OUTDIR_SIMULATOR

### combine

mkdir -p $OUTDIR/ANSDK
mkdir -p $OUTDIR/ANSDKFull

echo "Combining architectures into one"
lipo -create $OUTDIR_DEVICE/ANSDK/libANSDK.a $OUTDIR_SIMULATOR/ANSDK/libANSDK.a -output $OUTDIR/ANSDK/libANSDK.a
lipo -create $OUTDIR_DEVICE/ANSDKFull/libANSDKFull.a $OUTDIR_SIMULATOR/ANSDKFull/libANSDKFull.a -output $OUTDIR/ANSDKFull/libANSDKFull.a

rm -rf $OUTDIR_DEVICE/ANSDK/libANSDK.a
rm -rf $OUTDIR_DEVICE/ANSDKFull/libANSDKFull.a

echo "Copy header and resource files"
cp -a $OUTDIR_DEVICE/ANSDK $OUTDIR
cp -a $OUTDIR_DEVICE/ANSDKFull $OUTDIR

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

cd $OUTDIR

echo "Zipping up Full AN SDK"
zip -r ANSDKFull.zip ANSDKFull
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
* Copyright 2010-present Facebook.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*!
@class FBAdStarRating
@abstract
Represents the Facebook ad star rating, which contains the rating value and rating scale.
*/
extern const struct FBAdStarRating {
float value;
int scale;
} FBAdStarRating;

/*!
@class FBAdImage
@abstract Represents an image creative.
*/
@interface FBAdImage : NSObject

/*!
@property
@abstract Typed access to the image url.
*/
@property (nonatomic, copy, readonly) NSURL *url;
/*!
@property
@abstract Typed access to the image width.
*/
@property (nonatomic, assign, readonly) int width;
/*!
@property
@abstract Typed access to the image height.
*/
@property (nonatomic, assign, readonly) int height;

/*!
@method
@abstract
This is a method to initialize an FBAdImage.
@param url the image url.
@param width the image width.
@param height the image height.
*/
- (id)initWithURL:(NSURL *)url width:(int)width height:(int)height;

@end


Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* Copyright 2010-present Facebook.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#import <Foundation/Foundation.h>

extern NSString *const FacebookAdsSDKErrorDomain;

/*!
@class FBAdSettings
@abstract AdSettings contains global settings for all ad controls.
*/
@interface FBAdSettings : NSObject

/*!
@method
@abstract
Adds a test device.
@param deviceHash The id of the device to use test mode, can be obtained from debug log
@discussion
Copy the current device Id from debug log and add it as a test device to get test ads. Apps
running on emulator will automatically get test ads. Test devices should be added before loadAd is called.
*/
+ (void)addTestDevice:(NSString *)deviceHash;

/*!
@method
@abstract
Add a collection of test devices. See `+addTestDevices:` for details.
@param deviceHash The array of the device id to use test mode, can be obtained from debug log
*/
+ (void)addTestDevices:(NSArray *)devicesHash;

/*!
@method
@abstract
Clear all the added test devices
*/
+ (void)clearTestDevices;

/*!
@method
@abstract
Configures the ad control for treatment as child-directed.
@param isChildDirected Indicates whether you would like your ad control to be treated as child-directed
@discussion
Note that you may have other legal obligations under the Children's Online Privacy Protection Act (COPPA).
Please review the FTC's guidance and consult with your own legal counsel.
*/
+ (void)setIsChildDirected:(BOOL)isChildDirected;

/*!
@method
@abstract
Sets the url prefix to use when making ad requests.
@discussion
This method should never be used in production.
*/
+ (void)setUrlPrefix:(NSString *) urlPrefix;

@end
Loading

0 comments on commit b196421

Please sign in to comment.