Skip to content

Commit adc8dd8

Browse files
authored
Merge pull request #152 from adjust/v4182
Version 4.18.2
2 parents 592aa70 + 7336f5b commit adc8dd8

32 files changed

+819
-368
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.18.1";
11+
private const string sdkPrefix = "unity4.18.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");
-22.7 KB
Binary file not shown.

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.18.1";
20+
private const string sdkPrefix = "unity4.18.2";
2121
private static bool appLaunched = false;
2222

2323
public static void Start(AdjustConfig adjustConfig)

Assets/Adjust/Windows/Newtonsoft.Json.dll.meta

+121-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Assets/Adjust/iOS/Adjust.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Adjust.h
33
// Adjust
44
//
5-
// V4.18.0
5+
// V4.18.3
66
// Created by Christian Wellenbrock (wellle) on 23rd July 2013.
77
// Copyright © 2012-2017 Adjust GmbH. All rights reserved.
88
//

Assets/Adjust/iOS/AdjustSdk.a

-127 KB
Binary file not shown.

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.18.1";
11+
private const string sdkPrefix = "unity4.18.2";
1212

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

Assets/AdjustImei/Android/AdjustImeiAndroid.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static void ReadImei()
1313
{
1414
if (ajcAdjustImei == null)
1515
{
16-
ajcAdjustImei = new AndroidJavaClass("com.adjust.sdk.Adjust");
16+
ajcAdjustImei = new AndroidJavaClass("com.adjust.sdk.imei.AdjustImei");
1717
}
1818
ajcAdjustImei.CallStatic("readImei");
1919
}
@@ -22,7 +22,7 @@ public static void DoNotReadImei()
2222
{
2323
if (ajcAdjustImei == null)
2424
{
25-
ajcAdjustImei = new AndroidJavaClass("com.adjust.sdk.Adjust");
25+
ajcAdjustImei = new AndroidJavaClass("com.adjust.sdk.imei.AdjustImei");
2626
}
2727
ajcAdjustImei.CallStatic("doNotReadImei");
2828
}
-1.19 KB
Binary file not shown.

Assets/AdjustOaid.meta

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/AdjustOaid/Android.meta

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using System;
2+
using System.Runtime.InteropServices;
3+
using UnityEngine;
4+
5+
namespace com.adjust.sdk.oaid
6+
{
7+
#if UNITY_ANDROID
8+
public class AdjustOaidAndroid
9+
{
10+
private static AndroidJavaClass ajcAdjustOaid = new AndroidJavaClass("com.adjust.sdk.oaid.AdjustOaid");
11+
12+
public static void ReadOaid()
13+
{
14+
if (ajcAdjustOaid == null)
15+
{
16+
ajcAdjustOaid = new AndroidJavaClass("com.adjust.sdk.oaid.AdjustOaid");
17+
}
18+
ajcAdjustOaid.CallStatic("readOaid");
19+
}
20+
21+
public static void DoNotReadOaid()
22+
{
23+
if (ajcAdjustOaid == null)
24+
{
25+
ajcAdjustOaid = new AndroidJavaClass("com.adjust.sdk.oaid.AdjustOaid");
26+
}
27+
ajcAdjustOaid.CallStatic("doNotReadOaid");
28+
}
29+
}
30+
#endif
31+
}

Assets/AdjustOaid/Android/AdjustOaidAndroid.cs.meta

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Assets/Adjust/Windows/Stubs/TestLibraryInterface.dll.meta renamed to Assets/AdjustOaid/Android/adjust-android-oaid.jar.meta

+7-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/AdjustOaid/Editor.meta

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
using System;
2+
using System.IO;
3+
using System.Xml;
4+
using System.Collections;
5+
using System.Collections.Generic;
6+
using System.Diagnostics;
7+
using System.Text.RegularExpressions;
8+
using UnityEngine;
9+
using UnityEditor;
10+
using UnityEditor.Callbacks;
11+
12+
public class AdjustOaidEditor
13+
{
14+
private const string MenuItem0 = "Assets/AdjustOaid/Autorun post-build tasks";
15+
private const string MenuItem1 = "Assets/AdjustOaid/Export Unity package";
16+
17+
private static bool shouldAutorun = true;
18+
19+
static AdjustOaidEditor()
20+
{
21+
EditorApplication.delayCall += () =>
22+
{
23+
shouldAutorun = EditorPrefs.GetBool(MenuItem0, true);
24+
Menu.SetChecked(MenuItem0, shouldAutorun);
25+
};
26+
}
27+
28+
[MenuItem(MenuItem0)]
29+
static void AutorunPostBuildTasks()
30+
{
31+
shouldAutorun = !shouldAutorun;
32+
Menu.SetChecked(MenuItem0, shouldAutorun);
33+
EditorPrefs.SetBool(MenuItem0, shouldAutorun);
34+
35+
if (shouldAutorun)
36+
{
37+
EditorUtility.DisplayDialog("Adjust OAID Plugin", "Adjust OAID plugin post build tasks will from now on be performed each time you build your app.", "OK");
38+
}
39+
else
40+
{
41+
EditorUtility.DisplayDialog("Adjust OAID Plugin", "Adjust OAID plugin post build tasks from now on WON'T be performed each time you build your app."
42+
+ "\n\nPlease, make sure that your app is compatible for usage of the Adjust OAID plugin by selecting \"Is my app properly configured?\" option from menu.", "OK");
43+
}
44+
}
45+
46+
[MenuItem(MenuItem1)]
47+
static void ExportAdjustUnityPackage()
48+
{
49+
string exportedFileName = "AdjustOaid.unitypackage";
50+
string assetsPath = "Assets/AdjustOaid";
51+
List<string> assetsToExport = new List<string>();
52+
53+
assetsToExport.Add(assetsPath + "/Android/adjust-android-oaid.jar");
54+
assetsToExport.Add(assetsPath + "/Android/AdjustOaidAndroid.cs");
55+
assetsToExport.Add(assetsPath + "/Editor/AdjustOaidEditor.cs");
56+
assetsToExport.Add(assetsPath + "/Prefab/AdjustOaid.prefab");
57+
assetsToExport.Add(assetsPath + "/Unity/AdjustOaid.cs");
58+
59+
AssetDatabase.ExportPackage(
60+
assetsToExport.ToArray(),
61+
exportedFileName,
62+
ExportPackageOptions.IncludeDependencies | ExportPackageOptions.Interactive);
63+
}
64+
}

Assets/AdjustOaid/Editor/AdjustOaidEditor.cs.meta

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/AdjustOaid/Prefab.meta

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
4.35 KB
Binary file not shown.

0 commit comments

Comments
 (0)