Skip to content

Commit

Permalink
Update Sample App target API
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Sokolov committed Apr 18, 2022
1 parent 452c372 commit fa2b4e0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<IntermediateOutputPath></IntermediateOutputPath>
<AssemblyName></AssemblyName>
<PublicSign>false</PublicSign>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
Expand Down
2 changes: 1 addition & 1 deletion XamarinSample/MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected override void OnCreate(Bundle savedInstanceState)
DeepLinkListener dl = new DeepLinkListener(this);
AppsFlyerLib.Instance.AddPushNotificationDeepLinkPath(new string[] { "key1", "key2" });
AppsFlyerLib.Instance.SetDebugLog(true);
AppsFlyerLib.Instance.SetLogLevel(AFLogger.LogLevel.Verbose); // Enable verbose logs for debugging
//AppsFlyerLib.Instance.SetLogLevel(AFLogger.LogLevel.Verbose); // Enable verbose logs for debugging
AppsFlyerLib.Instance.Init("4UGrDF4vFvPLbHq5bXtCza", cl, Application);
AppsFlyerLib.Instance.SetAppInviteOneLink("E2bM"); // Replace with OneLink ID from your AppsFlyer account
AppsFlyerLib.Instance.SetSharingFilter(new string[]{"test", "partner_int"});
Expand Down
2 changes: 1 addition & 1 deletion XamarinSample/MyNewFirebaseManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Firebase.Messaging;


[Service]
[Service(Exported = true)]
[IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })]
public class MyNewFirebaseManager : FirebaseMessagingService
{
Expand Down
2 changes: 1 addition & 1 deletion XamarinSample/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.appsflyer.xamarinsample">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="29" />
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="31" />
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
4 changes: 2 additions & 2 deletions XamarinSample/XamarinSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AndroidResgenClass>Resource</AndroidResgenClass>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v12.0</TargetFrameworkVersion>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
Expand Down Expand Up @@ -128,7 +128,7 @@
<Version>117.6.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.Firebase.Messaging">
<Version>122.0.0</Version>
<Version>122.0.0.5</Version>
</PackageReference>
<PackageReference Include="Xamarin.AndroidX.Legacy.Support.Core.UI">
<Version>1.0.0.8</Version>
Expand Down

0 comments on commit fa2b4e0

Please sign in to comment.