Skip to content

Commit 06b3757

Browse files
authored
Merge pull request #230 from AppsFlyerSDK/releases/6.x.x/6.12.x/6.12.10-rc1
Releases/6.x.x/6.12.x/6.12.10 rc1
2 parents bdb3e3a + a4679f3 commit 06b3757

18 files changed

+93
-19
lines changed

.github/workflows/release_production_workflow.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ jobs:
5858
plugin_version: ${{ needs.Prepare-Release.outputs.output1 }}
5959
secrets: inherit
6060

61-
Release-To-Production:
61+
Update-Links:
6262
needs: [Prepare-Release, Check-Packages]
63+
uses: ./.github/workflows/update_links.yml
64+
secrets: inherit
65+
66+
Release-To-Production:
67+
needs: [Prepare-Release, Check-Packages, Update-Links]
6368
uses: ./.github/workflows/release_to_production.yml
6469
with:
6570
plugin_version: ${{ needs.Prepare-Release.outputs.output1 }}

.github/workflows/release_to_QA.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,25 @@ jobs:
2828
chmod +x .github/workflows/Scripts/checkJira.sh
2929
.github/workflows/Scripts/checkJira.sh $JIRA_TOKEN "$jira_fixed_version"
3030
31+
- name: Update package.json
32+
env:
33+
BRANCH_NAME: ${{ github.ref_name }}
34+
COMMIT_AUTHOR: ${{ secrets.CI_USERNAME }}
35+
COMMIT_EMAIL: ${{ secrets.CI_EMAIL }}
36+
run: |
37+
echo "updating package.json version"
38+
plugin_version=$(echo "$BRANCH_NAME" | grep -Eo '[0-9]+.[0-9]+.[0-9]+')
39+
sed -E -i "s/\"version\": \"[0-9]+.[0-9]+.[0-9]+\"/\"version\": \"$plugin_version\"/g" Assets/AppsFlyer/package.json
40+
41+
if [[ -n $(git status -s) ]]; then
42+
echo "Commit and push"
43+
git add Assets/AppsFlyer/package.json
44+
git commit -m "update package.json"
45+
git push origin $BRANCH_NAME
46+
else
47+
echo "package.json version is already up to date"
48+
fi
49+
3150
- name: Send slack report
3251
env:
3352
SLACK_TOKEN: ${{ secrets.CI_SLACK_TOKEN }}

.github/workflows/update_links.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: update sdk links
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
update-links:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- name: Check out repo
11+
uses: actions/checkout@v2
12+
- name: Update links
13+
env:
14+
COMMIT_AUTHOR: ${{ secrets.CI_USERNAME }}
15+
COMMIT_EMAIL: ${{ secrets.CI_EMAIL }}
16+
run: |
17+
echo "Getting the versions"
18+
grep -o 'spec="com.appsflyer:[^"]\+"' Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml | sed -E 's/spec="com.appsflyer:([^"]+)"/\1/' | awk -F':' '{print $2}' > output.txt
19+
grep -o 'name="AppsFlyerFramework" version="[^"]\+"' Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml | sed -E 's/name="AppsFlyerFramework" version="([^"]+)"/\1/' >> output.txt
20+
21+
echo "Changing links"
22+
android_version=$(sed -n '1p' output.txt)
23+
sed -E -i "s/af-android-sdk\/[0-9]+.[0-9]+.[0-9]+/af-android-sdk\/$android_version/g" docs/Installation.md
24+
sed -E -i "s/af-android-sdk-[0-9]+.[0-9]+.[0-9]+/af-android-sdk-$android_version/g" docs/Installation.md
25+
26+
wrapper_version=$(sed -n '2p' output.txt)
27+
sed -E -i "s/unity-wrapper\/[0-9]+.[0-9]+.[0-9]+/unity-wrapper\/$wrapper_version/g" docs/Installation.md
28+
sed -E -i "s/unity-wrapper-[0-9]+.[0-9]+.[0-9]+/unity-wrapper-$wrapper_version/g" docs/Installation.md
29+
30+
ios_version=$(sed -n '3p' output.txt)
31+
major_version="${ios_version%%.*}"
32+
minor_version="${ios_version%.*}"
33+
sed -E -i "s/appsflyer.com\/ios\/[0-9]+.x.x\/[0-9]+.[0-9]+.x\/[0-9]+.[0-9]+.[0-9]+\/AF-iOS-SDK-v[0-9]+.[0-9]+.[0-9]+/appsflyer.com\/ios\/$major_version.x.x\/$minor_version.x\/$ios_version\/AF-iOS-SDK-v$ios_version/g" docs/Installation.md
34+
sed -E -i "s/unity-wrapper-[0-9]+.[0-9]+.[0-9]+/unity-wrapper-$wrapper_version/g" docs/Installation.md
35+
36+
rm output.txt
37+
38+
if [[ -n $(git status -s) ]]; then
39+
echo "Commit and push"
40+
git config --global user.name $COMMIT_AUTHOR
41+
git config --global user.email $COMMIT_EMAIL
42+
git add docs/Installation.md
43+
git commit -m "generate links"
44+
git push -f -u origin master
45+
else
46+
echo "Links are already up to date"
47+
fi

