Skip to content

Commit 575ed93

Browse files
Merge pull request #535 from AppsFlyerSDK/releases/6.x.x/6.13.x/6.13.1-rc3
Releases/6.x.x/6.13.x/6.13.1 rc3
2 parents 3806778 + 3ca8191 commit 575ed93

12 files changed

Lines changed: 62 additions & 18 deletions

File tree

.github/workflows/deploy-to-QA.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
env:
5656
SLACK_TOKEN: ${{ secrets.CI_SLACK_TOKEN }}
5757
run: |
58-
ios_sdk_version=$(cat README.md | grep 'iOS AppsFlyer SDK' | grep -Eo '[0-9].[0-9]+.[0-9]')
59-
android_sdk_version=$(cat README.md | grep 'Android AppsFlyer SDK' | grep -Eo '[0-9].[0-9]+.[0-9]')
58+
ios_sdk_version=$(cat react-native-appsflyer.podspec | grep '\'AppsFlyerFramework\' | grep -Eo '[0-9].[0-9]+.[0-9]+')
59+
android_sdk_version=$(cat android/build.gradle | grep 'com.appsflyer:af-android-sdk' | grep -Eo '[0-9].[0-9]+.[0-9]+')
6060
CHANGES=$(cat "${{env.JIRA_FIXED_VERSION}}-releasenotes".txt)
6161
curl -X POST -H 'Content-type: application/json' --data '{"jira_fixed_version": "'"${{env.JIRA_FIXED_VERSION}}"'", "deploy_type": "QA", "install_tag": "QA", "git_branch": "'"${{github.ref_name}}"'", "changes_and_fixes": "'"$CHANGES"'", "android_dependencie": "'"$android_sdk_version"'", "ios_dependencie": "'"$ios_sdk_version"'"}' "$SLACK_TOKEN"

.github/workflows/pre-release-workflow.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,16 @@ jobs:
4848
git add CHANGELOG.md
4949
git commit -m "Update CHANGELOG.md"
5050
git push origin HEAD:${{ env.GIT_BRANCH_RELEASE }} --force
51+
52+
- name: Update README.md
53+
env:
54+
JIRA_TOKEN: ${{ secrets.CI_JIRA_TOKEN }}
55+
JIRA_FIXED_VERSION: "React Native SDK v${{env.PLUGIN_VERSION}}"
56+
run: |
57+
ios_sdk_version=$(cat react-native-appsflyer.podspec | grep '\'AppsFlyerFramework\' | grep -Eo '[0-9].[0-9]+.[0-9]+')
58+
android_sdk_version=$(cat android/build.gradle | grep 'com.appsflyer:af-android-sdk' | grep -Eo '[0-9].[0-9]+.[0-9]+')
59+
sed -i -e -r "s/Android AppsFlyer SDK \*\*v[0-9].[0-9]+.[0-9]+\*\*/Android AppsFlyer SDK \*\*v$android_sdk_version\*\*/g" README.md
60+
sed -i -e -r "s/iOS AppsFlyer SDK \*\*v[0-9].[0-9]+.[0-9]+\*\*/iOS AppsFlyer SDK \*\*v$ios_sdk_version\*\*/g" README.md
61+
git add README.md
62+
git commit -m "Update README.md"
63+
git push origin HEAD:${{ env.GIT_BRANCH_RELEASE }} --force

.github/workflows/release-Production-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
run: |
7575
chmod +x .github/workflows/scripts/releaseNotesGenerator.sh
7676
.github/workflows/scripts/releaseNotesGenerator.sh $JIRA_TOKEN "$JIRA_FIXED_VERSION"
77-
ios_sdk_version=$(cat README.md | grep 'iOS AppsFlyer SDK' | grep -Eo '[0-9].[0-9]+.[0-9]')
78-
android_sdk_version=$(cat README.md | grep 'Android AppsFlyer SDK' | grep -Eo '[0-9].[0-9]+.[0-9]')
77+
ios_sdk_version=$(cat react-native-appsflyer.podspec | grep '\'AppsFlyerFramework\' | grep -Eo '[0-9].[0-9]+.[0-9]+')
78+
android_sdk_version=$(cat android/build.gradle | grep 'com.appsflyer:af-android-sdk' | grep -Eo '[0-9].[0-9]+.[0-9]+')
7979
CHANGES=$(cat "$JIRA_FIXED_VERSION-releasenotes".txt)
8080
curl -X POST -H 'Content-type: application/json' --data '{"jira_fixed_version": "'"${{env.JIRA_FIXED_VERSION}}"'", "deploy_type": "Production", "install_tag": "latest", "git_branch": "'"$RELEASE_BRACH_NAME"'", "changes_and_fixes": "'"$CHANGES"'", "android_dependencie": "'"$android_sdk_version"'", "ios_dependencie": "'"$ios_sdk_version"'"}' "$SLACK_TOKEN"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 6.13.1
2+
Release date: *2024-03-07*
3+
4+
- React Native >> update iOS to 6.13.1
5+
16
## 6.13.0
27
Release date: *2024-02-19*
38

Docs/RN_API.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,19 +458,19 @@ appsFlyer.setHost('foo', 'bar.appsflyer.com', res => console.log(res));
458458
`setUserEmails(options, success, error)`
459459

460460
Set the user emails and encrypt them.
461-
**Note:** Android platform supports only 0 (none) and 3 (SHA256) emailsCryptType. iOS platform support all (0-3) emailsCryptType.
461+
**Note:** Android and iOS platforms supports only 0 (none) and 3 (SHA256) emailsCryptType.
462462
When unsupported emailsCryptType is passed, the SDK will use the default (none).
463463

464464
| parameter | type | description |
465465
| ---------- |----------|------------------ |
466466
| configuration | json | email configuration |
467467
| success | function | success callback |
468-
| error | function | error callback |
468+
| error | function | error callback |
469469

470470

471-
| option | type | description |
471+
| option | type | description |
472472
| -------------- | ---- |------------- |
473-
| emailsCryptType | int | **iOS**: none - 0 (default), SHA1 - 1, MD5 - 2, SHA256 - 3<br>**Android**: none - 0 (default), SHA256 - 3|
473+
| emailsCryptType | int | none - 0 (default), SHA256 - 3 |
474474
| emails | array | comma separated list of emails |
475475

476476

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
### <a id="plugin-build-for"> This plugin is built for
1414

1515
- Android AppsFlyer SDK **v6.13.0**
16-
- iOS AppsFlyer SDK **v6.13.0**
16+
- iOS AppsFlyer SDK **v6.13.1**
1717

1818
## <a id="breaking-changes"> ❗❗ Breaking changes when updating to v6.x.x❗❗
1919

__tests__/index.test.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import appsFlyer from '../index';
22
import { RNAppsFlyer } from '../node_modules/react-native/Libraries/BatchedBridge/NativeModules';
33
import { NativeEventEmitter } from 'react-native';
4+
const fs = require('fs');
5+
const path = require('path');
46

57
describe("Test appsFlyer API's", () => {
68
afterEach(() => {
@@ -240,6 +242,26 @@ describe("Test appsFlyer API's", () => {
240242
appsFlyer.disableIDFVCollection(true);
241243
expect(RNAppsFlyer.disableIDFVCollection).toHaveBeenCalledTimes(1);
242244
});
245+
246+
test('plugin version between platforms should match', () => {
247+
const RNJavaFile = fs.readFileSync(
248+
path.resolve(__dirname, '../android/src/main/java/com/appsflyer/reactnative/RNAppsFlyerConstants.java'),
249+
'utf-8'
250+
);
251+
252+
const RNObjCFile = fs.readFileSync(
253+
path.resolve(__dirname, '../ios/RNAppsFlyer.h'),
254+
'utf-8'
255+
);
256+
257+
const pluginVersionJavaRegex = /final\s+static\s+String\s+PLUGIN_VERSION\s+=\s+"([\d.]+)";/;
258+
const pluginVersionObjCRegex = /static\s+NSString\s+\*const\s+kAppsFlyerPluginVersion\s+=\s+@"([\d.]+)";/;
259+
260+
const versionAndroid = RNJavaFile.match(pluginVersionJavaRegex)[1];
261+
const versionIos = RNObjCFile.match(pluginVersionObjCRegex)[1];
262+
263+
expect(versionAndroid).toEqual(versionIos);
264+
});
243265
});
244266

245267
describe('Test native event emitter', () => {
@@ -322,4 +344,4 @@ describe('Test native event emitter', () => {
322344

323345
nativeEventEmitter.emit('onDeepLinking', nativeEventObject);
324346
});
325-
});
347+
});

android/src/main/java/com/appsflyer/reactnative/RNAppsFlyerConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public class RNAppsFlyerConstants {
88

9-
final static String PLUGIN_VERSION = "6.13.0";
9+
final static String PLUGIN_VERSION = "6.13.1";
1010
final static String NO_DEVKEY_FOUND = "No 'devKey' found or its empty";
1111
final static String UNKNOWN_ERROR = "AF Unknown Error";
1212
final static String SUCCESS = "Success";

index.d.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,15 @@ declare module "react-native-appsflyer" {
115115
}
116116

117117
export const AppsFlyerConsent: {
118-
forGDPRUser: (hasConsentForDataUsage: boolean, hasConsentForAdsPersonalization: boolean) => void;
119-
forNonGDPRUser: () => void;
118+
forGDPRUser: (hasConsentForDataUsage: boolean, hasConsentForAdsPersonalization: boolean) => AppsFlyerConsentType;
119+
forNonGDPRUser: () => AppsFlyerConsentType;
120120
}
121121

122-
export type AppsFlyerConsentType = typeof AppsFlyerConsent;
122+
export interface AppsFlyerConsentType {
123+
isUserSubjectToGDPR: boolean;
124+
hasConsentForDataUsage?: boolean;
125+
hasConsentForAdsPersonalization?: boolean;
126+
}
123127

124128
const appsFlyer: {
125129
onInstallConversionData(callback: (data: ConversionData) => any): () => void;

ios/RNAppsFlyer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@end
2323

2424

25-
static NSString *const kAppsFlyerPluginVersion = @"6.13.0";
25+
static NSString *const kAppsFlyerPluginVersion = @"6.13.1";
2626
static NSString *const NO_DEVKEY_FOUND = @"No 'devKey' found or its empty";
2727
static NSString *const NO_APPID_FOUND = @"No 'appId' found or its empty";
2828
static NSString *const NO_EVENT_NAME_FOUND = @"No 'eventName' found or its empty";

0 commit comments

Comments
 (0)