Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Update for Android 4.1.2, iOS 4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
John Gu committed May 20, 2016
1 parent 62bf008 commit 7ed698e
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# TUNE Unity Plugin v4.0.1
# TUNE Unity Plugin v4.1.0

Includes:
* TUNE Android SDK 4.0.3
* TUNE iOS SDK 4.2.0
* TUNE Android SDK 4.1.2
* TUNE iOS SDK 4.3.0
* TUNE Windows SDK 3.5.1

Please see the Quick Start guide here:
Expand Down
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 16 additions & 14 deletions sample/Assets/Tune/Scripts/Tune.cs
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,22 @@ public static void SetPhoneNumber(string phoneNumber)
#endif
}
}

/// <para>
/// Specifies if the sdk should auto-collect the geo location of the device.
/// </para>
/// <param name="shouldAutoCollect">Will auto-collect if true. Defaults to true.</param>
public static void SetShouldAutoCollectDeviceLocation(bool shouldAutoCollect)
{
if (!Application.isEditor) {
#if UNITY_ANDROID
TuneAndroid.Instance.SetShouldAutoCollectDeviceLocation(shouldAutoCollect);
#endif
#if UNITY_IOS
TuneExterns.TuneSetShouldAutoCollectDeviceLocation(shouldAutoCollect);
#endif
}
}

/// <para>
/// Sets the user ID to associate with Twitter.
Expand Down Expand Up @@ -1633,20 +1649,6 @@ public static void SetShouldAutoCollectAppleAdvertisingIdentifier(bool shouldAut
}
}

/// <para>
/// Specifies if the sdk should auto-collect the geo location of the device.
/// Does nothing if not iOS device.
/// </para>
/// <param name="shouldAutoCollect">Will auto-collect if true. Defaults to true.</param>
public static void SetShouldAutoCollectDeviceLocation(bool shouldAutoCollect)
{
if (!Application.isEditor) {
#if UNITY_IOS
TuneExterns.TuneSetShouldAutoCollectDeviceLocation(shouldAutoCollect);
#endif
}
}

/// <para>
/// Specifies if the sdk should pull the Apple Vendor Identifier from the device.
/// Does nothing if not iOS device.
Expand Down
5 changes: 5 additions & 0 deletions sample/Assets/Tune/Scripts/TuneAndroid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ public void SetPhoneNumber(string phoneNumber)
ajcInstance.Call("setPhoneNumber", phoneNumber);
}

public void SetShouldAutoCollectDeviceLocation(bool shouldAutoCollect)
{
ajcInstance.Call("setShouldAutoCollectDeviceLocation", shouldAutoCollect);
}

public void SetTRUSTeId(string tpid)
{
ajcInstance.Call("setTRUSTeId", tpid);
Expand Down
2 changes: 1 addition & 1 deletion sample/Assets/Tune/compile_application_jar.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def compile_java(package_name, sdk_path, api_level):

success = subprocess.call('javac -classpath android-support-v4.jar:' +
'eventbus-2.4.0.jar:' +
'TuneMarketingConsoleSDK-4.0.3.jar:' +
'TuneMarketingConsoleSDK-4.1.2.jar:' +
sdk_path + '/platforms/android-' + api_level + '/android.jar' +
' ' + java_file, shell=True, env=os.environ)

Expand Down

0 comments on commit 7ed698e

Please sign in to comment.