Skip to content

Commit f96ea68

Browse files
authored
Merge pull request #165 from AppsFlyerSDK/releases/6.x.x/6.8.x/6.8.1
Releases/6.x.x/6.8.x/6.8.1
2 parents 0216773 + f079dff commit f96ea68

20 files changed

+95
-20
lines changed

Assets/AppsFlyer/AppsFlyer.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace AppsFlyerSDK
77
public class AppsFlyer : MonoBehaviour
88
{
99

10-
public static readonly string kAppsFlyerPluginVersion = "6.6.1";
10+
public static readonly string kAppsFlyerPluginVersion = "6.8.1";
1111
public static string CallBackObjectName = null;
1212
private static EventHandler onRequestResponse;
1313
private static EventHandler onInAppResponse;
@@ -845,6 +845,16 @@ public static void setPartnerData(string partnerId, Dictionary<string, string> p
845845

846846
}
847847

848+
/// <summary>
849+
/// Use to opt-out of collecting the network operator name (carrier) and sim operator name from the device.
850+
/// </summary>
851+
public static void setDisableNetworkData(bool disable) {
852+
if (instance != null && instance is IAppsFlyerAndroidBridge) {
853+
IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance;
854+
appsFlyerAndroidInstance.setDisableNetworkData(disable);
855+
}
856+
}
857+
848858
/// <summary>
849859
/// Start callback event.
850860
/// </summary>

Assets/AppsFlyer/AppsFlyerAndroid.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,15 @@ public void setPartnerData(string partnerId, Dictionary<string, string> partnerI
671671
#endif
672672
}
673673

674+
/// <summary>
675+
/// Use to opt-out of collecting the network operator name (carrier) and sim operator name from the device.
676+
/// </summary>
677+
public void setDisableNetworkData(bool disable) {
678+
#if !UNITY_EDITOR
679+
appsFlyerAndroid.CallStatic("setDisableNetworkData", disable);
680+
#endif
681+
}
682+
674683
/// <summary>
675684
/// Internal Helper Method.
676685
/// </summary>

Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
<dependencies>
33

44
<androidPackages>
5-
<androidPackage spec="com.appsflyer:af-android-sdk:6.6.0">
5+
<androidPackage spec="com.appsflyer:af-android-sdk:6.8.0">
66
</androidPackage>
7-
<androidPackage spec="com.appsflyer:unity-wrapper:6.6.0">
7+
<androidPackage spec="com.appsflyer:unity-wrapper:6.8.1">
88
</androidPackage>
99
<androidPackage spec="com.android.installreferrer:installreferrer:2.1">
1010
</androidPackage>
1111
</androidPackages>
1212

1313
<iosPods>
14-
<iosPod name="AppsFlyerFramework" version="6.6.0" minTargetSdk="9.0">
14+
<iosPod name="AppsFlyerFramework" version="6.8.1" minTargetSdk="9.0">
1515
</iosPod>
1616
</iosPods>
1717

Assets/AppsFlyer/IAppsFlyerAndroidBridge.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public interface IAppsFlyerAndroidBridge : IAppsFlyerNativeBridge
2424
void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary<string, string> additionalParameters, MonoBehaviour gameObject);
2525
void setCollectOaid(bool isCollect);
2626
void setDisableAdvertisingIdentifiers(bool disable);
27+
void setDisableNetworkData(bool disable);
2728

2829
}
2930
}

Assets/AppsFlyer/Tests/Tests_Suite.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,15 @@ public void setDisableAdvertisingIdentifiers_called()
587587
AppsFlyerMOCKInterface.Received().setDisableAdvertisingIdentifiers(true);
588588

589589
}
590+
591+
[Test]
592+
public void setDisableNetworkData_called() {
593+
var AppsFlyerMOCKInterface = Substitute.For<IAppsFlyerAndroidBridge>();
594+
595+
AppsFlyer.instance = AppsFlyerMOCKInterface;
596+
AppsFlyer.setDisableNetworkData(true);
597+
AppsFlyerMOCKInterface.Received().setDisableNetworkData(true);
598+
}
590599
#elif UNITY_IOS
591600

592601
[Test]

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Versions
22

3+
## v6.8.1
4+
* Update iOS SDK version - 6.8.1
5+
* Update Android SDK version - 6.8.0
6+
* Added new Android API `setDisableNetworkData`
7+
38
## v6.6.0
49
* Update iOS SDK version - 6.6.0
510
* Update Android SDK version - 6.6.0

ProjectSettings/ProjectVersion.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
m_EditorVersion: 2019.4.26f1
2-
m_EditorVersionWithRevision: 2019.4.26f1 (e0392c6b2363)
1+
m_EditorVersion: 2020.3.15f2
2+
m_EditorVersionWithRevision: 2020.3.15f2 (6cf78cb77498)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!890905787 &1
4+
VersionControlSettings:
5+
m_ObjectHideFlags: 0
6+
m_Mode: Visible Meta Files
7+
m_CollabEditorSettings:
8+
inProgressEnabled: 1

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@
1616

1717
### <a id="plugin-build-for"> This plugin is built for
1818

19-
- Android AppsFlyer SDK **v6.6.0**
20-
- iOS AppsFlyer SDK **v6.6.0**
19+
- Android AppsFlyer SDK **v6.8.0**
20+
- iOS AppsFlyer SDK **v6.8.1**
21+
22+
## AD_ID permission for Android
23+
In v6.8.0 of the AppsFlyer SDK, we added the normal permission `com.google.android.gms.permission.AD_ID` to the SDK's AndroidManifest,
24+
to allow the SDK to collect the Android Advertising ID on apps targeting API 33.
25+
If your app is targeting children, you need to revoke this permission to comply with Google's Data policy.
26+
You can read more about it [here](https://dev.appsflyer.com/hc/docs/install-android-sdk#the-ad_id-permission).
2127

2228
## <a id="breaking-changes"> ❗❗ Breaking changes when updating to 6.6.0 ❗❗
23-
- Starting version 6.6.0, there is no more need to differiencate between iOS and Android API. All API must be called with `AppsFlyer` class (even if the API is only iOS or Android).
29+
- Starting version 6.6.0, there is no more need to differentiate between iOS and Android APIs. All APIs must be called with `AppsFlyer` class (even if the API is only iOS or Android).
2430

2531
Example:
2632

android-unity-wrapper/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44

55
repositories {
66
google()
7-
jcenter()
7+
mavenCentral()
88

99
}
1010
dependencies {
@@ -26,7 +26,7 @@ nexusStaging {
2626
allprojects {
2727
repositories {
2828
google()
29-
jcenter()
29+
mavenCentral()
3030

3131
}
3232
}

0 commit comments

Comments
 (0)