Skip to content

Commit 6298c93

Browse files
committed
Update public Android OneSignal module references
OneSignal-Android-SDK made a breaking change at some point to public BuildConfig classes. The OneSignal native SDK removed the BuildConfig classes in the modules. Replaced it with other public classes to meet the requirements notes above them.
1 parent 88e4c15 commit 6298c93

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

OneSignalSDK.DotNet.Android/AndroidOneSignal.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ namespace OneSignalSDK.DotNet.Android;
1616

1717
public class AndroidOneSignal : IOneSignal
1818
{
19-
/** These static references are not used, but we need to reference at least one class
20-
* in the binding projects that are otherwised not referenced. If we did *not*, then
21-
* the binding DLLs will not be included in the output bin directory.
22-
*/
23-
private static Com.OneSignal.Android.InAppMessages.BuildConfig InAppMessagesBuildConfig;
24-
private static Com.OneSignal.Android.Notifications.BuildConfig NotificationsBuildConfig;
25-
private static Com.OneSignal.Android.Location.BuildConfig LocationBuildConfig;
19+
/** These static references are not used, but we need to reference at least one class
20+
* in the binding projects that are otherwised not referenced. If we did *not*, then
21+
* the binding DLLs will not be included in the output bin directory.
22+
*/
23+
24+
private static Com.OneSignal.Android.InAppMessages.IInAppMessagesManager InAppMessagesBuildConfig;
25+
private static Com.OneSignal.Android.Notifications.INotificationsManager NotificationsBuildConfig;
26+
private static Com.OneSignal.Android.Location.ILocationManager LocationBuildConfig;
2627

2728
public IUserManager User { get; } = new AndroidUserManager();
2829

0 commit comments

Comments
 (0)