Skip to content

Commit

Permalink
[Facebook.iOS] Update FBAudienceNetwork to v6.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dalexsoto committed Mar 4, 2021
1 parent b9ddfff commit da1b2e8
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 86 deletions.
4 changes: 2 additions & 2 deletions Facebook.iOS/components.cake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var FACEBOOK_SDKS_VERSION = FACEBOOK_SDK_VERSION;
var LOGIN_KIT_VERSION = FACEBOOK_SDK_VERSION;
var SHARE_KIT_VERSION = FACEBOOK_SDK_VERSION;
var GAMINGSERVICES_KIT_VERSION = FACEBOOK_SDK_VERSION;
var AUDIENCE_NETWORK_VERSION = "5.10.1";
var AUDIENCE_NETWORK_VERSION = "6.3.0";

var CORE_KIT_NUGET_VERSION = NUGET_VERSION;
var FACEBOOK_SDKS_NUGET_VERSION = NUGET_VERSION;
Expand All @@ -20,7 +20,7 @@ Artifact FACEBOOK_SDKS_ARTIFACT = new Artifact ("FacebookSdks", FACEBO
Artifact LOGIN_KIT_ARTIFACT = new Artifact ("LoginKit", LOGIN_KIT_NUGET_VERSION, "9.0");
Artifact SHARE_KIT_ARTIFACT = new Artifact ("ShareKit", SHARE_KIT_NUGET_VERSION, "9.0");
Artifact GAMINGSERVICES_KIT_ARTIFACT = new Artifact ("GamingServicesKit", GAMINGSERVICES_KIT_NUGET_VERSION, "9.0");
Artifact AUDIENCE_NETWORK_ARTIFACT = new Artifact ("AudienceNetwork", AUDIENCE_NETWORK_VERSION, "9.0");
Artifact AUDIENCE_NETWORK_ARTIFACT = new Artifact ("AudienceNetwork", AUDIENCE_NETWORK_VERSION, "9.0");

var ARTIFACTS = new Dictionary<string, Artifact> {
{ "AudienceNetwork", AUDIENCE_NETWORK_ARTIFACT },
Expand Down
2 changes: 1 addition & 1 deletion Facebook.iOS/samples/FacebookiOSSample/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>9.0</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
Expand Down
2 changes: 1 addition & 1 deletion Facebook.iOS/samples/HelloFacebook/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>9.0</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
Expand Down
109 changes: 29 additions & 80 deletions Facebook.iOS/source/AudienceNetwork/ApiDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,10 @@ interface AdSettings {
[Export ("routingToken")]
string RoutingToken { get; }

[Static]
[Export ("setAdvertiserTrackingEnabled:")]
void SetAdvertiserTrackingEnabled (bool advertiserTrackingEnabled);

[Static]
[Export ("isTestMode")]
bool IsTestMode { get; }
Expand Down Expand Up @@ -780,87 +784,9 @@ interface AudienceNetworkAds {
[Export ("initializeWithSettings:completionHandler:")]
void Initialize ([NullAllowed] AdInitSettings settings, [NullAllowed] Action<AdInitResults> completionHandler);

// +(FBAdFormatTypeName)adFormatTypeNameForPlacementId:(NSString * _Nonnull)placementId;
[Static]
[Export ("adFormatTypeNameForPlacementId:")]
AdFormatTypeName GetAdFormatTypeName (string placementId);
}

// @interface FBInstreamAdView : UIView
[DisableDefaultCtor]
[BaseType (typeof (UIView), Name = "FBInstreamAdView")]
interface InstreamAdView {
// @property (readonly, getter = isAdValid, nonatomic) BOOL adValid;
[Export ("adValid")]
bool IsAdValid { [Bind ("isAdValid")] get; }

// @property (nonatomic, weak) id<FBInstreamAdViewDelegate> _Nullable delegate;
[NullAllowed]
[Export ("delegate", ArgumentSemantic.Weak)]
IInstreamAdViewDelegate Delegate { get; set; }

// @property (readonly, copy, nonatomic) NSString * _Nonnull placementID;
[NullAllowed]
[Export ("placementID")]
string PlacementId { get; }

// @property (nonatomic, strong) FBAdExtraHint * _Nullable extraHint;
[NullAllowed]
[Export ("extraHint", ArgumentSemantic.Strong)]
AdExtraHint ExtraHint { get; set; }

// -(instancetype _Nullable)initWithPlacementID:(NSString * _Nonnull)placementID __attribute__((objc_designated_initializer));
[Obsolete("Instream ads have been deprecated. Initialiser will return nil.")]
[DesignatedInitializer]
[Export ("initWithPlacementID:")]
IntPtr Constructor (string placementId);

// -(void)loadAd;
[Obsolete("Instream ads have been deprecated. Initialiser will return nil.")]
[PostGet ("IsAdValid")]
[Export ("loadAd")]
void LoadAd ();

// - (void) loadAdWithBidPayload:(NSString*) bidPayload;
[Obsolete("Instream ads have been deprecated. Initialiser will return nil.")]
[Export ("loadAdWithBidPayload:")]
void LoadAd (string bidPayload);

// -(BOOL)showAdFromRootViewController:(UIViewController * _Nullable)rootViewController;
[Obsolete("Instream ads have been deprecated. Initialiser will return nil.")]
[Export ("showAdFromRootViewController:")]
bool ShowAd ([NullAllowed] UIViewController rootViewController);
}

interface IInstreamAdViewDelegate { }

// @protocol FBInstreamAdViewDelegate <NSObject>
[Model (AutoGeneratedName = true)]
[Protocol]
[BaseType (typeof (NSObject), Name = "FBInstreamAdViewDelegate")]
interface InstreamAdViewDelegate {
// @required -(void)adViewDidLoad:(FBInstreamAdView * _Nonnull)adView;
[Abstract]
[Export ("adViewDidLoad:")]
void AdViewDidLoad ([NullAllowed] InstreamAdView adView);

// @required -(void)adViewDidEnd:(FBInstreamAdView * _Nonnull)adView;
[Abstract]
[Export ("adViewDidEnd:")]
void AdViewDidEnd ([NullAllowed] InstreamAdView adView);

// @required -(void)adView:(FBInstreamAdView * _Nonnull)adView didFailWithError:(NSError * _Nonnull)error;
[Abstract]
[Export ("adView:didFailWithError:")]
void AdViewDidFail ([NullAllowed] InstreamAdView adView, [NullAllowed] NSError error);

// @optional -(void)adViewDidClick:(FBInstreamAdView * _Nonnull)adView;
[Export ("adViewDidClick:")]
void AdViewDidClick ([NullAllowed] InstreamAdView adView);

// @optional -(void)adViewWillLogImpression:(FBInstreamAdView * _Nonnull)adView;
[Export ("adViewWillLogImpression:")]
void AdViewWillLogImpression ([NullAllowed] InstreamAdView adView);
[Export ("handleDeeplink:")]
void HandleDeeplink (NSUrl deeplink);
}

[DisableDefaultCtor]
Expand Down Expand Up @@ -1872,4 +1798,27 @@ interface UIView_NativeAdViewTag {
[Export ("setNativeAdViewTag:")]
void SetNativeAdViewTag (NativeAdViewTag nativeAdViewTag);
}

interface IAdSdkNotificationListener { }

[Protocol (Name = "FBAdSDKNotificationListener")]
interface AdSdkNotificationListener {

[Abstract]
[Export ("onFBAdEvent:eventData:")]
void OnFBAdEvent (string @event, NSDictionary<NSString, NSString> eventData);
}

[BaseType (typeof (NSObject), Name = "FBAdSDKNotificationManager")]
interface AdSdkNotificationManager {

[Static]
[Export ("addFBAdSDKNotificationListener:")]
void Add (IAdSdkNotificationListener notificationListener);

[Static]
[Export ("removeFBAdSDKNotificationListener:")]
void Remove (IAdSdkNotificationListener notificationListener);
}

}
4 changes: 2 additions & 2 deletions Facebook.iOS/source/AudienceNetwork/AudienceNetwork.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<RootNamespace>Facebook.AudienceNetwork</RootNamespace>
<AssemblyName>Facebook.AudienceNetwork</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>5.10.1</FileVersion>
<FileVersion>6.3.0</FileVersion>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ProcessEnums>true</ProcessEnums>
Expand All @@ -23,7 +23,7 @@
<PackageProjectUrl>https://go.microsoft.com/fwlink/?linkid=865579</PackageProjectUrl>
<PackageLicenseUrl>https://go.microsoft.com/fwlink/?linkid=865583</PackageLicenseUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageVersion>5.10.1</PackageVersion>
<PackageVersion>6.3.0</PackageVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit da1b2e8

Please sign in to comment.