Skip to content

Commit b5a69cf

Browse files
committed
Fixed CI version sync and bumped PLUGIN_VERSION to 6.17.9
- Fixed rc-release and promote-release workflows to use correct sed patterns matching actual constant names (PLUGIN_VERSION, kAppsFlyerPluginVersion) and target the right files (AppsFlyerConstants.java, appsflyer_constants.dart, AppsflyerSdkPlugin.h) - Added missing Dart constant and Purchase Connector README updates to CI - Fixed notify-team job to checkout the release branch instead of default - Bumped PLUGIN_VERSION to 6.17.9 across Android, Dart, and iOS constants; - Added CHANGELOG entry and updated README Purchase Connector iOS version
1 parent 56c32ad commit b5a69cf

6 files changed

Lines changed: 80 additions & 29 deletions

File tree

.github/workflows/promote-release.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,24 +88,30 @@ jobs:
8888
sed -i "s/^version: .*/version: $VERSION/" pubspec.yaml
8989
grep "^version:" pubspec.yaml
9090
91-
- name: 📝 Update plugin version constants (Android)
91+
- name: 📝 Update plugin version constants (Android/iOS/Dart)
9292
run: |
9393
VERSION='${{ steps.compute-version.outputs.version }}'
94-
FILE="android/src/main/java/com/appsflyer/appsflyersdk/AppsFlyerConstants.java"
95-
if [ -f "$FILE" ]; then
96-
sed -i "s/kPluginVersion = \".*\"/kPluginVersion = \"$VERSION\"/" "$FILE"
97-
echo "Updated Android constants:"
98-
grep "kPluginVersion" "$FILE"
94+
echo "Updating PLUGIN_VERSION constants to: $VERSION"
95+
96+
# Android - AppsFlyerConstants.java
97+
ANDROID_FILE="android/src/main/java/com/appsflyer/appsflyersdk/AppsFlyerConstants.java"
98+
if [ -f "$ANDROID_FILE" ]; then
99+
sed -i "s/PLUGIN_VERSION = \".*\"/PLUGIN_VERSION = \"$VERSION\"/" "$ANDROID_FILE"
100+
echo "✅ Android:" && grep "PLUGIN_VERSION" "$ANDROID_FILE"
99101
fi
100-
101-
- name: 📝 Update plugin version constants (iOS)
102-
run: |
103-
VERSION='${{ steps.compute-version.outputs.version }}'
104-
FILE="ios/Classes/AppsflyerSdkPlugin.m"
105-
if [ -f "$FILE" ]; then
106-
sed -i "s/kPluginVersion = @\".*\"/kPluginVersion = @\"$VERSION\"/" "$FILE"
107-
echo "Updated iOS constants:"
108-
grep "kPluginVersion" "$FILE"
102+
103+
# Dart - appsflyer_constants.dart
104+
DART_FILE="lib/src/appsflyer_constants.dart"
105+
if [ -f "$DART_FILE" ]; then
106+
sed -i "s/PLUGIN_VERSION = \".*\"/PLUGIN_VERSION = \"$VERSION\"/" "$DART_FILE"
107+
echo "✅ Dart:" && grep "PLUGIN_VERSION" "$DART_FILE"
108+
fi
109+
110+
# iOS - AppsflyerSdkPlugin.h (#define)
111+
IOS_FILE="ios/Classes/AppsflyerSdkPlugin.h"
112+
if [ -f "$IOS_FILE" ]; then
113+
sed -i 's/kAppsFlyerPluginVersion[[:space:]]*@"[^"]*"/kAppsFlyerPluginVersion @"'"$VERSION"'"/' "$IOS_FILE"
114+
echo "✅ iOS:" && grep "kAppsFlyerPluginVersion" "$IOS_FILE"
109115
fi
110116
111117
- name: 💾 Commit and push version changes

