-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from AppsFlyerSDK/dev/DELIVERY-31414/plugin-up…
…date Plugin update(SDK + .NET6 Support)
- Loading branch information
Showing
80 changed files
with
307 additions
and
187 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Reflection; | ||
using Com.Appsflyer.Internal.Platform_extension; | ||
|
||
namespace Com.Appsflyer | ||
{ | ||
partial class AppsFlyerLib | ||
{ | ||
static bool didSetPlugin = false; | ||
|
||
public static AppsFlyerLib Instance | ||
{ | ||
get | ||
{ | ||
var Instance = AppsFlyerLib.__Instance(); | ||
if (didSetPlugin) | ||
{ | ||
return Instance; | ||
} | ||
var assembly = typeof(AppsFlyerLib).GetTypeInfo().Assembly; | ||
var assemblyName = new AssemblyName(assembly.FullName); | ||
var version = assemblyName.Version; | ||
var versionStr = version.ToString(); | ||
var extra = new Dictionary<string, string>(); | ||
extra["build"] = version.Build.ToString(); | ||
extra["revision"] = version.Revision.ToString(); | ||
Instance.SetPluginInfo(new PluginInfo(Plugin.Xamarin, versionStr, extra)); | ||
didSetPlugin = true; | ||
return Instance; | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<Project Sdk="Xamarin.Legacy.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>monoandroid11.0;net6.0-android</TargetFrameworks> | ||
<IsBindingProject>true</IsBindingProject> | ||
<!-- Hide some warnings --> | ||
<NoWarn>CS0108;CS0114;BG8700</NoWarn> | ||
<RootNamespace>AppsFlyerBinding.Android</RootNamespace> | ||
<AssemblyName>AppsFlyerBinding.Android</AssemblyName> | ||
<!--x.x.x.build_ver, platform_extension includes this value --> | ||
<AssemblyVersion>6.12.2.6</AssemblyVersion> | ||
<FileVersion>6.12.2</FileVersion> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<PackageId>AppsFlyerXamarinBindingAndroid</PackageId> | ||
<Title>AppsFlyer SDK for Xamarin Android</Title> | ||
<Summary>C# binding for AppsFlyer official SDK</Summary> | ||
<Description>C# binding for AppsFlyer official SDK</Description> | ||
<Authors>AppsFlyer</Authors> | ||
<Owners>AppsFlyer</Owners> | ||
<Copyright>AppsFlyer</Copyright> | ||
<PackageProjectUrl>https://github.com/AppsFlyerSDK/XamarinAndroidBinding</PackageProjectUrl> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PackageVersion>6.12.2</PackageVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<AndroidClassParser>class-parse</AndroidClassParser> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="../AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="../README.md" Pack="true" PackagePath="\" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<TransformFile Include="Transforms\*.xml" /> | ||
</ItemGroup> | ||
|
||
<!-- <ItemGroup> | ||
<None Remove="Xamarin.Kotlin.StdLib.Jdk7" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Xamarin.Kotlin.StdLib.Jdk7" Version="1.5.10" /> | ||
</ItemGroup>--> | ||
|
||
</Project> |
Binary file not shown.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<metadata> | ||
|
||
<!--<attr path="/api/package[@name='com.appsflyer']/interface[@name='CreateOneLinkHttpTask.ResponseListener']/method[@name='onResponse']" name="argsType">CreateOneLinkHttpTask.TwoDSignNextManueverEventArgs</attr>--> | ||
<!--<attr path="/api/package[@name='com.appsflyer.share']/interface[@name='CreateOneLinkHttpTask.ResponseListener']/method[@name='onResponse' and count(parameter)=1 and parameter[1][@type='java.lang.String']]" name="managedName">onResponse</attr>--> | ||
<!--<attr path="/api/package[@name='com.appsflyer.share']/interface[@name='CreateOneLinkHttpTask.ResponseListener']/method[@name='onResponseError' and count(parameter)=1 and parameter[1][@type='java.lang.String']]" name="managedName">onResponseError</attr>--> | ||
|
||
<attr path="/api/package[@name='com.appsflyer']/class[@name='AppsFlyerLib']/method[@name='getInstance' and count(parameter)=0]" name="managedName">__Instance</attr> | ||
|
||
<remove-node path="/api/package[@name='com.appsflyer.internal']/class[starts-with(@name, 'AF')]" /> | ||
<remove-node path="/api/package[@name='com.appsflyer.internal']/interface[starts-with(@name, 'AF')]" /> | ||
<remove-node path="/api/package[@name='com.appsflyer']/class[@name='PurchaseHandler']" /> | ||
<remove-node path="/api/package[@name='com.appsflyer']/class[@name='AFKeystoreWrapper']" /> | ||
|
||
|
||
|
||
</metadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 0 additions & 92 deletions
92
AppsFlyerXamarinBindingAndroid/AppsFlyerXamarinBindingAndroid.csproj
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: AssemblyMetadata ("BUILD_COMMIT", "{BUILD_COMMIT}")] | ||
[assembly: AssemblyMetadata ("BUILD_NUMBER", "{BUILD_NUMBER}")] | ||
[assembly: AssemblyMetadata ("BUILD_TIMESTAMP", "{BUILD_TIMESTAMP}")] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"sdk": | ||
{ | ||
"version": "6.0.400" | ||
}, | ||
"msbuild-sdks": | ||
{ | ||
"Xamarin.Legacy.Sdk": "0.2.0-alpha4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
rm -rf AppsFlyerBinding.Android/bin | ||
rm -rf AppsFlyerBinding.Android/obj | ||
|
||
dotnet clean | ||
dotnet restore | ||
dotnet pack -c Release AppsFlyerBinding.Android/AppsFlyerBinding.Android.csproj | ||
|
||
mv AppsFlyerBinding.Android/bin/Release/AppsFlyerXamarinBinding*.nupkg nugets/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:label="@string/app_name" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"> | ||
</application> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
<!-- Optional : --> | ||
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Com.Appsflyer; | ||
using Com.Appsflyer.Internal; | ||
|
||
namespace Sample.NuGet.NET; | ||
|
||
[Activity(Label = "@string/app_name", MainLauncher = true)] | ||
public class MainActivity : Activity | ||
{ | ||
protected override void OnCreate(Bundle? savedInstanceState) | ||
{ | ||
base.OnCreate(savedInstanceState); | ||
|
||
AppsFlyerLib.Instance.SetDebugLog(true); | ||
//AppsFlyerLib.Instance.SetLogLevel(AFLogger.LogLevel.Verbose); // Enable verbose logs for debugging | ||
AppsFlyerLib.Instance.Init("DEV_KEY", null, Application); | ||
AppsFlyerLib.Instance.Start(this, "DEV_KEY"); | ||
// Set our view from the "main" layout resource | ||
SetContentView(Resource.Layout.activity_main); | ||
} | ||
} |
Oops, something went wrong.