Skip to content

Commit

Permalink
Publishing latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan Emrich committed Dec 14, 2015
1 parent 8141d8d commit 6e770e7
Show file tree
Hide file tree
Showing 83 changed files with 3,164 additions and 405 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
ENABLE_BITCODE = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
Expand Down Expand Up @@ -226,6 +227,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
ENABLE_BITCODE = NO;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
ENABLE_BITCODE = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
Expand Down Expand Up @@ -226,6 +227,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
ENABLE_BITCODE = NO;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_BITCODE = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
Expand Down Expand Up @@ -265,6 +266,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_BITCODE = NO;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
Expand Down
225 changes: 127 additions & 98 deletions Objective-C/admob/NativeExample/NativeExample/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "stars_3_5.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "stars_4.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "stars_4_5.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "stars_5.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/// Refresh the native ad.
@property(nonatomic, weak) IBOutlet UIButton *refreshButton;

/// Displays the Mobile Ads SDK version number.
/// The Google Mobile Ads SDK version number label.
@property(nonatomic, weak) IBOutlet UILabel *versionLabel;

/// Refreshes the ad.
Expand Down
10 changes: 5 additions & 5 deletions Objective-C/admob/NativeExample/NativeExample/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ - (void)adLoader:(GADAdLoader *)adLoader

// Populate the app install ad view with the app install ad assets.
((UILabel *)appInstallAdView.headlineView).text = nativeAppInstallAd.headline;
((UIImageView *)appInstallAdView.iconView).image = nativeAppInstallAd.icon.image;
((UIImageView *)appInstallAdView.iconView).image = nativeAppInstallAd.icon.image;
((UILabel *)appInstallAdView.bodyView).text = nativeAppInstallAd.body;
((UILabel *)appInstallAdView.storeView).text = nativeAppInstallAd.store;
((UILabel *)appInstallAdView.priceView).text = nativeAppInstallAd.price;
Expand All @@ -123,13 +123,13 @@ - (void)adLoader:(GADAdLoader *)adLoader
- (UIImage *)imageForStars:(NSDecimalNumber *)numberOfStars {
double starRating = [numberOfStars doubleValue];
if (starRating >= 5) {
return [UIImage imageNamed:@"stars_5.png"];
return [UIImage imageNamed:@"stars_5"];
} else if (starRating >= 4.5) {
return [UIImage imageNamed:@"stars_4_5.png"];
return [UIImage imageNamed:@"stars_4_5"];
} else if (starRating >= 4) {
return [UIImage imageNamed:@"stars_4.png"];
return [UIImage imageNamed:@"stars_4"];
} else if (starRating >= 3.5) {
return [UIImage imageNamed:@"stars_3_5.png"];
return [UIImage imageNamed:@"stars_3_5"];
} else {
return nil;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

/// AdMob - Ad Delegate
/// Demonstrates handling GADBannerViewDelegate ad request status and ad click lifecycle messages.
/// This is an AdMob example, so it uses a GADBannerView to show an AdMob ad. GADBannerViewDelegate
/// also works with DFPBannerView objects, so publishers displaying ads from
/// DoubleClick For Publishers (DFP) can also use it with their banners. To see this in action,
/// use the DFPBannerView class instead of GADBannerView.
@interface AdMobAdDelegateViewController () <GADBannerViewDelegate>

/// The banner view.
Expand All @@ -46,34 +50,34 @@ - (void)viewDidLoad {
#pragma mark - GADBannerViewDelegate

// Called when an ad request loaded an ad.
- (void)adViewDidReceiveAd:(GADBannerView *)adView {
- (void)adViewDidReceiveAd:(GADBannerView *)bannerView {
NSLog(@"%s", __PRETTY_FUNCTION__);
}

// Called when an ad request failed.
- (void)adView:(GADBannerView *)adView didFailToReceiveAdWithError:(GADRequestError *)error {
- (void)adView:(GADBannerView *)bannerView didFailToReceiveAdWithError:(GADRequestError *)error {
NSLog(@"%s: %@", __PRETTY_FUNCTION__, error.localizedDescription);
}

// Called just before presenting the user a full screen view, such as a browser, in response to
// clicking on an ad.
- (void)adViewWillPresentScreen:(GADBannerView *)adView {
- (void)adViewWillPresentScreen:(GADBannerView *)bannerView {
NSLog(@"%s", __PRETTY_FUNCTION__);
}

// Called just before dismissing a full screen view.
- (void)adViewWillDismissScreen:(GADBannerView *)adView {
- (void)adViewWillDismissScreen:(GADBannerView *)bannerView {
NSLog(@"%s", __PRETTY_FUNCTION__);
}

// Called just after dismissing a full screen view.
- (void)adViewDidDismissScreen:(GADBannerView *)adView {
- (void)adViewDidDismissScreen:(GADBannerView *)bannerView {
NSLog(@"%s", __PRETTY_FUNCTION__);
}

// Called just before the application will background or terminate because the user clicked on an ad
// that will launch another application (such as the App Store).
- (void)adViewWillLeaveApplication:(GADBannerView *)adView {
- (void)adViewWillLeaveApplication:(GADBannerView *)bannerView {
NSLog(@"%s", __PRETTY_FUNCTION__);
}

Expand Down
Loading

0 comments on commit 6e770e7

Please sign in to comment.