Skip to content

Commit

Permalink
Updating Unity plugins for version 2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
radixdev committed Dec 3, 2020
1 parent 60a7f2e commit 2024dd9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Assets/Plugins/Appboy/AppboyBinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ public static void LogContentCardClicked(string contentCardString) {

public static void LogContentCardDismissed(string contentCardString) {
var contentCard = Appboy.Call<AndroidJavaObject>("deserializeContentCard", contentCardString);
contentCard.Call<bool>("setIsDismissed", true);
contentCard.Call("setIsDismissed", true);
}

public static void LogContentCardsDisplayed() {
Expand Down
7 changes: 7 additions & 0 deletions Assets/Plugins/Appboy/Editor/PostBuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,17 @@ private static void ModifyProject(string projectPath) {
project.RemoveFile(appboyAppDelegateGuid);
} else {
// Get project targets using Unity's default app target names
#if UNITY_2019_3_OR_NEWER
string[] targets = {
project.GetUnityMainTargetGuid(),
project.TargetGuidByName(PBXProject.GetUnityTestTargetName())
};
#else
string[] targets = {
project.TargetGuidByName(PBXProject.GetUnityTargetName()),
project.TargetGuidByName(PBXProject.GetUnityTestTargetName())
};
#endif

string[] requiredFrameworks = {
"SystemConfiguration.framework",
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.7.1

##### Fixed
- Fixed an issue where the return type for the Android implementation of `setIsDismissed` in `AppboyBinding` was incorrectly set to `bool`.
- Removed a deprecated usage of `PBXProject.GetUnityTargetName()`.

## 2.7.0

##### Breaking
Expand Down
6 changes: 0 additions & 6 deletions scripts/generate_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@ PROJECT_ROOT=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
function unity_app_cmd {
# Ask MacOS for the path of the currently running Unity process
RUNNING_UNITY_APP="$(osascript -e 'tell application "System Events" to POSIX path of (file of process "Unity" as alias)')/Contents/MacOS/Unity"
UNITY_HUB="/Applications/Unity/Hub/Editor/2019.2.20f1/Unity.app/Contents/MacOS/Unity"
UNITY_STANDALONE="/Applications/Unity/Unity.app/Contents/MacOS/Unity"

if [ -f $RUNNING_UNITY_APP ]
then
echo "Using Unity $RUNNING_UNITY_APP"
$RUNNING_UNITY_APP "$@"

elif [ -f $UNITY_HUB ]
then
echo "Using Unity $UNITY_HUB"
$UNITY_HUB "$@"

else
echo "Using Unity $UNITY_STANDALONE"
$UNITY_STANDALONE "$@"
Expand Down

0 comments on commit 2024dd9

Please sign in to comment.