Skip to content

Commit e666866

Browse files
authored
Merge pull request #48 from andr-ggn/xamarin_ios10_net6_0_ios_update
Update binding to support xamarin.ios10;net6.0-ios
2 parents 0385f86 + ae11400 commit e666866

File tree

164 files changed

+7194
-1294
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+7194
-1294
lines changed

.gitignore

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,43 @@
1-
AppsFlyerSampleApp/bin/iPhone/Debug
2-
AppsFlyerSampleApp/bin
3-
AppsFlyerSampleApp/obj
4-
AppsFlyerXamarinBinding/obj
5-
.vs/
6-
.idea/
7-
**/[Pp]ackages/*
8-
AppsFlyerXamarinBinding/bin/Debug/
9-
AppsFlyerXamarinBinding/bin/Release/.idea/
1+
# Autosave files
2+
*~
3+
4+
# build
5+
[Oo]bj/
6+
[Bb]in/
7+
packages/
8+
TestResults/
9+
10+
# globs
11+
Makefile.in
12+
*.DS_Store
13+
*.sln.cache
14+
*.suo
15+
*.cache
16+
*.pidb
17+
*.userprefs
18+
*.usertasks
19+
config.log
20+
config.make
21+
config.status
22+
aclocal.m4
23+
install-sh
24+
autom4te.cache/
25+
*.user
26+
*.tar.gz
27+
tarballs/
28+
test-results/
29+
Thumbs.db
30+
31+
# Mac bundle stuff
32+
*.dmg
33+
*.app
34+
35+
# resharper
36+
*_Resharper.*
37+
*.Resharper
38+
39+
# dotCover
40+
*.dotCover
41+
#*.nupkg
42+
43+
.vs
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project Sdk="Xamarin.Legacy.Sdk">
3+
<PropertyGroup>
4+
<TargetFrameworks>xamarin.ios10;net6.0-ios</TargetFrameworks>
5+
<NoNFloatUsing Condition="'$(TargetFramework)' == 'xamarin.ios10'">true</NoNFloatUsing>
6+
<Nullable>enable</Nullable>
7+
<ImplicitUsings>true</ImplicitUsings>
8+
<IsBindingProject>true</IsBindingProject>
9+
<NoBindingEmbedding>true</NoBindingEmbedding>
10+
<SupportedOSPlatformVersion>10.0</SupportedOSPlatformVersion>
11+
<RootNamespace>AppsFlyerXamarinBinding</RootNamespace>
12+
<AssemblyName>AppsFlyerBinding.iOS</AssemblyName>
13+
<AssemblyVersion>1.0.0.0</AssemblyVersion>
14+
<FileVersion>6.9.2.1</FileVersion>
15+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
16+
</PropertyGroup>
17+
<PropertyGroup>
18+
<PackageId>AppsFlyerXamarinBinding</PackageId>
19+
<Title>AppsFlyer SDK for Xamarin iOS</Title>
20+
<Summary>C# binding for AppsFlyer official SDK</Summary>
21+
<Description>C# binding for AppsFlyer official SDK</Description>
22+
<Authors>AppsFlyer</Authors>
23+
<Owners>AppsFlyer</Owners>
24+
<Copyright>AppsFlyer</Copyright>
25+
<PackageProjectUrl>https://github.com/AppsFlyerSDK/XamariniOSBinding</PackageProjectUrl>
26+
<PackageReadmeFile>README.md</PackageReadmeFile>
27+
<PackageVersion>6.9.2</PackageVersion>
28+
<!--<GeneratePackageOnBuild>true</GeneratePackageOnBuild>-->
29+
</PropertyGroup>
30+
31+
<ItemGroup>
32+
<Compile Include="../AssemblyInfo.cs" />
33+
</ItemGroup>
34+
35+
<ItemGroup>
36+
<!-- build/Xamarin.AppsFlyer.iOS.targets must the same as PackageId -->
37+
<None Include="AppsFlyerBinding.iOS.targets" Pack="True" PackagePath="build/AppsFlyerXamarinBinding.targets" />
38+
<None Include="AppsFlyerBinding.iOS.targets" Pack="True" PackagePath="buildTransitive/AppsFlyerXamarinBinding.targets" />
39+
40+
<None Include="../README.md" Pack="true" PackagePath="\"/>
41+
</ItemGroup>
42+
43+
<!-- An iOS app project cannot find Xcframeworks within a NuGet if a TFM
44+
previous than net6.0-ios is used.
45+
https://github.com/xamarin/xamarin-macios/issues/13693
46+
You must include the Xcframework's NativeReference tag into the iOS app
47+
project so sidecar can work properly. -->
48+
<!-- This workaround was designed like this to have the same
49+
NativeReference tag for the iOS binding and for the .targets file -->
50+
<Import Project="AppsFlyerBinding.iOS.targets" />
51+
<ItemGroup>
52+
<_NativeReference Include="../frameworks/AppsFlyerLib.xcframework">
53+
<_Id>$(_AppsFlyerLibId)</_Id>
54+
</_NativeReference>
55+
</ItemGroup>
56+
<!-- End of workaround -->
57+
<ItemGroup Condition="'$(TargetFramework)' == 'xamarin.ios10'">
58+
<Compile Remove="../source/ApiDefinition.cs" />
59+
<Compile Remove="../source/StructsAndEnums.cs" />
60+
</ItemGroup>
61+
<ItemGroup>
62+
<ObjcBindingCoreSource Include="../source/StructsAndEnums.cs" Condition=" '$(EnableDefaultCompileItems)' == 'true'" />
63+
<ObjcBindingApiDefinition Include="../source/ApiDefinition.cs" Condition=" '$(EnableDefaultCompileItems)' == 'true'" />
64+
</ItemGroup>
65+
<!-- <ItemGroup>
66+
<PackageReference Include="Xamarin.Build.Download" Version="0.11.3" PrivateAssets="None" />
67+
</ItemGroup>-->
68+
</Project>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<Project>
4+
<PropertyGroup>
5+
<_AppsFlyerLibId>AppsFlyerLib</_AppsFlyerLibId>
6+
</PropertyGroup>
7+
8+
<ItemGroup Condition="('$(OutputType)' != 'Library' OR '$(IsAppExtension)' == 'True') AND ('$(TargetFrameworks)' == '' AND '$(TargetFramework)' == '')">
9+
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\AppsFlyerBinding.iOS.resources\AppsFlyerLib.xcframework">
10+
<_Id>$(_AppsFlyerLibId)</_Id>
11+
</_NativeReference>
12+
</ItemGroup>
13+
<Target Name="_ResolveNativeReferencesForAppsFlyerLibBinding"
14+
BeforeTargets="ResolveNativeReferences"
15+
Condition="('$(TargetFrameworks)' == '' AND '$(TargetFramework)' == '') OR '$(IsBindingProject)' == 'true'">
16+
<ItemGroup>
17+
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_AppsFlyerLibId)'">
18+
<Kind>Static</Kind>
19+
<SmartLink>False</SmartLink>
20+
<ForceLoad>True</ForceLoad>
21+
<LinkerFlags>-ObjC</LinkerFlags>
22+
</_NativeReference>
23+
<NativeReference Include="@(_NativeReference)" />
24+
</ItemGroup>
25+
</Target>
26+
27+
</Project>

AppsFlyerSampleApp/AppDelegate.cs

Lines changed: 0 additions & 128 deletions
This file was deleted.

AppsFlyerSampleApp/AppsFlyerConversionDataDelegate.cs

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)