├── BranchUnityTestBed
├── Assets
│ ├── Resources
│ │ ├── BillingMode.json
│ │ └── BillingMode.json.meta
│ ├── Branch
│ │ ├── BranchPrefab.prefab
│ │ ├── Demo
│ │ │ ├── Fonts
│ │ │ │ ├── Calibri Bold.ttf
│ │ │ │ └── Calibri Bold.ttf.meta
│ │ │ ├── Images
│ │ │ │ ├── Unity5_icon.png
│ │ │ │ └── Unity5_icon.png.meta
│ │ │ ├── Scenes
│ │ │ │ ├── BranchSDK_Demo.unity
│ │ │ │ ├── BranchSDK_DemoSettings.lighting
│ │ │ │ ├── BranchSDK_Demo.unity.meta
│ │ │ │ └── BranchSDK_DemoSettings.lighting.meta
│ │ │ ├── Prefabs
│ │ │ │ ├── RewardTransactionItem.prefab
│ │ │ │ └── RewardTransactionItem.prefab.meta
│ │ │ ├── Scripts
│ │ │ │ ├── RewardTransactionItem.cs
│ │ │ │ ├── BranchDemo.cs.meta
│ │ │ │ ├── RewardTransactionItem.cs.meta
│ │ │ │ ├── RewardsHistoryPanel.cs.meta
│ │ │ │ ├── RewardsHistoryPanel.cs
│ │ │ │ └── BranchDemo.cs
│ │ │ ├── Fonts.meta
│ │ │ ├── Images.meta
│ │ │ ├── Prefabs.meta
│ │ │ ├── Scenes.meta
│ │ │ └── Scripts.meta
│ │ ├── Resources
│ │ │ ├── BranchData.asset
│ │ │ └── BranchData.asset.meta
│ │ ├── BranchPrefab.prefab.meta
│ │ ├── Editor
│ │ │ ├── BranchDependencies.xml.meta
│ │ │ ├── BranchEditor.cs.meta
│ │ │ ├── BranchPostProcessBuild.cs.meta
│ │ │ ├── BranchDependencies.xml
│ │ │ ├── BranchPostProcessBuild.cs
│ │ │ └── BranchEditor.cs
│ │ ├── Demo.meta
│ │ ├── Editor.meta
│ │ ├── Resources.meta
│ │ ├── Branch.cs.meta
│ │ ├── MiniJSON.cs.meta
│ │ ├── BranchAndroidWrapper.cs.meta
│ │ ├── BranchQRCode.cs.meta
│ │ ├── BranchData.cs.meta
│ │ ├── BranchEnums.cs.meta
│ │ ├── BranchEvent.cs.meta
│ │ ├── BranchContentMetadata.cs.meta
│ │ ├── BranchLinkProperties.cs.meta
│ │ ├── BranchUniversalObject.cs.meta
│ │ ├── BranchData.cs
│ │ ├── BranchEvent.cs
│ │ ├── BranchLinkProperties.cs
│ │ ├── BranchQRCode.cs
│ │ ├── BranchUniversalObject.cs
│ │ ├── BranchAndroidWrapper.cs
│ │ ├── BranchEnums.cs
│ │ ├── BranchContentMetadata.cs
│ │ └── MiniJSON.cs
│ ├── Settings.meta
│ ├── Settings
│ │ ├── Build Profiles
│ │ │ ├── New Android™ Profile.asset
│ │ │ └── New Android™ Profile.asset.meta
│ │ └── Build Profiles.meta
│ ├── Resources.meta
│ ├── Plugins
│ │ ├── Android.meta
│ │ ├── Branch.meta
│ │ └── Branch
│ │ │ ├── iOS.meta
│ │ │ ├── Android.meta
│ │ │ ├── Android
│ │ │ ├── AndroidManifest.xml.meta
│ │ │ ├── BranchUnityApp.java.meta
│ │ │ ├── BranchUnityActivity.java.meta
│ │ │ ├── BranchUnityWrapper.java.meta
│ │ │ ├── BranchUnityApp.java
│ │ │ ├── BranchUnityActivity.java
│ │ │ └── AndroidManifest.xml
│ │ │ └── iOS
│ │ │ ├── BranchAppController.mm
│ │ │ ├── BranchiOSWrapper.h.meta
│ │ │ ├── BranchAppController.mm.meta
│ │ │ ├── BranchiOSWrapper.h
│ │ │ └── BranchiOSWrapper.mm.meta
│ ├── Branch.meta
│ └── Plugins.meta
├── ProjectSettings
│ ├── Packages
│ │ └── com.unity.services.core
│ │ │ └── Settings.json
│ ├── ProjectVersion.txt
│ ├── AudioManager.asset
│ ├── InputManager.asset
│ ├── NavMeshAreas.asset
│ ├── TagManager.asset
│ ├── TimeManager.asset
│ ├── VFXManager.asset
│ ├── ClusterInputManager.asset
│ ├── EditorSettings.asset
│ ├── NetworkManager.asset
│ ├── PresetManager.asset
│ ├── DynamicsManager.asset
│ ├── GraphicsSettings.asset
│ ├── Physics2DSettings.asset
│ ├── ProjectSettings.asset
│ ├── QualitySettings.asset
│ ├── EditorBuildSettings.asset
│ ├── UnityConnectSettings.asset
│ ├── MultiplayerManager.asset
│ ├── XRSettings.asset
│ ├── VersionControlSettings.asset
│ ├── AndroidResolverDependencies.xml
│ ├── MemorySettings.asset
│ ├── PackageManagerSettings.asset
│ ├── GvhProjectSettings.xml
│ └── SceneTemplateSettings.json
├── .vsconfig
├── BranchUnityTestBed.sln
└── Packages
│ ├── manifest.json
│ └── packages-lock.json
├── BranchUnityWrapper.unitypackage
├── README.md
├── SECURITY.md
├── .github
├── ISSUE_TEMPLATE
│ ├── feature-request.yml
│ ├── config.yml
│ └── bug-report.yml
├── workflows
│ ├── stale.yml
│ └── release-announcement.yml
└── PULL_REQUEST_TEMPLATE.md
├── LICENSE
├── .gitignore
└── Changelog.md
/BranchUnityTestBed/Assets/Resources/BillingMode.json:
--------------------------------------------------------------------------------
1 | {"androidStore":"GooglePlay"}
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/Packages/com.unity.services.core/Settings.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/ProjectVersion.txt:
--------------------------------------------------------------------------------
1 | m_EditorVersion: 6000.0.34f1
2 | m_EditorVersionWithRevision: 6000.0.34f1 (5ab2d9ed9190)
3 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/.vsconfig:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0",
3 | "components": [
4 | "Microsoft.VisualStudio.Workload.ManagedGame"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/BranchUnityWrapper.unitypackage:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityWrapper.unitypackage
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Branch SDK Documentation for Unity
2 |
3 | View [Branch's SDK documentation for Unity](https://help.branch.io/developers-hub/docs/unity)
4 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchPrefab.prefab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/Assets/Branch/BranchPrefab.prefab
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/AudioManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/AudioManager.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/InputManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/InputManager.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/NavMeshAreas.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/NavMeshAreas.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/TagManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/TagManager.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/TimeManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/TimeManager.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/VFXManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/VFXManager.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/ClusterInputManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!236 &1
4 | ClusterInputManager:
5 | m_ObjectHideFlags: 0
6 | m_Inputs: []
7 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/EditorSettings.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/EditorSettings.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/NetworkManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/NetworkManager.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/PresetManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/PresetManager.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/DynamicsManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/DynamicsManager.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/GraphicsSettings.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/GraphicsSettings.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/Physics2DSettings.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/Physics2DSettings.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/ProjectSettings.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/ProjectSettings.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/QualitySettings.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/QualitySettings.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Fonts/Calibri Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/Assets/Branch/Demo/Fonts/Calibri Bold.ttf
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Images/Unity5_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/Assets/Branch/Demo/Images/Unity5_icon.png
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Resources/BranchData.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/Assets/Branch/Resources/BranchData.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/EditorBuildSettings.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/EditorBuildSettings.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/UnityConnectSettings.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/ProjectSettings/UnityConnectSettings.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Scenes/BranchSDK_Demo.unity:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/Assets/Branch/Demo/Scenes/BranchSDK_Demo.unity
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Prefabs/RewardTransactionItem.prefab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/Assets/Branch/Demo/Prefabs/RewardTransactionItem.prefab
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Scenes/BranchSDK_DemoSettings.lighting:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/Assets/Branch/Demo/Scenes/BranchSDK_DemoSettings.lighting
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Resources/BillingMode.json.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 84e8cc1b38e16453b89c2e4e4925c0cd
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Settings.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 63ec02684b4e34b9fbc2725a04f536d3
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Settings/Build Profiles/New Android™ Profile.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BranchMetrics/unity-branch-deep-linking-attribution/HEAD/BranchUnityTestBed/Assets/Settings/Build Profiles/New Android™ Profile.asset
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchPrefab.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 07c514aea4d774a9f8b9a9b641abc819
3 | NativeFormatImporter:
4 | mainObjectFileID: 0
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Scripts/RewardTransactionItem.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | using UnityEngine.UI;
3 | using System.Collections;
4 |
5 | public class RewardTransactionItem : MonoBehaviour {
6 |
7 | public Text label;
8 | }
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Resources.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f2583e46598a1465c9d53301a7957ba0
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/MultiplayerManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!655991488 &1
4 | MultiplayerManager:
5 | m_ObjectHideFlags: 0
6 | m_EnableMultiplayerRoles: 0
7 | m_StrippingTypes: {}
8 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Editor/BranchDependencies.xml.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6fe444a345f6f49fd8b8643602eafddd
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Android.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d71f9a4f0964840f982620310a274fce
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8ebe7d30f73e540a898fcbd116993084
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/iOS.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3981e2c614fb3488dbe99aff14d23ee8
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/Android.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e4cbdd535de724c9faedff885e50cd06
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Settings/Build Profiles.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f63e0c73be98642c5b96b46242006e0f
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/XRSettings.asset:
--------------------------------------------------------------------------------
1 | {
2 | "m_SettingKeys": [
3 | "VR Device Disabled",
4 | "VR Device User Alert"
5 | ],
6 | "m_SettingValues": [
7 | "False",
8 | "False"
9 | ]
10 | }
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/Android/AndroidManifest.xml.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: dec5ea02a902442608089322c4a8e0ab
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a7f119ee9e34a4c8cb5bb7c376168b81
3 | folderAsset: yes
4 | timeCreated: 1437146867
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Scenes/BranchSDK_Demo.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4c6ac8a8510fe4b57ae8d9ca3abf1c48
3 | timeCreated: 1438171782
4 | licenseType: Pro
5 | DefaultImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 69bdfce7b98aa463791cc80c5c516a75
3 | folderAsset: yes
4 | timeCreated: 1445258885
5 | licenseType: Store
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6b587bd0cf91144c28f2d9aedb62a539
3 | folderAsset: yes
4 | timeCreated: 1438171744
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Editor.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fb73ee25102bf4899a4f8038d02041d5
3 | folderAsset: yes
4 | timeCreated: 1447319470
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/VersionControlSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!890905787 &1
4 | VersionControlSettings:
5 | m_ObjectHideFlags: 0
6 | m_Mode: Visible Meta Files
7 | m_CollabEditorSettings:
8 | inProgressEnabled: 1
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Fonts.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1aa4cd945fd9c497aaafa232182285db
3 | folderAsset: yes
4 | timeCreated: 1438172595
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Images.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b895ac2c7f2ee42a3ac4884b5296e8d3
3 | folderAsset: yes
4 | timeCreated: 1438172403
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Prefabs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0d9cd12f2dfc046a0bc1a68574bed4ad
3 | folderAsset: yes
4 | timeCreated: 1439151554
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Scenes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 597c8b0008dca441a8eab65ac5ecf4fd
3 | folderAsset: yes
4 | timeCreated: 1438171757
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Scripts.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2dd7adf397a9e4455a6c00a01fefc51d
3 | folderAsset: yes
4 | timeCreated: 1438171794
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Resources.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f9837a41f0527480aa73a733379fefd1
3 | folderAsset: yes
4 | timeCreated: 1447621366
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Settings/Build Profiles/New Android™ Profile.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e448168f10216486eb62314062888150
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Scenes/BranchSDK_DemoSettings.lighting.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d7ddb40c466a14323980da226f8ddba6
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 4890085278179872738
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Resources/BranchData.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d76beffc25a4a43028b3295796fbf7ff
3 | timeCreated: 1447622365
4 | licenseType: Pro
5 | NativeFormatImporter:
6 | mainObjectFileID: 0
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Branch.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e71df0b2569d240ca82cdeccb33502ae
3 | MonoImporter:
4 | serializedVersion: 2
5 | defaultReferences: []
6 | executionOrder: 0
7 | icon: {instanceID: 0}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/MiniJSON.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d623a5d36fe4741a48be74ec28c3af4b
3 | MonoImporter:
4 | serializedVersion: 2
5 | defaultReferences: []
6 | executionOrder: 0
7 | icon: {instanceID: 0}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Prefabs/RewardTransactionItem.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2b8454f50e2f94ea69c4e9343eb055db
3 | timeCreated: 1439151560
4 | licenseType: Pro
5 | NativeFormatImporter:
6 | mainObjectFileID: 0
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchAndroidWrapper.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 618b95618261540b7ae4f75ffcf23d57
3 | MonoImporter:
4 | serializedVersion: 2
5 | defaultReferences: []
6 | executionOrder: 0
7 | icon: {instanceID: 0}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchQRCode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 670ff746092e840c4b954de8ba4130be
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Reporting a Vulnerability
4 | If you discover a potential security issue in this project we ask that you notify Branch Security directly via email to security@branch.io
5 | Please do not open GitHub issues or pull requests - this makes the problem immediately visible to everyone, including malicious actors.
6 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchData.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ac695c03334d64ebd95c3ab403d74540
3 | timeCreated: 1447619925
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchEnums.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c2446702710894f3286fd4ae83ac7ce8
3 | timeCreated: 1514205317
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchEvent.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4bc0ce5173fb64165895e7a292aff8e7
3 | timeCreated: 1514205316
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Editor/BranchEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0d89e96702fa14f3e83ac10e80344416
3 | timeCreated: 1447332148
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchContentMetadata.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 90c3de178565b4beeb6cb4cd562ca5fd
3 | timeCreated: 1514205317
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchLinkProperties.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0b7d96a28b2df4c2cb2eaf3e31fe3002
3 | timeCreated: 1448110061
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchUniversalObject.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 63df8c15c91d54dd89a89e212b36364c
3 | timeCreated: 1447943295
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Scripts/BranchDemo.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 726067fd438984074913e1b791bd8bf1
3 | timeCreated: 1438283238
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Editor/BranchPostProcessBuild.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6ee27f0b3edbe407da4f5285009667d1
3 | timeCreated: 1447319552
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Scripts/RewardTransactionItem.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3dc110bf61f664789aa663f0e12e0c64
3 | timeCreated: 1438949049
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Scripts/RewardsHistoryPanel.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 40bdf6d2d01194e619aceb0e904d0947
3 | timeCreated: 1438948479
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Editor/BranchDependencies.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature-request.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: 🚀 Feature Request
3 | description: Suggest an idea for this project
4 | title: "(short issue description)"
5 | labels: [feature-request, needs-triage]
6 | assignees: []
7 | body:
8 | - type: textarea
9 | id: description
10 | attributes:
11 | label: Describe the feature
12 | description: A clear and concise description of the feature you are proposing.
13 | validations:
14 | required: true
15 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | ---
2 | blank_issues_enabled: false
3 | contact_links:
4 | - name: "📕 Documentation Issue"
5 | url: https://help.branch.io/developers-hub/docs/unity
6 | about: Report an issue in the Branch Unity SDK Reference documentation by clicking "Suggest edits" button on the documentation page.
7 | - name: "Branch Support"
8 | url: https://help.branch.io/using-branch/page/submit-a-ticket
9 | about: If you are having general trouble with Branch Unity SDK integration, please submit a ticket to Branch Support.
10 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Fonts/Calibri Bold.ttf.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6e8b1f1f5715e4c8c8c949ff3b87db50
3 | timeCreated: 1438172785
4 | licenseType: Pro
5 | TrueTypeFontImporter:
6 | serializedVersion: 4
7 | fontSize: 16
8 | forceTextureCase: -2
9 | characterSpacing: 0
10 | characterPadding: 1
11 | includeFontData: 1
12 | fontName: Calibri
13 | fontNames:
14 | - Calibri
15 | fallbackFontReferences: []
16 | customCharacters:
17 | fontRenderingMode: 0
18 | ascentCalculationMode: 1
19 | useLegacyBoundsCalculation: 0
20 | userData:
21 | assetBundleName:
22 | assetBundleVariant:
23 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/iOS/BranchAppController.mm:
--------------------------------------------------------------------------------
1 | #import
2 | #import "UnityAppController.h"
3 | #import "UI/UnityView.h"
4 | #import "UI/UnityViewControllerBase.h"
5 | #import "BranchiOSWrapper.h"
6 |
7 | @interface BranchAppController : UnityAppController
8 |
9 | @end
10 |
11 | @implementation BranchAppController
12 |
13 | - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray> *restorableObjects))restorationHandler {
14 | BOOL handledByBranch = [[BranchUnityWrapper sharedInstance] continueUserActivity:userActivity];
15 | return handledByBranch;
16 | }
17 |
18 | @end
19 |
20 | IMPL_APP_CONTROLLER_SUBCLASS(BranchAppController)
21 |
22 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/Android/BranchUnityApp.java.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5d9fe50d446c640e4aff99273fff10a1
3 | PluginImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | iconMap: {}
7 | executionOrder: {}
8 | defineConstraints: []
9 | isPreloaded: 0
10 | isOverridable: 0
11 | isExplicitlyReferenced: 0
12 | validateReferences: 1
13 | platformData:
14 | - first:
15 | Android: Android
16 | second:
17 | enabled: 1
18 | settings: {}
19 | - first:
20 | Any:
21 | second:
22 | enabled: 0
23 | settings: {}
24 | - first:
25 | Editor: Editor
26 | second:
27 | enabled: 0
28 | settings:
29 | DefaultValueInitialized: true
30 | userData:
31 | assetBundleName:
32 | assetBundleVariant:
33 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/Android/BranchUnityActivity.java.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a4937e539b5764a9290999c754d9b330
3 | PluginImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | iconMap: {}
7 | executionOrder: {}
8 | defineConstraints: []
9 | isPreloaded: 0
10 | isOverridable: 0
11 | isExplicitlyReferenced: 0
12 | validateReferences: 1
13 | platformData:
14 | - first:
15 | Android: Android
16 | second:
17 | enabled: 1
18 | settings: {}
19 | - first:
20 | Any:
21 | second:
22 | enabled: 0
23 | settings: {}
24 | - first:
25 | Editor: Editor
26 | second:
27 | enabled: 0
28 | settings:
29 | DefaultValueInitialized: true
30 | userData:
31 | assetBundleName:
32 | assetBundleVariant:
33 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/Android/BranchUnityWrapper.java.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: df8039207904f40daad5023a55989f46
3 | PluginImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | iconMap: {}
7 | executionOrder: {}
8 | defineConstraints: []
9 | isPreloaded: 0
10 | isOverridable: 0
11 | isExplicitlyReferenced: 0
12 | validateReferences: 1
13 | platformData:
14 | - first:
15 | Android: Android
16 | second:
17 | enabled: 1
18 | settings: {}
19 | - first:
20 | Any:
21 | second:
22 | enabled: 0
23 | settings: {}
24 | - first:
25 | Editor: Editor
26 | second:
27 | enabled: 0
28 | settings:
29 | DefaultValueInitialized: true
30 | userData:
31 | assetBundleName:
32 | assetBundleVariant:
33 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/Android/BranchUnityApp.java:
--------------------------------------------------------------------------------
1 | package io.branch.unity;
2 |
3 | import android.app.Application;
4 | import android.util.Log;
5 |
6 | import io.branch.referral.Branch;
7 |
8 | /**
9 | * Created by antonarhunou on 1/9/18.
10 | */
11 | public class BranchUnityApp extends Application {
12 | private static final String TAG = "BranchSDK.Unity";
13 |
14 | public void onCreate() {
15 | super.onCreate();
16 |
17 | // Some early lifecycle events occur prior to C# runtime startup, which prevents the C# APIs from working properly
18 |
19 | // Enables logging for install/open on app launch
20 | //Log.i(TAG, "BranchUnityApp.onCreate()");
21 | //Branch.enableLogging();
22 |
23 | // Set plugin version
24 | Branch.registerPlugin("Unity", "2.0.0");
25 | Branch.disableInstantDeepLinking(true);
26 | Branch.getAutoInstance(this.getApplicationContext());
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Branch Metrics, Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/Android/BranchUnityActivity.java:
--------------------------------------------------------------------------------
1 | package io.branch.unity;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.util.Log;
6 |
7 | import com.unity3d.player.UnityPlayerActivity;
8 |
9 | import io.branch.referral.Defines;
10 |
11 | /**
12 | * Created by antonarhunou on 10/13/16.
13 | */
14 |
15 | public class BranchUnityActivity extends UnityPlayerActivity {
16 |
17 | private static final String TAG = "BranchSDK.Unity";
18 |
19 | @Override
20 | public void onCreate(Bundle savedInstanceState) {
21 | super.onCreate(savedInstanceState);
22 | }
23 |
24 | @Override
25 | public void onStart() {
26 | super.onStart();
27 | //Log.i(TAG, "BranchUnityActivity.onStart()");
28 | BranchUnityWrapper.initSession();
29 | }
30 |
31 | @Override
32 | public void onNewIntent(Intent intent) {
33 | super.onNewIntent(intent);
34 | //Log.i(TAG, "BranchUnityActivity.onNewIntent(Intent intent)");
35 |
36 | // Unity also triggers a session call from C#, so ignore this to avoid a duplicate call
37 | //BranchUnityWrapper.initSessionWithIntent();
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/.github/workflows/stale.yml:
--------------------------------------------------------------------------------
1 | # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2 | #
3 | # You can adjust the behavior by modifying this file.
4 | # For more information, see:
5 | # https://github.com/actions/stale
6 | name: Mark stale issues
7 |
8 | on:
9 | schedule:
10 | - cron: '0 0 * * *'
11 |
12 | jobs:
13 | stale:
14 |
15 | runs-on: ubuntu-latest
16 | permissions:
17 | issues: write
18 |
19 | steps:
20 | - uses: actions/stale@v5
21 | with:
22 | repo-token: ${{ github.token }}
23 | days-before-issue-stale: 60
24 | days-before-close: 7
25 | stale-issue-message: 'This issue has been automatically marked as stale due to inactivity for 60 days. If this issue is still relevant, please respond with any updates or this issue will be closed in 7 days. If you believe this is a mistake, please comment to let us know. Thank you for your contributions.'
26 | stale-issue-label: 'no-issue-activity'
27 | close-issue-message: 'This issue has been closed due to inactivity. If this issue is still relevant, please reopen it or create a new one. Thank you for your contributions.'
28 | start-date: '2023-05-22'
29 |
--------------------------------------------------------------------------------
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ## Reference
2 | SDK-XXXX -- .
3 |
4 | ## Summary
5 |
6 |
7 | ## Motivation
8 |
9 |
10 | ## Type Of Change
11 |
12 | - [ ] Bug fix (non-breaking change which fixes an issue)
13 | - [ ] New feature (non-breaking change which adds functionality)
14 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
15 | - [ ] This change requires a documentation update
16 |
17 | ## Testing Instructions
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | cc @BranchMetrics/saas-sdk-devs for visibility.
30 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/AndroidResolverDependencies.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.google.android.gms:play-services-ads-identifier:18+
4 | com.unity3d.ads:unity-ads:[4.12.0,4.13[
5 | io.branch.sdk.android:library:5.12.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/MemorySettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!387306366 &1
4 | MemorySettings:
5 | m_ObjectHideFlags: 0
6 | m_EditorMemorySettings:
7 | m_MainAllocatorBlockSize: -1
8 | m_ThreadAllocatorBlockSize: -1
9 | m_MainGfxBlockSize: -1
10 | m_ThreadGfxBlockSize: -1
11 | m_CacheBlockSize: -1
12 | m_TypetreeBlockSize: -1
13 | m_ProfilerBlockSize: -1
14 | m_ProfilerEditorBlockSize: -1
15 | m_BucketAllocatorGranularity: -1
16 | m_BucketAllocatorBucketsCount: -1
17 | m_BucketAllocatorBlockSize: -1
18 | m_BucketAllocatorBlockCount: -1
19 | m_ProfilerBucketAllocatorGranularity: -1
20 | m_ProfilerBucketAllocatorBucketsCount: -1
21 | m_ProfilerBucketAllocatorBlockSize: -1
22 | m_ProfilerBucketAllocatorBlockCount: -1
23 | m_TempAllocatorSizeMain: -1
24 | m_JobTempAllocatorBlockSize: -1
25 | m_BackgroundJobTempAllocatorBlockSize: -1
26 | m_JobTempAllocatorReducedBlockSize: -1
27 | m_TempAllocatorSizeGIBakingWorker: -1
28 | m_TempAllocatorSizeNavMeshWorker: -1
29 | m_TempAllocatorSizeAudioWorker: -1
30 | m_TempAllocatorSizeCloudWorker: -1
31 | m_TempAllocatorSizeGfx: -1
32 | m_TempAllocatorSizeJobWorker: -1
33 | m_TempAllocatorSizeBackgroundWorker: -1
34 | m_TempAllocatorSizePreloadManager: -1
35 | m_PlatformMemorySettings: {}
36 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/PackageManagerSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &1
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 61
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0}
13 | m_Name:
14 | m_EditorClassIdentifier:
15 | m_EnablePreReleasePackages: 0
16 | m_EnablePackageDependencies: 0
17 | m_AdvancedSettingsExpanded: 1
18 | m_ScopedRegistriesSettingsExpanded: 1
19 | m_SeeAllPackageVersions: 0
20 | oneTimeWarningShown: 0
21 | m_Registries:
22 | - m_Id: main
23 | m_Name:
24 | m_Url: https://packages.unity.com
25 | m_Scopes: []
26 | m_IsDefault: 1
27 | m_Capabilities: 7
28 | m_ConfigSource: 0
29 | - m_Id: scoped:project:package.openupm.com
30 | m_Name: package.openupm.com
31 | m_Url: https://package.openupm.com
32 | m_Scopes:
33 | - com.google.external-dependency-manager
34 | m_IsDefault: 0
35 | m_Capabilities: 0
36 | m_ConfigSource: 4
37 | m_UserSelectedRegistryName: package.openupm.com
38 | m_UserAddingNewScopedRegistry: 0
39 | m_RegistryInfoDraft:
40 | m_Modified: 0
41 | m_ErrorMessage:
42 | m_UserModificationsInstanceId: -828
43 | m_OriginalInstanceId: -830
44 | m_LoadAssets: 0
45 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/BranchUnityTestBed.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{67E3F5FC-88EF-55B2-4156-39D21A59D4E6}"
5 | EndProject
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor", "Assembly-CSharp-Editor.csproj", "{820AEC7C-7F93-71C7-A37D-1CC603106BE6}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {67E3F5FC-88EF-55B2-4156-39D21A59D4E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {67E3F5FC-88EF-55B2-4156-39D21A59D4E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {67E3F5FC-88EF-55B2-4156-39D21A59D4E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {67E3F5FC-88EF-55B2-4156-39D21A59D4E6}.Release|Any CPU.Build.0 = Release|Any CPU
18 | {820AEC7C-7F93-71C7-A37D-1CC603106BE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {820AEC7C-7F93-71C7-A37D-1CC603106BE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {820AEC7C-7F93-71C7-A37D-1CC603106BE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {820AEC7C-7F93-71C7-A37D-1CC603106BE6}.Release|Any CPU.Build.0 = Release|Any CPU
22 | EndGlobalSection
23 | GlobalSection(SolutionProperties) = preSolution
24 | HideSolutionNode = FALSE
25 | EndGlobalSection
26 | EndGlobal
27 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # This .gitignore file should be placed at the root of your Unity project directory
2 | #
3 | # Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
4 | #
5 | */[Ll]ibrary/
6 | */[Tt]emp/
7 | */[Oo]bj/
8 | */[Bb]uild/
9 | */[Bb]uilds/
10 | */[Ll]ogs/
11 | */[Uu]ser[Ss]ettings/
12 |
13 | # MemoryCaptures can get excessive in size.
14 | # They also could contain extremely sensitive data
15 | /[Mm]emoryCaptures/
16 |
17 | # Recordings can get excessive in size
18 | /[Rr]ecordings/
19 |
20 | # ignore the asset store tools plugin
21 | /[Aa]ssets/AssetStoreTools*
22 |
23 | # Autogenerated Jetbrains Rider plugin
24 | /[Aa]ssets/Plugins/Editor/JetBrains*
25 |
26 | # Visual Studio cache directory
27 | .vs/
28 |
29 | # Gradle cache directory
30 | .gradle/
31 |
32 | # Autogenerated VS/MD/Consulo solution and project files
33 | ExportedObj/
34 | .consulo/
35 | *.csproj
36 | *.unityproj
37 | *.sln
38 | *.suo
39 | *.tmp
40 | *.user
41 | *.userprefs
42 | *.pidb
43 | *.booproj
44 | *.svd
45 | *.pdb
46 | *.mdb
47 | *.opendb
48 | *.VC.db
49 |
50 | # Unity3D generated meta files
51 | *.pidb.meta
52 | *.pdb.meta
53 | *.mdb.meta
54 |
55 | # Unity3D generated file on crash reports
56 | sysinfo.txt
57 |
58 | # Builds
59 | *.apk
60 | *.aab
61 | *.app
62 |
63 | # Crashlytics generated file
64 | crashlytics-build.properties
65 |
66 | # Packed Addressables
67 | /[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*
68 |
69 | # Temporary auto-generated Android Assets
70 | /[Aa]ssets/[Ss]treamingAssets/aa.meta
71 | /[Aa]ssets/[Ss]treamingAssets/aa/*
72 |
73 | # macOS
74 | *.DS_Store
75 |
76 | # External Dependency Manager resolved Android files
77 | BranchUnityTestBed/Assets/Plugins/Android/*
78 |
79 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchData.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | using System.Collections;
3 | using System.IO;
4 |
5 | #if UNITY_EDITOR
6 | using UnityEditor;
7 | [InitializeOnLoad]
8 | #endif
9 |
10 | public class BranchData : ScriptableObject {
11 |
12 | // release data
13 | public string liveBranchKey;
14 | public string liveBranchUri;
15 | public string liveAndroidPathPrefix;
16 | public string[] liveAppLinks;
17 |
18 | // test data
19 | public string testBranchKey;
20 | public string testBranchUri;
21 | public string testAndroidPathPrefix;
22 | public string[] testAppLinks;
23 |
24 | // enable logging?
25 | public bool enableLogging = false;
26 |
27 | // which set of data will we use, test or release?
28 | public bool testMode = false;
29 |
30 | private const string BDAssetPath = "Branch/Resources";
31 | private const string BDAssetName = "BranchData";
32 | private const string BDAssetExtension = ".asset";
33 | private static BranchData instance;
34 |
35 | public static BranchData Instance {
36 | get {
37 | if(instance == null) {
38 | LoadBranchData();
39 | }
40 |
41 | return instance;
42 | }
43 | }
44 |
45 | private static void LoadBranchData() {
46 | instance = Resources.Load(BDAssetName) as BranchData;
47 |
48 | if(instance == null) {
49 | instance = CreateInstance();
50 |
51 | #if UNITY_EDITOR
52 |
53 | if (!Directory.Exists(BDAssetPath)) {
54 | Directory.CreateDirectory(BDAssetPath);
55 | AssetDatabase.Refresh();
56 | }
57 |
58 | string fullPath = Path.Combine(Path.Combine("Assets", BDAssetPath), BDAssetName + BDAssetExtension );
59 | AssetDatabase.CreateAsset(instance, fullPath);
60 |
61 | #endif
62 | }
63 | }
64 |
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/Android/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/iOS/BranchiOSWrapper.h.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d81f5ccd0ec944634b29f47ee64c81ea
3 | PluginImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | iconMap: {}
7 | executionOrder: {}
8 | defineConstraints: []
9 | isPreloaded: 0
10 | isOverridable: 0
11 | isExplicitlyReferenced: 0
12 | validateReferences: 1
13 | platformData:
14 | - first:
15 | Android: Android
16 | second:
17 | enabled: 0
18 | settings:
19 | CPU: AnyCPU
20 | - first:
21 | Any:
22 | second:
23 | enabled: 0
24 | settings: {}
25 | - first:
26 | Editor: Editor
27 | second:
28 | enabled: 0
29 | settings:
30 | CPU: AnyCPU
31 | DefaultValueInitialized: true
32 | OS: AnyOS
33 | - first:
34 | Facebook: Win
35 | second:
36 | enabled: 0
37 | settings:
38 | CPU: AnyCPU
39 | - first:
40 | Facebook: Win64
41 | second:
42 | enabled: 0
43 | settings:
44 | CPU: AnyCPU
45 | - first:
46 | Samsung TV: SamsungTV
47 | second:
48 | enabled: 0
49 | settings:
50 | STV_MODEL: STANDARD_13
51 | - first:
52 | Standalone: Linux
53 | second:
54 | enabled: 0
55 | settings:
56 | CPU: x86
57 | - first:
58 | Standalone: Linux64
59 | second:
60 | enabled: 0
61 | settings:
62 | CPU: AnyCPU
63 | - first:
64 | Standalone: OSXIntel
65 | second:
66 | enabled: 0
67 | settings:
68 | CPU: AnyCPU
69 | - first:
70 | Standalone: OSXIntel64
71 | second:
72 | enabled: 0
73 | settings:
74 | CPU: AnyCPU
75 | - first:
76 | Standalone: Win
77 | second:
78 | enabled: 0
79 | settings:
80 | CPU: AnyCPU
81 | - first:
82 | Standalone: Win64
83 | second:
84 | enabled: 0
85 | settings:
86 | CPU: AnyCPU
87 | - first:
88 | iPhone: iOS
89 | second:
90 | enabled: 1
91 | settings:
92 | CompileFlags: -fobjc-arc
93 | FrameworkDependencies:
94 | userData:
95 | assetBundleName:
96 | assetBundleVariant:
97 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/iOS/BranchAppController.mm.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7bc4ea81590c04b059513eb9e3da8677
3 | PluginImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | iconMap: {}
7 | executionOrder: {}
8 | defineConstraints: []
9 | isPreloaded: 0
10 | isOverridable: 0
11 | isExplicitlyReferenced: 0
12 | validateReferences: 1
13 | platformData:
14 | - first:
15 | Android: Android
16 | second:
17 | enabled: 0
18 | settings:
19 | CPU: AnyCPU
20 | - first:
21 | Any:
22 | second:
23 | enabled: 0
24 | settings: {}
25 | - first:
26 | Editor: Editor
27 | second:
28 | enabled: 0
29 | settings:
30 | CPU: AnyCPU
31 | DefaultValueInitialized: true
32 | OS: AnyOS
33 | - first:
34 | Facebook: Win
35 | second:
36 | enabled: 0
37 | settings:
38 | CPU: AnyCPU
39 | - first:
40 | Facebook: Win64
41 | second:
42 | enabled: 0
43 | settings:
44 | CPU: AnyCPU
45 | - first:
46 | Samsung TV: SamsungTV
47 | second:
48 | enabled: 0
49 | settings:
50 | STV_MODEL: STANDARD_13
51 | - first:
52 | Standalone: Linux
53 | second:
54 | enabled: 0
55 | settings:
56 | CPU: x86
57 | - first:
58 | Standalone: Linux64
59 | second:
60 | enabled: 0
61 | settings:
62 | CPU: AnyCPU
63 | - first:
64 | Standalone: OSXIntel
65 | second:
66 | enabled: 0
67 | settings:
68 | CPU: AnyCPU
69 | - first:
70 | Standalone: OSXIntel64
71 | second:
72 | enabled: 0
73 | settings:
74 | CPU: AnyCPU
75 | - first:
76 | Standalone: Win
77 | second:
78 | enabled: 0
79 | settings:
80 | CPU: AnyCPU
81 | - first:
82 | Standalone: Win64
83 | second:
84 | enabled: 0
85 | settings:
86 | CPU: AnyCPU
87 | - first:
88 | iPhone: iOS
89 | second:
90 | enabled: 1
91 | settings:
92 | CompileFlags: -fobjc-arc
93 | FrameworkDependencies:
94 | userData:
95 | assetBundleName:
96 | assetBundleVariant:
97 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Packages/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "com.google.external-dependency-manager": "1.2.183",
4 | "com.unity.2d.sprite": "1.0.0",
5 | "com.unity.2d.tilemap": "1.0.0",
6 | "com.unity.ads": "4.12.0",
7 | "com.unity.ai.navigation": "2.0.5",
8 | "com.unity.analytics": "3.8.1",
9 | "com.unity.collab-proxy": "2.6.0",
10 | "com.unity.ide.rider": "3.0.34",
11 | "com.unity.ide.visualstudio": "2.0.22",
12 | "com.unity.multiplayer.center": "1.0.0",
13 | "com.unity.purchasing": "4.12.2",
14 | "com.unity.test-framework": "1.4.5",
15 | "com.unity.timeline": "1.8.7",
16 | "com.unity.ugui": "2.0.0",
17 | "com.unity.xr.legacyinputhelpers": "2.1.11",
18 | "com.unity.modules.accessibility": "1.0.0",
19 | "com.unity.modules.ai": "1.0.0",
20 | "com.unity.modules.androidjni": "1.0.0",
21 | "com.unity.modules.animation": "1.0.0",
22 | "com.unity.modules.assetbundle": "1.0.0",
23 | "com.unity.modules.audio": "1.0.0",
24 | "com.unity.modules.cloth": "1.0.0",
25 | "com.unity.modules.director": "1.0.0",
26 | "com.unity.modules.imageconversion": "1.0.0",
27 | "com.unity.modules.imgui": "1.0.0",
28 | "com.unity.modules.jsonserialize": "1.0.0",
29 | "com.unity.modules.particlesystem": "1.0.0",
30 | "com.unity.modules.physics": "1.0.0",
31 | "com.unity.modules.physics2d": "1.0.0",
32 | "com.unity.modules.screencapture": "1.0.0",
33 | "com.unity.modules.terrain": "1.0.0",
34 | "com.unity.modules.terrainphysics": "1.0.0",
35 | "com.unity.modules.tilemap": "1.0.0",
36 | "com.unity.modules.ui": "1.0.0",
37 | "com.unity.modules.uielements": "1.0.0",
38 | "com.unity.modules.umbra": "1.0.0",
39 | "com.unity.modules.unityanalytics": "1.0.0",
40 | "com.unity.modules.unitywebrequest": "1.0.0",
41 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
42 | "com.unity.modules.unitywebrequestaudio": "1.0.0",
43 | "com.unity.modules.unitywebrequesttexture": "1.0.0",
44 | "com.unity.modules.unitywebrequestwww": "1.0.0",
45 | "com.unity.modules.vehicles": "1.0.0",
46 | "com.unity.modules.video": "1.0.0",
47 | "com.unity.modules.vr": "1.0.0",
48 | "com.unity.modules.wind": "1.0.0",
49 | "com.unity.modules.xr": "1.0.0"
50 | },
51 | "scopedRegistries": [
52 | {
53 | "name": "package.openupm.com",
54 | "url": "https://package.openupm.com",
55 | "scopes": [
56 | "com.google.external-dependency-manager"
57 | ]
58 | }
59 | ]
60 | }
61 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug-report.yml:
--------------------------------------------------------------------------------
1 | ---
2 | assignees: []
3 | body:
4 | -
5 | attributes:
6 | description: "What is the problem? A clear and concise description of what the bug is."
7 | label: "Describe the bug"
8 | placeholder: "Tell us what you see!"
9 | id: description
10 | type: textarea
11 | validations:
12 | required: true
13 | -
14 | attributes:
15 | description: "Please provide as much step-by-step detail as possible including logs, stack traces, and uncaught exceptions."
16 | label: "Steps to reproduce"
17 | value: |
18 | 1.
19 | 2.
20 | 3.
21 | id: steps
22 | type: textarea
23 | validations:
24 | required: true
25 | -
26 | attributes:
27 | description: "What did you expect to happen?"
28 | label: "Expected behavior"
29 | id: expected
30 | type: textarea
31 | validations:
32 | required: true
33 | -
34 | attributes:
35 | description: "What version of sdk are you seeing this issue on?"
36 | label: "SDK Version"
37 | placeholder: "0.6.7"
38 | id: sdk-version
39 | type: input
40 | validations:
41 | required: true
42 | -
43 | attributes:
44 | description: "What version of the Unity are you using?"
45 | label: Unity Version
46 | placeholder: "2022.1.15"
47 | id: unity-version
48 | type: input
49 | validations:
50 | required: true
51 | -
52 | attributes:
53 | description: "What devices or emulators are you seeing this bug on?"
54 | label: Make and Model
55 | placeholder: "iPhone 13 / Samsung S21"
56 | id: device
57 | type: input
58 | validations:
59 | required: true
60 | -
61 | attributes:
62 | description: "What version of the device OS?"
63 | label: OS
64 | placeholder: "iOS 15.6.1 / Android 12"
65 | id: os
66 | type: input
67 | validations:
68 | required: true
69 | -
70 | attributes:
71 | description: "Anything else that might be relevant for troubleshooting this bug. Any screenshots or videos that show the issue are very helpful."
72 | label: "Additional Information/Context"
73 | id: context
74 | type: textarea
75 | validations:
76 | required: false
77 |
78 | description: "Found a bug in the Branch Unity SDK? File it here."
79 | labels:
80 | - bug
81 | - needs-triage
82 | name: "🐞 Bug report"
83 | title: "(short issue description)"
84 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/Demo/Images/Unity5_icon.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8021710004784435983b1ec16593221e
3 | TextureImporter:
4 | internalIDToNameTable: []
5 | externalObjects: {}
6 | serializedVersion: 11
7 | mipmaps:
8 | mipMapMode: 0
9 | enableMipMap: 1
10 | sRGBTexture: 1
11 | linearTexture: 0
12 | fadeOut: 0
13 | borderMipMap: 0
14 | mipMapsPreserveCoverage: 0
15 | alphaTestReferenceValue: 0.5
16 | mipMapFadeDistanceStart: 1
17 | mipMapFadeDistanceEnd: 3
18 | bumpmap:
19 | convertToNormalMap: 0
20 | externalNormalMap: 0
21 | heightScale: 0.25
22 | normalMapFilter: 0
23 | isReadable: 0
24 | streamingMipmaps: 0
25 | streamingMipmapsPriority: 0
26 | vTOnly: 0
27 | grayScaleToAlpha: 0
28 | generateCubemap: 6
29 | cubemapConvolution: 0
30 | seamlessCubemap: 0
31 | textureFormat: -1
32 | maxTextureSize: 2048
33 | textureSettings:
34 | serializedVersion: 2
35 | filterMode: -1
36 | aniso: 16
37 | mipBias: -100
38 | wrapU: 1
39 | wrapV: 1
40 | wrapW: 1
41 | nPOTScale: 0
42 | lightmap: 0
43 | compressionQuality: 50
44 | spriteMode: 1
45 | spriteExtrude: 1
46 | spriteMeshType: 1
47 | alignment: 0
48 | spritePivot: {x: 0.5, y: 0.5}
49 | spritePixelsToUnits: 100
50 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
51 | spriteGenerateFallbackPhysicsShape: 1
52 | alphaUsage: 1
53 | alphaIsTransparency: 1
54 | spriteTessellationDetail: -1
55 | textureType: 8
56 | textureShape: 1
57 | singleChannelComponent: 0
58 | flipbookRows: 1
59 | flipbookColumns: 1
60 | maxTextureSizeSet: 0
61 | compressionQualitySet: 0
62 | textureFormatSet: 0
63 | ignorePngGamma: 0
64 | applyGammaDecoding: 1
65 | platformSettings:
66 | - serializedVersion: 3
67 | buildTarget: DefaultTexturePlatform
68 | maxTextureSize: 2048
69 | resizeAlgorithm: 0
70 | textureFormat: -1
71 | textureCompression: 1
72 | compressionQuality: 50
73 | crunchedCompression: 0
74 | allowsAlphaSplitting: 0
75 | overridden: 0
76 | androidETC2FallbackOverride: 0
77 | forceMaximumCompressionQuality_BC6H_BC7: 1
78 | spriteSheet:
79 | serializedVersion: 2
80 | sprites: []
81 | outline: []
82 | physicsShape: []
83 | bones: []
84 | spriteID: 5e97eb03825dee720800000000000000
85 | internalID: 0
86 | vertices: []
87 | indices:
88 | edges: []
89 | weights: []
90 | secondaryTextures: []
91 | spritePackingTag:
92 | pSDRemoveMatte: 0
93 | pSDShowRemoveMatteOption: 0
94 | userData:
95 | assetBundleName:
96 | assetBundleVariant:
97 |
--------------------------------------------------------------------------------
/.github/workflows/release-announcement.yml:
--------------------------------------------------------------------------------
1 | name: Announce SDK Release on Slack
2 |
3 | on:
4 | release:
5 | types: [published]
6 |
7 | jobs:
8 | update-changelog:
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - name: Announce New Release in Slack
13 | uses: slackapi/slack-github-action@v1.24.0
14 | with:
15 | channel-id: "C063MQJMKJN" #sdk-releases
16 | payload: |
17 | {
18 | "text": "New Release: Branch Unity SDK v${{ github.event.release.tag_name }}",
19 | "blocks": [
20 | {
21 | "type": "header",
22 | "text": {
23 | "type": "plain_text",
24 | "text": ":rocket: New Release: Branch Unity SDK v${{ github.event.release.tag_name }}",
25 | "emoji": true
26 | }
27 | },
28 | {
29 | "type": "divider"
30 | },
31 | {
32 | "type": "section",
33 | "text": {
34 | "type": "mrkdwn",
35 | "text": ":star: *What's New*"
36 | }
37 | },
38 | {
39 | "type": "section",
40 | "text": {
41 | "type": "mrkdwn",
42 | "text": ${{ toJSON(github.event.release.body) }}
43 | }
44 | },
45 | {
46 | "type": "divider"
47 | },
48 | {
49 | "type": "actions",
50 | "elements": [
51 | {
52 | "type": "button",
53 | "text": {
54 | "type": "plain_text",
55 | "text": ":git: GitHub Release",
56 | "emoji": true
57 | },
58 | "value": "github",
59 | "action_id": "github",
60 | "url": "${{ github.event.release.html_url }}"
61 | }
62 | ]
63 | }
64 | ]
65 | }
66 | env:
67 | SLACK_BOT_TOKEN: ${{ secrets.SLACK_SDK_BOT_TOKEN }}
68 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/iOS/BranchiOSWrapper.h:
--------------------------------------------------------------------------------
1 | #import "AppDelegateListener.h"
2 |
3 | #pragma mark - Private notification class interface
4 |
5 | typedef void (^callbackWithShareCompletion) (NSString *activityType, BOOL completed, NSError *error);
6 |
7 | @interface BranchUnityWrapper : NSObject
8 | + (BranchUnityWrapper *)sharedInstance;
9 | - (BOOL)continueUserActivity:(NSUserActivity *)userActivity;
10 | @end
11 |
12 | #pragma mark - Unity plugin methods
13 |
14 | extern "C" {
15 | #pragma mark - Key methods
16 |
17 | void _setBranchKey(char *branchKey, char* branchSDKVersion);
18 |
19 | #pragma mark - InitSession methods
20 |
21 | void _initSessionWithCallback(char *callbackId);
22 | void _initSessionWithUniversalObjectCallback(char *callbackId);
23 |
24 | #pragma mark - Session Item methods
25 |
26 | const char *_getFirstReferringBranchUniversalObject();
27 | const char *_getFirstReferringBranchLinkProperties();
28 | const char *_getLatestReferringBranchUniversalObject();
29 | const char *_getLatestReferringBranchLinkProperties();
30 | void _resetUserSession();
31 | void _setIdentity(char *userId);
32 | void _setIdentityWithCallback(char *userId, char *callbackId);
33 | void _logout();
34 |
35 | # pragma mark - Configuration methods
36 |
37 | void _enableLogging();
38 | void _setRetryInterval(int retryInterval);
39 | void _setMaxRetries(int maxRetries);
40 | void _setNetworkTimeout(int timeout);
41 | void _registerView(char *universalObjectJson);
42 | void _listOnSpotlight(char *universalObjectJson);
43 | void _setRequestMetadata(char *key, char *value);
44 | void _addFacebookPartnerParameter(char *name, char *value);
45 | void _clearPartnerParameters();
46 | void _setTrackingDisabled(BOOL value);
47 | void _setDMAParamsForEEA(BOOL eeaRegion, BOOL adPersonalizationConsent, BOOL adUserDataUsageConsent);
48 |
49 | #pragma mark - Send event methods
50 |
51 | void _sendEvent(char *eventJson);
52 |
53 | #pragma mark - Short URL Generation methods
54 |
55 | void _getShortURLWithBranchUniversalObjectAndCallback(char *universalObjectJson, char *linkPropertiesJson, char *callbackId);
56 |
57 | #pragma mark - Share Link methods
58 |
59 | void _shareLinkWithLinkProperties(char *universalObjectJson, char *linkPropertiesJson, char *message, char *callbackId);
60 |
61 | #pragma mark - QR Code methods
62 |
63 | void _generateBranchQRCode(char *universalObjectJson, char *linkPropertiesJson, char *qrCodeSettingsJson, char *callbackId);
64 |
65 | void _validate();
66 | }
67 |
68 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/ProjectSettings/GvhProjectSettings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Plugins/Branch/iOS/BranchiOSWrapper.mm.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9661e5228ca4844abbebb88b3f1bee7e
3 | PluginImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | iconMap: {}
7 | executionOrder: {}
8 | defineConstraints: []
9 | isPreloaded: 0
10 | isOverridable: 0
11 | isExplicitlyReferenced: 0
12 | validateReferences: 1
13 | platformData:
14 | - first:
15 | : Any
16 | second:
17 | enabled: 0
18 | settings:
19 | Exclude Android: 1
20 | Exclude Editor: 1
21 | Exclude Linux: 1
22 | Exclude Linux64: 1
23 | Exclude LinuxUniversal: 1
24 | Exclude OSXIntel: 1
25 | Exclude OSXIntel64: 1
26 | Exclude OSXUniversal: 1
27 | Exclude SamsungTV: 1
28 | Exclude Tizen: 1
29 | Exclude WebGL: 1
30 | Exclude Win: 1
31 | Exclude Win64: 1
32 | Exclude iOS: 0
33 | Exclude tvOS: 1
34 | - first:
35 | Android: Android
36 | second:
37 | enabled: 0
38 | settings:
39 | CPU: ARMv7
40 | - first:
41 | Any:
42 | second:
43 | enabled: 0
44 | settings: {}
45 | - first:
46 | Editor: Editor
47 | second:
48 | enabled: 0
49 | settings:
50 | CPU: AnyCPU
51 | DefaultValueInitialized: true
52 | OS: AnyOS
53 | - first:
54 | Facebook: Win
55 | second:
56 | enabled: 0
57 | settings:
58 | CPU: AnyCPU
59 | - first:
60 | Facebook: Win64
61 | second:
62 | enabled: 0
63 | settings:
64 | CPU: AnyCPU
65 | - first:
66 | Samsung TV: SamsungTV
67 | second:
68 | enabled: 0
69 | settings:
70 | STV_MODEL: STANDARD_15
71 | - first:
72 | Standalone: Linux
73 | second:
74 | enabled: 0
75 | settings:
76 | CPU: x86
77 | - first:
78 | Standalone: Linux64
79 | second:
80 | enabled: 0
81 | settings:
82 | CPU: AnyCPU
83 | - first:
84 | Standalone: OSXIntel
85 | second:
86 | enabled: 0
87 | settings:
88 | CPU: AnyCPU
89 | - first:
90 | Standalone: OSXIntel64
91 | second:
92 | enabled: 0
93 | settings:
94 | CPU: AnyCPU
95 | - first:
96 | Standalone: Win
97 | second:
98 | enabled: 0
99 | settings:
100 | CPU: AnyCPU
101 | - first:
102 | Standalone: Win64
103 | second:
104 | enabled: 0
105 | settings:
106 | CPU: AnyCPU
107 | - first:
108 | iPhone: iOS
109 | second:
110 | enabled: 1
111 | settings:
112 | CompileFlags: -fobjc-arc
113 | FrameworkDependencies:
114 | - first:
115 | tvOS: tvOS
116 | second:
117 | enabled: 0
118 | settings:
119 | CompileFlags:
120 | FrameworkDependencies:
121 | userData:
122 | assetBundleName:
123 | assetBundleVariant:
124 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchEvent.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 |
5 | public class BranchEvent {
6 |
7 | private Dictionary data = new Dictionary();
8 | private Dictionary customData = new Dictionary();
9 | private List contentItems = new List();
10 |
11 | // Create custom BranchEvent
12 | public BranchEvent(string customEventName) {
13 | AddData("event_name", customEventName);
14 | }
15 |
16 | // Create standard BranchEvent
17 | public BranchEvent(BranchEventType branchEventType) {
18 | AddData("event_name", branchEventType.ToString ());
19 | }
20 |
21 | // Set the alias
22 | public void SetAlias(string alias) {
23 | AddData("customer_event_alias", alias);
24 | }
25 |
26 | // Set the transaction id associated with this event if there in any
27 | public void SetTransactionID(string transactionID) {
28 | AddData ("transaction_id", transactionID);
29 | }
30 |
31 | // Set any affiliation for this transaction event
32 | public void SetAffiliation(string affiliation) {
33 | AddData ("affiliation", affiliation);
34 | }
35 |
36 | // Set any coupons associated with this transaction event
37 | public void SetCoupon(string coupon) {
38 | AddData ("coupon", coupon);
39 | }
40 |
41 | // Set the currency related with this transaction event
42 | public void SetCurrency(BranchCurrencyType currency) {
43 | AddData ("currency", currency.ToString());
44 | }
45 |
46 | // Set the tax value related with this transaction event
47 | public void SetTax(float tax) {
48 | AddData ("tax", tax);
49 | }
50 |
51 | // Set the revenue value related with this transaction event
52 | public void SetRevenue(float revenue) {
53 | AddData ("revenue", revenue);
54 | }
55 |
56 | // Set description for this transaction event
57 | public void SetDescription(string description) {
58 | AddData ("description", description);
59 | }
60 |
61 | // Set the shipping value related with this transaction event
62 | public void SetShipping(float shipping) {
63 | AddData ("shipping", shipping);
64 | }
65 |
66 | // Set any search query associated with the event
67 | public void SetSearchQuery(string searchQuery) {
68 | AddData ("search_query", searchQuery);
69 | }
70 |
71 | // Adds a custom data property associated with this Branch Event
72 | public void AddCustomData(string key, string value) {
73 | if (!customData.ContainsKey(key)) {
74 | customData.Add (key, value);
75 | }
76 | else{
77 | customData [key] = value;
78 | }
79 | }
80 |
81 | // Use this method to add any BranchUniversalObject associated with this event
82 | public void AddContentItem(BranchUniversalObject contentItem) {
83 | contentItems.Add (contentItem.ToJsonString ());
84 | }
85 |
86 | public string ToJsonString() {
87 | var dataToSend = new Dictionary(data);
88 |
89 | if (customData.Count > 0) {
90 | dataToSend.Add ("custom_data", customData);
91 | }
92 |
93 | if (contentItems.Count > 0) {
94 | dataToSend.Add ("content_items", contentItems);
95 | }
96 |
97 | return BranchThirdParty_MiniJSON.Json.Serialize(dataToSend);
98 | }
99 |
100 | private void AddData(string key, object value) {
101 | if (!data.ContainsKey(key)) {
102 | data.Add (key, value);
103 | }
104 | else{
105 | data [key] = value;
106 | }
107 | }
108 | }
109 |
--------------------------------------------------------------------------------
/BranchUnityTestBed/Assets/Branch/BranchLinkProperties.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using System;
5 |
6 | public class BranchLinkProperties {
7 |
8 | public List tags;
9 | public string feature;
10 | public string alias;
11 | public string channel;
12 | public string stage;
13 | public int matchDuration;
14 | public Dictionary controlParams;
15 |
16 |
17 | public BranchLinkProperties() {
18 | tags = new List();
19 | feature = "";
20 | alias = "";
21 | channel = "";
22 | stage = "";
23 | matchDuration = 0;
24 | controlParams = new Dictionary();
25 | }
26 |
27 | public BranchLinkProperties(string json) {
28 | tags = new List();
29 | feature = "";
30 | alias = "";
31 | channel = "";
32 | stage = "";
33 | matchDuration = 0;
34 | controlParams = new Dictionary();
35 |
36 | loadFromJson(json);
37 | }
38 |
39 | public BranchLinkProperties(Dictionary data) {
40 | tags = new List();
41 | feature = "";
42 | alias = "";
43 | channel = "";
44 | stage = "";
45 | matchDuration = 0;
46 | controlParams = new Dictionary();
47 |
48 | loadFromDictionary(data);
49 | }
50 |
51 | public void loadFromJson(string json) {
52 | if (string.IsNullOrEmpty(json))
53 | return;
54 |
55 | var data = BranchThirdParty_MiniJSON.Json.Deserialize(json) as Dictionary;
56 | loadFromDictionary(data);
57 | }
58 |
59 | public void loadFromDictionary(Dictionary data) {
60 | if (data == null)
61 | return;
62 |
63 | if (data.ContainsKey("~tags") && data["~tags"] != null) {
64 | List