Skip to content

Commit b7c7200

Browse files
authored
Merge pull request #149 from AppsFlyerSDK/releases/6.x.x/6.5.x/6.5.3
add docs
2 parents 0d723c1 + b0b57d6 commit b7c7200

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

CHANGELOG.md

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

3+
## v6.5.3
4+
* Additional solution for Swizzling using macroprocessor
5+
36
## v6.5.2
47
* Update iOS SDK version - 6.5.2
58
* Update Android SDK version - 6.5.2

docs/Ressources/macroprocessor.jpg

335 KB
Loading

docs/Troubleshooting.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,23 @@
99
* When a conflict occurs these methods may not be invoked.
1010
* The solution provided by the AppsFlyer Unity Plugin is [Swizzling](https://medium.com/rocknnull/ios-to-swizzle-or-not-to-swizzle-f8b0ed4a1ce6).
1111
* Starting from `v6.0.7` there is an option to enable swizzling automatically.
12+
We recommend using the macroprocessor option, which is the easiest one. This option is supported from version v6.5.3.
13+
14+
To enable Swizzling, you have 3 options:
15+
- [Using info .plist](#info)
16+
- [Using a c# Script](#script)
17+
- [Using macroprocessor starting v6.5.3](#macro)
18+
19+
#### <a id="info"> Using info .plist
20+
1221
* To enable swizzling, in the info.plist file, a boolean K/V called `AppsFlyerShouldSwizzle` should be set to 1 (true).
1322
* This will automatically enable swizzling and solve conflicts with other plugins.
14-
* This can also be accomplished on the c# side by following these steps:
23+
* Validate that the code in the [AppsFlyer+AppController](https://github.com/AppsFlyerSDK/appsflyer-unity-plugin/blob/master/Assets/AppsFlyer/Plugins/iOS/AppsFlyer%2BAppController.m) is called on the native side.
24+
* Comment out `IMPL_APP_CONTROLLER_SUBCLASS(AppsFlyerAppController)` in AppsFlyerAppController.mm.
25+
26+
---
1527

28+
#### <a id="script"> Using a c# Script
1629
1. Create a new c# script. (we called ours AFUpdatePlist.cs)
1730
2. Place the script in a editor folder (Assets > Editor > AFUpdatePlist.cs)
1831
3. The code in the script should look like this:
@@ -50,3 +63,11 @@ public class MyBuildPostprocessor {
5063
4. Validate that the code in the [AppsFlyer+AppController](https://github.com/AppsFlyerSDK/appsflyer-unity-plugin/blob/master/Assets/AppsFlyer/Plugins/iOS/AppsFlyer%2BAppController.m) is called on the native side.
5164
5. Comment out `IMPL_APP_CONTROLLER_SUBCLASS(AppsFlyerAppController)` in AppsFlyerAppController.mm.
5265

66+
---
67+
68+
#### <a id="macro"> Using macroprocessor
69+
* Add the [preprocessor macro](https://stackoverflow.com/a/26928784) flag `​AFSDK_SHOULD_SWIZZLE=1` to the build settings of the project.
70+
71+
![alt text](https://raw.githubusercontent.com//AppsFlyerSDK/appsflyer-unity-plugin/releases/6.x.x/6.5.x/6.5.3/docs/Ressources/macroprocessor.jpg)
72+
73+
* Validate that the code in the [AppsFlyer+AppController](https://github.com/AppsFlyerSDK/appsflyer-unity-plugin/blob/master/Assets/AppsFlyer/Plugins/iOS/AppsFlyer%2BAppController.m) is called on the native side.

0 commit comments

Comments
 (0)