OneSignal/OneSignal-Xamarin-SDK

Cannot upgrade from Com.OneSingal to OneSignalSDK.Xamarin

ValonK opened this issue · 0 comments

Description:
The following problem prevents us from upgrading to the new OneSignal SDK: Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined.

obj\Debug\130\lp\182\jl\AndroidManifest.xml Warning: Namespace 'com.google.firebase.installations' used in: AndroidManifest.xml, AndroidManifest.xml.
\obj\Debug\130\lp\180\jl\AndroidManifest.xml Warning: Namespace 'com.google.firebase.components' used in: AndroidManifest.xml, AndroidManifest.xml.
obj\Debug\130\lp\184\jl\AndroidManifest.xml Warning: Namespace 'com.google.firebase.datatransport' used in: AndroidManifest.xml, AndroidManifest.xml.
obj\Debug\130\lp\100\jl\AndroidManifest.xml Warning: Namespace 'com.google.firebase.analytics.connector' used in: AndroidManifest.xml, AndroidManifest.xml.
obj\Debug\130\lp\181\jl\AndroidManifest.xml Warning: Namespace 'com.google.firebase' used in: AndroidManifest.xml, AndroidManifest.xml.
obj\Debug\130\lp\179\jl\AndroidManifest.xml Warning: Namespace 'com.google.firebase.installations.interop' used in: AndroidManifest.xml, AndroidManifest.xml.
obj\Debug\130\lp\101\jl\AndroidManifest.xml Warning: Namespace 'com.google.firebase.messaging' used in: AndroidManifest.xml, AndroidManifest.xml.
obj\Debug\130\lp\112\jl\AndroidManifest.xml Warning: Namespace 'com.google.android.gms.cloudmessaging' used in: AndroidManifest.xml, AndroidManifest.xml.
obj\Debug\130\lp\111\jl\AndroidManifest.xml Warning: Namespace 'com.google.android.gms.common' used in: AndroidManifest.xml, AndroidManifest.xml.
obj\Debug\130\lp\114\jl\AndroidManifest.xml Warning: Namespace 'com.google.android.gms.tasks' used in: AndroidManifest.xml, AndroidManifest.xml.
obj\Debug\130\lp\183\jl\AndroidManifest.xml Warning: Namespace 'com.google.firebase.iid.internal' used in: AndroidManifest.xml, AndroidManifest.xml.
obj\Debug\130\lp\113\jl\AndroidManifest.xml Warning: Namespace 'com.google.android.gms.stats' used in: AndroidManifest.xml, AndroidManifest.xml.

Directory 'obj\Debug\130\lp\182' is from 'firebaseinstallations-17.0.0.aar'.
Directory 'obj\Debug\130\lp\180' is from 'firebasecomponents-17.0.0.aar'.
Directory 'obj\Debug\130\lp\184' is from 'firebasedatatransport-18.0.1.aar'.
Directory 'obj\Debug\130\lp\100' is from 'Xamarin.Firebase.Measurement.Connector.dll'.
Directory 'obj\Debug\130\lp\181' is from 'firebasecommon-20.0.0.aar'.
Directory 'obj\Debug\130\lp\179' is from 'firebaseinstallationsinterop-17.0.0.aar'.
Directory 'obj\Debug\130\lp\101' is from 'Xamarin.Firebase.Messaging.dll'.
Directory 'obj\Debug\130\lp\112' is from 'Xamarin.GooglePlayServices.CloudMessaging.dll'.
Directory 'obj\Debug\130\lp\111' is from 'Xamarin.GooglePlayServices.Basement.dll'.
Directory 'obj\Debug\130\lp\114' is from 'Xamarin.GooglePlayServices.Tasks.dll'.
Directory 'obj\Debug\130\lp\183' is from 'firebaseiidinterop-17.1.0.aar'.
Directory 'obj\Debug\130\lp\113' is from 'Xamarin.GooglePlayServices.Stats.dll'.

This is our Android Manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
		  android:versionCode="1009"
		  android:versionName="1"
		  package="com.app
		  android:installLocation="auto">
	
	<uses-sdk android:minSdkVersion="24" android:targetSdkVersion="33" />
	<uses-permission android:name="android.permission.VIBRATE" />
	<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
	<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
	<application android:allowBackup="false"
				 android:theme="@style/AppTheme"
				 android:label="@string/app_name"
				 android:requestLegacyExternalStorage="true"
				 android:resizeableActivity="true"
				 android:largeHeap="true">
		<meta-data android:name="android.max_aspect" android:value="2.1"/>
	</application>
</manifest>

Environment

OneSignalSDK.Xamarin 4.1.3
Xamarin.Forms 5.0.0.2515
Minimum Android Version: Android 7.0 | API Level 24
Target Framework: Android 13.0 | API Level 33

Steps to Reproduce Issue:

  1. Add version 4.1.3 of the Xamarin SDK to your project
  2. Try to build