Skip to content

Commit

Permalink
Landscape rendering improvements and stabilization
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevenNefta committed Mar 21, 2024
1 parent e9c7bc4 commit 076a510
Show file tree
Hide file tree
Showing 47 changed files with 6,504 additions and 3,730 deletions.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ - (void)OnClose {
}

- (nonnull UIView *)view {
return [_adapter.Plugin GetViewForPlacement: _placement];
return [_adapter.Plugin GetViewForPlacement: _placement show: false];
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ - (void)presentFromViewController:(nonnull UIViewController *)viewController {
return;
}

[_adapter.Plugin PrepareRendererWithView: viewController.view];
[_adapter.Plugin PrepareRendererWithViewController: viewController];
[_adapter.Plugin ShowWithId: _placement._id];
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "NeftaAdapter.h"
#import <NeftaSDK/NeftaSDK-Swift.h>
#import "AdBannerNeftaRequest.h"
#import "InterstitialNeftaRequest.h"
#import "RewardedVideoNeftaRequest.h"
Expand Down Expand Up @@ -27,7 +26,7 @@ + (GADVersionNumber)adSDKVersion {
}

+ (GADVersionNumber)adapterVersion {
GADVersionNumber version = {1, 0, 0};
GADVersionNumber version = {1, 0, 1};
return version;
}

Expand Down Expand Up @@ -98,8 +97,7 @@ - (void) loadBannerForAdConfiguration: (GADMediationBannerAdConfiguration *)adCo

UIApplication *application = [UIApplication sharedApplication];
UIWindow *keyWindow = application.keyWindow;
UIView *rootView = keyWindow.rootViewController.view;
[_plugin PrepareRendererWithView: rootView];
[_plugin PrepareRendererWithViewController: keyWindow.rootViewController];

[_plugin LoadWithId: placementId];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ - (void)presentFromViewController:(nonnull UIViewController *)viewController {
return;
}

[_adapter.Plugin PrepareRendererWithView: viewController.view];
[_adapter.Plugin PrepareRendererWithViewController: viewController];
if (_muteAudio) {
[_adapter.Plugin Mute: true];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,41 @@
<dict>
<key>BinaryPath</key>
<string>NeftaSDK.framework/NeftaSDK</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>NeftaSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>NeftaSDK.framework/NeftaSDK</string>
<key>DebugSymbolsPath</key>
<string>dSYMs</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>NeftaSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>Version</key>
<string>3.2.4</string>
<string>3.2.5</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) void (^ _Nullable OnLog)
- (void)CloseWithId:(NSString * _Nonnull)id;
- (void)Mute:(BOOL)mute;
- (NSString * _Nonnull)ShowNuid SWIFT_WARN_UNUSED_RESULT;
- (UIView * _Nullable)GetViewForPlacement:(Placement * _Nonnull)placement SWIFT_WARN_UNUSED_RESULT;
- (UIView * _Nullable)GetViewForPlacement:(Placement * _Nonnull)placement show:(BOOL)show SWIFT_WARN_UNUSED_RESULT;
@end

@class UIViewController;
Expand All @@ -488,9 +488,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NeftaPlugin_iOS * _Nul
+ (void)EnableLogging:(BOOL)enable;
+ (NeftaPlugin_iOS * _Nonnull)InitWithAppId:(NSString * _Nullable)appId SWIFT_WARN_UNUSED_RESULT;
- (void)PrepareRendererWithViewController:(UIViewController * _Nonnull)viewController;
- (void)PrepareRendererWithView:(UIView * _Nonnull)view;
- (void)Mute:(BOOL)mute;
- (UIView * _Nullable)GetViewForPlacement:(Placement * _Nonnull)placement SWIFT_WARN_UNUSED_RESULT;
- (UIView * _Nullable)GetViewForPlacement:(Placement * _Nonnull)placement show:(BOOL)show SWIFT_WARN_UNUSED_RESULT;
@end


Expand All @@ -509,6 +508,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 Expand Up @@ -547,6 +547,7 @@ SWIFT_CLASS("_TtC8NeftaSDK13WebController")
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder SWIFT_UNAVAILABLE;
- (void)layoutSubviews;
- (void)didMoveToSuperview;
- (void)webView:(WKWebView * _Nonnull)webView didFailNavigation:(WKNavigation * _Null_unspecified)navigation withError:(NSError * _Nonnull)error;
- (void)webView:(WKWebView * _Nonnull)webView didFailProvisionalNavigation:(WKNavigation * _Null_unspecified)navigation withError:(NSError * _Nonnull)error;
- (void)webView:(WKWebView * _Nonnull)webView didFinishNavigation:(WKNavigation * _Null_unspecified)navigation;
Expand Down

0 comments on commit 076a510

Please sign in to comment.