Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/Scripts/checkJira.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ JIRA_TOKEN=$1
JIRA_FIXED_VERSION=$2

fixed_version_found=false
curl -X GET https://appsflyer.atlassian.net/rest/api/3/project/11723/versions --user $JIRA_TOKEN | jq -r '.[] | .name+""+.id' | while read version ; do
curl -X GET https://appsflyer.atlassian.net/rest/api/3/project/11723/versions --user $JIRA_TOKEN | jq -r '.[] | .name+""+(.id | tostring)' | while read version ; do
if [[ "$version" == *"$JIRA_FIXED_VERSION"* ]] ;then
echo "$JIRA_FIXED_VERSION Found!"
fixed_version_found=true
version_id=${version#"$JIRA_FIXED_VERSION"}
echo $(curl -X GET https://appsflyer.atlassian.net/rest/api/3/search?jql=fixVersion=$version_id --user $JIRA_TOKEN | jq -r '.issues[] | "- " + .fields["summary"]+"@"') > "$JIRA_FIXED_VERSION-releasenotes".txt
echo $(curl -s -X POST https://appsflyer.atlassian.net/rest/api/3/search/jql --user $JIRA_TOKEN -H "Content-Type: application/json" -d "{\"jql\": \"fixVersion=$version_id\", \"fields\": [\"summary\"]}" | jq -r '.issues[] | "- " + .fields["summary"]+"@"') > "$JIRA_FIXED_VERSION-releasenotes".txt
sed -i -r -e "s/@ /\n/gi" "$JIRA_FIXED_VERSION-releasenotes".txt
sed -i -r -e "s/@/\n/gi" "$JIRA_FIXED_VERSION-releasenotes".txt
cat "$JIRA_FIXED_VERSION-releasenotes".txt
Expand Down
2 changes: 1 addition & 1 deletion Assets/AppsFlyer/AppsFlyer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace AppsFlyerSDK
{
public class AppsFlyer : MonoBehaviour
{
public static readonly string kAppsFlyerPluginVersion = "6.17.81";
public static readonly string kAppsFlyerPluginVersion = "6.17.90";
public static string CallBackObjectName = null;
private static EventHandler onRequestResponse;
private static EventHandler onInAppResponse;
Expand Down
8 changes: 4 additions & 4 deletions Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<dependencies>

<androidPackages>
<androidPackage spec="com.appsflyer:af-android-sdk:6.17.5"></androidPackage>
<androidPackage spec="com.appsflyer:unity-wrapper:6.17.81"></androidPackage>
<androidPackage spec="com.appsflyer:af-android-sdk:6.17.6"></androidPackage>
<androidPackage spec="com.appsflyer:unity-wrapper:6.17.90"></androidPackage>
<androidPackage spec="com.android.installreferrer:installreferrer:2.1"></androidPackage>
<androidPackage spec="com.appsflyer:purchase-connector:2.2.0"></androidPackage>
</androidPackages>

<iosPods>
<iosPod name="AppsFlyerFramework" version="6.17.8" minTargetSdk="12.0"></iosPod>
<iosPod name="PurchaseConnector" version="6.17.8" minTargetSdk="12.0"></iosPod>
<iosPod name="AppsFlyerFramework" version="6.17.9" minTargetSdk="12.0"></iosPod>
<iosPod name="PurchaseConnector" version="6.17.9" minTargetSdk="12.0"></iosPod>
</iosPods>

</dependencies>
22 changes: 21 additions & 1 deletion Assets/AppsFlyer/Editor/AppsFlyerObjectEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public override void OnInspectorGUI()
{
serializedObject.Update();

GUILayout.Box((Texture)AssetDatabase.LoadAssetAtPath(AssetDatabase.GUIDToAssetPath(AssetDatabase.FindAssets("appsflyer_logo")[0]), typeof(Texture)), new GUILayoutOption[] { GUILayout.Width(600) });
DrawLogo();

EditorGUILayout.Separator();
EditorGUILayout.HelpBox("Set your devKey and appID to init the AppsFlyer SDK and start tracking. You must modify these fields and provide:\ndevKey - Your application devKey provided by AppsFlyer.\nappId - For iOS only. Your iTunes Application ID.\nUWP app id - For UWP only. Your application app id \nMac OS app id - For MacOS app only.", MessageType.Info);
Expand Down Expand Up @@ -80,5 +80,25 @@ public override void OnInspectorGUI()
serializedObject.ApplyModifiedProperties();
}

private void DrawLogo()
{
var guids = AssetDatabase.FindAssets("appsflyer_logo");
if (guids.Length == 0) return;

Texture logo = (Texture)AssetDatabase.LoadAssetAtPath(
AssetDatabase.GUIDToAssetPath(guids[0]),
typeof(Texture));

if (logo == null) return;

float maxWidth = Mathf.Min(200, EditorGUIUtility.currentViewWidth - 40);
float aspect = (float)logo.height / logo.width;
float height = maxWidth * aspect;

Rect rect = GUILayoutUtility.GetRect(maxWidth, height, GUILayout.ExpandWidth(false));
rect.x = (EditorGUIUtility.currentViewWidth - maxWidth) * 0.5f;
rect.width = maxWidth;
GUI.DrawTexture(rect, logo, ScaleMode.ScaleToFit);
}

}
Binary file modified Assets/AppsFlyer/Editor/appsflyer_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Assets/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static void unityCallBack(NSString* objectName, const char* method, const char*

const void _startSDK(bool shouldCallback, const char* objectName) {
[[AppsFlyerLib shared] setPluginInfoWith: AFSDKPluginUnity
pluginVersion:@"6.17.81"
pluginVersion:@"6.17.90"
additionalParams:nil];
startRequestObjectName = stringFromChar(objectName);
AppsFlyeriOSWarpper.didCallStart = YES;
Expand Down
2 changes: 1 addition & 1 deletion Assets/AppsFlyer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "appsflyer-unity-plugin",
"displayName": "AppsFlyer",
"description": "AppsFlyer Unity plugin",
"version": "6.17.81",
"version": "6.17.90",
"unity": "2019.4",
"license": "MIT"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Versions

## v6.17.90
* Update Android SDK version - 6.17.6
* Update iOS SDK version - 6.17.9
* Update iOS Purchase Connector version - 6.17.9
* Two unity-wrapper variants published:
* v6.17.90 — Billing Library 7 (billing:5.2.0)
* v6.17.91 — Billing Library 8 (billing:8.0.0)
* Update appsflyer_logo

## v6.17.81
* Update Android Purchase Connector version - 2.2.0

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ To do so, please follow [this article](https://support.appsflyer.com/hc/en-us/ar

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

- Android AppsFlyer SDK v6.17.5
- Android AppsFlyer SDK v6.17.6
- Android Purchase Connector 2.2.0
- iOS AppsFlyer SDK v6.17.8
- iOS Purchase Connector 6.17.8
- iOS AppsFlyer SDK v6.17.9
- iOS Purchase Connector 6.17.9
---
## 📌 Important: Two Versions of Unity Plugin v6.17.7
## 📌 Important: Two Versions of Unity Plugin v6.17.9

We have released **two** versions of the AppsFlyer Unity plugin to support teams at different stages of migrating to **Google Play Billing Library v8.0.0**.

### Option A — `v6.17.81` (Billing Library v8)
### Option A — `v6.17.91` (Billing Library v8)
- **What's included:** Support for **Google Play Billing Library 8.0.0** on Android (Android Purchase Connector version - 2.2.0).
- **Impact:** This version may introduce **breaking changes** for apps that have **not yet migrated** to the Billing v8 APIs.
- **Unity IAP requirement:** If you choose this option, update **Unity IAP (`com.unity.purchasing`) to version 5.0.0 or newer** (we recommend the latest 5.x). Unity IAP 4.x does **not** include Billing v8.

### Option B — `v6.17.80` (Billing Library v7)
### Option B — `v6.17.90` (Billing Library v7)
- **Purpose:** For developers **not ready** to adopt Billing v8.
- **Bundled SDKs:** **iOS SDK 6.17.8** and **Android SDK 6.17.5**.
- **Android Purchase Connector:** Version 2.1.2
- **Bundled SDKs:** **iOS SDK 6.17.9** and **Android SDK 6.17.6**.
- **Android Purchase Connector:** Version 2.2.0
- **Impact:** Lets you update the AppsFlyer SDKs without changing your existing (pre‑v8) billing integration.

---
Expand Down
4 changes: 2 additions & 2 deletions android-unity-wrapper/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android.enableJetifier=true

GROUP=com.appsflyer

VERSION_CODE=56
VERSION_NAME=6.17.81
VERSION_CODE=58
VERSION_NAME=6.17.91

POM_ARTIFACT_ID=unity-wrapper
POM_PACKAGING=aar
Expand Down
2 changes: 1 addition & 1 deletion android-unity-wrapper/unitywrapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repositories {
dependencies {
compileOnly fileTree(dir: 'libs', include: ['*.jar'])
compileOnly 'androidx.appcompat:appcompat:1.1.0'
compileOnly 'com.appsflyer:af-android-sdk:6.17.5'
compileOnly 'com.appsflyer:af-android-sdk:6.17.6'
compileOnly 'com.appsflyer:purchase-connector:2.2.0'
compileOnly 'com.android.billingclient:billing:8.0.0'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class AppsFlyerAndroidWrapper {
private static final String IN_APP_RESPONSE_CALLBACK = "inAppResponseReceived";
private static final String VALIDATION_CALLBACK = "didReceivePurchaseRevenueValidationInfo";
private static final String ERROR_CALLBACK = "didReceivePurchaseRevenueError";
private static final String PLUGIN_VERSION = "6.17.81";
private static final String PLUGIN_VERSION = "6.17.91";

private static final long DDL_TIMEOUT_DEFAULT = 3000;
private static AppsFlyerConversionListener conversionListener;
Expand Down
Binary file removed appsflyer-unity-plugin-6.17.81.unitypackage
Binary file not shown.
Binary file added appsflyer-unity-plugin-6.17.90.unitypackage
Binary file not shown.
4 changes: 2 additions & 2 deletions deploy/build_unity_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo "Start Build for appsflyer-unity-plugin.unitypackage"

DEPLOY_PATH=outputs
UNITY_PATH="/Applications/Unity/Unity.app/Contents/MacOS/Unity"
PACKAGE_NAME="appsflyer-unity-plugin-6.17.81.unitypackage"
PACKAGE_NAME="appsflyer-unity-plugin-6.17.90.unitypackage"
mkdir -p $DEPLOY_PATH

#move external dependency manager
Expand All @@ -29,7 +29,7 @@ mv ../Assets/AppsFlyer/Tests.meta ../Tests_temp.meta 2>/dev/null || true
Assets/AppsFlyer \
$PWD/$DEPLOY_PATH/$PACKAGE_NAME \
-quit \
&& echo "package exported successfully to outputs/appsflyer-unity-plugin-6.17.81.unitypackage" \
&& echo "package exported successfully to outputs/appsflyer-unity-plugin-6.17.90.unitypackage" \
|| echo "Failed to export package. See create_unity_core.log for more info."

# Move Tests folder back
Expand Down
4 changes: 2 additions & 2 deletions deploy/strict_mode_build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo "Start Build for appsflyer-unity-plugin.unitypackage. Strict Mode."

DEPLOY_PATH=outputs
UNITY_PATH="/Applications/Unity/Unity.app/Contents/MacOS/Unity"
PACKAGE_NAME="appsflyer-unity-plugin-strict-mode-6.17.81.unitypackage"
PACKAGE_NAME="appsflyer-unity-plugin-strict-mode-6.17.90.unitypackage"
mkdir -p $DEPLOY_PATH

#move external dependency manager
Expand Down Expand Up @@ -46,7 +46,7 @@ mv ../Assets/AppsFlyer/Tests.meta ../Tests_temp.meta 2>/dev/null || true
Assets/AppsFlyer \
$PWD/$DEPLOY_PATH/$PACKAGE_NAME \
-quit \
&& echo "package exported successfully to outputs/appsflyer-unity-plugin-strict-mode-6.17.81.unitypackage" \
&& echo "package exported successfully to outputs/appsflyer-unity-plugin-strict-mode-6.17.90.unitypackage" \
|| echo "Failed to export package. See create_unity_core.log for more info."

# Move Tests folder back
Expand Down
6 changes: 3 additions & 3 deletions docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ Add this line for the latest version of the regular mode
<img src="https://user-images.githubusercontent.com/61788924/199495968-7aa911ed-27c4-4e5b-a496-3771d0405fd4.jpeg" width="350">

2. Download and add the required Android dependencies to the Assets/Plugins/Android folder:
1. [AppsFlyer Android SDK](https://repo1.maven.org/maven2/com/appsflyer/af-android-sdk/6.17.5/af-android-sdk-6.17.5.aar)
2. [AppsFlyer Unity Wrapper](https://repo1.maven.org/maven2/com/appsflyer/unity-wrapper/6.17.81/unity-wrapper-6.17.81.aar)
1. [AppsFlyer Android SDK](https://repo1.maven.org/maven2/com/appsflyer/af-android-sdk/6.17.6/af-android-sdk-6.17.6.aar)
2. [AppsFlyer Unity Wrapper](https://repo1.maven.org/maven2/com/appsflyer/unity-wrapper/6.17.90/unity-wrapper-6.17.90.aar) — Billing Library 7, or [unity-wrapper-6.17.91](https://repo1.maven.org/maven2/com/appsflyer/unity-wrapper/6.17.91/unity-wrapper-6.17.91.aar) for Billing Library 8
3. [Google Installreferrer library](https://mvnrepository.com/artifact/com.android.installreferrer/installreferrer/2.1)
3. Download and add the required iOS dependencies to the Assets/Plugins/iOS/AppsFlyer folder:
1. [Download](https://github.com/AppsFlyerSDK/AppsFlyerFramework/releases/tag/6.14.4) the iOS SDK as a static library `AppsFlyerLib.xcframework.zip`
1. [Download](https://github.com/AppsFlyerSDK/AppsFlyerFramework/releases/tag/6.17.9) the iOS SDK as a static library `AppsFlyerLib.xcframework.zip`
2. Unzip the file you downloaded
3. Drag & drop all the files into the `Assets/Plugins/iOS/AppsFlyer` folder
Binary file not shown.
Binary file not shown.
Loading