.github/workflows/rc-release.yml

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -230,27 +230,58 @@ jobs:
230230
echo "⚠️ $FILE not found"
231231
fi
232232
233-
- name: 📝 Update plugin version constants (Android/iOS)
233+
- name: 📝 Update plugin version constants (Android/iOS/Dart)
234234
run: |
235235
VERSION='${{ needs.validate-release.outputs.version }}'
236-
AND_FILE="android/src/main/java/com/appsflyer/appsflyersdk/AppsflyerConstants.java"
237-
IOS_FILE="ios/Classes/AppsflyerSdkPlugin.m"
238-
if [ -f "$AND_FILE" ]; then
239-
sed -i.bak "s/kPluginVersion = \".*\"/kPluginVersion = \"$VERSION\"/" "$AND_FILE" && rm "$AND_FILE.bak" || true
236+
echo "Updating PLUGIN_VERSION constants to: $VERSION"
237+
238+
# Android - AppsFlyerConstants.java
239+
ANDROID_FILE="android/src/main/java/com/appsflyer/appsflyersdk/AppsFlyerConstants.java"
240+
if [ -f "$ANDROID_FILE" ]; then
241+
sed -i.bak "s/PLUGIN_VERSION = \".*\"/PLUGIN_VERSION = \"$VERSION\"/" "$ANDROID_FILE"
242+
rm "$ANDROID_FILE.bak"
243+
echo "✅ Android:" && grep "PLUGIN_VERSION" "$ANDROID_FILE"
244+
fi
245+
246+
# Dart - appsflyer_constants.dart
247+
DART_FILE="lib/src/appsflyer_constants.dart"
248+
if [ -f "$DART_FILE" ]; then
249+
sed -i.bak "s/PLUGIN_VERSION = \".*\"/PLUGIN_VERSION = \"$VERSION\"/" "$DART_FILE"
250+
rm "$DART_FILE.bak"
251+
echo "✅ Dart:" && grep "PLUGIN_VERSION" "$DART_FILE"
240252
fi
253+
254+
# iOS - AppsflyerSdkPlugin.h (#define)
255+
IOS_FILE="ios/Classes/AppsflyerSdkPlugin.h"
241256
if [ -f "$IOS_FILE" ]; then
242-
sed -i.bak "s/kPluginVersion = @\".*\"/kPluginVersion = @\"$VERSION\"/" "$IOS_FILE" && rm "$IOS_FILE.bak" || true
257+
sed -i.bak 's/kAppsFlyerPluginVersion[[:space:]]*@"[^"]*"/kAppsFlyerPluginVersion @"'"$VERSION"'"/' "$IOS_FILE"
258+
rm "$IOS_FILE.bak"
259+
echo "✅ iOS:" && grep "kAppsFlyerPluginVersion" "$IOS_FILE"
243260
fi
244261
245-
- name: 📝 Update README SDK versions
262+
- name: 📝 Update README SDK and Purchase Connector versions
246263
run: |
247264
IOS_VER='${{ needs.validate-release.outputs.ios_sdk_version }}'
248265
AND_VER='${{ needs.validate-release.outputs.android_sdk_version }}'
266+
267+
# Main SDK versions
249268
sed -i.bak -E "s/- Android AppsFlyer SDK \*\*v[0-9.]+\*\*/- Android AppsFlyer SDK **v${AND_VER}**/" README.md
250269
sed -i.bak -E "s/- iOS AppsFlyer SDK \*\*v[0-9.]+\*\*/- iOS AppsFlyer SDK **v${IOS_VER}**/" README.md
251-
rm README.md.bak
252-
echo "README updated SDK versions:"
253-
sed -n '12,20p' README.md | cat
270+
271+
# Purchase Connector versions (extract from build files)
272+
AND_PC=$(grep "purchase-connector:" android/build.gradle | sed -n "s/.*purchase-connector:\([^']*\).*/\1/p" | head -1)
273+
IOS_PC=$(grep "PurchaseConnector" ios/appsflyer_sdk.podspec | sed -n "s/.*PurchaseConnector',.*'\([^']*\)'.*/\1/p" | head -1)
274+
275+
if [ -n "$AND_PC" ]; then
276+
sed -i.bak -E "/^### Purchase Connector/,/^##|^$/{s/^- Android [0-9.]+$/- Android ${AND_PC}/;}" README.md
277+
fi
278+
if [ -n "$IOS_PC" ]; then
279+
sed -i.bak -E "/^### Purchase Connector/,/^##|^$/{s/^- iOS [0-9.]+$/- iOS ${IOS_PC}/;}" README.md
280+
fi
281+
282+
rm -f README.md.bak
283+
echo "README updated versions:"
284+
sed -n '/## SDK Versions/,/## ❗/p' README.md | head -12
254285
255286
- name: 💾 Commit & push changes
256287
id: push
@@ -444,12 +475,15 @@ jobs:
444475
notify-team:
445476
name: 📢 Notify Team
446477
runs-on: ubuntu-latest
447-
needs: [validate-release, create-prerelease]
478+
needs: [validate-release, create-prerelease, prepare-branch]
448479
if: always()
449480

