Skip to content

Commit

Permalink
2.2.2 Release - Fixed applicationIdentifier error
Browse files Browse the repository at this point in the history
* This fixes a compatibility with Unity 5.0 - 5.5 that was introduced in 2.2.1.
  • Loading branch information
jkasten2 committed Apr 21, 2017
1 parent d1b5454 commit 9f4cfc6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ private static void createOneSignalAndroidManifest() {
string body = streamReader.ReadToEnd();
streamReader.Close();

#if UNITY_4_7
body = body.Replace("${manifestApplicationId}", PlayerSettings.bundleIdentifier);
#else
#if UNITY_5_6_OR_NEWER
body = body.Replace("${manifestApplicationId}", PlayerSettings.applicationIdentifier);
#else
body = body.Replace("${manifestApplicationId}", PlayerSettings.bundleIdentifier);
#endif
using (var streamWriter = new StreamWriter(manifestFullPath, false))
{
Expand Down
2 changes: 1 addition & 1 deletion Unity4.7OneSignalExample/Assets/OneSignal/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.1
2.2.2
Binary file modified Unity4.7OneSignalSDK.unitypackage
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ private static void createOneSignalAndroidManifest() {
string body = streamReader.ReadToEnd();
streamReader.Close();

#if UNITY_4_7
body = body.Replace("${manifestApplicationId}", PlayerSettings.bundleIdentifier);
#else
#if UNITY_5_6_OR_NEWER
body = body.Replace("${manifestApplicationId}", PlayerSettings.applicationIdentifier);
#else
body = body.Replace("${manifestApplicationId}", PlayerSettings.bundleIdentifier);
#endif
using (var streamWriter = new StreamWriter(manifestFullPath, false))
{
Expand Down
2 changes: 1 addition & 1 deletion Unity5OneSignalExample/Assets/OneSignal/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.1
2.2.2
Binary file modified Unity5OneSignalSDK.unitypackage
Binary file not shown.

0 comments on commit 9f4cfc6

Please sign in to comment.