Skip to content

Commit

Permalink
Merge pull request #137 from BranchMetrics/CORE-2224-update-iOS-SDK-t…
Browse files Browse the repository at this point in the history
…o-1.39.4

CORE-2224 update 7.1.2, includes support for pasteboard links
  • Loading branch information
echo-branch authored Aug 6, 2021
2 parents 7bb0743 + 2af12ee commit 64cf2b0
Show file tree
Hide file tree
Showing 10 changed files with 5,393 additions and 2,483 deletions.
4 changes: 4 additions & 0 deletions Branch-Xamarin-Lib.iOS/ApiDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3448,6 +3448,10 @@ interface Branch
[Export("enableLogging")]
void EnableLogging();

// - (void)checkPasteboardOnInstall;
[Export("checkPasteboardOnInstall")]
void CheckPasteboardOnInstall();

// -(void)setRetryInterval:(NSTimeInterval)retryInterval;
[Export("setRetryInterval:")]
void SetRetryInterval(double retryInterval);
Expand Down
Binary file modified Branch-Xamarin-Lib.iOS/Branch.a
Binary file not shown.
2 changes: 1 addition & 1 deletion Branch-Xamarin-SDK.Droid/BranchAndroid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private AndroidNativeBranch NativeBranch {

public static void GetAutoInstance(Context appContext) {
BranchUtil.SetPluginType(BranchUtil.PluginType.Xamarin);
BranchUtil.PluginVersion = "7.1.1";
BranchUtil.PluginVersion = "7.1.2";

AndroidNativeBranch.GetAutoInstance(appContext);
AndroidNativeBranch.DisableInstantDeepLinking(true);
Expand Down
33 changes: 24 additions & 9 deletions Branch-Xamarin-SDK.iOS/BranchIOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ private IOSNativeBranch.Branch NativeBranch {

private static bool ignoreAppleSearchAdsTestData = false;

private static bool checkPasteboardOnInstall = false;

#endregion

#region Initialization
Expand All @@ -56,7 +58,7 @@ public static void Init(String branchKey, NSDictionary launchOptions, IBranchSes
Branch.branchInstance = instance;
instance.branchKey = branchKey;

instance.NativeBranch.RegisterPluginName("Xamarin", "7.0.7");
instance.NativeBranch.RegisterPluginName("Xamarin", "7.1.2");
//IOSNativeBranch.RegisterPluginName();

if (launchOptions != null) {
Expand All @@ -65,10 +67,6 @@ public static void Init(String branchKey, NSDictionary launchOptions, IBranchSes
instance.launchOptions = new NSDictionary ();
}

if (Debug || Runtime.Arch == Arch.SIMULATOR) {
instance.SetDebug ();
}

if (delayInitToCheckForSearchAds)
{
instance.NativeBranch.DelayInitToCheckForSearchAds();
Expand All @@ -84,7 +82,13 @@ public static void Init(String branchKey, NSDictionary launchOptions, IBranchSes
instance.NativeBranch.IgnoreAppleSearchAdsTestData();
}

//instance.NativeBranch.EnableLogging();
if (checkPasteboardOnInstall)
{
instance.NativeBranch.CheckPasteboardOnInstall();

}

instance.NativeBranch.EnableLogging();

instance.InitSession (callback);
}
Expand All @@ -102,7 +106,7 @@ public static void Init(String branchKey, NSDictionary launchOptions, IBranchBUO
Branch.branchInstance = instance;
instance.branchKey = branchKey;

instance.NativeBranch.RegisterPluginName("Xamarin", "7.1.1");
instance.NativeBranch.RegisterPluginName("Xamarin", "7.1.2");

if (launchOptions != null) {
instance.launchOptions = new NSDictionary (launchOptions);
Expand All @@ -129,7 +133,13 @@ public static void Init(String branchKey, NSDictionary launchOptions, IBranchBUO
instance.NativeBranch.IgnoreAppleSearchAdsTestData();
}

//instance.NativeBranch.EnableLogging();
if (checkPasteboardOnInstall)
{
instance.NativeBranch.CheckPasteboardOnInstall();

}

instance.NativeBranch.EnableLogging();

instance.InitSession (callback);
}
Expand Down Expand Up @@ -314,7 +324,7 @@ public override int GetCreditsForBucket (string bucket) {
#region Configuration methods

public static void DelayInitToCheckForSearchAds()
{
{
delayInitToCheckForSearchAds = true;
}

Expand All @@ -328,6 +338,11 @@ public static void IgnoreAppleSearchAdsTestData()
ignoreAppleSearchAdsTestData = true;
}

public static void CheckPasteboardOnInstall()
{
checkPasteboardOnInstall = true;
}

public override void SetRetryInterval (int retryInterval) {
NativeBranch.SetRetryInterval (retryInterval);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@
<PackageReference Include="Xamarin.Android.Support.Design" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Android.Support.Core.Utils" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Android.Support.CustomTabs" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Essentials" Version="1.6.1" />
<PackageReference Include="Xamarin.Essentials" Version="1.7.0" />
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms">
<Version>5.0.0.2012</Version>
<Version>5.0.0.2083</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
7,825 changes: 5,358 additions & 2,467 deletions Branch-Xamarin-Testbed.Droid/Resources/Resource.designer.cs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Branch-Xamarin-Testbed.iOS/Branch-Xamarin-Testbed.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@
<Reference Include="System.Numerics.Vectors" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Essentials" Version="1.6.1" />
<PackageReference Include="Xamarin.Essentials" Version="1.7.0" />
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms">
<Version>5.0.0.2012</Version>
<Version>5.0.0.2083</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Branch-Xamarin-Testbed/Branch-Xamarin-Testbed.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ProjectReference Include="..\Branch-Xamarin-SDK\Branch-Xamarin-SDK.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2012" />
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2083" />
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
</ItemGroup>
</Project>
Binary file added NuGet/Branch-Xamarin-Linking-SDK.7.1.2.nupkg
Binary file not shown.
2 changes: 1 addition & 1 deletion NuGet/Branch-Xamarin-SDK.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<id>Branch-Xamarin-Linking-SDK</id>
<title>Branch Xamarin SDK</title>
<summary>Hosted deep links for your Xamarin-based Android or iOS app by Branch</summary>
<version>7.1.1</version>
<version>7.1.2</version>
<authors>Branch Metrics, Inc.</authors>
<owners>Branch Metrics, Inc.</owners>
<!-- <iconUrl> https://s3-us-west-1.amazonaws.com/branchhost/branch_icon.png</iconUrl> -->
Expand Down

0 comments on commit 64cf2b0

Please sign in to comment.