450481
steps:
451482
- name: 📥 Checkout repository
452483
uses: actions/checkout@v4
484+
with:
485+
fetch-depth: 0
486+
ref: ${{ needs.prepare-branch.outputs.release_branch }}
453487

454488
- name: 📝 Extract SDK versions and changelog
455489
id: extract-info

CHANGELOG.md

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

3+
## 6.17.9
4+
5+
- Added UIScene lifecycle support for iOS deep linking (Flutter 3.41+ compatibility)
6+
- Adopted `FlutterSceneLifeCycleDelegate` with compile-time guard for backward compatibility
7+
- Added `scene:openURLContexts:` for warm-start URI-scheme deep links
8+
- Added `scene:willConnectToSession:options:` for cold-start URI-scheme and Universal Links
9+
- Added `scene:continueUserActivity:` for Universal Links via UIScene
10+
- Fixed `getViewController` to use `UIWindowScene` lookup on iOS 13+ (replaces deprecated `UIApplication.delegate.window`)
11+
- Updated iOS SDK from 6.17.8 to 6.17.9
12+
- Updated iOS Purchase Connector from 6.17.8 to 6.17.9
13+
314
## 6.17.8
415

516
- Updated Android SDK from 6.17.4 to 6.17.5

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To do so, please follow [this article](https://support.appsflyer.com/hc/en-us/ar
1717
### Purchase Connector versions
1818

1919
- Android 2.2.0
20-
- iOS 6.17.8
20+
- iOS 6.17.9
2121

2222
## ❗❗ Breaking changes when updating to v6.x.x❗❗
2323

android/src/main/java/com/appsflyer/appsflyersdk/AppsFlyerConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.appsflyer.appsflyersdk;
22

33
public final class AppsFlyerConstants {
4-
final static String PLUGIN_VERSION = "6.17.8";
4+
final static String PLUGIN_VERSION = "6.17.9";
55
final static String AF_APP_INVITE_ONE_LINK = "appInviteOneLink";
66
final static String AF_HOST_PREFIX = "hostPrefix";
77
final static String AF_HOST_NAME = "hostName";

lib/src/appsflyer_constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ part of appsflyer_sdk;
33
enum EmailCryptType { EmailCryptTypeNone, EmailCryptTypeSHA256 }
44

55
class AppsflyerConstants {
6-
static const String PLUGIN_VERSION = "6.17.8";
6+
static const String PLUGIN_VERSION = "6.17.9";
77
static const String AF_DEV_KEY = "afDevKey";
88
static const String AF_APP_Id = "afAppId";
99
static const String AF_IS_DEBUG = "isDebug";

0 commit comments

Comments
 (0)