Assets/AppsFlyer/AppsFlyer.cs

Lines changed: 1 addition & 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.10.30";
10+
public static readonly string kAppsFlyerPluginVersion = "6.12.10";
1111
public static string CallBackObjectName = null;
1212
private static EventHandler onRequestResponse;
1313
private static EventHandler onInAppResponse;

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.10.3">
5+
<androidPackage spec="com.appsflyer:af-android-sdk:6.12.1">
66
</androidPackage>
7-
<androidPackage spec="com.appsflyer:unity-wrapper:6.10.30">
7+
<androidPackage spec="com.appsflyer:unity-wrapper:6.12.10">
88
</androidPackage>
99
<androidPackage spec="com.android.installreferrer:installreferrer:2.1">
1010
</androidPackage>
1111
</androidPackages>
1212

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

Assets/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static void unityCallBack(NSString* objectName, const char* method, const char*
1818

1919
const void _startSDK(bool shouldCallback, const char* objectName) {
2020
[[AppsFlyerLib shared] setPluginInfoWith: AFSDKPluginUnity
21-
pluginVersion:@"6.10.30"
21+
pluginVersion:@"6.12.10"
2222
additionalParams:nil];
2323
startRequestObjectName = stringFromChar(objectName);
2424
AppsFlyeriOSWarpper.didCallStart = YES;

Assets/AppsFlyer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "appsflyer-unity-plugin",
33
"displayName": "AppsFlyer",
44
"description": "AppsFlyer Unity plugin",
5-
"version": "6.9.4",
6-
"unity": "2020.3",
5+
"version": "6.12.10",
6+
"unity": "2019.4",
77
"license": "MIT",
88
"dependencies": {
99
"com.google.external-dependency-manager": "1.2.144"

CHANGELOG.md

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

3+
## v6.12.10
4+
* Update iOS SDK version - 6.12.0
5+
* Update Android SDK version - 6.12.1
6+
37
## v6.10.30
48
* Update iOS SDK version - 6.10.1
59
* Update Android SDK version - 6.10.3

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

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

19-
- Android AppsFlyer SDK **v6.10.3**
20-
- iOS AppsFlyer SDK **v6.10.1**
19+
- Android AppsFlyer SDK **v6.12.1**
20+
- iOS AppsFlyer SDK **v6.12.0**
2121

2222
---
2323
### <a id="init-sdk-deeplink"> AD_ID permission for Android

android-unity-wrapper/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ android.enableJetifier=true
2020

2121
GROUP=com.appsflyer
2222

23-
VERSION_CODE=27
24-
VERSION_NAME=6.10.30
23+
VERSION_CODE=28
24+
VERSION_NAME=6.12.10
2525

2626
POM_ARTIFACT_ID=unity-wrapper
2727
POM_PACKAGING=aar

0 commit comments

Comments
 (0)