Skip to content

Commit

Permalink
Minor adapter integration improvements, optimized videoPlayer for And…
Browse files Browse the repository at this point in the history
…roid
  • Loading branch information
TrevenNefta committed Feb 29, 2024
1 parent c5bb17a commit d53ee2d
Show file tree
Hide file tree
Showing 97 changed files with 1,033 additions and 1,189 deletions.
3 changes: 3 additions & 0 deletions Assets/MaxSdk/Resources/AppLovinSettings.asset.meta

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

3 changes: 0 additions & 3 deletions Assets/NeftaCustomAdapter/Editor/Dependencies.xml
Expand Up @@ -2,8 +2,5 @@
<dependencies>
<androidPackages>
<androidPackage spec="androidx.lifecycle:lifecycle-process:2.4.1" />
<androidPackage spec="com.google.errorprone:error_prone_annotations:2.18.0" />
<androidPackage spec="androidx.annotation:annotation:1.7.1" />
<androidPackage spec="com.google.guava:guava:30.1-jre" />
</androidPackages>
</dependencies>
Binary file not shown.
Binary file not shown.

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

Binary file not shown.

This file was deleted.

Binary file not shown.

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

15 changes: 10 additions & 5 deletions Assets/NeftaCustomAdapter/Plugins/iOS/ALNeftaMediationAdapter.m
Expand Up @@ -37,11 +37,13 @@ - (void)initializeWithParameters:(id<MAAdapterInitializationParameters>)paramete
} else if (placement._type == TypesRewardedVideo) {
[((id<MARewardedAdapterDelegate>)listener) didFailToLoadRewardedAdWithError: MAAdapterError.unspecified];
}
[_listeners removeObjectForKey: placement._id];
};
_plugin.OnLoad = ^(Placement *placement) {
id<MAAdapterDelegate> listener = _listeners[placement._id];
if (placement._type == TypesBanner) {
dispatch_async(dispatch_get_main_queue(), ^{
placement._isManualPosition = true;
[_plugin ShowMainWithId: placement._id];
[((id<MAAdViewAdapterDelegate>)listener) didLoadAdForAdView: [_plugin GetViewForPlacement: placement]];
});
Expand Down Expand Up @@ -88,6 +90,7 @@ - (void)initializeWithParameters:(id<MAAdapterInitializationParameters>)paramete
} else if (placement._type == TypesRewardedVideo) {
[((id<MARewardedAdapterDelegate>)listener) didHideRewardedAd];
}
[_listeners removeObjectForKey: placement._id];
};

[_plugin EnableAds: true];
Expand All @@ -96,14 +99,16 @@ - (void)initializeWithParameters:(id<MAAdapterInitializationParameters>)paramete
}
}

- (NSString *)SDKVersion
{
- (NSString *)SDKVersion {
return NeftaPlugin_iOS.Version;
}

- (NSString *)adapterVersion
{
return @"1.1.1";
- (NSString *)adapterVersion {
return @"1.1.2";
}

- (void)destroy {
[_plugin Close];
}

- (void)loadAdViewAdForParameters:(id<MAAdapterResponseParameters>)parameters adFormat:(MAAdFormat *)adFormat andNotify:(id<MAAdViewAdapterDelegate>)delegate {
Expand Down
Expand Up @@ -37,7 +37,7 @@
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>Version</key>
<string>3.2.1</string>
<string>3.2.2</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
Expand Down
Expand Up @@ -486,6 +486,7 @@ SWIFT_CLASS("_TtC8NeftaSDK9Placement")
@property (nonatomic) NSUInteger _showTime;
@property (nonatomic) NSUInteger _timeSinceFailedLoad;
@property (nonatomic) BOOL _isHidden;
@property (nonatomic) BOOL _isManualPosition;
- (BOOL)IsBidding SWIFT_WARN_UNUSED_RESULT;
- (BOOL)IsLoading SWIFT_WARN_UNUSED_RESULT;
- (BOOL)IsShowing SWIFT_WARN_UNUSED_RESULT;
Expand Down

0 comments on commit d53ee2d

Please sign in to comment.