Skip to content

Commit 0775e94

Browse files
authored
Merge pull request #26 from AppsFlyerSDK/releases/6.1.3.2
Releases/6.1.3.2
2 parents 85648c6 + 8216bbb commit 0775e94

13 files changed

+139
-12
lines changed

AppsFlyerSampleApp/AppDelegate.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ public override bool FinishedLaunching (UIApplication application, NSDictionary
3939
ViewController controller = (ViewController)Window.RootViewController;
4040
AppsFlyerLibDelegate af_delegate = new AppsFlyerConversionDataDelegate (controller);
4141
AppsFlyerLib.Shared.Delegate = af_delegate;
42+
AppsFlyerLib.Shared.DeepLinkDelegate = new MyAppsFlyerDeepLinkDelegate();
4243

43-
// Uninstall Measurement
44-
var settings = UIUserNotificationSettings.GetSettingsForTypes (
44+
// Uninstall Measurement
45+
var settings = UIUserNotificationSettings.GetSettingsForTypes (
4546
UIUserNotificationType.Alert
4647
| UIUserNotificationType.Badge
4748
| UIUserNotificationType.Sound,

AppsFlyerSampleApp/AppsFlyerSampleApp.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<Reference Include="Xamarin.iOS" />
7979
<Reference Include="System.Drawing.Common.dll" />
8080
<Reference Include="AppsFlyerXamarinBinding">
81-
<HintPath>..\packages\AppsFlyerXamarinBinding.6.1.3.1\lib\xamarinios10\AppsFlyerXamarinBinding.dll</HintPath>
81+
<HintPath>..\packages\AppsFlyerXamarinBinding.6.1.3.2\lib\xamarinios10\AppsFlyerXamarinBinding.dll</HintPath>
8282
</Reference>
8383
</ItemGroup>
8484
<ItemGroup>
@@ -98,6 +98,7 @@
9898
<DependentUpon>ViewController.cs</DependentUpon>
9999
</Compile>
100100
<Compile Include="AppsFlyerConversionDataDelegate.cs" />
101+
<Compile Include="MyAppsFlyerDeepLinkDelegate.cs" />
101102
</ItemGroup>
102103
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
103104
</Project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using AppsFlyerXamarinBinding;
3+
4+
namespace AppsFlyerSampleApp
5+
{
6+
public class MyAppsFlyerDeepLinkDelegate : AppsFlyerDeepLinkDelegate
7+
{
8+
public MyAppsFlyerDeepLinkDelegate ()
9+
{
10+
}
11+
12+
public override void DidResolveDeepLink (AppsFlyerDeepLinkResult result)
13+
{
14+
string message = "DDL result: " + result.status;
15+
Console.WriteLine (message);
16+
}
17+
}
18+
}

AppsFlyerSampleApp/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="AppsFlyerXamarinBinding" version="6.1.3.1" targetFramework="xamarinios10" />
3+
<package id="AppsFlyerXamarinBinding" version="6.1.3.2" targetFramework="xamarinios10" />
44
</packages>

AppsFlyerXamarinBinding/ApiDefinition.cs

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,95 @@ interface AppsFlyerLibDelegate
3434
NSDictionary<NSString, NSString> AllHTTPHeaderFieldsForResolveDeepLinkURL (NSUrl URL);
3535
}
3636

37+
// @protocol AppsFlyerDeepLinkDelegate <NSObject>
38+
[Protocol, Model]
39+
[BaseType (typeof (NSObject))]
40+
interface AppsFlyerDeepLinkDelegate
41+
{
42+
// @optional - (void)didResolveDeepLink:(AppsFlyerDeepLinkResult *_Nonnull)result;
43+
[Abstract]
44+
[Export ("didResolveDeepLink:")]
45+
void DidResolveDeepLink (AppsFlyerDeepLinkResult result);
46+
}
47+
48+
// @interface AppsFlyerDeepLinkResult : NSObject
49+
[BaseType (typeof (NSObject))]
50+
interface AppsFlyerDeepLinkResult
51+
{
52+
// @property(readonly) AFSDKDeepLinkResultStatus status;
53+
[Export ("status")]
54+
AFSDKDeepLinkResultStatus status { get; }
55+
56+
//@property (readonly, nullable) AppsFlyerDeepLink* deepLink;
57+
[Export ("deepLink")]
58+
AppsFlyerDeepLink deepLink { get; }
59+
60+
//@property (readonly, nullable) NSError* error;
61+
[Export ("error")]
62+
NSError error { get; }
63+
}
64+
65+
// @interface AppsFlyerDeepLink : NSObject
66+
[BaseType (typeof (NSObject))]
67+
interface AppsFlyerDeepLink
68+
{
69+
//@property (readonly, nonnull) NSDictionary<NSString*, id>* clickEvent;
70+
[Export ("clickEvent")]
71+
NSDictionary clickEvent { get; }
72+
73+
//@property (readonly, nullable) NSString* deeplinkValue;
74+
[Export ("deeplinkValue")]
75+
string deeplinkValue { get; }
76+
77+
//@property (readonly, nullable) NSString* matchType;
78+
[Export ("matchType")]
79+
string matchType { get; }
80+
81+
//@property (readonly, nullable) NSString* clickHTTPReferrer;
82+
[Export ("clickHTTPReferrer")]
83+
string clickHTTPReferrer { get; }
84+
85+
//@property (readonly, nullable) NSString* mediaSource;
86+
[Export ("mediaSource")]
87+
string mediaSource { get; }
88+
89+
//@property (readonly, nullable) NSString* campaign;
90+
[Export ("campaign")]
91+
string campaign { get; }
92+
93+
//@property (readonly, nullable) NSString* campaignId;
94+
[Export ("campaignId")]
95+
string campaignId { get; }
96+
97+
//@property (readonly, nullable) NSString* afSub1;
98+
[Export ("afSub1")]
99+
string afSub1 { get; }
100+
101+
//@property (readonly, nullable) NSString* afSub2;
102+
[Export ("afSub2")]
103+
string afSub2 { get; }
104+
105+
//@property (readonly, nullable) NSString* afSub3;
106+
[Export ("afSub3")]
107+
string afSub3 { get; }
108+
109+
//@property (readonly, nullable) NSString* afSub4;
110+
[Export ("afSub4")]
111+
string afSub4 { get; }
112+
113+
//@property (readonly, nullable) NSString* afSub5;
114+
[Export ("afSub5")]
115+
string afSub5 { get; }
116+
117+
//@property (readonly) BOOL isDeferred;
118+
[Export ("isDeferred")]
119+
bool isDeferred { get; }
120+
121+
//- (NSString *)toString;
122+
[Export ("toString")]
123+
string toString ();
124+
}
125+
37126
// @interface AppsFlyerLib : NSObject
38127
[BaseType (typeof (NSObject))]
39128
interface AppsFlyerLib
@@ -97,6 +186,16 @@ interface AppsFlyerLib
97186
[Wrap ("WeakDelegate")]
98187
AppsFlyerLibDelegate Delegate { get; set; }
99188

189+
// @property (nonatomic, unsafe_unretained) id<AppsFlyerDeepLinkDelegate> deepLinkDelegate;
190+
[Export ("deepLinkDelegate", ArgumentSemantic.UnsafeUnretained)]
191+
[NullAllowed]
192+
NSObject WeakDeepLinkDelegate { get; set; }
193+
194+
// @property (nonatomic, unsafe_unretained) id<AppsFlyerDeepLinkDelegate> deepLinkDelegate;
195+
[Wrap ("WeakDeepLinkDelegate")]
196+
AppsFlyerDeepLinkDelegate DeepLinkDelegate { get; set; }
197+
198+
100199
// @property (nonatomic, setter = setUseReceiptValidationSandbox:) BOOL useReceiptValidationSandbox;
101200
[Export ("useReceiptValidationSandbox")]
102201
bool UseReceiptValidationSandbox { get; set; }

AppsFlyerXamarinBinding/AppsFlyerXamarinBindingiOS.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
<RootNamespace>AppsFlyerXamarinBinding</RootNamespace>
1111
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
1212
<AssemblyName>AppsFlyerXamarinBinding</AssemblyName>
13-
<ReleaseVersion>6.1.3.1</ReleaseVersion>
13+
<ReleaseVersion>6.1.3.2</ReleaseVersion>
1414
<PackOnBuild>true</PackOnBuild>
1515
<PackageId>AppsFlyerXamarinBinding</PackageId>
16-
<PackageVersion>6.1.3.1</PackageVersion>
16+
<PackageVersion>6.1.3.2</PackageVersion>
1717
<Authors>AppsFlyer</Authors>
18-
<Description>AppsFlyer SDK iOS Xamarin Binding version 6.1.3.1</Description>
18+
<Description>AppsFlyer SDK iOS Xamarin Binding version 6.1.3.2</Description>
1919
<Copyright>AppsFlyer</Copyright>
2020
<PackageLicenseUrl>https://www.appsflyer.com/privacy-policy/</PackageLicenseUrl>
2121
<Owners>AppsFlyer</Owners>
2222
<PackageProjectUrl>https://github.com/AppsFlyerSDK/XamariniOSBinding</PackageProjectUrl>
2323
<PackageReleaseNotes>iOS SDK 6.1.3</PackageReleaseNotes>
24-
<Summary>AppsFlyer Xamarin Binding version 6.1.3.1 Built with AppsFlyer iOS SDK v6.1.3</Summary>
24+
<Summary>AppsFlyer Xamarin Binding version 6.1.3.2 Built with AppsFlyer iOS SDK v6.1.3</Summary>
2525
<Title>AppsFlyerXamarinBinding</Title>
2626
<SynchReleaseVersion>false</SynchReleaseVersion>
2727
</PropertyGroup>

AppsFlyerXamarinBinding/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
2626
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
2727

28-
[assembly: AssemblyVersion ("6.1.3.1")]
28+
[assembly: AssemblyVersion ("6.1.3.2")]
2929

3030
// The following attributes are used to specify the signing key for the assembly,
3131
// if desired. See the Mono documentation for more information about signing.

AppsFlyerXamarinBinding/StructsAndEnums.cs

100755100644
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ public enum EmailCryptType : uint {
77
EmailCryptTypeSHA1 = 1,
88
EmailCryptTypeMD5 = 2
99
}
10-
10+
11+
public enum AFSDKDeepLinkResultStatus : uint
12+
{
13+
AFSDKDeepLinkResultStatusNotFound = 0,
14+
AFSDKDeepLinkResultStatusFound = 1,
15+
AFSDKDeepLinkResultStatusFailure = 2,
16+
}
17+
18+
1119
public struct AFEventName {
1220
public const string AFEventLevelAchieved = "af_level_achieved";
1321
public const string AFEventAddPaymentInfo = "af_add_payment_info";
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)