You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added communication with SKAdNetwork framework by default on iOS 14.
@@ -7,8 +17,6 @@
7
17
- Added sending of value of user's consent to be tracked with each package.
8
18
- Added `setUrlStrategy` method to `AdjustConfig` class to allow selection of URL strategy for specific market.
9
19
10
-
⚠️ **Note**: iOS 14 beta versions prior to 5 appear to have an issue when trying to use iAd framework API like described in [here](https://github.com/adjust/ios_sdk/issues/452). For testing of v4.23.0 version of SDK in iOS, please make sure you're using **iOS 14 beta 5 or later**.
Copy file name to clipboardExpand all lines: README.md
+5-47Lines changed: 5 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,57 +73,13 @@ First, download the library from `npm`:
73
73
$ npm install react-native-adjust --save
74
74
```
75
75
76
-
Then you must install the native dependencies. You can use `react-native` cli tool to add native dependencies automatically and then continue the directions below depending on your target OS.
76
+
For iOS app make sure to go to `ios` folder and install Cocoapods dependencies:
77
77
78
78
```
79
-
$ react-native link
79
+
$ cd ios && pod install
80
80
```
81
81
82
-
**Or** if you use CocoaPods for **iOS**, add the following to your `Podfile` and run `pod install` afterwards:
83
-
84
-
```
85
-
pod 'react-native-adjust', :path => '../node_modules/react-native-adjust'
86
-
```
87
-
88
-
For **iOS**, you don't need to do anything else.
89
-
90
-
For **Android**, you *may* need to check if Adjust package was added to the native module's package list.
91
-
92
-
- Go to your app's `MainApplication.java` class. It should be located in
- There is a method called `getPackages()` that looks like this by default:
96
-
97
-
```java
98
-
@Override
99
-
protectedList<ReactPackage> getPackages() {
100
-
returnArrays.<ReactPackage>asList(
101
-
newMainReactPackage()
102
-
);
103
-
}
104
-
```
105
-
106
-
- After adding Adjust SDK via `npm` and running `react-native link` command, Adjust package should be added automatically to this list and it should look something like this:
107
-
108
-
```java
109
-
importcom.adjust.nativemodule.AdjustPackage;
110
-
111
-
// ...
112
-
113
-
@Override
114
-
protectedList<ReactPackage> getPackages() {
115
-
returnArrays.<ReactPackage>asList(
116
-
newMainReactPackage(),
117
-
newAdjustPackage()
118
-
);
119
-
}
120
-
```
121
-
122
-
- In case that the line `new AdjustPackage()` was not added automatically, you'll have to add it to the list of packages by yourself like described above. Also, don't forget to add the import statement on top of the `MainApplication.java` file:
123
-
124
-
```java
125
-
importcom.adjust.nativemodule.AdjustPackage;
126
-
```
82
+
After this Adjust SDK should be successfully added to your app.
127
83
128
84
### <aid="sdk-integrate"></a>Integrate the SDK into your app
Before calling the method, make sure that your iOS app's `Info.plist` contains an entry for `NSUserTrackingUsageDescription` key. In absence of that key and usage of this method, app will crash.
0 commit comments