Skip to content

Commit 71833d9

Browse files
authored
Merge pull request #197 from adjust/v4232
Version 4.23.2
2 parents ff24707 + 0751cb3 commit 71833d9

File tree

8 files changed

+39
-10
lines changed

8 files changed

+39
-10
lines changed

Assets/Adjust/Android/AdjustAndroid.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace com.adjust.sdk
88
#if UNITY_ANDROID
99
public class AdjustAndroid
1010
{
11-
private const string sdkPrefix = "unity4.23.1";
11+
private const string sdkPrefix = "unity4.23.2";
1212
private static bool launchDeferredDeeplink = true;
1313
private static AndroidJavaClass ajcAdjust = new AndroidJavaClass("com.adjust.sdk.Adjust");
1414
private static AndroidJavaObject ajoCurrentActivity = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic<AndroidJavaObject>("currentActivity");

Assets/Adjust/Editor/AdjustEditor.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public static void ToggleiOS14SupportStatus()
2525
{
2626
AdjustSettings.IsiOS14ProcessingEnabled = !AdjustSettings.IsiOS14ProcessingEnabled;
2727
EditorUtility.SetDirty(AdjustSettings.Instance);
28-
EditorUtility.DisplayDialog("Adjust SDK", "iOS 14 support is now " + (AdjustSettings.IsiOS14ProcessingEnabled ? "enabled." : "disabled."), "OK");
28+
EditorUtility.DisplayDialog("Adjust SDK", "iOS 14 support is now " + (AdjustSettings.IsiOS14ProcessingEnabled ? "enabled." : "disabled.") +
29+
"\nNote: Make sure to save your project files in order for this change to take effect.", "OK");
2930
}
3031

3132
[MenuItem("Assets/Adjust/Check Post Processing Status")]
@@ -39,7 +40,8 @@ public static void TogglePostProcessingStatus()
3940
{
4041
AdjustSettings.IsPostProcessingEnabled = !AdjustSettings.IsPostProcessingEnabled;
4142
EditorUtility.SetDirty(AdjustSettings.Instance);
42-
EditorUtility.DisplayDialog("Adjust SDK", "The post processing for Adjust SDK is now " + (AdjustSettings.IsPostProcessingEnabled ? "enabled." : "disabled."), "OK");
43+
EditorUtility.DisplayDialog("Adjust SDK", "The post processing for Adjust SDK is now " + (AdjustSettings.IsPostProcessingEnabled ? "enabled." : "disabled.") +
44+
"\nNote: Make sure to save your project files in order for this change to take effect.", "OK");
4345
}
4446

4547
[MenuItem("Assets/Adjust/Export Unity Package")]

Assets/Adjust/Editor/AdjustSettings.cs

+15-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ public static AdjustSettings Instance
2222

2323
if (instance == null)
2424
{
25+
// Create AdjustSettings.asset inside the folder in which AdjustSettings.cs reside.
2526
instance = ScriptableObject.CreateInstance<AdjustSettings>();
26-
AssetDatabase.CreateAsset(instance, "Assets/Adjust/Editor/AdjustSettings.asset");
27+
var guids = AssetDatabase.FindAssets(string.Format("{0} t:script", "AdjustSettings"));
28+
if (guids == null || guids.Length <= 0)
29+
{
30+
return instance;
31+
}
32+
var assetPath = AssetDatabase.GUIDToAssetPath(guids[0]).Replace("AdjustSettings.cs", "AdjustSettings.asset");
33+
AssetDatabase.CreateAsset(instance, assetPath);
2734

2835
// Before switching to AssetsDatabase, EditorPrefs were used to write 'adjustiOS14Support' key.
2936
// Check if this key still exists in EditorPrefs.
@@ -48,7 +55,13 @@ public static AdjustSettings NullableInstance
4855
{
4956
if (instance == null)
5057
{
51-
instance = (AdjustSettings)AssetDatabase.LoadAssetAtPath("Assets/Adjust/Editor/AdjustSettings.asset", typeof(AdjustSettings));
58+
var guids = AssetDatabase.FindAssets(string.Format("{0} t:ScriptableObject", "AdjustSettings"));
59+
if (guids == null || guids.Length <= 0)
60+
{
61+
return instance;
62+
}
63+
var assetPath = AssetDatabase.GUIDToAssetPath(guids[0]);
64+
instance = (AdjustSettings)AssetDatabase.LoadAssetAtPath(assetPath, typeof(AdjustSettings));
5265
}
5366

5467
return instance;

Assets/Adjust/Windows/AdjustWindows.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace com.adjust.sdk
1717
{
1818
public class AdjustWindows
1919
{
20-
private const string sdkPrefix = "unity4.23.1";
20+
private const string sdkPrefix = "unity4.23.2";
2121
private static bool appLaunched = false;
2222

2323
public static void Start(AdjustConfig adjustConfig)

Assets/Adjust/iOS/AdjustiOS.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace com.adjust.sdk
88
#if UNITY_IOS
99
public class AdjustiOS
1010
{
11-
private const string sdkPrefix = "unity4.23.1";
11+
private const string sdkPrefix = "unity4.23.2";
1212

1313
[DllImport("__Internal")]
1414
private static extern void _AdjustLaunchApp(

CHANGELOG.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
### Version 4.23.1 (29th August 2020)
1+
### Version 4.23.2 (2nd October 2020)
2+
#### Added
3+
- Added note to `Assets/Adjust` menu toggling actions that project needs to be saved in order for actions to take effect.
4+
5+
#### Changed
6+
- Switched to usage of relative paths when working with `AdjustSettings.asset` file.
7+
8+
#### Native SDKs
9+
- [[email protected]][ios_sdk_v4.23.2]
10+
- [[email protected]][android_sdk_v4.24.1]
11+
- [[email protected]][windows_sdk_v4.17.0]
12+
13+
---
14+
15+
### Version 4.23.1 (29th September 2020)
216
#### Fixed
317
- Fixed duplicate `ADJUrlStrategy` symbol error.
418

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.23.1
1+
4.23.2

doc/english/migration/migrate.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Migrate your Adjust SDK for Unity3d to 4.23.1 from 3.4.4
1+
## Migrate your Adjust SDK for Unity3d to 4.23.2 from 3.4.4
22

33
### Migration procedure
44

0 commit comments

Comments
 (0)