Skip to content

Commit

Permalink
MobileFuse/1.4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Jan 25, 2023
1 parent bf8f4da commit b3a4780
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 17 deletions.
9 changes: 3 additions & 6 deletions MobileFuse/AppLovinMediationMobileFuseAdapter.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
Pod::Spec.new do |s|

s.authors =
{
'AppLovin Corporation' => '[email protected]'
}
s.authors = 'AppLovin Corporation'
s.name = 'AppLovinMediationMobileFuseAdapter'
s.version = '1.3.1.0'
s.version = '1.4.0.0'
s.platform = :ios, '10.0'
s.summary = 'MobileFuse adapter used for mediation with the AppLovin MAX SDK'
s.homepage = "https://github.com/CocoaPods/Specs/search?o=desc&q=#{s.name}&s=indexed"
Expand All @@ -29,7 +26,7 @@ s.source =

s.vendored_frameworks = "#{s.name}-#{s.version}/#{s.name}.xcframework"

s.dependency 'MobileFuseSDK', '= 1.3.1'
s.dependency 'MobileFuseSDK', '= 1.4.0'
s.dependency 'AppLovinSDK'

s.pod_target_xcconfig =
Expand Down
4 changes: 4 additions & 0 deletions MobileFuse/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.4.0.0
* Certified with MobileFuse SDK 1.4.0.
* Disable bitcode, as Apple deprecated it in Xcode 14 (https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes).

## 1.3.1.0
* Certified with MobileFuse SDK 1.3.1.

Expand Down
6 changes: 4 additions & 2 deletions MobileFuse/MobileFuseAdapter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_BITCODE = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
FRAMEWORK_SEARCH_PATHS = "";
Expand Down Expand Up @@ -277,6 +278,7 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_BITCODE = NO;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
FRAMEWORK_SEARCH_PATHS = "";
Expand Down Expand Up @@ -305,13 +307,13 @@
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = X8JXXK4FF5;
ENABLE_BITCODE = NO;
EXCLUDED_ARCHS = i386;
FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**";
HEADER_SEARCH_PATHS = "";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LIBRARY_SEARCH_PATHS = "$(inherited)";
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-fembed-bitcode-marker";
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -327,13 +329,13 @@
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = X8JXXK4FF5;
ENABLE_BITCODE = NO;
EXCLUDED_ARCHS = i386;
FRAMEWORK_SEARCH_PATHS = "../../iOS-Workspace/Pods/**";
HEADER_SEARCH_PATHS = "";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LIBRARY_SEARCH_PATHS = "$(inherited)";
ONLY_ACTIVE_ARCH = NO;
OTHER_CFLAGS = "-fembed-bitcode";
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

NS_ASSUME_NONNULL_BEGIN

@interface ALMobileFuseMediationAdapter : ALMediationAdapter<MASignalProvider, MAInterstitialAdapter, MARewardedAdapter, MAAdViewAdapter>
@interface ALMobileFuseMediationAdapter : ALMediationAdapter <MASignalProvider, MAInterstitialAdapter, MARewardedAdapter, MAAdViewAdapter>

@end

Expand Down
22 changes: 14 additions & 8 deletions MobileFuse/MobileFuseAdapter/ALMobileFuseMediationAdapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
#import <MobileFuseSDK/MFBannerAd.h>
#import <MobileFuseSDK/MFRewardedAd.h>

#define ADAPTER_VERSION @"1.3.1.0"
#define ADAPTER_VERSION @"1.4.0.0"

@interface ALMobileFuseInterstitialDelegate : NSObject<IMFAdCallbackReceiver>
@interface ALMobileFuseInterstitialDelegate : NSObject <IMFAdCallbackReceiver>
@property (nonatomic, weak) ALMobileFuseMediationAdapter *parentAdapter;
@property (nonatomic, strong) id<MAInterstitialAdapterDelegate> delegate;
- (instancetype)initWithParentAdapter:(ALMobileFuseMediationAdapter *)parentAdapter andNotify:(id<MAInterstitialAdapterDelegate>)delegate;
@end

@interface ALMobileFuseRewardedAdDelegate : NSObject<IMFAdCallbackReceiver>
@interface ALMobileFuseRewardedAdDelegate : NSObject <IMFAdCallbackReceiver>
@property (nonatomic, weak) ALMobileFuseMediationAdapter *parentAdapter;
@property (nonatomic, strong) id<MARewardedAdapterDelegate> delegate;
@property (nonatomic, assign, getter=hasGrantedReward) BOOL grantedReward;
- (instancetype)initWithParentAdapter:(ALMobileFuseMediationAdapter *)parentAdapter andNotify:(id<MARewardedAdapterDelegate>)delegate;
@end

@interface ALMobileFuseAdViewDelegate : NSObject<IMFAdCallbackReceiver>
@interface ALMobileFuseAdViewDelegate : NSObject <IMFAdCallbackReceiver>
@property (nonatomic, weak) MAAdFormat *format;
@property (nonatomic, weak) ALMobileFuseMediationAdapter *parentAdapter;
@property (nonatomic, strong) id<MAAdViewAdapterDelegate> delegate;
Expand All @@ -39,7 +39,7 @@ - (instancetype)initWithParentAdapter:(ALMobileFuseMediationAdapter *)parentAdap
andNotify:(id<MAAdViewAdapterDelegate>)delegate;
@end

@interface ALMobileFuseMediationAdapter()
@interface ALMobileFuseMediationAdapter ()

@property (nonatomic, strong) MFInterstitialAd *interstitialAd;
@property (nonatomic, strong) ALMobileFuseInterstitialDelegate *interstitialAdapterDelegate;
Expand Down Expand Up @@ -126,7 +126,10 @@ - (void)showInterstitialAdForParameters:(id<MAAdapterResponseParameters>)paramet
else if ( ![self.interstitialAd isAdReady] )
{
[self log: @"Unable to show interstitial - ad not ready"];
[delegate didFailToDisplayInterstitialAdWithError: MAAdapterError.adNotReady];
[delegate didFailToDisplayInterstitialAdWithError: [MAAdapterError errorWithCode: -4205
errorString: @"Ad Display Failed"
mediatedNetworkErrorCode: 0
mediatedNetworkErrorMessage: @"Interstitial ad not ready"]];
return;
}

Expand Down Expand Up @@ -163,7 +166,10 @@ - (void)showRewardedAdForParameters:(id<MAAdapterResponseParameters>)parameters
else if ( ![self.rewardedAd isAdReady] )
{
[self log: @"Unable to show rewarded ad - ad not ready"];
[delegate didFailToDisplayRewardedAdWithError: MAAdapterError.adNotReady];
[delegate didFailToDisplayRewardedAdWithError: [MAAdapterError errorWithCode: -4205
errorString: @"Ad Display Failed"
mediatedNetworkErrorCode: 0
mediatedNetworkErrorMessage: @"Rewarded ad not ready"]];
return;
}

Expand Down Expand Up @@ -431,7 +437,7 @@ - (void)onAdLoaded:(MFAd *)ad
[self.parentAdapter log: @"AdView ad loaded: %@", ad.placementId];
[self.delegate didLoadAdForAdView: ad];

[(MFBannerAd *)ad showAdWithViewController: [ALUtils topViewControllerFromKeyWindow]];
[(MFBannerAd *) ad showAdWithViewController: [ALUtils topViewControllerFromKeyWindow]];
}

- (void)onAdNotFilled:(MFAd *)ad
Expand Down

0 comments on commit b3a4780

Please sign in to comment.