Skip to content

Commit

Permalink
Merge pull request #47 from hansemannn/MOD-2196
Browse files Browse the repository at this point in the history
[MOD-2196] Add iAd adapter, bump to 2.1.0
  • Loading branch information
AngelkPetkov committed Feb 8, 2016
2 parents 2bfd1ad + 228da51 commit f259f46
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 3 deletions.
18 changes: 18 additions & 0 deletions ios/admob.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
249BE67411B47B3800AF41CF /* TiAdmobView.m in Sources */ = {isa = PBXBuildFile; fileRef = 249BE67211B47B3800AF41CF /* TiAdmobView.m */; };
24DD6CF91134B3F500162E58 /* TiAdmobModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 24DD6CF71134B3F500162E58 /* TiAdmobModule.h */; };
24DD6CFA1134B3F500162E58 /* TiAdmobModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 24DD6CF81134B3F500162E58 /* TiAdmobModule.m */; };
3A4F268F1C68DDF7003E06CF /* iAd.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A4F268E1C68DDF7003E06CF /* iAd.framework */; };
3AC840121C60A7F3002A52E3 /* libAdapterIAd.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AC840101C60A7E1002A52E3 /* libAdapterIAd.a */; };
3AEA89BF1C5F727300FBA64B /* GoogleMobileAds.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AEA89BD1C5F71A100FBA64B /* GoogleMobileAds.framework */; };
3AF5B7731C233383002E3DC7 /* TiAdmobTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = 3AF5B7711C233383002E3DC7 /* TiAdmobTypes.h */; };
AA747D9F0F9514B9006C5449 /* TiAdmob_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = AA747D9E0F9514B9006C5449 /* TiAdmob_Prefix.pch */; };
Expand All @@ -35,6 +37,8 @@
24DD6CF71134B3F500162E58 /* TiAdmobModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TiAdmobModule.h; path = Classes/TiAdmobModule.h; sourceTree = "<group>"; };
24DD6CF81134B3F500162E58 /* TiAdmobModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TiAdmobModule.m; path = Classes/TiAdmobModule.m; sourceTree = "<group>"; };
24DD6D1B1134B66800162E58 /* titanium.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = titanium.xcconfig; sourceTree = "<group>"; };
3A4F268E1C68DDF7003E06CF /* iAd.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = iAd.framework; path = System/Library/Frameworks/iAd.framework; sourceTree = SDKROOT; };
3AC840101C60A7E1002A52E3 /* libAdapterIAd.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libAdapterIAd.a; path = platform/libAdapterIAd.a; sourceTree = "<group>"; };
3AEA89BD1C5F71A100FBA64B /* GoogleMobileAds.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GoogleMobileAds.framework; path = platform/GoogleMobileAds.framework; sourceTree = SOURCE_ROOT; };
3AF5B7711C233383002E3DC7 /* TiAdmobTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TiAdmobTypes.h; path = Classes/TiAdmobTypes.h; sourceTree = "<group>"; };
AA747D9E0F9514B9006C5449 /* TiAdmob_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TiAdmob_Prefix.pch; sourceTree = SOURCE_ROOT; };
Expand All @@ -56,6 +60,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3A4F268F1C68DDF7003E06CF /* iAd.framework in Frameworks */,
3AC840121C60A7F3002A52E3 /* libAdapterIAd.a in Frameworks */,
3AEA89BF1C5F727300FBA64B /* GoogleMobileAds.framework in Frameworks */,
CE6C17A01982D1170017C788 /* AdSupport.framework in Frameworks */,
DAD5D7CF12527E11009CF986 /* AudioToolbox.framework in Frameworks */,
Expand Down Expand Up @@ -94,6 +100,8 @@
0867D69AFE84028FC02AAC07 /* Frameworks */ = {
isa = PBXGroup;
children = (
3A4F268E1C68DDF7003E06CF /* iAd.framework */,
3AC8400F1C60A67D002A52E3 /* iAd Adapter */,
CE6C17AB1982D1C90017C788 /* AdMob iOS SDK */,
CE6C17A91982D1870017C788 /* SystemConfiguration.framework */,
CE6C17A71982D1780017C788 /* StoreKit.framework */,
Expand Down Expand Up @@ -132,6 +140,14 @@
name = "Other Sources";
sourceTree = "<group>";
};
3AC8400F1C60A67D002A52E3 /* iAd Adapter */ = {
isa = PBXGroup;
children = (
3AC840101C60A7E1002A52E3 /* libAdapterIAd.a */,
);
name = "iAd Adapter";
sourceTree = "<group>";
};
CE6C17AB1982D1C90017C788 /* AdMob iOS SDK */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -255,6 +271,7 @@
"$(inherited)",
"$(SRCROOT)",
"$(PROJECT_DIR)/GoogleMobileAdsSdkiOS",
"$(PROJECT_DIR)/platform",
);
OTHER_CFLAGS = (
"-DDEBUG",
Expand Down Expand Up @@ -310,6 +327,7 @@
"$(inherited)",
"$(SRCROOT)",
"$(PROJECT_DIR)/GoogleMobileAdsSdkiOS",
"$(PROJECT_DIR)/platform",
);
OTHER_CFLAGS = "-DTI_POST_1_2";
OTHER_LDFLAGS = "-ObjC";
Expand Down
2 changes: 2 additions & 0 deletions ios/documentation/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Change Log
<pre>
v2.1.0 [MOD-2196] Support the iAd adapter

v2.0.0 [MOD-2182] Updating Admob SDK to 7.6.0, support iOS 9, support for new API's'

v1.9.0 [TIMOB-18092] ti.admob added 64bit support for iOS #15
Expand Down
4 changes: 4 additions & 0 deletions ios/documentation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ To receive an interstitional ad, you need to call `ad.receive()` instead of addi
It fires the `didReceiveAd` event if the ad was successfully received, the `didFailToReceiveAd` event otherwise. Please check
the example for a detailed example of different banner types.

### iAd

Starting in 2.1.0 you can use the included iAd adapter to turn on the iAd mediation in your Admob account.

## Usage

See example.
Expand Down
2 changes: 1 addition & 1 deletion ios/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 2.0.1
version: 2.1.0
architectures: armv7 i386 x86_64 arm64
description: AdMob module for ad delivery via AdMob
author: Jeff Haynie, Stephen Tramer, Jasper Kennis, Jon Alter and Hans Knoechel
Expand Down
4 changes: 2 additions & 2 deletions ios/module.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// PLACE ANY BUILD DEFINITIONS IN THIS FILE AND THEY WILL BE
// PICKED UP DURING THE APP BUILD FOR YOUR MODULE
//
FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/ti.admob/2.0.1/platform "~/Library/Application\ Support/Titanium/modules/iphone/ti.admob/2.0.1/platform"
FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/ti.admob/2.1.0/platform "~/Library/Application\ Support/Titanium/modules/iphone/ti.admob/2.1.0/platform"

OTHER_LDFLAGS=$(inherited) -framework AdSupport -framework AudioToolbox -framework AVFoundation -framework CoreGraphics -framework CoreTelephony -framework MessageUI -framework StoreKit -framework SystemConfiguration -framework GoogleMobileAds
OTHER_LDFLAGS=$(inherited) -framework AdSupport -framework iAd -framework AudioToolbox -framework AVFoundation -framework CoreGraphics -framework CoreTelephony -framework MessageUI -framework StoreKit -framework SystemConfiguration -framework GoogleMobileAds
Binary file added ios/platform/libAdapterIAd.a
Binary file not shown.

0 comments on commit f259f46

Please sign in to comment.