{"id":23080839,"url":"https://github.com/appodeal/stack-holisticsolution-unity-plugin","last_synced_at":"2025-07-12T08:04:04.247Z","repository":{"id":44885512,"uuid":"277497927","full_name":"appodeal/Stack-HolisticSolution-Unity-Plugin","owner":"appodeal","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-20T14:06:41.000Z","size":1926,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-09T02:42:48.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appodeal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-06T09:23:42.000Z","updated_at":"2021-12-10T16:17:55.000Z","dependencies_parsed_at":"2022-09-03T17:22:58.616Z","dependency_job_id":null,"html_url":"https://github.com/appodeal/Stack-HolisticSolution-Unity-Plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appodeal%2FStack-HolisticSolution-Unity-Plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appodeal%2FStack-HolisticSolution-Unity-Plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appodeal%2FStack-HolisticSolution-Unity-Plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appodeal%2FStack-HolisticSolution-Unity-Plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appodeal","download_url":"https://codeload.github.com/appodeal/Stack-HolisticSolution-Unity-Plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247014515,"owners_count":20869376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T13:16:53.882Z","updated_at":"2025-04-03T13:48:05.625Z","avatar_url":"https://github.com/appodeal.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\nStack Holistic Solution SDK for Unity simplifies the collection and transfer of the necessary parameters from third-party services to the corresponding Stack SDKs to improve the performance of services such as Mediation and UA\n\n## Integration Guide\n- [Before integration started](#before-integration-started)\n- [Import SDK](#import-sdk)\n   - [Import Appodeal Holistic Solution plugin](#import-appodeal-holistic-solution-plugin)\n   - [Android platform](#android-platform)\n   - [iOS platform](#ios-platform)\n   - [Setup required services](#setup-required-services)\n\t\t- [Facebook Service](#facebook-service)\n\t\t- [Firebase Service](#firebase-service)\n- [Initialize SDK](#initialize-sdk)\n- [Features](#features)\n  * [Events](#events)\n  * [In-App purchase validation](#purchase-validation)\n\n## Before integration started\n\n1. [Download HS Unity Plugin](https://appodeal-unity.s3.amazonaws.com/Appodeal-Unity-HS-Plugin-2.0.5-20.01.2022.unitypackage)\n\n## Import SDK\n\n### Import Appodeal Holistic Solution plugin\n\nTo import the Appodeal-Unity-HS-Plugin-2.0.5-20.01.2022.unitypackage, double-click on the Appodeal-Unity-HS-Plugin-2.0.5-20.01.2022.unitypackage, or go to Assets → Import Package → Custom Package. Keep all the files in the Importing Package window selected, and click Import.\n\n### Android platform\n\n1. Enable flag Custom Gradle Template for Unity 2017.4 - Unity 2019.2 versions or Custom Base Gradle Template for Unity 2019.3 or higher versions in Player Settings/Publishing Settings\n2. Change classpath 'com.android.tools.build:gradle:3.4.0' to 'com.android.tools.build:gradle:3.4.3' in Custom Gradle Template file (path - Assets/Plugins/Android/mainTemplate.gradle) for Unity 2017.4 - Unity 2019.4 versions.\n   Change classpath 'com.android.tools.build:gradle:3.6.0' to 'com.android.tools.build:gradle:3.6.4' in Custom Base Gradle Template file (path - Assets/Plugins/Android/baseProjectTemplate.gradle) for Unity 2020.1 or higher versions.\n3. Appodeal Holistic Solution plugin includes External Dependency Manager package.  You need to complete these following steps to resolve Appodeal's dependencies:\n   - After the import Appodeal Unity Plugin, in the Unity editor select File → Build Settings → Android.\n   - Add flag Custom Gradle Template (Build Settings → Player Settings → Publishing settings).\n   - Enable the setting \"Patch mainTemplate.gradle\" (Assets → External Dependency Manager → Android Resolver → Settings).\n   - Enable the setting \"Use Jetifier\" (Assets → External Dependency Manager → Android Resolver → Settings).\n   - Then run Assets → External Dependency Manager → Android Resolver and press Resolve or Force Resolve.\n   - As a result, the modules, that are required for the Appodeal SDK support, will be imported to project's mainTemplate.gradle file.\n\n### iOS platform \n\nAppodeal plugin includes Play Services Resolver package.  You need to complete these following steps to resolve Appodeal's dependencies:\n\n - After the import Appodeal Unity Plugin, in the Unity editor select File → Build Settings → iOS.\n - During build a project the modules, that are required for the Appodeal SDK support, will be imported to your project. You can edit them or add other modules in the Assets → Appodeal → Editor → AppodealDependencies.xml file.\n\n### Setup required services\n\n#### Facebook Service\n\u003e Note that HS Facebook Service will include only 'facebook-core' dependency independently\n\n###### 1. Configure Your Facebook App\n\nPlease follow this [guide](https://developers.facebook.com/docs/unity/gettingstarted) to configure you Facebook app\n\n#### Firebase Service\n\u003eNote that HS Firebase Service will include 'firebase-analytics' and 'firebase-config' dependencies independently\n\n###### 1. Configure Your Firebase App\n\nPlease, follow this [guide](https://firebase.google.com/docs/android/setup#console) to configure you Firebase app\n\n\n[initialize_sdk]: initialize_sdk\n##  Initialize SDK\n\nHolistic Solution SDK will automatically initialize all components and sync all required data to connectors (e.g - Appodeal).\n\nTo initialize SDK add the line below to your script:\n\n```c#\npublic class HolisticSolutionDemo : MonoBehaviour, IHSAppInitializeListener\n    \n{\n    \n    void Start()\n    {\n    \n   \t HSAppConfig appConfig = new HSAppConfig()\n            .setDebugEnabled(true)\n            .setAppKey(\"YOUR_APP_KEY\")\n            .setComponentInitializeTimeout(10000)\n            .setAdType(Appodeal.INTERSTITIAL | Appodeal.REWARDED_VIDEO | Appodeal.BANNER);\n\n   \t HSApp.initialize(appConfig, this);\n    \n    }\n\n    public void onAppInitialized(string error)\n    {\n        if (!string.IsNullOrEmpty(error))\n        {\n            Debug.Log($\"onAppInitializeFailed - {error}\");\n        }\n\t\n        Debug.Log(\"Holistic Solution Initialize - \" + HSApp.isInitialized());\n\n\t//HSApp initialization finished, now you can initialize required SDK\n\t\n    }\n...\n}\n```\n| Parameter            | Description                                                                                                        \t\t               |\n|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| appKey               | [Appodeal application key](https://app.appodeal.com/apps).\t\t\t\t\t\t\t                                                       |\n| adType               | Appodeal ad types (e.g - `Appodeal.INTERSTITIAL`).                                   \t           \t                        \t\t\t   |\n| debug                | Enable sdk, services and connectors debug logic if possible.                        \t\t\t\t                             \t\t   |\n| timeout              | In this case is timeout for **one** operation: starting attribution service or fetching remote config. By default the value is **30 sec**.|\n\n[Code example](https://github.com/appodeal/Stack-HolisticSolution-Unity-Plugin/blob/master/Assets/StackHolisticSolution/Demo/HolisticSolutionDemo.cs#L68)\n\n## Features\n\n### Events\n\nHolistic Solution SDK allows you to send events to analytic services such as Firebase, AppsFlyer and Facebook using a single method:\n\n\u003e Event parameters can only be strings and numbers\n\n[Code example](https://github.com/appodeal/Stack-HolisticSolution-Unity-Plugin/blob/master/Assets/StackHolisticSolution/Demo/HolisticSolutionDemo.cs#L77)\n\n\n### Purchase validation\nHolistic Solution SDK allows you to unify purchase validation using a single method:\n```c#\npublic class HolisticSolutionDemo : MonoBehaviour, IInAppPurchaseValidationCallback\n    \n{\n    \n    void Start()\n    {\n   \t PurchaseTest();\n    }\n    \n    private void PurchaseTest()\n    {\n        \n#if UNITY_ANDROID\n        HSInAppPurchase purchase = new HSInAppPurchase.Builder(PurchaseType.SUBS)\n            .withPublicKey(\"YOUR_PUBLIC_KEY\")\n            .withAdditionalParams(new Dictionary\u003cstring, string\u003e\n            {\n                {\"test_key\", \"test_value\"},\n            })\n            .withSignature(\"Signature\")\n            .withPurchaseData(\"PurchaseData\")\n            .withPurchaseToken(\"PurchaseToken\")\n            .withPurchaseTimestamp(12345)\n            .withDeveloperPayload(\"DeveloperPayload\")\n            .withOrderId(\"OrderId\")\n            .withSku(\"Sku\")\n            .withPrice(\"Price\")\n            .withCurrency(\"Currency\")\n            .build();\n\n\n        HSApp.validateInAppPurchaseAndroid(purchase, this);\n#elif UNITY_IOS\n        HSApp.validateInAppPurchaseiOS(\"productIdentifier\", \"price\", \"currency\", \"transactionId\",\n            \"additionalParams\", iOSPurchaseType.consumable, this);\n\n#endif\n    }\n\n    #region InAppPurchaseValidationCallback\n\n    public void InAppPurchaseValidationSuccessCallback(string json)\n    {\n        if (string.IsNullOrEmpty(json)) return;\n        Debug.Log($\"InAppPurchaseValidationSuccessCallback - {json}\");\n    }\n\n    public void InAppPurchaseValidationFailureCallback(string error)\n    {\n        if (string.IsNullOrEmpty(error)) return;\n        Debug.Log($\"InAppPurchaseValidationFailureCallback - {error}\");\n    }\n\n    #endregion\n    \n    \n...\n}\n```\n\n| Parameter            | Description                                                                                                        | Usage                     |\n|----------------------|--------------------------------------------------------------------------------------------------------------------|---------------------------|\n| purchaseType         | Purchase type. Must be one of [PurchaseType](https://github.com/appodeal/Stack-HolisticSolution-Unity-Plugin/blob/master/Assets/StackHolisticSolution/Api/HolisticSolution.cs#L123).   | Adjust/AppsFlyer          |\n| publicKey            | [Public key from Google Developer Console](https://support.google.com/googleplay/android-developer/answer/186113). | AppsFlyer                 |\n| signature            | Transaction signature (returned from Google API when the purchase is completed).                                   | Adjust/AppsFlyer          |\n| purchaseData         | Product purchased in JSON format (returned from Google API when the purchase is completed).                        | AppsFlyer                 |\n| purchaseToken        | Product purchased token (returned from Google API when the purchase is completed).                        \t        | Adjust                    |\n| purchaseTimestamp    | Product purchased timestamp (returned from Google API when the purchase is completed).                        \t    | Adjust                    |\n| developerPayload     | Product purchased developer payload (returned from Google API when the purchase is completed).                     | Adjust                    |\n| orderId              | Product purchased unique order id for the transaction (returned from Google API when the purchase is completed).   | Adjust                    |\n| sku                  | Stock keeping unit id.\t\t\t\t\t\t\t\t\t\t\t                                                    | Adjust                    |\n| price                | Purchase revenue.                                                                                                  | Adjust/AppsFlyer/Appodeal |\n| currency             | Purchase currency.                                                                                                 | Adjust/AppsFlyer/Appodeal |\n| additionalParameters | Additional parameters of the purchase event.                                                                       | Adjust/AppsFlyer   \n\n\u003e In-App purchase validation runs by FIFO queue in a single thread\n\n[Code example](https://github.com/appodeal/Stack-HolisticSolution-Unity-Plugin/blob/master/Assets/StackHolisticSolution/Demo/HolisticSolutionDemo.cs#L81)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappodeal%2Fstack-holisticsolution-unity-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappodeal%2Fstack-holisticsolution-unity-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappodeal%2Fstack-holisticsolution-unity-plugin/lists"}