Skip to content

Commit 964c2e2

Browse files
authored
Wraps UNITY_2023_1_OR_NEWER directive around BaseGameActivityClass (#765)
1 parent ded2e40 commit 964c2e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

messaging/activity/FirebaseMessagingActivityGenerator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ public class FirebaseMessagingActivityGenerator : IPreprocessBuildWithReport {
118118
"}}"
119119
};
120120
private readonly string BaseActivityClass = "UnityPlayerActivity";
121+
#if UNITY_2023_1_OR_NEWER
121122
private readonly string BaseGameActivityClass = "UnityPlayerGameActivity";
123+
#endif
122124

123125
private readonly string GeneratedFileTag = "FirebaseMessagingActivityGenerated";
124126
// If this tag is present on the generated file, it will not be replaced.

0 commit comments

Comments
 (0)