Skip to content

Commit a4bfcaa

Browse files
authored
Merge pull request #104 from adjust/v4231
Version 4.23.1
2 parents 06485b0 + 6926fb9 commit a4bfcaa

36 files changed

+3110
-1847
lines changed

CHANGELOG.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
### Version 4.23.1 (6th November 2020)
2+
#### Added
3+
- Added support for autolinking.
4+
5+
#### Native SDKs
6+
- [[email protected]][ios_sdk_v4.23.2]
7+
- [[email protected]][android_sdk_v4.24.1]
8+
9+
---
10+
111
### Version 4.23.0 (28th August 2020)
212
#### Added
313
- Added communication with SKAdNetwork framework by default on iOS 14.
@@ -7,8 +17,6 @@
717
- Added sending of value of user's consent to be tracked with each package.
818
- Added `setUrlStrategy` method to `AdjustConfig` class to allow selection of URL strategy for specific market.
919

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**.
11-
1220
#### Native SDKs
1321
- [[email protected]][ios_sdk_v4.23.0]
1422
- [[email protected]][android_sdk_v4.24.0]
@@ -372,6 +380,7 @@
372380
[ios_sdk_v4.21.3]: https://github.com/adjust/ios_sdk/tree/v4.21.3
373381
[ios_sdk_v4.22.1]: https://github.com/adjust/ios_sdk/tree/v4.22.1
374382
[ios_sdk_v4.23.0]: https://github.com/adjust/ios_sdk/tree/v4.23.0
383+
[ios_sdk_v4.23.2]: https://github.com/adjust/ios_sdk/tree/v4.23.2
375384

376385
[android_sdk_v4.10.4]: https://github.com/adjust/android_sdk/tree/v4.10.4
377386
[android_sdk_v4.11.0]: https://github.com/adjust/android_sdk/tree/v4.11.0
@@ -393,3 +402,4 @@
393402
[android_sdk_v4.21.1]: https://github.com/adjust/android_sdk/tree/v4.21.1
394403
[android_sdk_v4.22.0]: https://github.com/adjust/android_sdk/tree/v4.22.0
395404
[android_sdk_v4.24.0]: https://github.com/adjust/android_sdk/tree/v4.24.0
405+
[android_sdk_v4.24.1]: https://github.com/adjust/android_sdk/tree/v4.24.1

README.md

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -73,57 +73,13 @@ First, download the library from `npm`:
7373
$ npm install react-native-adjust --save
7474
```
7575

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:
7777

7878
```
79-
$ react-native link
79+
$ cd ios && pod install
8080
```
8181

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
93-
`./android/app/src/main/java/[your app]/MainApplication.java`
94-
95-
- There is a method called `getPackages()` that looks like this by default:
96-
97-
```java
98-
@Override
99-
protected List<ReactPackage> getPackages() {
100-
return Arrays.<ReactPackage>asList(
101-
new MainReactPackage()
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-
import com.adjust.nativemodule.AdjustPackage;
110-
111-
// ...
112-
113-
@Override
114-
protected List<ReactPackage> getPackages() {
115-
return Arrays.<ReactPackage>asList(
116-
new MainReactPackage(),
117-
new AdjustPackage()
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-
import com.adjust.nativemodule.AdjustPackage;
126-
```
82+
After this Adjust SDK should be successfully added to your app.
12783

12884
### <a id="sdk-integrate"></a>Integrate the SDK into your app
12985

@@ -346,6 +302,8 @@ Adjust.requestTrackingAuthorizationWithCompletionHandler(function(status) {
346302
});
347303
```
348304

305+
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.
306+
349307
### <a id="skadn-framework"></a>SKAdNetwork framework
350308

351309
**Note**: This feature exists only in iOS platform.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.23.0
1+
4.23.1

android/libs/adjust-android.jar

157 Bytes
Binary file not shown.

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ android {
133133
minSdkVersion rootProject.ext.minSdkVersion
134134
targetSdkVersion rootProject.ext.targetSdkVersion
135135
versionCode 1
136-
versionName "4.23.0"
136+
versionName "4.23.1"
137137
}
138138
splits {
139139
abi {

example/ios/Example.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
);
396396
runOnlyForDeploymentPostprocessing = 0;
397397
shellPath = /bin/sh;
398-
shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
398+
shellScript = "export NODE_BINARY=/usr/local/bin/node\n../node_modules/react-native/scripts/react-native-xcode.sh\n";
399399
};
400400
2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
401401
isa = PBXShellScriptBuildPhase;
@@ -660,7 +660,7 @@
660660
);
661661
INFOPLIST_FILE = Example/Info.plist;
662662
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
663-
MARKETING_VERSION = 4.23.0;
663+
MARKETING_VERSION = 4.23.1;
664664
OTHER_LDFLAGS = (
665665
"$(inherited)",
666666
"-ObjC",
@@ -684,7 +684,7 @@
684684
DEVELOPMENT_TEAM = QGUGW9AUMK;
685685
INFOPLIST_FILE = Example/Info.plist;
686686
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
687-
MARKETING_VERSION = 4.23.0;
687+
MARKETING_VERSION = 4.23.1;
688688
OTHER_LDFLAGS = (
689689
"$(inherited)",
690690
"-ObjC",

example/ios/Podfile.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PODS:
2-
- Adjust (4.23.0):
3-
- Adjust/Core (= 4.23.0)
4-
- Adjust/Core (4.23.0)
2+
- Adjust (4.23.2):
3+
- Adjust/Core (= 4.23.2)
4+
- Adjust/Core (4.23.2)
55
- boost-for-react-native (1.63.0)
66
- CocoaAsyncSocket (7.6.4)
77
- CocoaLibEvent (1.0.0)
@@ -18,12 +18,12 @@ PODS:
1818
- Flipper-Folly (~> 2.1)
1919
- Flipper-RSocket (~> 1.0)
2020
- Flipper-DoubleConversion (1.1.7)
21-
- Flipper-Folly (2.2.0):
21+
- Flipper-Folly (2.3.0):
2222
- boost-for-react-native
2323
- CocoaLibEvent (~> 1.0)
2424
- Flipper-DoubleConversion
2525
- Flipper-Glog
26-
- OpenSSL-Universal (= 1.0.2.19)
26+
- OpenSSL-Universal (= 1.0.2.20)
2727
- Flipper-Glog (0.3.6)
2828
- Flipper-PeerTalk (0.0.4)
2929
- Flipper-RSocket (1.1.0):
@@ -70,9 +70,9 @@ PODS:
7070
- DoubleConversion
7171
- glog
7272
- glog (0.3.5)
73-
- OpenSSL-Universal (1.0.2.19):
74-
- OpenSSL-Universal/Static (= 1.0.2.19)
75-
- OpenSSL-Universal/Static (1.0.2.19)
73+
- OpenSSL-Universal (1.0.2.20):
74+
- OpenSSL-Universal/Static (= 1.0.2.20)
75+
- OpenSSL-Universal/Static (1.0.2.20)
7676
- RCTRequired (0.62.2)
7777
- RCTTypeSafety (0.62.2):
7878
- FBLazyVector (= 0.62.2)
@@ -236,8 +236,8 @@ PODS:
236236
- React-cxxreact (= 0.62.2)
237237
- React-jsi (= 0.62.2)
238238
- React-jsinspector (0.62.2)
239-
- react-native-adjust (4.23.0):
240-
- Adjust (= 4.23.0)
239+
- react-native-adjust (4.23.1):
240+
- Adjust (= 4.23.2)
241241
- React
242242
- React-RCTActionSheet (0.62.2):
243243
- React-Core/RCTActionSheetHeaders (= 0.62.2)
@@ -423,7 +423,7 @@ EXTERNAL SOURCES:
423423
:path: "../node_modules/react-native/ReactCommon/yoga"
424424

425425
SPEC CHECKSUMS:
426-
Adjust: 552e4f9bbc77501b2000f483491b20642081749a
426+
Adjust: 2faf94752c2069c0bc68bc41c03d00175de4555f
427427
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
428428
CocoaAsyncSocket: 694058e7c0ed05a9e217d1b3c7ded962f4180845
429429
CocoaLibEvent: 2fab71b8bd46dd33ddb959f7928ec5909f838e3f
@@ -432,14 +432,14 @@ SPEC CHECKSUMS:
432432
FBReactNativeSpec: 5465d51ccfeecb7faa12f9ae0024f2044ce4044e
433433
Flipper: 6c1f484f9a88d30ab3e272800d53688439e50f69
434434
Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41
435-
Flipper-Folly: c12092ea368353b58e992843a990a3225d4533c3
435+
Flipper-Folly: e4493b013c02d9347d5e0cb4d128680239f6c78a
436436
Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6
437437
Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9
438438
Flipper-RSocket: 64e7431a55835eb953b0bf984ef3b90ae9fdddd7
439439
FlipperKit: 6dc9b8f4ef60d9e5ded7f0264db299c91f18832e
440440
Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51
441441
glog: 1f3da668190260b06b429bb211bfbee5cd790c28
442-
OpenSSL-Universal: 8b48cc0d10c1b2923617dfe5c178aa9ed2689355
442+
OpenSSL-Universal: ff34003318d5e1163e9529b08470708e389ffcdd
443443
RCTRequired: cec6a34b3ac8a9915c37e7e4ad3aa74726ce4035
444444
RCTTypeSafety: 93006131180074cffa227a1075802c89a49dd4ce
445445
React: 29a8b1a02bd764fb7644ef04019270849b9a7ac3
@@ -449,7 +449,7 @@ SPEC CHECKSUMS:
449449
React-jsi: b6dc94a6a12ff98e8877287a0b7620d365201161
450450
React-jsiexecutor: 1540d1c01bb493ae3124ed83351b1b6a155db7da
451451
React-jsinspector: 512e560d0e985d0e8c479a54a4e5c147a9c83493
452-
react-native-adjust: 2a86dea62f6ce09463f36ac3ee60f615e790ee8c
452+
react-native-adjust: d8b1aa02957057007fede6188a32b76c19b692e7
453453
React-RCTActionSheet: f41ea8a811aac770e0cc6e0ad6b270c644ea8b7c
454454
React-RCTAnimation: 49ab98b1c1ff4445148b72a3d61554138565bad0
455455
React-RCTBlob: a332773f0ebc413a0ce85942a55b064471587a71

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "AdjustExample",
3-
"version": "4.23.0",
3+
"version": "4.23.1",
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",

0 commit comments

Comments
 (0)