diff --git a/popcorn/Assets/IronSource.meta b/popcorn/Assets/IronSource.meta deleted file mode 100644 index 1553f976..00000000 --- a/popcorn/Assets/IronSource.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8de7dc06d234246b388388a6760b3342 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/DemoScene.meta b/popcorn/Assets/IronSource/DemoScene.meta deleted file mode 100644 index fe62dcc9..00000000 --- a/popcorn/Assets/IronSource/DemoScene.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 50d65beef4907445493567daa5ba2ecf -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/DemoScene/IronSourceDemo.unity b/popcorn/Assets/IronSource/DemoScene/IronSourceDemo.unity deleted file mode 100644 index a75afcc7..00000000 --- a/popcorn/Assets/IronSource/DemoScene/IronSourceDemo.unity +++ /dev/null @@ -1,546 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!29 &1 -OcclusionCullingSettings: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_OcclusionBakeSettings: - smallestOccluder: 5 - smallestHole: 0.25 - backfaceThreshold: 100 - m_SceneGUID: 00000000000000000000000000000000 - m_OcclusionCullingData: {fileID: 0} ---- !u!104 &2 -RenderSettings: - m_ObjectHideFlags: 0 - serializedVersion: 9 - m_Fog: 0 - m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} - m_FogMode: 3 - m_FogDensity: 0.01 - m_LinearFogStart: 0 - m_LinearFogEnd: 300 - m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} - m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} - m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} - m_AmbientIntensity: 1 - m_AmbientMode: 0 - m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} - m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} - m_HaloStrength: 0.5 - m_FlareStrength: 1 - m_FlareFadeSpeed: 3 - m_HaloTexture: {fileID: 0} - m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} - m_DefaultReflectionMode: 0 - m_DefaultReflectionResolution: 128 - m_ReflectionBounces: 1 - m_ReflectionIntensity: 1 - m_CustomReflection: {fileID: 0} - m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} - m_UseRadianceAmbientProbe: 0 ---- !u!157 &3 -LightmapSettings: - m_ObjectHideFlags: 0 - serializedVersion: 11 - m_GIWorkflowMode: 1 - m_GISettings: - serializedVersion: 2 - m_BounceScale: 1 - m_IndirectOutputScale: 1 - m_AlbedoBoost: 1 - m_EnvironmentLightingMode: 0 - m_EnableBakedLightmaps: 1 - m_EnableRealtimeLightmaps: 1 - m_LightmapEditorSettings: - serializedVersion: 10 - m_Resolution: 2 - m_BakeResolution: 40 - m_AtlasSize: 1024 - m_AO: 0 - m_AOMaxDistance: 1 - m_CompAOExponent: 1 - m_CompAOExponentDirect: 0 - m_Padding: 2 - m_LightmapParameters: {fileID: 0} - m_LightmapsBakeMode: 1 - m_TextureCompression: 1 - m_FinalGather: 0 - m_FinalGatherFiltering: 1 - m_FinalGatherRayCount: 256 - m_ReflectionCompression: 2 - m_MixedBakeMode: 2 - m_BakeBackend: 1 - m_PVRSampling: 1 - m_PVRDirectSampleCount: 32 - m_PVRSampleCount: 512 - m_PVRBounces: 2 - m_PVRFilterTypeDirect: 0 - m_PVRFilterTypeIndirect: 0 - m_PVRFilterTypeAO: 0 - m_PVRFilteringMode: 1 - m_PVRCulling: 1 - m_PVRFilteringGaussRadiusDirect: 1 - m_PVRFilteringGaussRadiusIndirect: 5 - m_PVRFilteringGaussRadiusAO: 2 - m_PVRFilteringAtrousPositionSigmaDirect: 0.5 - m_PVRFilteringAtrousPositionSigmaIndirect: 2 - m_PVRFilteringAtrousPositionSigmaAO: 1 - m_ShowResolutionOverlay: 1 - m_LightingDataAsset: {fileID: 0} - m_UseShadowmask: 1 ---- !u!196 &4 -NavMeshSettings: - serializedVersion: 2 - m_ObjectHideFlags: 0 - m_BuildSettings: - serializedVersion: 2 - agentTypeID: 0 - agentRadius: 0.5 - agentHeight: 2 - agentSlope: 45 - agentClimb: 0.4 - ledgeDropHeight: 0 - maxJumpAcrossDistance: 0 - minRegionArea: 2 - manualCellSize: 0 - cellSize: 0.16666667 - manualTileSize: 0 - tileSize: 256 - accuratePlacement: 0 - debug: - m_Flags: 0 - m_NavMeshData: {fileID: 0} ---- !u!1 &144620207 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 144620210} - - component: {fileID: 144620209} - - component: {fileID: 144620208} - - component: {fileID: 144620211} - m_Layer: 0 - m_Name: Main Camera - m_TagString: MainCamera - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!81 &144620208 -AudioListener: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 144620207} - m_Enabled: 1 ---- !u!20 &144620209 -Camera: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 144620207} - m_Enabled: 1 - serializedVersion: 2 - m_ClearFlags: 2 - m_BackGroundColor: {r: 0.9487362, g: 0.9613346, b: 0.9811321, a: 0} - m_projectionMatrixMode: 1 - m_SensorSize: {x: 36, y: 24} - m_LensShift: {x: 0, y: 0} - m_GateFitMode: 2 - m_FocalLength: 50 - m_NormalizedViewPortRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 - near clip plane: 0.3 - far clip plane: 1000 - field of view: 60 - orthographic: 0 - orthographic size: 5 - m_Depth: -1 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_RenderingPath: -1 - m_TargetTexture: {fileID: 0} - m_TargetDisplay: 0 - m_TargetEye: 3 - m_HDR: 1 - m_AllowMSAA: 1 - m_AllowDynamicResolution: 0 - m_ForceIntoRT: 0 - m_OcclusionCulling: 1 - m_StereoConvergence: 10 - m_StereoSeparation: 0.022 ---- !u!4 &144620210 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 144620207} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 1974370200} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &144620211 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 144620207} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 191f5798a75bd42589f98898505e981f, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &484534187 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 484534191} - - component: {fileID: 484534190} - - component: {fileID: 484534189} - - component: {fileID: 484534188} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &484534188 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 484534187} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &484534189 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 484534187} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!223 &484534190 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 484534187} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!224 &484534191 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 484534187} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!1 &498045477 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 498045479} - - component: {fileID: 498045478} - m_Layer: 0 - m_Name: Directional Light - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!108 &498045478 -Light: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 498045477} - m_Enabled: 1 - serializedVersion: 8 - m_Type: 1 - m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} - m_Intensity: 1 - m_Range: 10 - m_SpotAngle: 30 - m_CookieSize: 10 - m_Shadows: - m_Type: 2 - m_Resolution: -1 - m_CustomResolution: -1 - m_Strength: 1 - m_Bias: 0.05 - m_NormalBias: 0.4 - m_NearPlane: 0.2 - m_Cookie: {fileID: 0} - m_DrawHalo: 0 - m_Flare: {fileID: 0} - m_RenderMode: 0 - m_CullingMask: - serializedVersion: 2 - m_Bits: 4294967295 - m_Lightmapping: 4 - m_LightShadowCasterMode: 0 - m_AreaSize: {x: 1, y: 1} - m_BounceIntensity: 1 - m_ColorTemperature: 6570 - m_UseColorTemperature: 0 - m_ShadowRadius: 0 - m_ShadowAngle: 0 ---- !u!4 &498045479 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 498045477} - m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} - m_LocalPosition: {x: 0, y: 3, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} ---- !u!1 &910476656 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 910476659} - - component: {fileID: 910476658} - - component: {fileID: 910476657} - m_Layer: 0 - m_Name: EventSystem - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &910476657 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 910476656} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!114 &910476658 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 910476656} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!4 &910476659 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 910476656} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1488306033 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1488306034} - - component: {fileID: 1488306036} - - component: {fileID: 1488306035} - m_Layer: 5 - m_Name: RawImage - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1488306034 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1488306033} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 1974370200} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: -117} - m_SizeDelta: {x: 500, y: 100} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1488306035 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1488306033} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Texture: {fileID: 2800000, guid: 5e326581693fd4e0db4c590543c3edc4, type: 3} - m_UVRect: - serializedVersion: 2 - x: 0 - y: 0 - width: 1 - height: 1 ---- !u!222 &1488306036 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1488306033} - m_CullTransparentMesh: 0 ---- !u!1 &1974370199 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1974370200} - - component: {fileID: 1974370203} - m_Layer: 5 - m_Name: Canvas - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1974370200 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1974370199} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 0, y: 0, z: 0} - m_Children: - - {fileID: 1488306034} - m_Father: {fileID: 144620210} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 0} ---- !u!223 &1974370203 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1974370199} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 0 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 0 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 diff --git a/popcorn/Assets/IronSource/DemoScene/IronSourceDemo.unity.meta b/popcorn/Assets/IronSource/DemoScene/IronSourceDemo.unity.meta deleted file mode 100644 index cc9401e3..00000000 --- a/popcorn/Assets/IronSource/DemoScene/IronSourceDemo.unity.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: ccc0ac08126704384bdda74c26d99797 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/DemoScene/IronSourceDemoScript.cs b/popcorn/Assets/IronSource/DemoScene/IronSourceDemoScript.cs deleted file mode 100644 index f1478258..00000000 --- a/popcorn/Assets/IronSource/DemoScene/IronSourceDemoScript.cs +++ /dev/null @@ -1,427 +0,0 @@ -using UnityEngine; -using System.Collections; -using System.Collections.Generic; -using System; - - -// Example for IronSource Unity. -public class IronSourceDemoScript : MonoBehaviour -{ - - - - public void Start() - { - -#if UNITY_ANDROID - string appKey = "85460dcd"; -#elif UNITY_IPHONE - string appKey = "8545d445"; -#else - string appKey = "unexpected_platform"; -#endif - - - - Debug.Log("unity-script: IronSource.Agent.validateIntegration"); - IronSource.Agent.validateIntegration(); - - Debug.Log("unity-script: unity version" + IronSource.unityVersion()); - - // SDK init - Debug.Log("unity-script: IronSource.Agent.init"); - IronSource.Agent.init(appKey); - - } - - void OnEnable() - { - - //Add Rewarded Video Events - IronSourceEvents.onRewardedVideoAdOpenedEvent += RewardedVideoAdOpenedEvent; - IronSourceEvents.onRewardedVideoAdClosedEvent += RewardedVideoAdClosedEvent; - IronSourceEvents.onRewardedVideoAvailabilityChangedEvent += RewardedVideoAvailabilityChangedEvent; - IronSourceEvents.onRewardedVideoAdStartedEvent += RewardedVideoAdStartedEvent; - IronSourceEvents.onRewardedVideoAdEndedEvent += RewardedVideoAdEndedEvent; - IronSourceEvents.onRewardedVideoAdRewardedEvent += RewardedVideoAdRewardedEvent; - IronSourceEvents.onRewardedVideoAdShowFailedEvent += RewardedVideoAdShowFailedEvent; - IronSourceEvents.onRewardedVideoAdClickedEvent += RewardedVideoAdClickedEvent; - - //Add Rewarded Video DemandOnly Events - IronSourceEvents.onRewardedVideoAdOpenedDemandOnlyEvent += RewardedVideoAdOpenedDemandOnlyEvent; - IronSourceEvents.onRewardedVideoAdClosedDemandOnlyEvent += RewardedVideoAdClosedDemandOnlyEvent; - IronSourceEvents.onRewardedVideoAdLoadedDemandOnlyEvent += RewardedVideoAdLoadedDemandOnlyEvent; - IronSourceEvents.onRewardedVideoAdRewardedDemandOnlyEvent += RewardedVideoAdRewardedDemandOnlyEvent; - IronSourceEvents.onRewardedVideoAdShowFailedDemandOnlyEvent += RewardedVideoAdShowFailedDemandOnlyEvent; - IronSourceEvents.onRewardedVideoAdClickedDemandOnlyEvent += RewardedVideoAdClickedDemandOnlyEvent; - IronSourceEvents.onRewardedVideoAdLoadFailedDemandOnlyEvent += RewardedVideoAdLoadFailedDemandOnlyEvent; - - - // Add Offerwall Events - IronSourceEvents.onOfferwallClosedEvent += OfferwallClosedEvent; - IronSourceEvents.onOfferwallOpenedEvent += OfferwallOpenedEvent; - IronSourceEvents.onOfferwallShowFailedEvent += OfferwallShowFailedEvent; - IronSourceEvents.onOfferwallAdCreditedEvent += OfferwallAdCreditedEvent; - IronSourceEvents.onGetOfferwallCreditsFailedEvent += GetOfferwallCreditsFailedEvent; - IronSourceEvents.onOfferwallAvailableEvent += OfferwallAvailableEvent; - - - // Add Interstitial Events - IronSourceEvents.onInterstitialAdReadyEvent += InterstitialAdReadyEvent; - IronSourceEvents.onInterstitialAdLoadFailedEvent += InterstitialAdLoadFailedEvent; - IronSourceEvents.onInterstitialAdShowSucceededEvent += InterstitialAdShowSucceededEvent; - IronSourceEvents.onInterstitialAdShowFailedEvent += InterstitialAdShowFailedEvent; - IronSourceEvents.onInterstitialAdClickedEvent += InterstitialAdClickedEvent; - IronSourceEvents.onInterstitialAdOpenedEvent += InterstitialAdOpenedEvent; - IronSourceEvents.onInterstitialAdClosedEvent += InterstitialAdClosedEvent; - - // Add Interstitial DemandOnly Events - IronSourceEvents.onInterstitialAdReadyDemandOnlyEvent += InterstitialAdReadyDemandOnlyEvent; - IronSourceEvents.onInterstitialAdLoadFailedDemandOnlyEvent += InterstitialAdLoadFailedDemandOnlyEvent; - IronSourceEvents.onInterstitialAdShowFailedDemandOnlyEvent += InterstitialAdShowFailedDemandOnlyEvent; - IronSourceEvents.onInterstitialAdClickedDemandOnlyEvent += InterstitialAdClickedDemandOnlyEvent; - IronSourceEvents.onInterstitialAdOpenedDemandOnlyEvent += InterstitialAdOpenedDemandOnlyEvent; - IronSourceEvents.onInterstitialAdClosedDemandOnlyEvent += InterstitialAdClosedDemandOnlyEvent; - - - // Add Banner Events - IronSourceEvents.onBannerAdLoadedEvent += BannerAdLoadedEvent; - IronSourceEvents.onBannerAdLoadFailedEvent += BannerAdLoadFailedEvent; - IronSourceEvents.onBannerAdClickedEvent += BannerAdClickedEvent; - IronSourceEvents.onBannerAdScreenPresentedEvent += BannerAdScreenPresentedEvent; - IronSourceEvents.onBannerAdScreenDismissedEvent += BannerAdScreenDismissedEvent; - IronSourceEvents.onBannerAdLeftApplicationEvent += BannerAdLeftApplicationEvent; - - //Add ImpressionSuccess Event - IronSourceEvents.onImpressionSuccessEvent += ImpressionSuccessEvent; - } - - void OnApplicationPause(bool isPaused) - { - Debug.Log("unity-script: OnApplicationPause = " + isPaused); - IronSource.Agent.onApplicationPause(isPaused); - } - - public void OnGUI() - { - - GUI.backgroundColor = Color.blue; - GUI.skin.button.fontSize = (int)(0.035f * Screen.width); - - - - - - Rect showRewardedVideoButton = new Rect(0.10f * Screen.width, 0.15f * Screen.height, 0.80f * Screen.width, 0.08f * Screen.height); - if (GUI.Button(showRewardedVideoButton, "Show Rewarded Video")) - { - Debug.Log("unity-script: ShowRewardedVideoButtonClicked"); - if (IronSource.Agent.isRewardedVideoAvailable()) - { - IronSource.Agent.showRewardedVideo(); - } - else - { - Debug.Log("unity-script: IronSource.Agent.isRewardedVideoAvailable - False"); - } - } - - - - Rect showOfferwallButton = new Rect(0.10f * Screen.width, 0.25f * Screen.height, 0.80f * Screen.width, 0.08f * Screen.height); - if (GUI.Button(showOfferwallButton, "Show Offerwall")) - { - if (IronSource.Agent.isOfferwallAvailable()) - { - IronSource.Agent.showOfferwall(); - } - else - { - Debug.Log("IronSource.Agent.isOfferwallAvailable - False"); - } - } - - Rect loadInterstitialButton = new Rect(0.10f * Screen.width, 0.35f * Screen.height, 0.35f * Screen.width, 0.08f * Screen.height); - if (GUI.Button(loadInterstitialButton, "Load Interstitial")) - { - Debug.Log("unity-script: LoadInterstitialButtonClicked"); - IronSource.Agent.loadInterstitial(); - } - - Rect showInterstitialButton = new Rect(0.55f * Screen.width, 0.35f * Screen.height, 0.35f * Screen.width, 0.08f * Screen.height); - if (GUI.Button(showInterstitialButton, "Show Interstitial")) - { - Debug.Log("unity-script: ShowInterstitialButtonClicked"); - if (IronSource.Agent.isInterstitialReady()) - { - IronSource.Agent.showInterstitial(); - } - else - { - Debug.Log("unity-script: IronSource.Agent.isInterstitialReady - False"); - } - } - - Rect loadBannerButton = new Rect(0.10f * Screen.width, 0.45f * Screen.height, 0.35f * Screen.width, 0.08f * Screen.height); - if (GUI.Button(loadBannerButton, "Load Banner")) - { - Debug.Log("unity-script: loadBannerButtonClicked"); - IronSource.Agent.loadBanner(IronSourceBannerSize.BANNER, IronSourceBannerPosition.BOTTOM); - } - - Rect destroyBannerButton = new Rect(0.55f * Screen.width, 0.45f * Screen.height, 0.35f * Screen.width, 0.08f * Screen.height); - if (GUI.Button(destroyBannerButton, "Destroy Banner")) - { - Debug.Log("unity-script: loadBannerButtonClicked"); - IronSource.Agent.destroyBanner(); - } - - - - - } - - - #region RewardedAd callback handlers - - void RewardedVideoAvailabilityChangedEvent(bool canShowAd) - { - Debug.Log("unity-script: I got RewardedVideoAvailabilityChangedEvent, value = " + canShowAd); - } - - void RewardedVideoAdOpenedEvent() - { - Debug.Log("unity-script: I got RewardedVideoAdOpenedEvent"); - } - - void RewardedVideoAdRewardedEvent(IronSourcePlacement ssp) - { - Debug.Log("unity-script: I got RewardedVideoAdRewardedEvent, amount = " + ssp.getRewardAmount() + " name = " + ssp.getRewardName()); - - } - - void RewardedVideoAdClosedEvent() - { - Debug.Log("unity-script: I got RewardedVideoAdClosedEvent"); - } - - void RewardedVideoAdStartedEvent() - { - Debug.Log("unity-script: I got RewardedVideoAdStartedEvent"); - } - - void RewardedVideoAdEndedEvent() - { - Debug.Log("unity-script: I got RewardedVideoAdEndedEvent"); - } - - void RewardedVideoAdShowFailedEvent(IronSourceError error) - { - Debug.Log("unity-script: I got RewardedVideoAdShowFailedEvent, code : " + error.getCode() + ", description : " + error.getDescription()); - } - - void RewardedVideoAdClickedEvent(IronSourcePlacement ssp) - { - Debug.Log("unity-script: I got RewardedVideoAdClickedEvent, name = " + ssp.getRewardName()); - } - - /************* RewardedVideo DemandOnly Delegates *************/ - - void RewardedVideoAdLoadedDemandOnlyEvent(string instanceId) - { - - Debug.Log("unity-script: I got RewardedVideoAdLoadedDemandOnlyEvent for instance: " + instanceId); - } - - void RewardedVideoAdLoadFailedDemandOnlyEvent(string instanceId, IronSourceError error) - { - - Debug.Log("unity-script: I got RewardedVideoAdLoadFailedDemandOnlyEvent for instance: " + instanceId + ", code : " + error.getCode() + ", description : " + error.getDescription()); - } - - void RewardedVideoAdOpenedDemandOnlyEvent(string instanceId) - { - Debug.Log("unity-script: I got RewardedVideoAdOpenedDemandOnlyEvent for instance: " + instanceId); - } - - void RewardedVideoAdRewardedDemandOnlyEvent(string instanceId) - { - Debug.Log("unity-script: I got RewardedVideoAdRewardedDemandOnlyEvent for instance: " + instanceId); - } - - void RewardedVideoAdClosedDemandOnlyEvent(string instanceId) - { - Debug.Log("unity-script: I got RewardedVideoAdClosedDemandOnlyEvent for instance: " + instanceId); - } - - void RewardedVideoAdShowFailedDemandOnlyEvent(string instanceId, IronSourceError error) - { - Debug.Log("unity-script: I got RewardedVideoAdShowFailedDemandOnlyEvent for instance: " + instanceId + ", code : " + error.getCode() + ", description : " + error.getDescription()); - } - - void RewardedVideoAdClickedDemandOnlyEvent(string instanceId) - { - Debug.Log("unity-script: I got RewardedVideoAdClickedDemandOnlyEvent for instance: " + instanceId); - } - - - #endregion - - - - #region Interstitial callback handlers - - void InterstitialAdReadyEvent() - { - Debug.Log("unity-script: I got InterstitialAdReadyEvent"); - } - - void InterstitialAdLoadFailedEvent(IronSourceError error) - { - Debug.Log("unity-script: I got InterstitialAdLoadFailedEvent, code: " + error.getCode() + ", description : " + error.getDescription()); - } - - void InterstitialAdShowSucceededEvent() - { - Debug.Log("unity-script: I got InterstitialAdShowSucceededEvent"); - } - - void InterstitialAdShowFailedEvent(IronSourceError error) - { - Debug.Log("unity-script: I got InterstitialAdShowFailedEvent, code : " + error.getCode() + ", description : " + error.getDescription()); - } - - void InterstitialAdClickedEvent() - { - Debug.Log("unity-script: I got InterstitialAdClickedEvent"); - } - - void InterstitialAdOpenedEvent() - { - Debug.Log("unity-script: I got InterstitialAdOpenedEvent"); - } - - void InterstitialAdClosedEvent() - { - Debug.Log("unity-script: I got InterstitialAdClosedEvent"); - } - - /************* Interstitial DemandOnly Delegates *************/ - - void InterstitialAdReadyDemandOnlyEvent(string instanceId) - { - Debug.Log("unity-script: I got InterstitialAdReadyDemandOnlyEvent for instance: " + instanceId); - } - - void InterstitialAdLoadFailedDemandOnlyEvent(string instanceId, IronSourceError error) - { - Debug.Log("unity-script: I got InterstitialAdLoadFailedDemandOnlyEvent for instance: " + instanceId + ", error code: " + error.getCode() + ",error description : " + error.getDescription()); - } - - void InterstitialAdShowFailedDemandOnlyEvent(string instanceId, IronSourceError error) - { - Debug.Log("unity-script: I got InterstitialAdShowFailedDemandOnlyEvent for instance: " + instanceId + ", error code : " + error.getCode() + ",error description : " + error.getDescription()); - } - - void InterstitialAdClickedDemandOnlyEvent(string instanceId) - { - Debug.Log("unity-script: I got InterstitialAdClickedDemandOnlyEvent for instance: " + instanceId); - } - - void InterstitialAdOpenedDemandOnlyEvent(string instanceId) - { - Debug.Log("unity-script: I got InterstitialAdOpenedDemandOnlyEvent for instance: " + instanceId); - } - - void InterstitialAdClosedDemandOnlyEvent(string instanceId) - { - Debug.Log("unity-script: I got InterstitialAdClosedDemandOnlyEvent for instance: " + instanceId); - } - - - - - #endregion - - #region Banner callback handlers - - void BannerAdLoadedEvent() - { - Debug.Log("unity-script: I got BannerAdLoadedEvent"); - } - - void BannerAdLoadFailedEvent(IronSourceError error) - { - Debug.Log("unity-script: I got BannerAdLoadFailedEvent, code: " + error.getCode() + ", description : " + error.getDescription()); - } - - void BannerAdClickedEvent() - { - Debug.Log("unity-script: I got BannerAdClickedEvent"); - } - - void BannerAdScreenPresentedEvent() - { - Debug.Log("unity-script: I got BannerAdScreenPresentedEvent"); - } - - void BannerAdScreenDismissedEvent() - { - Debug.Log("unity-script: I got BannerAdScreenDismissedEvent"); - } - - void BannerAdLeftApplicationEvent() - { - Debug.Log("unity-script: I got BannerAdLeftApplicationEvent"); - } - - #endregion - - - #region Offerwall callback handlers - - void OfferwallOpenedEvent() - { - Debug.Log("I got OfferwallOpenedEvent"); - } - - void OfferwallClosedEvent() - { - Debug.Log("I got OfferwallClosedEvent"); - } - - void OfferwallShowFailedEvent(IronSourceError error) - { - Debug.Log("I got OfferwallShowFailedEvent, code : " + error.getCode() + ", description : " + error.getDescription()); - } - - void OfferwallAdCreditedEvent(Dictionary dict) - { - Debug.Log("I got OfferwallAdCreditedEvent, current credits = " + dict["credits"] + " totalCredits = " + dict["totalCredits"]); - - } - - void GetOfferwallCreditsFailedEvent(IronSourceError error) - { - Debug.Log("I got GetOfferwallCreditsFailedEvent, code : " + error.getCode() + ", description : " + error.getDescription()); - } - - void OfferwallAvailableEvent(bool canShowOfferwal) - { - Debug.Log("I got OfferwallAvailableEvent, value = " + canShowOfferwal); - - } - - #endregion - - #region ImpressionSuccess callback handler - - void ImpressionSuccessEvent(IronSourceImpressionData impressionData) - { - Debug.Log("unity - script: I got ImpressionSuccessEvent ToString(): " + impressionData.ToString()); - Debug.Log("unity - script: I got ImpressionSuccessEvent allData: " + impressionData.allData); - } - - #endregion - -} diff --git a/popcorn/Assets/IronSource/DemoScene/IronSourceDemoScript.cs.meta b/popcorn/Assets/IronSource/DemoScene/IronSourceDemoScript.cs.meta deleted file mode 100644 index 39100480..00000000 --- a/popcorn/Assets/IronSource/DemoScene/IronSourceDemoScript.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 191f5798a75bd42589f98898505e981f -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/DemoScene/logo_small.png b/popcorn/Assets/IronSource/DemoScene/logo_small.png deleted file mode 100644 index 6dcdd635..00000000 Binary files a/popcorn/Assets/IronSource/DemoScene/logo_small.png and /dev/null differ diff --git a/popcorn/Assets/IronSource/DemoScene/logo_small.png.meta b/popcorn/Assets/IronSource/DemoScene/logo_small.png.meta deleted file mode 100644 index 22277c17..00000000 --- a/popcorn/Assets/IronSource/DemoScene/logo_small.png.meta +++ /dev/null @@ -1,88 +0,0 @@ -fileFormatVersion: 2 -guid: 5e326581693fd4e0db4c590543c3edc4 -TextureImporter: - fileIDToRecycleName: {} - externalObjects: {} - serializedVersion: 9 - mipmaps: - mipMapMode: 0 - enableMipMap: 1 - sRGBTexture: 1 - linearTexture: 0 - fadeOut: 0 - borderMipMap: 0 - mipMapsPreserveCoverage: 0 - alphaTestReferenceValue: 0.5 - mipMapFadeDistanceStart: 1 - mipMapFadeDistanceEnd: 3 - bumpmap: - convertToNormalMap: 0 - externalNormalMap: 0 - heightScale: 0.25 - normalMapFilter: 0 - isReadable: 0 - streamingMipmaps: 0 - streamingMipmapsPriority: 0 - grayScaleToAlpha: 0 - generateCubemap: 6 - cubemapConvolution: 0 - seamlessCubemap: 0 - textureFormat: 1 - maxTextureSize: 2048 - textureSettings: - serializedVersion: 2 - filterMode: -1 - aniso: -1 - mipBias: -100 - wrapU: -1 - wrapV: -1 - wrapW: -1 - nPOTScale: 1 - lightmap: 0 - compressionQuality: 50 - spriteMode: 0 - spriteExtrude: 1 - spriteMeshType: 1 - alignment: 0 - spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 - spriteBorder: {x: 0, y: 0, z: 0, w: 0} - spriteGenerateFallbackPhysicsShape: 1 - alphaUsage: 1 - alphaIsTransparency: 0 - spriteTessellationDetail: -1 - textureType: 0 - textureShape: 1 - singleChannelComponent: 0 - maxTextureSizeSet: 0 - compressionQualitySet: 0 - textureFormatSet: 0 - platformSettings: - - serializedVersion: 2 - buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 - resizeAlgorithm: 0 - textureFormat: -1 - textureCompression: 1 - compressionQuality: 50 - crunchedCompression: 0 - allowsAlphaSplitting: 0 - overridden: 0 - androidETC2FallbackOverride: 0 - spriteSheet: - serializedVersion: 2 - sprites: [] - outline: [] - physicsShape: [] - bones: [] - spriteID: - vertices: [] - indices: - edges: [] - weights: [] - spritePackingTag: - pSDRemoveMatte: 0 - pSDShowRemoveMatteOption: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor.meta b/popcorn/Assets/IronSource/Editor.meta deleted file mode 100644 index 2c91f578..00000000 --- a/popcorn/Assets/IronSource/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: fc06ff225d2634d849a99e2c5f3eca8b -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor/IAdapterSettings.cs b/popcorn/Assets/IronSource/Editor/IAdapterSettings.cs deleted file mode 100644 index efb7a93f..00000000 --- a/popcorn/Assets/IronSource/Editor/IAdapterSettings.cs +++ /dev/null @@ -1,10 +0,0 @@ -using UnityEditor; - -namespace IronSource.Editor -{ - public interface IAdapterSettings - { - void updateProject(BuildTarget buildTarget, string projectPath); - void updateProjectPlist(BuildTarget buildTarget, string plistPath); - } -} \ No newline at end of file diff --git a/popcorn/Assets/IronSource/Editor/IAdapterSettings.cs.meta b/popcorn/Assets/IronSource/Editor/IAdapterSettings.cs.meta deleted file mode 100644 index 72052b7b..00000000 --- a/popcorn/Assets/IronSource/Editor/IAdapterSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 08c4ce248dc9b4ba2a62a14ef020cc17 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor/IronSourceBuildPostprocessor.cs b/popcorn/Assets/IronSource/Editor/IronSourceBuildPostprocessor.cs deleted file mode 100644 index 9c30feec..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceBuildPostprocessor.cs +++ /dev/null @@ -1,91 +0,0 @@ -#if UNITY_IOS - -using UnityEngine; -using UnityEditor; -using UnityEditor.Callbacks; -using UnityEditor.iOS.Xcode; -using System; -using System.IO; -using System.Linq; -using System.Text.RegularExpressions; -using System.Reflection; - -namespace IronSource.Editor -{ - public class IronSourceBuildPostprocessor - { - [PostProcessBuild] - public static void OnPostprocessBuild (BuildTarget buildTarget, string buildPath) - { - if (buildTarget == BuildTarget.iOS) { - string projectPath = buildPath + "/Unity-iPhone.xcodeproj/project.pbxproj"; - string dirpath = Application.dataPath + "/IronSource/Editor/"; - string currentNamespace = MethodBase.GetCurrentMethod().DeclaringType.Namespace; - - updateProject (buildTarget, projectPath); - - if (Directory.Exists (dirpath)) { - //Match the classes that has "Settings" in their name, and don't start with "I" - var files = Directory.GetFiles (dirpath, "*.cs", SearchOption.TopDirectoryOnly).Where (file => Regex.IsMatch (Path.GetFileName (file), "^(?!(IAdapter|IronSource)).+Settings.*$")); - - //Go over all the adapter settings classes, and call their updateProject method - foreach (string file in files) { - string classname = Path.GetFileNameWithoutExtension (file); - - if (!String.IsNullOrEmpty (classname)) { - IAdapterSettings adapter = (IAdapterSettings)Activator.CreateInstance (Type.GetType (currentNamespace + "." + classname)); - adapter.updateProject (buildTarget, projectPath); - } - } - } - } - - Debug.Log ("IronSource build postprocessor finished"); - } - - private static void updateProject (BuildTarget buildTarget, string projectPath) - { - Debug.Log ("IronSource - Update project for IronSource"); - - PBXProject project = new PBXProject (); - project.ReadFromString (File.ReadAllText (projectPath)); - - string targetId; -#if UNITY_2019_3_OR_NEWER - targetId = project.GetUnityMainTargetGuid(); -#else - targetId = project.TargetGuidByName(PBXProject.GetUnityTargetName()); -#endif - - // Required System Frameworks - project.AddFrameworkToProject (targetId, "AdSupport.framework", false); - project.AddFrameworkToProject (targetId, "AudioToolbox.framework", false); - project.AddFrameworkToProject (targetId, "AVFoundation.framework", false); - project.AddFrameworkToProject (targetId, "CoreGraphics.framework", false); - project.AddFrameworkToProject (targetId, "CoreMedia.framework", false); - project.AddFrameworkToProject (targetId, "CoreTelephony.framework", false); - project.AddFrameworkToProject (targetId, "CoreVideo.framework", false); - project.AddFrameworkToProject (targetId, "CFNetwork.framework", false); - project.AddFrameworkToProject (targetId, "Foundation.framework", false); - project.AddFrameworkToProject (targetId, "MobileCoreServices.framework", false); - project.AddFrameworkToProject (targetId, "QuartzCore.framework", false); - project.AddFrameworkToProject (targetId, "Security.framework", false); -#if !DEVELOPMENT_BUILD -#else - project.AddFrameworkToProject (targetId, "StoreKit.framework", false); -#endif - project.AddFrameworkToProject (targetId, "SystemConfiguration.framework", false); - project.AddFrameworkToProject (targetId, "WebKit.framework", false); - - - project.AddFileToBuild (targetId, project.AddFile ("usr/lib/libz.tbd", "Frameworks/libz.tbd", PBXSourceTree.Sdk)); - - // Custom Link Flag - project.AddBuildProperty (targetId, "OTHER_LDFLAGS", "-ObjC"); - - File.WriteAllText (projectPath, project.WriteToString ()); - } - } -} -#endif - diff --git a/popcorn/Assets/IronSource/Editor/IronSourceBuildPostprocessor.cs.meta b/popcorn/Assets/IronSource/Editor/IronSourceBuildPostprocessor.cs.meta deleted file mode 100644 index 4e768d28..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceBuildPostprocessor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 160c30613c17c4bc1a9dfcc2b2663ff4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor/IronSourceDependenciesManager.cs b/popcorn/Assets/IronSource/Editor/IronSourceDependenciesManager.cs deleted file mode 100644 index cc8b34f3..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceDependenciesManager.cs +++ /dev/null @@ -1,558 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Text.RegularExpressions; -using System.Xml; -using IronSourceJSON; -using UnityEditor; -using UnityEngine; -using UnityEngine.Networking; - -public class IronSourceDependenciesManager : EditorWindow -{ - private const string jsonURL = "http://ssa.public.s3.amazonaws.com/Ironsource-Integration-Manager/IronSourceSDKInfo.json"; - private const string ironSourceDownloadDir = "Assets/IronSource/Editor/"; - private const string sdk = "sdk"; - private const string errorMessage = "SDK and adapters data are not available right now. Try again soon."; - private const int Width = 760; - private const int Height = 760; - private const string Android = "Android"; - private const string iOS = "iOS"; - private readonly SortedSet providersSet = new SortedSet(new ProviderInfoComparor()); - private providerInfo ironSourceProviderInfo; - private UnityWebRequest downloadWebClient; - private string messageData; - private IronSourceEditorCoroutines mEditorCoroutines; - - private GUIStyle headerStyle; - private GUIStyle textStyle; - private GUIStyle boldTextStyle; - private readonly GUILayoutOption buttonWidth = GUILayout.Width(90); - - public class providerInfo - { - public Status currentStatues; - public string providerName; - public string currentUnityVersion; - public string latestUnityVersion; - public string downloadURL; - public string displayProviderName; - public bool isNewProvider; - public string fileName; - public Dictionary sdkVersionDic; - - public providerInfo() - { - isNewProvider = false; - fileName = string.Empty; - downloadURL = string.Empty; - currentUnityVersion = "none"; - sdkVersionDic = new Dictionary(); - } - - public enum Status - { - installed = 1, - none = 2, - updated = 3 - } - - public bool GetFromJson(string name, Dictionary dic) - { - providerName = name; - object obj; - - dic.TryGetValue("keyname", out obj); - if (obj != null) - { - this.displayProviderName = obj as string; - } - else this.displayProviderName = providerName; - - dic.TryGetValue("isNewProvider", out obj); - if (obj != null) - { - this.isNewProvider = bool.Parse(obj as string); - } - - //Get Unity versions - if (dic.TryGetValue("Unity", out obj)) - { - Dictionary remoteVersions = obj as Dictionary; - if (remoteVersions != null) - { - if (remoteVersions.TryGetValue("DownloadUrl", out obj)) - { - this.downloadURL = obj as string; - } - if (remoteVersions.TryGetValue("FileName", out obj)) - { - this.fileName = obj as string; - } - if (remoteVersions.TryGetValue("UnityAdapterVersion", out obj)) - { - this.latestUnityVersion = obj as string; - } - } - } - ////Get Android version - if (dic.TryGetValue(Android, out obj)) - { - Dictionary androidVersion = obj as Dictionary; - if (androidVersion != null) - { - androidVersion.TryGetValue("version", out obj); - androidVersion = obj as Dictionary; - if (androidVersion != null) - { - if (androidVersion.TryGetValue(sdk, out obj)) - { - this.sdkVersionDic.Add(Android, obj as string); - } - } - } - } - - //Get iOS version - dic.TryGetValue(iOS, out obj); - Dictionary iosVersion = obj as Dictionary; - if (iosVersion != null) - { - iosVersion.TryGetValue("version", out obj); - iosVersion = obj as Dictionary; - if (iosVersion != null) - { - if (iosVersion.TryGetValue(sdk, out obj)) - { - this.sdkVersionDic.Add(iOS, obj as string); - } - } - } - - currentUnityVersion = GetVersionFromXML(fileName); - - if (currentUnityVersion.Equals("none")) - { - currentStatues = Status.none; - } - - else - { - if (isNewerVersion(currentUnityVersion, latestUnityVersion)) - { - currentStatues = Status.installed; - } - else - { - currentStatues = Status.updated; - } - } - - return true; - } - } - - private static string GetVersionFromXML(string fileName) - { - XmlDocument xmlDoc = new XmlDocument(); - string version = "none"; - try - { - xmlDoc.LoadXml(File.ReadAllText(ironSourceDownloadDir + fileName)); - } - catch (Exception) - { - return version; - } - var unityVersion = xmlDoc.SelectSingleNode("dependencies/unityversion"); - if (unityVersion != null) - { - return (unityVersion.InnerText); - } - File.Delete(ironSourceDownloadDir + fileName); - return version; - } - - private IEnumerator GetVersions() - { - UnityWebRequest unityWebRequest = UnityWebRequest.Get(jsonURL); - var webRequest = unityWebRequest.SendWebRequest(); - - while (!webRequest.isDone) - { - yield return new WaitForSeconds(0.1f); - } - if (!unityWebRequest.isHttpError && !unityWebRequest.isNetworkError) - { - string json = unityWebRequest.downloadHandler.text; - providersSet.Clear(); - ironSourceProviderInfo = new providerInfo(); - Dictionary dic = new Dictionary(); - try - { - dic = Json.Deserialize(json) as Dictionary; - } - - catch (Exception e) - { - Debug.Log("Error getting response " + e.ToString()); - } - if (dic != null && dic.Count != 0) - { - object providersJson; - if (dic.TryGetValue("SDKSInfo", out providersJson)) - { - if (providersJson != null) - { - foreach (var item in providersJson as Dictionary) - { - providerInfo info = new providerInfo(); - if (info.GetFromJson(item.Key, item.Value as Dictionary)) - { - if (item.Key.ToLower().Contains("ironsource")) - { - ironSourceProviderInfo = info; - } - else - { - providersSet.Add(info); - } - } - } - } - } - - if (ironSourceProviderInfo.currentStatues == providerInfo.Status.installed || ironSourceProviderInfo.currentStatues == providerInfo.Status.none) - { - if (dic.TryGetValue("UpdateMessage", out providersJson)) - { - messageData = providersJson.ToString(); - } - } - else - { - if (dic.TryGetValue("LatestMessage", out providersJson)) - { - messageData = providersJson.ToString(); - } - } - } - } - - Repaint(); - } - - private void CancelDownload() - { - // if downloader object is still active - if (downloadWebClient != null) - { - downloadWebClient.Abort(); - return; - } - - if (mEditorCoroutines != null) - { - mEditorCoroutines.StopEditorCoroutine(); - mEditorCoroutines = null; - } - - downloadWebClient = null; - } - - public static void ShowISDependenciesManager() - { - var win = GetWindowWithRect(new Rect(0, 0, Width, Height), true); - win.titleContent = new GUIContent("ironSource Integration Manager"); - win.Focus(); - } - - void Awake() - { - headerStyle = new GUIStyle(EditorStyles.label) - { - fontStyle = FontStyle.Bold, - fontSize = 14, - fixedHeight = 20, - stretchWidth = true, - fixedWidth = Width / 4 + 5, - clipping = TextClipping.Overflow, - alignment = TextAnchor.MiddleLeft - }; - textStyle = new GUIStyle(EditorStyles.label) - { - fontStyle = FontStyle.Normal, - alignment = TextAnchor.MiddleLeft - - }; - boldTextStyle = new GUIStyle(EditorStyles.label) - { - fontStyle = FontStyle.Bold - }; - CancelDownload(); - } - - private void OnEnable() - { - mEditorCoroutines = IronSourceEditorCoroutines.StartEditorCoroutine(GetVersions()); - } - - private void OnDestroy() - { - CancelDownload(); - AssetDatabase.Refresh(); - } - - void DrawProviderItem(providerInfo providerData) - { - if (!providerData.Equals(default(providerInfo))) - { - using (new EditorGUILayout.HorizontalScope(GUILayout.ExpandWidth(false))) - { - GUI.enabled = true; - bool isNew = providerData.isNewProvider; - string isNewAddition = isNew ? " - New Network" : string.Empty; - string androidVersion = ""; - string iosVersion = ""; - string tooltipText = "Latest Version: \n " + providerData.providerName + " Adapter Version " + providerData.latestUnityVersion; - if (!providerData.sdkVersionDic.TryGetValue(Android, out androidVersion)) - { - androidVersion = ""; - } - else tooltipText = tooltipText + "\n Android SDK version " + androidVersion; - if (!providerData.sdkVersionDic.TryGetValue(iOS, out iosVersion)) - { - iosVersion = ""; - } - else tooltipText = tooltipText + "\n iOS SDK version " + iosVersion; - - EditorGUILayout.LabelField(providerData.displayProviderName + isNewAddition, isNew ? boldTextStyle : textStyle); - EditorGUILayout.LabelField(providerData.currentUnityVersion, textStyle); - EditorGUILayout.LabelField(providerData.latestUnityVersion, textStyle); - - if (providerData.currentStatues == providerInfo.Status.none) - { - bool btn = GUILayout.Button(new GUIContent - { - text = "Install", - tooltip = tooltipText - }, buttonWidth); - if (btn && downloadWebClient == null) - { - GUI.enabled = true; - IronSourceEditorCoroutines.StartEditorCoroutine(DownloadFile(providerData.downloadURL)); - } - - } - else if (providerData.currentStatues == providerInfo.Status.installed) - { - var btn = GUILayout.Button(new GUIContent - { - text= "Update", - tooltip = tooltipText - } - ,buttonWidth); - if (btn && downloadWebClient == null) - { - GUI.enabled = true; - IronSourceEditorCoroutines.StartEditorCoroutine(DownloadFile(providerData.downloadURL)); - } - } - else - { - GUI.enabled = false; - GUILayout.Button(new GUIContent - { - text = "Updated", - tooltip = tooltipText - }, buttonWidth); - } - GUILayout.Space(5); - GUI.enabled = true; - } - } - } - - void OnGUI() - { - if (ironSourceProviderInfo == null) - { - GUILayout.Label(errorMessage); - return; - } - - GUILayout.Space(10); - using (new EditorGUILayout.VerticalScope("box")) - { - DrawSDKHeader(); - GUILayout.Space(5); - GUILayout.BeginHorizontal(); - DrawProviderItem(ironSourceProviderInfo); - GUILayout.Space(5); - GUILayout.EndHorizontal(); - GUILayout.Space(5); - } - - GUILayout.Space(15); - DrawAdaptersHeader(); - GUILayout.Space(15); - - foreach (var provider in providersSet) - { - DrawProviderItem(provider); - GUILayout.Space(2); - } - GUILayout.Space(30); - if (!string.IsNullOrEmpty(messageData)) - { - using (new EditorGUILayout.VerticalScope("box", GUILayout.ExpandHeight(true))) - { - GUILayout.Space(5); - using (new EditorGUILayout.HorizontalScope(GUILayout.ExpandWidth(false))) - { - EditorGUILayout.SelectableLabel(messageData, EditorStyles.textField, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(true)); - } - GUILayout.Space(5); - } - using (new EditorGUILayout.VerticalScope(GUILayout.ExpandHeight(false))) - { - GUILayout.Space(15); - } - } - - } - - private void DrawSDKHeader() - { - using (new EditorGUILayout.HorizontalScope(GUILayout.ExpandWidth(false))) - { - EditorGUILayout.LabelField("Current SDK Version", new GUIStyle(EditorStyles.label) - { - fontStyle = FontStyle.Bold, - fontSize = 13, - fixedHeight = 20, - stretchWidth = true, - fixedWidth = Width / 4, - clipping = TextClipping.Overflow, - padding = new RectOffset(Width / 4 + 15, 0, 0, 0) - }); - GUILayout.Space(85); - EditorGUILayout.LabelField("Latest SDK Version", new GUIStyle(EditorStyles.label) - { - fontStyle = FontStyle.Bold, - fontSize = 13, - fixedHeight = 20, - stretchWidth = true, - fixedWidth = Screen.width / 4, - clipping = TextClipping.Overflow, - }); - } - } - - private void DrawAdaptersHeader() - { - using (new EditorGUILayout.HorizontalScope(GUILayout.ExpandWidth(false))) - { - EditorGUILayout.LabelField("Network", headerStyle); - EditorGUILayout.LabelField("Current Adapter Version", headerStyle); - EditorGUILayout.LabelField("Latest Adapter Version", headerStyle); - GUILayout.Space(30); - EditorGUILayout.LabelField("Action", headerStyle); - } - } - - private IEnumerator DownloadFile(string downloadFileUrl) - { - int fileNameIndex = downloadFileUrl.LastIndexOf("/") + 1; - string downloadFileName = downloadFileUrl.Substring(fileNameIndex); - string fileDownloading = string.Format("Downloading {0}", downloadFileName); - string genericFileName = Regex.Replace(downloadFileName, @"_v+(\d\.\d\.\d\.\d|\d\.\d\.\d)", ""); - string path = Path.Combine(ironSourceDownloadDir, genericFileName); - bool isCancelled = false; - downloadWebClient = new UnityWebRequest(downloadFileUrl); - downloadWebClient.downloadHandler = new DownloadHandlerFile(path); - downloadWebClient.SendWebRequest(); - if (!downloadWebClient.isHttpError && !downloadWebClient.isNetworkError) - { - while (!downloadWebClient.isDone) - { - yield return new WaitForSeconds(0.1f); - if (EditorUtility.DisplayCancelableProgressBar("Download Manager", fileDownloading, downloadWebClient.downloadProgress)) - { - if (downloadWebClient.error != null) - { - Debug.LogError(downloadWebClient.error); - } - CancelDownload(); - isCancelled = true; - } - } - } - else - { - Debug.LogError("Error Downloading " + genericFileName + " : " + downloadWebClient.error); - } - - EditorUtility.ClearProgressBar(); - - if (genericFileName.EndsWith(".unitypackage") && !isCancelled) - { - AssetDatabase.ImportPackage(Path.Combine(ironSourceDownloadDir, genericFileName), true); - } - else - { - // in case the download was cancelled, delete the file - if(isCancelled && File.Exists(ironSourceDownloadDir + genericFileName)) - { - File.Delete(ironSourceDownloadDir + genericFileName); - } - - IronSourceEditorCoroutines.StartEditorCoroutine(GetVersions()); - } - - //clean the downloadWebClient object regardless of whether the request succeeded or failed - downloadWebClient.Dispose(); - downloadWebClient = null; - - IronSourceEditorCoroutines.StartEditorCoroutine(GetVersions()); - } - - private static bool isNewerVersion(string current, string latest) - { - bool isNewer = false; - try - { - int[] currentVersion = Array.ConvertAll(current.Split('.'), int.Parse); - int[] remoteVersion = Array.ConvertAll(latest.Split('.'), int.Parse); - int remoteBuild = 0; - int curBuild = 0; - if (currentVersion.Length > 3) - { - curBuild = currentVersion[3]; - } - if (remoteVersion.Length > 3) - { - remoteBuild = remoteVersion[3]; - - } - System.Version cur = new System.Version(currentVersion[0], currentVersion[1], currentVersion[2], curBuild); - System.Version remote = new System.Version(remoteVersion[0], remoteVersion[1], remoteVersion[2], remoteBuild); - isNewer = cur < remote; - } - catch (Exception) - { - - } - return isNewer; - - } - - internal class ProviderInfoComparor : IComparer - { - public int Compare(providerInfo x, providerInfo y) - { - return x.providerName.CompareTo(y.providerName); - } - } -} diff --git a/popcorn/Assets/IronSource/Editor/IronSourceDependenciesManager.cs.meta b/popcorn/Assets/IronSource/Editor/IronSourceDependenciesManager.cs.meta deleted file mode 100644 index 1409f7c1..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceDependenciesManager.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c6e4d9251bd484b8691739732905761c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor/IronSourceEditorCoroutines.cs b/popcorn/Assets/IronSource/Editor/IronSourceEditorCoroutines.cs deleted file mode 100644 index 60e26998..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceEditorCoroutines.cs +++ /dev/null @@ -1,37 +0,0 @@ -using UnityEditor; -using System.Collections; - -public class IronSourceEditorCoroutines -{ - readonly IEnumerator mRoutine; - - public static IronSourceEditorCoroutines StartEditorCoroutine( IEnumerator routine) - { - IronSourceEditorCoroutines coroutine = new IronSourceEditorCoroutines(routine); - coroutine.start(); - return coroutine; - } - - IronSourceEditorCoroutines(IEnumerator routine) - { - mRoutine = routine; - } - - void start() - { - EditorApplication.update += update; - } - - void update() - { - if(!mRoutine.MoveNext()) - { - StopEditorCoroutine(); - } - } - - public void StopEditorCoroutine() - { - EditorApplication.update -= update; - } -} diff --git a/popcorn/Assets/IronSource/Editor/IronSourceEditorCoroutines.cs.meta b/popcorn/Assets/IronSource/Editor/IronSourceEditorCoroutines.cs.meta deleted file mode 100644 index 31c1a992..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceEditorCoroutines.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 001447b23ecb34541b82b7d1874874d9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor/IronSourceManifestProcessor.cs b/popcorn/Assets/IronSource/Editor/IronSourceManifestProcessor.cs deleted file mode 100644 index 482cc590..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceManifestProcessor.cs +++ /dev/null @@ -1,134 +0,0 @@ -#if UNITY_ANDROID -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text.RegularExpressions; -using System.Xml.Linq; -using UnityEditor; -using UnityEditor.Build; -#if UNITY_2018_1_OR_NEWER -using UnityEditor.Build.Reporting; -#endif -using UnityEngine; - - -#if UNITY_2018_1_OR_NEWER -public class IronSourceManifestProcessor : IPreprocessBuildWithReport -#else -public class IronSourceManifestProcessor : IPreprocessBuild -#endif -{ - private const string META_APPLICATION_ID = "com.google.android.gms.ads.APPLICATION_ID"; - - private XNamespace ns = "http://schemas.android.com/apk/res/android"; - - public int callbackOrder { get { return 0; } } - -#if UNITY_2018_1_OR_NEWER - public void OnPreprocessBuild(BuildReport report) -#else - public void OnPreprocessBuild(BuildTarget target, string path) -#endif - { - if (File.Exists(IronSourceMediatedNetworkSettings.MEDIATION_SETTINGS_ASSET_PATH)) - { - string appId = IronSourceMediatedNetworkSettingsInspector.IronSourceMediatedNetworkSettings.AdmobAndroidAppId; - - if (IronSourceMediatedNetworkSettingsInspector.IronSourceMediatedNetworkSettings.EnableAdmob) - { - string manifestPath = Path.Combine( - Application.dataPath, "IronSource/Plugins/Android/IronSource.plugin/AndroidManifest.xml"); - - XDocument manifest = null; - try - { - manifest = XDocument.Load(manifestPath); - } -#pragma warning disable 0168 - catch (IOException e) -#pragma warning restore 0168 - { - StopBuildWithMessage("AndroidManifest.xml is missing. Try re-importing the plugin."); - } - - XElement elemManifest = manifest.Element("manifest"); - if (elemManifest == null) - { - StopBuildWithMessage("AndroidManifest.xml is not valid. Try re-importing the plugin."); - } - - XElement elemApplication = elemManifest.Element("application"); - if (elemApplication == null) - { - StopBuildWithMessage("AndroidManifest.xml is not valid. Try re-importing the plugin."); - } - - IEnumerable metas = elemApplication.Descendants() - .Where(elem => elem.Name.LocalName.Equals("meta-data")); - - XElement elemAdMobEnabled = GetMetaElement(metas, META_APPLICATION_ID); - - if (appId.Length == 0) - { - StopBuildWithMessage( - "Android AdMob app ID is empty. Please enter your app ID to run ads properly"); - } - else if (!Regex.IsMatch(appId, "^[a-zA-Z0-9-~]*$")) - { - StopBuildWithMessage( - "Android AdMob app ID is not valid. Please enter a valid app ID to run ads properly"); - } - - else if (elemAdMobEnabled == null) - { - elemApplication.Add(CreateMetaElement(META_APPLICATION_ID, appId)); - } - else - { - elemAdMobEnabled.SetAttributeValue(ns + "value", appId); - } - - elemManifest.Save(manifestPath); - } - } - } - - private XElement CreateMetaElement(string name, object value) - { - return new XElement("meta-data", - new XAttribute(ns + "name", name), new XAttribute(ns + "value", value)); - } - - private XElement GetMetaElement(IEnumerable metas, string metaName) - { - foreach (XElement elem in metas) - { - IEnumerable attrs = elem.Attributes(); - foreach (XAttribute attr in attrs) - { - if (attr.Name.Namespace.Equals(ns) - && attr.Name.LocalName.Equals("name") && attr.Value.Equals(metaName)) - { - return elem; - } - } - } - return null; - } - - private void StopBuildWithMessage(string message) - { - string prefix = "[IronSourceApplicationSettings] "; - - EditorUtility.DisplayDialog( - "IronSource Developer Settings", "Error: " + message, "", ""); -#if UNITY_2017_1_OR_NEWER - throw new BuildPlayerWindow.BuildMethodException(prefix + message); -#else - throw new OperationCanceledException(prefix + message); -#endif - } -} - -#endif diff --git a/popcorn/Assets/IronSource/Editor/IronSourceManifestProcessor.cs.meta b/popcorn/Assets/IronSource/Editor/IronSourceManifestProcessor.cs.meta deleted file mode 100644 index e9848a62..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceManifestProcessor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6b63a7ef12abd42eabd7c7b7c8250f83 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettings.cs b/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettings.cs deleted file mode 100644 index d1b037e8..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettings.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.IO; -using UnityEngine; - -public class IronSourceMediatedNetworkSettings : ScriptableObject -{ - public static readonly string MEDIATION_SETTINGS_ASSET_PATH = Path.Combine(IronSourceConstants.IRONSOURCE_RESOURCES_PATH, IronSourceConstants.IRONSOURCE_MEDIATED_NETWORK_SETTING_NAME + ".asset"); - - [Header("")] - [Header("AdMob Integration")] - [SerializeField] - [Tooltip("This will add AdMob Application ID to AndroidManifest.xml/info.plist")] - public bool EnableAdmob = false; - - [SerializeField] - [Tooltip("This Will be added to your AndroidManifest.xml")] - public string AdmobAndroidAppId = string.Empty; - - [SerializeField] - [Tooltip("This will be added to your info.plist")] - public string AdmobIOSAppId = string.Empty; -} \ No newline at end of file diff --git a/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettings.cs.meta b/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettings.cs.meta deleted file mode 100644 index 98201f61..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6dcd730eacb2043e8a6f1c61c16243da -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettingsInspector.cs b/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettingsInspector.cs deleted file mode 100644 index 273988ca..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettingsInspector.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.IO; -using UnityEditor; - -[CustomEditor(typeof(IronSourceMediatedNetworkSettings))] -public class IronSourceMediatedNetworkSettingsInspector : UnityEditor.Editor -{ - private static IronSourceMediatedNetworkSettings ironSourceMediatedNetworkSettings; - public static IronSourceMediatedNetworkSettings IronSourceMediatedNetworkSettings - { - get - { - if (ironSourceMediatedNetworkSettings == null) - { - ironSourceMediatedNetworkSettings = AssetDatabase.LoadAssetAtPath(IronSourceMediatedNetworkSettings.MEDIATION_SETTINGS_ASSET_PATH); - if (ironSourceMediatedNetworkSettings == null) - { - IronSourceMediatedNetworkSettings asset = CreateInstance(); - Directory.CreateDirectory(IronSourceConstants.IRONSOURCE_RESOURCES_PATH); - AssetDatabase.CreateAsset(asset, IronSourceMediatedNetworkSettings.MEDIATION_SETTINGS_ASSET_PATH); - ironSourceMediatedNetworkSettings = asset; - } - } - - return ironSourceMediatedNetworkSettings; - } - } -} \ No newline at end of file diff --git a/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettingsInspector.cs.meta b/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettingsInspector.cs.meta deleted file mode 100644 index f10008dd..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceMediatedNetworkSettingsInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6ddcb1096c420410ead13befae195114 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor/IronSourceMediationSettingsInspector.cs b/popcorn/Assets/IronSource/Editor/IronSourceMediationSettingsInspector.cs deleted file mode 100644 index d62f312b..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceMediationSettingsInspector.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.IO; -using UnityEditor; - -[CustomEditor(typeof(IronSourceMediationSettings))] -public class IronSourceMediationSettingsInspector : UnityEditor.Editor -{ - private static IronSourceMediationSettings ironSourceMediationSettings; - public static IronSourceMediationSettings IronSourceMediationSettings - { - get - { - if (ironSourceMediationSettings == null) - { - ironSourceMediationSettings = AssetDatabase.LoadAssetAtPath(IronSourceMediationSettings.IRONSOURCE_SETTINGS_ASSET_PATH); - if (ironSourceMediationSettings == null) - { - IronSourceMediationSettings asset = CreateInstance(); - Directory.CreateDirectory(IronSourceConstants.IRONSOURCE_RESOURCES_PATH); - AssetDatabase.CreateAsset(asset, IronSourceMediationSettings.IRONSOURCE_SETTINGS_ASSET_PATH); - ironSourceMediationSettings = asset; - } - } - - return ironSourceMediationSettings; - } - } -} \ No newline at end of file diff --git a/popcorn/Assets/IronSource/Editor/IronSourceMediationSettingsInspector.cs.meta b/popcorn/Assets/IronSource/Editor/IronSourceMediationSettingsInspector.cs.meta deleted file mode 100644 index 1325fb42..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceMediationSettingsInspector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4a5cecbf374304044822daeaa54c686c -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor/IronSourceMenu.cs b/popcorn/Assets/IronSource/Editor/IronSourceMenu.cs deleted file mode 100644 index 544c45c2..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceMenu.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System.IO; -using UnityEditor; -using UnityEngine; - -public class IronSourceMenu : UnityEditor.Editor -{ - - [MenuItem("IronSource/Documentation", false, 0)] - public static void Documentation() - { - Application.OpenURL("https://developers.ironsrc.com/ironsource-mobile/unity/unity-plugin/"); - } - - - [MenuItem("IronSource/SDK Change Log", false, 1)] - public static void ChangeLog() - { - Application.OpenURL("https://developers.ironsrc.com/ironsource-mobile/unity/sdk-change-log/"); - } - - - [MenuItem("IronSource/Integration Manager", false , 2)] - public static void SdkManagerProd() - { - IronSourceDependenciesManager.ShowISDependenciesManager(); - } - - [MenuItem("IronSource/Developer Settings/IronSource Mediation Settings", false, 3)] - public static void mediationSettings() - { - string path = "Assets/IronSource/Resources"; - - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } - - - var ironSourceMediationSettings = Resources.Load(IronSourceConstants.IRONSOURCE_MEDIATION_SETTING_NAME); - if (ironSourceMediationSettings == null) - { - Debug.LogWarning(IronSourceConstants.IRONSOURCE_MEDIATION_SETTING_NAME + " can't be found, creating a new one..."); - ironSourceMediationSettings = CreateInstance(); - AssetDatabase.CreateAsset(ironSourceMediationSettings, IronSourceMediationSettings.IRONSOURCE_SETTINGS_ASSET_PATH); - ironSourceMediationSettings = Resources.Load(IronSourceConstants.IRONSOURCE_MEDIATION_SETTING_NAME); - } - - Selection.activeObject = ironSourceMediationSettings; - } - - [MenuItem("IronSource/Developer Settings/Mediated Network Settings", false, 4)] - public static void mediatedNetworkSettings() - { - string path = IronSourceConstants.IRONSOURCE_RESOURCES_PATH; - - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } - - var ironSourceMediatedNetworkSettings = Resources.Load(IronSourceConstants.IRONSOURCE_MEDIATED_NETWORK_SETTING_NAME); - if (ironSourceMediatedNetworkSettings == null) - { - Debug.LogWarning(IronSourceConstants.IRONSOURCE_MEDIATED_NETWORK_SETTING_NAME + " can't be found, creating a new one..."); - ironSourceMediatedNetworkSettings = CreateInstance(); - AssetDatabase.CreateAsset(ironSourceMediatedNetworkSettings, IronSourceMediatedNetworkSettings.MEDIATION_SETTINGS_ASSET_PATH); - ironSourceMediatedNetworkSettings = Resources.Load(IronSourceConstants.IRONSOURCE_MEDIATED_NETWORK_SETTING_NAME); - } - - Selection.activeObject = ironSourceMediatedNetworkSettings; - } -} \ No newline at end of file diff --git a/popcorn/Assets/IronSource/Editor/IronSourceMenu.cs.meta b/popcorn/Assets/IronSource/Editor/IronSourceMenu.cs.meta deleted file mode 100644 index d7da227f..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceMenu.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 70dd99db2841b47fb8709e8e707d714a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor/IronSourcePlistProcessor.cs b/popcorn/Assets/IronSource/Editor/IronSourcePlistProcessor.cs deleted file mode 100644 index 8a81f655..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourcePlistProcessor.cs +++ /dev/null @@ -1,133 +0,0 @@ - -#if UNITY_IOS || UNITY_IPHONE - -using System.IO; -using UnityEditor.Callbacks; -using UnityEditor; -using System; -using UnityEngine; -using UnityEditor.iOS.Xcode; -using System.Text.RegularExpressions; - -/// -/// PostProcessor script to automatically fill all required dependencies -/// -public class IronSourcePlistProcessor -{ - [PostProcessBuild] - public static void OnPostprocessBuild(BuildTarget buildTarget, string buildPath) - { - if (File.Exists(IronSourceMediationSettings.IRONSOURCE_SETTINGS_ASSET_PATH)) - { - if (buildTarget == BuildTarget.iOS) - { - /* - * PBXProject - */ - string plistPath = Path.Combine(buildPath, "Info.plist"); - PBXProject project = new PBXProject(); - string projectPath = PBXProject.GetPBXProjectPath(buildPath); - project.ReadFromFile(projectPath); - PlistDocument plist = new PlistDocument(); - plist.ReadFromString(File.ReadAllText(plistPath)); - if (plist != null) - { - // Get root - PlistElementDict rootDict = plist.root; - - // Check if SKAdNetworkItems already exists - PlistElementArray SKAdNetworkItems = null; - if (rootDict.values.ContainsKey("SKAdNetworkItems")) - { - try - { - SKAdNetworkItems = rootDict.values["SKAdNetworkItems"] as PlistElementArray; - } - catch (Exception e) - { - Debug.LogWarning(string.Format("Could not obtain SKAdNetworkItems PlistElementArray: {0}", e.Message)); - } - } - - //Add IronSource's SKAdNetwork ID - if (IronSourceMediationSettingsInspector.IronSourceMediationSettings.AddIronsourceSkadnetworkID) - { - // If not exists, create it - if (SKAdNetworkItems == null) - { - SKAdNetworkItems = rootDict.CreateArray("SKAdNetworkItems"); - } - - string plistContent = File.ReadAllText(plistPath); - if (!plistContent.Contains(IronSourceConstants.IRONSOURCE_SKAN_ID_KEY)) - { - PlistElementDict SKAdNetworkIdentifierDict = SKAdNetworkItems.AddDict(); - SKAdNetworkIdentifierDict.SetString("SKAdNetworkIdentifier", IronSourceConstants.IRONSOURCE_SKAN_ID_KEY); - } - } - - - - File.WriteAllText(plistPath, plist.WriteToString()); - } - } - } - if ( File.Exists(IronSourceMediatedNetworkSettings.MEDIATION_SETTINGS_ASSET_PATH)) - { - if (buildTarget == BuildTarget.iOS) - { - /* - * PBXProject - */ - string plistPath = Path.Combine(buildPath, "Info.plist"); - PBXProject project = new PBXProject(); - string projectPath = PBXProject.GetPBXProjectPath(buildPath); - project.ReadFromFile(projectPath); - PlistDocument plist = new PlistDocument(); - plist.ReadFromString(File.ReadAllText(plistPath)); - if (plist != null) - { - // Get root - PlistElementDict rootDict = plist.root; - - - //Adding AdMob App ID to Plist - if (IronSourceMediatedNetworkSettingsInspector.IronSourceMediatedNetworkSettings.EnableAdmob == true) - { - string appId = IronSourceMediatedNetworkSettingsInspector.IronSourceMediatedNetworkSettings.AdmobIOSAppId; - if (appId.Length == 0) - { - StopBuildWithMessage( - "iOS AdMob app ID is empty. Please enter your app ID to run ads properly"); - } - else if (!Regex.IsMatch(appId, "^[a-zA-Z0-9-~]*$")) - { - StopBuildWithMessage( - "iOS AdMob app ID is not valid. Please enter a valid app ID to run ads properly"); - } - else - { - plist.root.SetString("GADApplicationIdentifier", appId); - } - } - - File.WriteAllText(plistPath, plist.WriteToString()); - } - } - } - } - private static void StopBuildWithMessage(string message) - { - string prefix = "[IronSourceApplicationSettings] "; - - EditorUtility.DisplayDialog( - "IronSource Developer Settings", "Error: " + message, "", ""); - -#if UNITY_2017_1_OR_NEWER - throw new BuildPlayerWindow.BuildMethodException(prefix + message); -#else - throw new OperationCanceledException(prefix + message); -#endif - } -} -#endif \ No newline at end of file diff --git a/popcorn/Assets/IronSource/Editor/IronSourcePlistProcessor.cs.meta b/popcorn/Assets/IronSource/Editor/IronSourcePlistProcessor.cs.meta deleted file mode 100644 index 053dfb10..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourcePlistProcessor.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 920ec5e5fa67e48c2a6380c2c2be88fc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Editor/IronSourceSDKDependencies.xml b/popcorn/Assets/IronSource/Editor/IronSourceSDKDependencies.xml deleted file mode 100644 index ff85fd69..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceSDKDependencies.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 7.1.12 - - - - https://android-sdk.is.com/ - - - - - - - - https://maven.google.com/ - - - - - - - - https://maven.google.com/ - - - - - - - - https://maven.google.com/ - - - - - - - - https://github.com/CocoaPods/Specs - - - - diff --git a/popcorn/Assets/IronSource/Editor/IronSourceSDKDependencies.xml.meta b/popcorn/Assets/IronSource/Editor/IronSourceSDKDependencies.xml.meta deleted file mode 100644 index 47a5d3b3..00000000 --- a/popcorn/Assets/IronSource/Editor/IronSourceSDKDependencies.xml.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: d618a278f636e4718b9e6409b1f031eb -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Plugins.meta b/popcorn/Assets/IronSource/Plugins.meta deleted file mode 100644 index 34a680b0..00000000 --- a/popcorn/Assets/IronSource/Plugins.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 54543a6abf5c743eebffbdd3ab80a1e7 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Plugins/Android.meta b/popcorn/Assets/IronSource/Plugins/Android.meta deleted file mode 100644 index 61b6d82a..00000000 --- a/popcorn/Assets/IronSource/Plugins/Android.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e68fc23b7584a4aeb9ad1faec8a8708c -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin.meta b/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin.meta deleted file mode 100644 index f5ce407e..00000000 --- a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin.meta +++ /dev/null @@ -1,28 +0,0 @@ -fileFormatVersion: 2 -guid: f1bc66601864e445e88faef50fa5886c -folderAsset: yes -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 1 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/AndroidManifest.xml b/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/AndroidManifest.xml deleted file mode 100644 index 31f3d214..00000000 --- a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/AndroidManifest.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/AndroidManifest.xml.meta b/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/AndroidManifest.xml.meta deleted file mode 100644 index f896b5c3..00000000 --- a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/AndroidManifest.xml.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 9632a9cae064644419de54f10c604559 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/libs.meta b/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/libs.meta deleted file mode 100644 index 88150830..00000000 --- a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/libs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 52c96c6ebd65b44b3858b9ae1afdf87a -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/libs/android-bridge.jar b/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/libs/android-bridge.jar deleted file mode 100644 index a5d2bb2f..00000000 Binary files a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/libs/android-bridge.jar and /dev/null differ diff --git a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/libs/android-bridge.jar.meta b/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/libs/android-bridge.jar.meta deleted file mode 100644 index 68a69fb4..00000000 --- a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/libs/android-bridge.jar.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 2dbf0193032a2473098de3a49a1e75f7 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/project.properties b/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/project.properties deleted file mode 100644 index 823f52e6..00000000 --- a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/project.properties +++ /dev/null @@ -1 +0,0 @@ -android.library=true diff --git a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/project.properties.meta b/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/project.properties.meta deleted file mode 100644 index 574798a0..00000000 --- a/popcorn/Assets/IronSource/Plugins/Android/IronSource.plugin/project.properties.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 21b205bdddcad4558ab4a0831cb093f2 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Plugins/iOS.meta b/popcorn/Assets/IronSource/Plugins/iOS.meta deleted file mode 100644 index c03efe27..00000000 --- a/popcorn/Assets/IronSource/Plugins/iOS.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d169a20af57cb4a47b056b3317f02f12 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Plugins/iOS/IronSourceUnityConfig.m b/popcorn/Assets/IronSource/Plugins/iOS/IronSourceUnityConfig.m deleted file mode 100644 index 4209bfc1..00000000 --- a/popcorn/Assets/IronSource/Plugins/iOS/IronSourceUnityConfig.m +++ /dev/null @@ -1,78 +0,0 @@ -// -// iOSBridge -// -// Created by Ori on 5/13/15. -// - -#import -#import -#import - -@interface IronSourceUnityConfig:NSObject -//IronSource -- (void) setClientSideCallbacks:(bool)useClientSideCallbacks; -- (void) setLanguage:(NSString *)language; -- (void) setRewardedVideoCustomParams:(NSString *)rvParams; -- (void) setOfferwallCustomParams:(NSString *)owParams; - -@end - -@implementation IronSourceUnityConfig - -//IronSource -- (void) setClientSideCallbacks:(bool)useClientSideCallbacks { - NSNumber *ucsc = @0; - if (useClientSideCallbacks) - ucsc = @1; - - [ISSupersonicAdsConfiguration configurations].useClientSideCallbacks = ucsc; -} - -- (void) setLanguage:(NSString *)language { - [ISSupersonicAdsConfiguration configurations].language = language; -} - -- (void) setRewardedVideoCustomParams:(NSString *)rvParams { - NSError *jsonError; - NSData *objectData = [rvParams dataUsingEncoding:NSUTF8StringEncoding]; - NSDictionary *json = [NSJSONSerialization JSONObjectWithData:objectData options:NSJSONReadingMutableContainers error:&jsonError]; - if (!jsonError) - [ISConfigurations configurations].rewardedVideoCustomParameters = json; -} - -- (void) setOfferwallCustomParams:(NSString *)owParams { - NSError *jsonError; - NSData *objectData = [owParams dataUsingEncoding:NSUTF8StringEncoding]; - NSDictionary *json = [NSJSONSerialization JSONObjectWithData:objectData options:NSJSONReadingMutableContainers error:&jsonError]; - if (!jsonError) - [ISConfigurations configurations].offerwallCustomParameters = json; -} - - - -#ifdef __cplusplus -extern "C" { -#endif - -#define ParseNSStringParam( _x_ ) ( _x_ != NULL ) ? [NSString stringWithUTF8String:_x_] : [NSString stringWithUTF8String:""] - - //IronSource - void CFSetClientSideCallbacks(bool useClientSideCallbacks){ - [[IronSourceUnityConfig new] setClientSideCallbacks:useClientSideCallbacks]; - } - void CFSetLanguage(const char *language){ - [[IronSourceUnityConfig new] setLanguage:ParseNSStringParam(language)]; - } - void CFSetRewardedVideoCustomParams(const char *rvParams){ - [[IronSourceUnityConfig new] setRewardedVideoCustomParams:ParseNSStringParam(rvParams)]; - } - void CFSetOfferwallCustomParams(const char *owParam){ - [[IronSourceUnityConfig new] setOfferwallCustomParams:ParseNSStringParam(owParam)]; - } - - -#ifdef __cplusplus -} -#endif - -@end diff --git a/popcorn/Assets/IronSource/Plugins/iOS/IronSourceUnityConfig.m.meta b/popcorn/Assets/IronSource/Plugins/iOS/IronSourceUnityConfig.m.meta deleted file mode 100644 index 55d7028a..00000000 --- a/popcorn/Assets/IronSource/Plugins/iOS/IronSourceUnityConfig.m.meta +++ /dev/null @@ -1,37 +0,0 @@ -fileFormatVersion: 2 -guid: e0be82736da5a41d4af2ea3ac34d5ac4 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - iPhone: iOS - second: - enabled: 1 - settings: {} - - first: - tvOS: tvOS - second: - enabled: 1 - settings: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.h b/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.h deleted file mode 100644 index ac825625..00000000 --- a/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// iOSBridge.h -// iOSBridge -// -// Created by Supersonic. -// Copyright (c) 2015 Supersonic. All rights reserved. -// - -#import -#import -static NSString * UnityGitHash = @"04bfbea"; - -@interface iOSBridge : NSObject - -@end - - diff --git a/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.h.meta b/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.h.meta deleted file mode 100644 index 1b1aca3a..00000000 --- a/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.h.meta +++ /dev/null @@ -1,27 +0,0 @@ -fileFormatVersion: 2 -guid: 33123db285ad544b59cf1c18d83f66b8 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 1 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.m b/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.m deleted file mode 100755 index b6f22b15..00000000 --- a/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.m +++ /dev/null @@ -1,1019 +0,0 @@ -// -// iOSBridge.m -// iOSBridge -// -// Created by Supersonic. -// Copyright (c) 2015 Supersonic. All rights reserved. -// - -#import "iOSBridge.h" -#import - -// Converts NSString to C style string by way of copy (Mono will free it) -#define MakeStringCopy( _x_ ) ( _x_ != NULL && [_x_ isKindOfClass:[NSString class]] ) ? strdup( [_x_ UTF8String] ) : NULL - -// Converts C style string to NSString -#define GetStringParam( _x_ ) ( _x_ != NULL ) ? [NSString stringWithUTF8String:_x_] : [NSString stringWithUTF8String:""] - -#define BANNER_POSITION_TOP 1 -#define BANNER_POSITION_BOTTOM 2 - -#ifdef __cplusplus -extern "C" { -#endif - - extern void UnitySendMessage( const char *className, const char *methodName, const char *param ); - -#ifdef __cplusplus -} -#endif - -@interface iOSBridge () -{ - ISBannerView* _bannerView; - NSInteger _position; - UIViewController* _bannerViewController; -} - -@end - -@implementation iOSBridge - -char *const IRONSOURCE_EVENTS = "IronSourceEvents"; - -+ (iOSBridge *)start { - static iOSBridge *instance; - static dispatch_once_t onceToken; - dispatch_once( &onceToken, - ^{ - instance = [iOSBridge new]; - }); - - return instance; -} - -- (instancetype)init { - if(self = [super init]){ - [IronSource setRewardedVideoDelegate:self]; - [IronSource setInterstitialDelegate:self]; - [IronSource setISDemandOnlyInterstitialDelegate:self]; - [IronSource setISDemandOnlyRewardedVideoDelegate:self]; - [IronSource setOfferwallDelegate:self]; - [IronSource setBannerDelegate:self]; - [IronSource addImpressionDataDelegate:self]; - [IronSource setConsentViewWithDelegate:self]; - - _bannerView = nil; - _bannerViewController = nil; - _position = BANNER_POSITION_BOTTOM; - - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientationChanged:) - name:UIDeviceOrientationDidChangeNotification object:nil]; - } - - return self; -} - -- (void)setPluginDataWithType:(NSString *)pluginType pluginVersion:(NSString *)version pluginFrameworkVersion:(NSString *)frameworkVersion { - [ISConfigurations getConfigurations].plugin = pluginType; - [ISConfigurations getConfigurations].pluginVersion = version; - [ISConfigurations getConfigurations].pluginFrameworkVersion = frameworkVersion; -} - -#pragma mark Base API - -- (void)setMediationSegment:(NSString *)segment { - [IronSource setMediationSegment:segment]; -} - -- (const char *)getAdvertiserId { - NSString *advertiserId = [IronSource advertiserId]; - - return MakeStringCopy(advertiserId); -} - -- (void)validateIntegration { - [ISIntegrationHelper validateIntegration]; -} - -- (void)shouldTrackNetworkState:(BOOL)flag { - [IronSource shouldTrackReachability:flag]; -} - -- (BOOL)setDynamicUserId:(NSString *)dynamicUserId { - return [IronSource setDynamicUserId:dynamicUserId]; -} - -- (void)setAdaptersDebug:(BOOL)enabled { - [IronSource setAdaptersDebug:enabled]; -} - -- (void)setConsent:(BOOL)consent { - [IronSource setConsent:consent]; -} - -- (void)setMetaDataWithKey:(NSString *)key value:(NSString *)value { - [IronSource setMetaDataWithKey:key value:value]; -} - -- (void)setMetaDataWithKey:(NSString *)key values:(NSMutableArray *)valuesArray { - [IronSource setMetaDataWithKey:key values:valuesArray]; -} - -#pragma mark Init SDK - -- (void)setUserId:(NSString *)userId { - [IronSource setUserId:userId]; -} - -- (void)initWithAppKey:(NSString *)appKey { - [IronSource initWithAppKey:appKey]; -} - -- (void)initWithAppKey:(NSString *)appKey adUnits:(NSArray *)adUnits { - [IronSource initWithAppKey:appKey adUnits:adUnits]; -} - -- (void)initISDemandOnly:(NSString *)appKey adUnits:(NSArray *)adUnits { - [IronSource initISDemandOnly:appKey adUnits:adUnits]; -} - -#pragma mark Rewarded Video API - -- (void)showRewardedVideo { - [IronSource showRewardedVideoWithViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; -} - -- (void)showRewardedVideoWithPlacement:(NSString *)placementName { - [IronSource showRewardedVideoWithViewController:[UIApplication sharedApplication].keyWindow.rootViewController placement:placementName]; -} - -- (const char *) getPlacementInfo:(NSString *)placementName { - char *res = nil; - - if (placementName){ - ISPlacementInfo *placementInfo = [IronSource rewardedVideoPlacementInfo:placementName]; - if(placementInfo){ - NSDictionary *dict = @{@"placement_name": [placementInfo placementName], - @"reward_amount": [placementInfo rewardAmount], - @"reward_name": [placementInfo rewardName]}; - - res = MakeStringCopy([self getJsonFromObj:dict]); - } - } - - return res; -} - -- (BOOL)isRewardedVideoAvailable { - return [IronSource hasRewardedVideo]; -} - -- (BOOL)isRewardedVideoPlacementCapped:(NSString *)placementName { - return [IronSource isRewardedVideoCappedForPlacement:placementName]; -} - -- (void)setRewardedVideoServerParameters:(NSDictionary *)params { - [IronSource setRewardedVideoServerParameters:params]; -} - -- (void)clearRewardedVideoServerParameters { - [IronSource clearRewardedVideoServerParameters]; -} - -#pragma mark Rewarded Video DemanOnly API - -- (void)showISDemandOnlyRewardedVideo:(NSString *)instanceId { - [IronSource showISDemandOnlyRewardedVideo:[UIApplication sharedApplication].keyWindow.rootViewController instanceId:instanceId]; -} - -- (void)loadISDemandOnlyRewardedVideo:(NSString *)instanceId { - [IronSource loadISDemandOnlyRewardedVideo:instanceId]; -} - -- (BOOL)isDemandOnlyRewardedVideoAvailable:(NSString *)instanceId { - return [IronSource hasISDemandOnlyRewardedVideo:instanceId]; -} - -#pragma mark Rewarded Video Delegate - -- (void)rewardedVideoHasChangedAvailability:(BOOL)available { - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAvailabilityChanged", (available) ? "true" : "false"); -} - -- (void)didReceiveRewardForPlacement:(ISPlacementInfo *)placementInfo { - NSDictionary *dict = @{@"placement_reward_amount": placementInfo.rewardAmount, - @"placement_reward_name": placementInfo.rewardName, - @"placement_name": placementInfo.placementName}; - - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdRewarded", MakeStringCopy([self getJsonFromObj:dict])); -} - -- (void)rewardedVideoDidFailToShowWithError:(NSError *)error { - if (error) - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdShowFailed", MakeStringCopy([self parseErrorToEvent:error])); - else - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdShowFailed",""); -} - -- (void)rewardedVideoDidOpen { - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdOpened", ""); -} - -- (void)rewardedVideoDidClose { - [self centerBanner]; - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdClosed", ""); -} - -- (void)rewardedVideoDidStart { - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdStarted", ""); -} - -- (void)rewardedVideoDidEnd { - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdEnded", ""); -} - -- (void)didClickRewardedVideo:(ISPlacementInfo *)placementInfo { - NSDictionary *dict = @{@"placement_reward_amount": placementInfo.rewardAmount, - @"placement_reward_name": placementInfo.rewardName, - @"placement_name": placementInfo.placementName}; - - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdClicked", MakeStringCopy([self getJsonFromObj:dict])); -} - -#pragma mark Rewarded Video DemandOnly Delegate - -- (void)rewardedVideoDidLoad:(NSString *)instanceId{ - NSArray *params = @[instanceId]; - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdLoadedDemandOnly", MakeStringCopy([self getJsonFromObj:params])); -} - -- (void)rewardedVideoDidFailToLoadWithError:(NSError *)error instanceId:(NSString *)instanceId{ - NSArray *params; - if (error) - params = @[instanceId, [self parseErrorToEvent:error]]; - else - params = @[instanceId,@""]; - - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdLoadFailedDemandOnly", MakeStringCopy([self getJsonFromObj:params])); -} - -- (void)rewardedVideoAdRewarded:(NSString *)instanceId { - NSArray *params = @[instanceId]; - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdRewardedDemandOnly", MakeStringCopy([self getJsonFromObj:params])); -} - -- (void)rewardedVideoDidFailToShowWithError:(NSError *)error instanceId:(NSString *)instanceId { - - NSArray *params; - if (error) - params = @[instanceId, [self parseErrorToEvent:error]]; - else - params = @[instanceId,@""]; - - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdShowFailedDemandOnly", MakeStringCopy([self getJsonFromObj:params])); -} - -- (void)rewardedVideoDidOpen:(NSString *)instanceId { - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdOpenedDemandOnly", MakeStringCopy(instanceId)); - -} - -- (void)rewardedVideoDidClose:(NSString *)instanceId { - [self centerBanner]; - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdClosedDemandOnly", MakeStringCopy(instanceId)); -} - -- (void)rewardedVideoDidClick:(NSString *)instanceId { - NSArray *params = @[instanceId]; - UnitySendMessage(IRONSOURCE_EVENTS, "onRewardedVideoAdClickedDemandOnly", MakeStringCopy([self getJsonFromObj:params])); -} - -#pragma mark Interstitial API - -- (void)loadInterstitial { - [IronSource loadInterstitial]; -} - -- (void)showInterstitial { - [IronSource showInterstitialWithViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; -} - -- (void)showInterstitialWithPlacement:(NSString *)placementName { - [IronSource showInterstitialWithViewController:[UIApplication sharedApplication].keyWindow.rootViewController placement:placementName]; -} - -- (BOOL)isInterstitialReady { - return [IronSource hasInterstitial]; -} - -- (BOOL)isInterstitialPlacementCapped:(NSString *)placementName { - return [IronSource isInterstitialCappedForPlacement:placementName]; -} - -#pragma mark Interstitial DemandOnly API - -- (void)loadISDemandOnlyInterstitial:(NSString *)instanceId { - [IronSource loadISDemandOnlyInterstitial:instanceId]; -} - -- (void)showISDemandOnlyInterstitial:(NSString *)instanceId { - [IronSource showISDemandOnlyInterstitial:[UIApplication sharedApplication].keyWindow.rootViewController instanceId:instanceId]; -} - -- (BOOL)isISDemandOnlyInterstitialReady:(NSString *)instanceId { - return [IronSource hasISDemandOnlyInterstitial:instanceId]; -} - -#pragma mark Interstitial Delegate - -- (void)interstitialDidLoad { - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdReady", ""); -} - -- (void)interstitialDidFailToLoadWithError:(NSError *)error { - if (error) - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdLoadFailed", MakeStringCopy([self parseErrorToEvent:error])); - else - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdLoadFailed",""); -} - -- (void)interstitialDidOpen { - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdOpened", ""); -} - -- (void)interstitialDidClose { - [self centerBanner]; - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdClosed", ""); -} - -- (void)interstitialDidShow { - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdShowSucceeded", ""); -} - -- (void)interstitialDidFailToShowWithError:(NSError *)error { - if (error) - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdShowFailed", MakeStringCopy([self parseErrorToEvent:error])); - else - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdShowFailed",""); -} - -- (void)didClickInterstitial { - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdClicked", ""); -} - -#pragma mark Interstitial DemandOnly Delegate - -- (void)interstitialDidLoad:(NSString *)instanceId { - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdReadyDemandOnly", MakeStringCopy(instanceId)); -} - -- (void)interstitialDidFailToLoadWithError:(NSError *)error instanceId:(NSString *)instanceId { - NSArray *parameters; - if (error) - parameters = @[instanceId, [self parseErrorToEvent:error]]; - else - parameters = @[instanceId, @""]; - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdLoadFailedDemandOnly",MakeStringCopy([self getJsonFromObj:parameters])); -} - -- (void)interstitialDidOpen:(NSString *)instanceId { - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdOpenedDemandOnly", MakeStringCopy(instanceId)); -} - -- (void)interstitialDidClose:(NSString *)instanceId { - [self centerBanner]; - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdClosedDemandOnly", MakeStringCopy(instanceId)); -} - -- (void)interstitialDidShow:(NSString *)instanceId { - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdShowSucceededDemandOnly", MakeStringCopy(instanceId)); -} - -- (void)interstitialDidFailToShowWithError:(NSError *)error instanceId:(NSString *)instanceId { - NSArray *parameters; - if (error) - parameters = @[instanceId, [self parseErrorToEvent:error]]; - else - parameters = @[instanceId, @""]; - - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdShowFailedDemandOnly", MakeStringCopy([self getJsonFromObj:parameters])); -} - -- (void)didClickInterstitial:(NSString *)instanceId { - UnitySendMessage(IRONSOURCE_EVENTS, "onInterstitialAdClickedDemandOnly", MakeStringCopy(instanceId)); -} - -#pragma mark Offerwall API - -- (void)showOfferwall { - [IronSource showOfferwallWithViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; -} - -- (void)showOfferwallWithPlacement:(NSString *)placementName { - [IronSource showOfferwallWithViewController:[UIApplication sharedApplication].keyWindow.rootViewController placement:placementName]; -} - -- (void)getOfferwallCredits { - [IronSource offerwallCredits]; -} - -- (BOOL)isOfferwallAvailable { - return [IronSource hasOfferwall]; -} - -#pragma mark Offerwall Delegate - -- (void)offerwallHasChangedAvailability:(BOOL)available { - UnitySendMessage(IRONSOURCE_EVENTS, "onOfferwallAvailable", (available) ? "true" : "false"); -} - -- (void)offerwallDidShow { - UnitySendMessage(IRONSOURCE_EVENTS, "onOfferwallOpened", ""); -} - -- (void)offerwallDidFailToShowWithError:(NSError *)error { - if (error) - UnitySendMessage(IRONSOURCE_EVENTS, "onOfferwallShowFailed", MakeStringCopy([self parseErrorToEvent:error])); - else - UnitySendMessage(IRONSOURCE_EVENTS, "onOfferwallShowFailed", ""); -} - -- (void)offerwallDidClose { - [self centerBanner]; - UnitySendMessage(IRONSOURCE_EVENTS, "onOfferwallClosed", ""); -} - -- (BOOL)didReceiveOfferwallCredits:(NSDictionary *)creditInfo { - if(creditInfo) - UnitySendMessage(IRONSOURCE_EVENTS, "onOfferwallAdCredited", [self getJsonFromObj:creditInfo].UTF8String); - - return YES; -} - -- (void)didFailToReceiveOfferwallCreditsWithError:(NSError *)error { - if (error) - UnitySendMessage(IRONSOURCE_EVENTS, "onGetOfferwallCreditsFailed", MakeStringCopy([self parseErrorToEvent:error])); - else - UnitySendMessage(IRONSOURCE_EVENTS, "onGetOfferwallCreditsFailed", ""); -} - -#pragma mark ConsentView API - --(void)loadConsentViewWithType:(NSString *)consentViewType { - [IronSource loadConsentViewWithType: consentViewType]; -} - --(void)showConsentViewWithType:(NSString *)consentViewType { - @synchronized(self) { - UIViewController* viewController = [UIApplication sharedApplication].keyWindow.rootViewController; - [IronSource showConsentViewWithViewController:viewController andType:consentViewType]; - } -} - -#pragma mark Banner API - -- (void)loadBanner:(NSString *)description width:(NSInteger)width height:(NSInteger)height position:(NSInteger)position placement:(NSString *)placement { - @synchronized(self) { - _position = position; - ISBannerSize* size = [self getBannerSize:description width:width height:height]; - - _bannerViewController = [UIApplication sharedApplication].keyWindow.rootViewController; - [IronSource loadBannerWithViewController:_bannerViewController size:size placement:placement]; - } -} - -- (void)destroyBanner { - dispatch_async(dispatch_get_main_queue(), ^{ - @synchronized(self) { - if (_bannerView != nil) { - [IronSource destroyBanner:_bannerView]; - _bannerView = nil; - _bannerViewController = nil; - } - } - }); -} - -- (void)displayBanner { - dispatch_async(dispatch_get_main_queue(), ^{ - @synchronized(self) { - if (_bannerView != nil) { - [_bannerView setHidden:NO]; - } - } - }); -} - -- (void)hideBanner { - dispatch_async(dispatch_get_main_queue(), ^{ - @synchronized(self) { - if (_bannerView != nil) { - [_bannerView setHidden:YES]; - } - } - }); -} - -- (BOOL)isBannerPlacementCapped:(NSString *)placementName { - return [IronSource isBannerCappedForPlacement:placementName]; -} - -- (ISBannerSize *) getBannerSize:(NSString *)description width:(NSInteger)width height:(NSInteger)height { - if ([description isEqualToString:@"CUSTOM"]) { - return [[ISBannerSize alloc] initWithWidth:width andHeight:height]; - } - if ([description isEqualToString:@"SMART"]) { - return ISBannerSize_SMART; - } - if ([description isEqualToString:@"RECTANGLE"]) { - return ISBannerSize_RECTANGLE; - } - if ([description isEqualToString:@"LARGE"]) { - return ISBannerSize_LARGE; - } - else { - return ISBannerSize_BANNER; - } -} - -#pragma mark Banner Delegate - -- (CGPoint)getBannerCenter:(NSInteger)position rootView:(UIView *)rootView { - CGFloat y; - if (position == BANNER_POSITION_TOP) { - y = (_bannerView.frame.size.height / 2); - if (@available(ios 11.0, *)) { - y += rootView.safeAreaInsets.top; - } - } - else { - y = rootView.frame.size.height - (_bannerView.frame.size.height / 2); - if (@available(ios 11.0, *)) { - y -= rootView.safeAreaInsets.bottom; - } - } - - return CGPointMake(rootView.frame.size.width / 2, y); -} - -- (void)bannerDidLoad:(ISBannerView *)bannerView { - dispatch_async(dispatch_get_main_queue(), ^{ - @synchronized(self) { - _bannerView = bannerView; - [_bannerView setAccessibilityLabel:@"bannerContainer"]; - - _bannerView.center = [self getBannerCenter:_position rootView:_bannerViewController.view]; - [_bannerViewController.view addSubview:_bannerView]; - - UnitySendMessage(IRONSOURCE_EVENTS, "onBannerAdLoaded", ""); - } - }); -} - -- (void)bannerDidFailToLoadWithError:(NSError *)error { - if (error) - UnitySendMessage(IRONSOURCE_EVENTS, "onBannerAdLoadFailed", MakeStringCopy([self parseErrorToEvent:error])); - else - UnitySendMessage(IRONSOURCE_EVENTS, "onBannerAdLoadFailed", ""); -} - -- (void)didClickBanner { - UnitySendMessage(IRONSOURCE_EVENTS, "onBannerAdClicked", ""); -} - -- (void)bannerWillPresentScreen { - UnitySendMessage(IRONSOURCE_EVENTS, "onBannerAdScreenPresented", ""); -} - -- (void)bannerDidDismissScreen { - UnitySendMessage(IRONSOURCE_EVENTS, "onBannerAdScreenDismissed", ""); -} - -- (void)bannerWillLeaveApplication { - UnitySendMessage(IRONSOURCE_EVENTS, "onBannerAdLeftApplication", ""); -} - -- (void)centerBanner { - dispatch_async(dispatch_get_main_queue(), ^{ - @synchronized(self) { - if (_bannerView != nil && _bannerViewController != nil) { - _bannerView.center = [self getBannerCenter:_position rootView:_bannerViewController.view]; - } - } - }); -} - -- (void)orientationChanged:(NSNotification *)notification { - [self centerBanner]; -} - -#pragma mark Helper methods - -- (void) setSegment:(NSString*) segmentJSON { - [IronSource setSegmentDelegate:self]; - ISSegment *segment = [[ISSegment alloc] init]; - NSError* error; - if (!segmentJSON) - return; - - NSData *data = [segmentJSON dataUsingEncoding:NSUTF8StringEncoding]; - if (!data) - return; - - NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:data options:0 error:&error]; - - if (!dict) - return; - - NSMutableArray *allKeys = [[dict allKeys] mutableCopy]; - for (id key in allKeys) - { - NSString* keyString = (NSString*)key; - NSString *object = [dict objectForKey: keyString]; - if ([keyString isEqualToString:@"age"]){ - segment.age = [object intValue] ; - } - else if([keyString isEqualToString:@"gender"]){ - if([object caseInsensitiveCompare:@"male"] == NSOrderedSame) - segment.gender = IRONSOURCE_USER_MALE ; - else if([object caseInsensitiveCompare:@"female"] == NSOrderedSame) - segment.gender = IRONSOURCE_USER_FEMALE; - - } - else if ([keyString isEqualToString:@"level"]){ - segment.level = [object intValue]; - } - else if ([keyString isEqualToString:@"isPaying"]){ - segment.paying = [object boolValue]; - } - else if ([keyString isEqualToString:@"userCreationDate"]){ - NSDate *date = [NSDate dateWithTimeIntervalSince1970: [object longLongValue]/1000]; - segment.userCreationDate = date; - - } - else if ([keyString isEqualToString:@"segmentName"]){ - segment.segmentName = object; - - } else if ([keyString isEqualToString:@"iapt"]){ - segment.iapTotal = [object doubleValue]; - } - else{ - [segment setCustomValue:object forKey:keyString]; - } - - } - - [IronSource setSegment:segment]; -} - -- (void)didReceiveSegement:(NSString *)segment{ - UnitySendMessage(IRONSOURCE_EVENTS, "onSegmentReceived", MakeStringCopy(segment)); -} - -- (NSString *)parseErrorToEvent:(NSError *)error{ - if (error){ - NSString* codeStr = [NSString stringWithFormat:@"%ld", (long)[error code]]; - - NSDictionary *dict = @{@"error_description": [error localizedDescription], - @"error_code": codeStr}; - - return [self getJsonFromObj:dict]; - } - - return nil; -} - -- (NSString *)getJsonFromObj:(id)obj { - NSError *error; - NSData *jsonData = [NSJSONSerialization dataWithJSONObject:obj options:0 error:&error]; - - if (!jsonData) { - NSLog(@"Got an error: %@", error); - return @""; - } else { - NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; - return jsonString; - } -} - -#pragma mark ImpressionData Delegate - -- (void)impressionDataDidSucceed:(ISImpressionData *)impressionData { - UnitySendMessage(IRONSOURCE_EVENTS, "onImpressionSuccess", [self getJsonFromObj:[impressionData all_data]].UTF8String); - -} - -#pragma mark ConsentView Delegate - -- (void)consentViewDidAccept:(NSString *)consentViewType { - UnitySendMessage(IRONSOURCE_EVENTS, "onConsentViewDidAccept", MakeStringCopy(consentViewType)); -} - -- (void)consentViewDidDismiss:(NSString *)consentViewType { - UnitySendMessage(IRONSOURCE_EVENTS, "onConsentViewDidDismiss", MakeStringCopy(consentViewType)); -} - -- (void)consentViewDidFailToLoadWithError:(NSError *)error consentViewType:(NSString *)consentViewType { - NSArray *params; - if (error) - params = @[consentViewType, [self parseErrorToEvent:error]]; - else - params = @[consentViewType, @""]; - - UnitySendMessage(IRONSOURCE_EVENTS, "onConsentViewDidFailToLoadWithError", MakeStringCopy([self getJsonFromObj:params])); -} - -- (void)consentViewDidLoadSuccess:(NSString *)consentViewType { - UnitySendMessage(IRONSOURCE_EVENTS, "onConsentViewDidLoadSuccess", MakeStringCopy(consentViewType)); -} - -- (void)consentViewDidFailToShowWithError:(NSError *)error consentViewType:(NSString *)consentViewType { - NSArray *params; - if (error) - params = @[consentViewType, [self parseErrorToEvent:error]]; - else - params = @[consentViewType, @""]; - - UnitySendMessage(IRONSOURCE_EVENTS, "onConsentViewDidFailToShowWithError", MakeStringCopy([self getJsonFromObj:params])); -} - -- (void)consentViewDidShowSuccess:(NSString *)consentViewType { - UnitySendMessage(IRONSOURCE_EVENTS, "onConsentViewDidShowSuccess", MakeStringCopy(consentViewType)); -} - -#pragma mark ConversionValue API - --(const char *) getConversionValue { - NSNumber *conversionValue = [IronSource getConversionValue]; - char *res = MakeStringCopy([conversionValue stringValue]); - return res; -} - -#pragma mark ILRD API -- (void)setAdRevenueData:(NSString *)dataSource impressionData:(NSData *)impressionData { - [IronSource setAdRevenueDataWithDataSource:dataSource impressionData:impressionData]; -} - -#pragma mark - C Section - -#ifdef __cplusplus -extern "C" { -#endif - - void CFSetPluginData(const char *pluginType, const char *pluginVersion, const char *pluginFrameworkVersion){ - [[iOSBridge start] setPluginDataWithType:GetStringParam(pluginType) pluginVersion:GetStringParam(pluginVersion) pluginFrameworkVersion:GetStringParam(pluginFrameworkVersion)]; - } - - - void CFSetMediationSegment(const char *segment){ - [[iOSBridge start] setMediationSegment:GetStringParam(segment)]; - } - - const char *CFGetAdvertiserId(){ - return [[iOSBridge start] getAdvertiserId]; - } - - void CFValidateIntegration(){ - [[iOSBridge start] validateIntegration]; - } - - void CFShouldTrackNetworkState(bool flag){ - [[iOSBridge start] shouldTrackNetworkState:flag]; - } - - bool CFSetDynamicUserId(char *dynamicUserId){ - return [[iOSBridge start] setDynamicUserId:GetStringParam(dynamicUserId)]; - } - - void CFSetAdaptersDebug(bool enabled){ - [[iOSBridge start] setAdaptersDebug:enabled]; - } - - void CFSetUserId(char *userId){ - return [[iOSBridge start] setUserId:GetStringParam(userId)]; - } - - void CFSetConsent (bool consent) { - [[iOSBridge start] setConsent:consent]; - } - - void CFSetMetaData (char *key, char *value) { - [[iOSBridge start] setMetaDataWithKey:GetStringParam(key) value:GetStringParam(value)]; - } - - void CFSetMetaDataWithValues (char *key,const char *values[]) { - NSMutableArray *valuesArray = [NSMutableArray new]; - if(values != nil ) { - int i = 0; - - while (values[i] != nil) { - [valuesArray addObject: [NSString stringWithCString: values[i] encoding:NSASCIIStringEncoding]]; - i++; - } - - [[iOSBridge start] setMetaDataWithKey:GetStringParam(key) values:valuesArray]; - } - } - -#pragma mark Init SDK - - void CFInit(const char *appKey){ - [[iOSBridge start] initWithAppKey:GetStringParam(appKey)]; - } - - void CFInitWithAdUnits(const char *appKey, const char *adUnits[]){ - NSMutableArray *adUnitsArray = [NSMutableArray new]; - - if(adUnits != nil ) { - int i = 0; - - while (adUnits[i] != nil) { - [adUnitsArray addObject: [NSString stringWithCString: adUnits[i] encoding:NSASCIIStringEncoding]]; - i++; - } - - [[iOSBridge start] initWithAppKey:GetStringParam(appKey) adUnits:adUnitsArray]; - } - } - - void CFInitISDemandOnly(const char *appKey, const char *adUnits[]){ - NSMutableArray *adUnitsArray = [NSMutableArray new]; - - if(adUnits != nil ) { - int i = 0; - - while (adUnits[i] != nil) { - [adUnitsArray addObject: [NSString stringWithCString: adUnits[i] encoding:NSASCIIStringEncoding]]; - i++; - } - [[iOSBridge start] initISDemandOnly:GetStringParam(appKey) adUnits:adUnitsArray]; - } - } - -#pragma mark RewardedVideo API - void CFShowRewardedVideo(){ - [[iOSBridge start] showRewardedVideo]; - } - - void CFShowRewardedVideoWithPlacementName(char *placementName){ - [[iOSBridge start] showRewardedVideoWithPlacement:GetStringParam(placementName)]; - } - - const char *CFGetPlacementInfo(char *placementName){ - return [[iOSBridge start] getPlacementInfo:GetStringParam(placementName)]; - } - - bool CFIsRewardedVideoAvailable(){ - return [[iOSBridge start] isRewardedVideoAvailable]; - } - - bool CFIsRewardedVideoPlacementCapped(char *placementName){ - return [[iOSBridge start] isRewardedVideoPlacementCapped:GetStringParam(placementName)]; - } - - void CFSetRewardedVideoServerParameters(char *jsonString) { - NSData *data = [GetStringParam(jsonString) dataUsingEncoding:NSUTF8StringEncoding]; - if (!data) { - return; - } - - NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil]; - if (dict) { - [[iOSBridge start] setRewardedVideoServerParameters:dict]; - } - } - - void CFClearRewardedVideoServerParameters() { - [[iOSBridge start] clearRewardedVideoServerParameters]; - } - -#pragma mark RewardedVideo DemandOnly API - - void CFShowISDemandOnlyRewardedVideo(char * instanceId){ - [[iOSBridge start] showISDemandOnlyRewardedVideo:GetStringParam(instanceId)]; - } - - void CFLoadISDemandOnlyRewardedVideo(char * instanceId) { - [[iOSBridge start] loadISDemandOnlyRewardedVideo:GetStringParam(instanceId)]; - } - - bool CFIsDemandOnlyRewardedVideoAvailable(char * instanceId) { - return [[iOSBridge start] isDemandOnlyRewardedVideoAvailable:GetStringParam(instanceId)]; - } - -#pragma mark Interstitial API - - void CFLoadInterstitial(){ - [[iOSBridge start] loadInterstitial]; - } - - void CFShowInterstitial(){ - [[iOSBridge start] showInterstitial]; - } - - void CFShowInterstitialWithPlacementName(char *placementName){ - [[iOSBridge start] showInterstitialWithPlacement:GetStringParam(placementName)]; - } - - bool CFIsInterstitialReady(){ - return [[iOSBridge start] isInterstitialReady]; - } - - bool CFIsInterstitialPlacementCapped(char *placementName){ - return [[iOSBridge start] isInterstitialPlacementCapped:GetStringParam(placementName)]; - } - -#pragma mark Interstitial DemandOnly API - - void CFLoadISDemandOnlyInterstitial(char * instanceId) { - [[iOSBridge start] loadISDemandOnlyInterstitial:GetStringParam(instanceId)]; - } - - void CFShowISDemandOnlyInterstitial(char * instanceId) { - [[iOSBridge start] showISDemandOnlyInterstitial:GetStringParam(instanceId)]; - - } - - bool CFIsDemandOnlyInterstitialReady(char * instanceId) { - return [[iOSBridge start] isISDemandOnlyInterstitialReady:GetStringParam(instanceId)]; - } - -#pragma mark Offerwall API - - void CFShowOfferwall(){ - [[iOSBridge start] showOfferwall]; - } - - void CFShowOfferwallWithPlacementName(char *placementName){ - [[iOSBridge start] showOfferwallWithPlacement:GetStringParam(placementName)]; - } - - void CFGetOfferwallCredits(){ - [[iOSBridge start] getOfferwallCredits]; - } - - bool CFIsOfferwallAvailable(){ - return [[iOSBridge start] isOfferwallAvailable]; - } - -#pragma mark Banner API - - void CFLoadBanner(char* description, int width, int height, int position, char* placementName){ - [[iOSBridge start] loadBanner:GetStringParam(description) width:width height:height position:position placement:GetStringParam(placementName)]; - } - - void CFDestroyBanner (){ - [[iOSBridge start] destroyBanner]; - } - - void CFDisplayBanner (){ - [[iOSBridge start] displayBanner]; - } - - void CFHideBanner (){ - [[iOSBridge start] hideBanner]; - } - - bool CFIsBannerPlacementCapped (char *placementName){ - return [[iOSBridge start] isBannerPlacementCapped:GetStringParam(placementName)]; - } - -#pragma mark Segment API - - void CFSetSegment (char* jsonString) { - [[iOSBridge start] setSegment:GetStringParam(jsonString)]; - } - -#pragma mark ConsentView API - - void CFLoadConsentViewWithType (char* consentViewType){ - [[iOSBridge start] loadConsentViewWithType:GetStringParam(consentViewType)]; - } - - void CFShowConsentViewWithType (char* consentViewType){ - [[iOSBridge start] showConsentViewWithType:GetStringParam(consentViewType)]; - } - -#pragma mark ConversionValue API - - const char *CFGetConversionValue(){ - return [[iOSBridge start] getConversionValue]; - } - -#pragma mark ILRD API - void CFSetAdRevenueData(char* datasource,char* impressiondata){ - NSData *data=[GetStringParam(impressiondata)dataUsingEncoding:NSUTF8StringEncoding]; - if (!data) { - return; - } - return [[iOSBridge start] setAdRevenueData:GetStringParam(datasource)impressionData:data]; - } - -#ifdef __cplusplus -} -#endif - -@end - - diff --git a/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.m.meta b/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.m.meta deleted file mode 100644 index a1c73f48..00000000 --- a/popcorn/Assets/IronSource/Plugins/iOS/iOSBridge.m.meta +++ /dev/null @@ -1,37 +0,0 @@ -fileFormatVersion: 2 -guid: 270589a8de1714a00bc20bfd059e4441 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - iPhone: iOS - second: - enabled: 1 - settings: {} - - first: - tvOS: tvOS - second: - enabled: 1 - settings: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts.meta b/popcorn/Assets/IronSource/Scripts.meta deleted file mode 100644 index 5428f14a..00000000 --- a/popcorn/Assets/IronSource/Scripts.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 1bbaa67142d994184844ed2864338043 -folderAsset: yes -timeCreated: 1486985218 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/AndroidAgent.cs b/popcorn/Assets/IronSource/Scripts/AndroidAgent.cs deleted file mode 100644 index f6948319..00000000 --- a/popcorn/Assets/IronSource/Scripts/AndroidAgent.cs +++ /dev/null @@ -1,314 +0,0 @@ -#if UNITY_ANDROID -using UnityEngine; -using System.Collections; -using System.Collections.Generic; -using System; - -public class AndroidAgent : IronSourceIAgent -{ - private static AndroidJavaObject _androidBridge; - private readonly static string AndroidBridge = "com.ironsource.unity.androidbridge.AndroidBridge"; - private const string REWARD_AMOUNT = "reward_amount"; - private const string REWARD_NAME = "reward_name"; - private const string PLACEMENT_NAME = "placement_name"; - - public AndroidAgent () - { - Debug.Log ("AndroidAgent ctr"); - } - -#region IronSourceIAgent implementation - public AndroidJavaObject getBridge () - { - if (_androidBridge == null) - using (var pluginClass = new AndroidJavaClass( AndroidBridge )) - _androidBridge = pluginClass.CallStatic ("getInstance"); - - return _androidBridge; - } - - //******************* Base API *******************// - - public void onApplicationPause (bool pause) - { - if (pause) - { - getBridge ().Call ("onPause"); - } - else - { - getBridge ().Call ("onResume"); - } - } - - public void setMediationSegment (string segment) - { - getBridge ().Call ("setMediationSegment", segment); - } - - public string getAdvertiserId () - { - return getBridge ().Call ("getAdvertiserId"); - } - - public void validateIntegration () - { - getBridge ().Call ("validateIntegration"); - } - - public void shouldTrackNetworkState (bool track) - { - getBridge ().Call ("shouldTrackNetworkState", track); - } - - public bool setDynamicUserId (string dynamicUserId) - { - return getBridge ().Call ("setDynamicUserId", dynamicUserId); - } - - public void setAdaptersDebug(bool enabled) - { - getBridge ().Call ("setAdaptersDebug", enabled); - } - - public void setMetaData(string key, string value) - { - getBridge().Call("setMetaData", key, value); - } - - public void setMetaData(string key, params string[] values) - { - getBridge().Call("setMetaData", key, values); - } - - public int? getConversionValue() - { - Debug.Log("Unsupported Platform"); - return null; - } - - //******************* SDK Init *******************// - - public void setUserId(string userId) { - getBridge ().Call ("setUserId", userId); - } - - public void init(string appKey) - { - getBridge ().Call ("setPluginData", "Unity", IronSource.pluginVersion (), IronSource.unityVersion ()); - Debug.Log ("IntegrationHelper pluginVersion: " + IronSource.pluginVersion ()); - getBridge ().Call ("init", appKey); - } - - public void init (string appKey, params string[] adUnits) - { - getBridge ().Call ("setPluginData", "Unity", IronSource.pluginVersion (), IronSource.unityVersion ()); - Debug.Log ("IntegrationHelper pluginVersion: " + IronSource.pluginVersion ()); - getBridge ().Call ("init", appKey, adUnits); - } - - public void initISDemandOnly (string appKey, params string[] adUnits) - { - getBridge ().Call ("setPluginData", "Unity", IronSource.pluginVersion (), IronSource.unityVersion ()); - Debug.Log ("IntegrationHelper pluginVersion: " + IronSource.pluginVersion ()); - getBridge ().Call ("initISDemandOnly", appKey, adUnits); - } - - //******************* RewardedVideo API *******************// - - public void showRewardedVideo () - { - getBridge ().Call ("showRewardedVideo"); - } - - public void showRewardedVideo (string placementName) - { - getBridge ().Call ("showRewardedVideo", placementName); - } - - public bool isRewardedVideoAvailable () - { - return getBridge ().Call ("isRewardedVideoAvailable"); - } - - public bool isRewardedVideoPlacementCapped (string placementName) - { - return getBridge ().Call ("isRewardedVideoPlacementCapped", placementName); - } - - public IronSourcePlacement getPlacementInfo (string placementName) - { - string placementInfo = getBridge ().Call ("getPlacementInfo", placementName); - IronSourcePlacement pInfo = null; - if (placementInfo != null) { - Dictionary pInfoDic = IronSourceJSON.Json.Deserialize (placementInfo) as Dictionary; - string pName = pInfoDic [PLACEMENT_NAME].ToString (); - string rName = pInfoDic [REWARD_NAME].ToString (); - int rAmount = Convert.ToInt32 (pInfoDic [REWARD_AMOUNT].ToString ()); - - pInfo = new IronSourcePlacement (pName, rName, rAmount); - } - return pInfo; - } - - public void setRewardedVideoServerParams(Dictionary parameters) { - string json = IronSourceJSON.Json.Serialize (parameters); - getBridge ().Call ("setRewardedVideoServerParams", json); - } - - public void clearRewardedVideoServerParams() { - getBridge ().Call ("clearRewardedVideoServerParams"); - } - - //******************* RewardedVideo DemandOnly API *******************// - - public void showISDemandOnlyRewardedVideo (string instanceId) - { - getBridge ().Call ("showISDemandOnlyRewardedVideo",instanceId); - } - - public void loadISDemandOnlyRewardedVideo (string instanceId) - { - getBridge ().Call ("loadISDemandOnlyRewardedVideo", instanceId); - } - - public bool isISDemandOnlyRewardedVideoAvailable (string instanceId) - { - return getBridge ().Call ("isISDemandOnlyRewardedVideoAvailable", instanceId); - } - - //******************* Interstitial API *******************// - - public void loadInterstitial () - { - getBridge ().Call ("loadInterstitial"); - } - - public void showInterstitial () - { - getBridge ().Call ("showInterstitial"); - } - - public void showInterstitial (string placementName) - { - getBridge ().Call ("showInterstitial", placementName); - } - - public bool isInterstitialReady () - { - return getBridge ().Call ("isInterstitialReady"); - } - - public bool isInterstitialPlacementCapped (string placementName) - { - return getBridge ().Call ("isInterstitialPlacementCapped", placementName); - } - - //******************* Interstitial DemandOnly API *******************// - - public void loadISDemandOnlyInterstitial (string instanceId) - { - getBridge ().Call ("loadISDemandOnlyInterstitial",instanceId); - } - - public void showISDemandOnlyInterstitial (string instanceId) - { - getBridge ().Call ("showISDemandOnlyInterstitial",instanceId); - } - - public bool isISDemandOnlyInterstitialReady (string instanceId) - { - return getBridge ().Call ("isISDemandOnlyInterstitialReady",instanceId); - } - - //******************* Offerwall API *******************// - - public void showOfferwall () - { - getBridge ().Call ("showOfferwall"); - } - - public void showOfferwall (string placementName) - { - getBridge ().Call ("showOfferwall", placementName); - } - - public void getOfferwallCredits () - { - getBridge ().Call ("getOfferwallCredits"); - } - - public bool isOfferwallAvailable () - { - return getBridge ().Call ("isOfferwallAvailable"); - } - - //******************* Banner API *******************// - - public void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position) - { - loadBanner(size, position, ""); - } - - public void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position, string placementName) - { - getBridge().Call("loadBanner", size.Description, (int)size.Width, (int)size.Height, (int)position, placementName); - } - - public void destroyBanner() - { - getBridge ().Call ("destroyBanner"); - } - - public void displayBanner() - { - getBridge ().Call ("displayBanner"); - } - - public void hideBanner() - { - getBridge ().Call ("hideBanner"); - } - - public bool isBannerPlacementCapped(string placementName) - { - return getBridge ().Call ("isBannerPlacementCapped", placementName); - } - - public void setSegment(IronSourceSegment segment) - { - Dictionary dict = segment.getSegmentAsDict (); - string json = IronSourceJSON.Json.Serialize (dict); - getBridge ().Call ("setSegment", json); - } - - public void setConsent(bool consent) - { - getBridge().Call("setConsent",consent); - } - - //******************* ConsentView API *******************// - - public void loadConsentViewWithType(string consentViewType) - { - Debug.Log("Unsupported Platform"); - } - - public void showConsentViewWithType(string consentViewType) - { - Debug.Log("Unsupported Platform"); - } - - //******************* ILRD API *******************// - - public void setAdRevenueData(string dataSource, Dictionary impressionData) - { - string json = IronSourceJSON.Json.Serialize(impressionData); - getBridge().Call("setAdRevenueData", dataSource, json); - } - - #endregion -} - -#endif - diff --git a/popcorn/Assets/IronSource/Scripts/AndroidAgent.cs.meta b/popcorn/Assets/IronSource/Scripts/AndroidAgent.cs.meta deleted file mode 100644 index 520e1f5f..00000000 --- a/popcorn/Assets/IronSource/Scripts/AndroidAgent.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 383e513a18bd7449994e83f8f434e950 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSource.cs b/popcorn/Assets/IronSource/Scripts/IronSource.cs deleted file mode 100644 index bb9e3867..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSource.cs +++ /dev/null @@ -1,317 +0,0 @@ -using UnityEngine; -using System.Collections; -using System.Collections.Generic; -using System; - -public class IronSource : IronSourceIAgent -{ - private IronSourceIAgent _platformAgent; - private static IronSource _instance; - private const string UNITY_PLUGIN_VERSION = "7.1.12-r"; - private static bool isUnsupportedPlatform; - - private IronSource() - { - if (!isUnsupportedPlatform) - { -#if UNITY_EDITOR || UNITY_STANDALONE - _platformAgent = new UnsupportedPlatformAgent(); -#elif (UNITY_IPHONE || UNITY_IOS) - _platformAgent = new iOSAgent(); -#elif UNITY_ANDROID - _platformAgent = new AndroidAgent (); -#endif - } - - else - { - _platformAgent = new UnsupportedPlatformAgent(); - } - var type = typeof(IronSourceEvents); - var mgr = new GameObject("IronSourceEvents", type).GetComponent(); // Creates IronSourceEvents gameObject - } - - #region IronSourceIAgent implementation - public static IronSource Agent { - get { - if (_instance == null) { - _instance = new IronSource(); - } - return _instance; - } - } - - public static string pluginVersion() - { - return UNITY_PLUGIN_VERSION; - } - - public static string unityVersion() - { - return Application.unityVersion; - } - - public static void setUnsupportedPlatform() - { - isUnsupportedPlatform = true; - } - - //******************* Base API *******************// - - public void onApplicationPause(bool pause) - { - _platformAgent.onApplicationPause(pause); - } - - public void setMediationSegment(string segment) - { - _platformAgent.setMediationSegment(segment); - } - - public string getAdvertiserId() - { - return _platformAgent.getAdvertiserId(); - } - - public void validateIntegration() - { - _platformAgent.validateIntegration(); - } - - public void shouldTrackNetworkState(bool track) - { - _platformAgent.shouldTrackNetworkState(track); - } - - public bool setDynamicUserId(string dynamicUserId) - { - return _platformAgent.setDynamicUserId(dynamicUserId); - } - - public void setAdaptersDebug(bool enabled) - { - _platformAgent.setAdaptersDebug(enabled); - } - - public void setMetaData(string key, string value) - { - _platformAgent.setMetaData(key, value); - } - - public void setMetaData(string key, params string[] values) - { - _platformAgent.setMetaData(key, values); - } - - public int? getConversionValue() - { - return _platformAgent.getConversionValue(); - } - - //******************* SDK Init *******************// - - public void setUserId (string userId) - { - _platformAgent.setUserId (userId); - } - - public void init (string appKey) - { - _platformAgent.init (appKey); - } - - public void init (string appKey, params string[] adUnits) - { - _platformAgent.init (appKey, adUnits); - } - - public void initISDemandOnly (string appKey, params string[] adUnits) - { - _platformAgent.initISDemandOnly (appKey, adUnits); - } - - //******************* RewardedVideo API *******************// - - public void showRewardedVideo () - { - _platformAgent.showRewardedVideo (); - } - - public void showRewardedVideo (string placementName) - { - _platformAgent.showRewardedVideo (placementName); - } - - public IronSourcePlacement getPlacementInfo (string placementName) - { - return _platformAgent.getPlacementInfo (placementName); - } - - public bool isRewardedVideoAvailable () - { - return _platformAgent.isRewardedVideoAvailable (); - } - - public bool isRewardedVideoPlacementCapped (string placementName) - { - return _platformAgent.isRewardedVideoPlacementCapped (placementName); - } - - public void setRewardedVideoServerParams(Dictionary parameters) - { - _platformAgent.setRewardedVideoServerParams(parameters); - } - - public void clearRewardedVideoServerParams() - { - _platformAgent.clearRewardedVideoServerParams(); - } - - //******************* RewardedVideo DemandOnly API *******************// - - public void showISDemandOnlyRewardedVideo (string instanceId) - { - _platformAgent.showISDemandOnlyRewardedVideo(instanceId); - } - - public void loadISDemandOnlyRewardedVideo (string instanceId) - { - _platformAgent.loadISDemandOnlyRewardedVideo(instanceId); - } - - public bool isISDemandOnlyRewardedVideoAvailable (string instanceId) - { - return _platformAgent.isISDemandOnlyRewardedVideoAvailable(instanceId); - } - - //******************* Interstitial API *******************// - - public void loadInterstitial () - { - _platformAgent.loadInterstitial (); - } - - public void showInterstitial () - { - _platformAgent.showInterstitial (); - } - - public void showInterstitial (string placementName) - { - _platformAgent.showInterstitial (placementName); - } - - public bool isInterstitialReady () - { - return _platformAgent.isInterstitialReady (); - } - - public bool isInterstitialPlacementCapped (string placementName) - { - return _platformAgent.isInterstitialPlacementCapped (placementName); - } - - //******************* Interstitial DemandOnly API *******************// - - public void loadISDemandOnlyInterstitial (string instanceId) - { - _platformAgent.loadISDemandOnlyInterstitial(instanceId); - } - - public void showISDemandOnlyInterstitial (string instanceId) - { - _platformAgent.showISDemandOnlyInterstitial(instanceId); - } - - public bool isISDemandOnlyInterstitialReady (string instanceId) - { - return _platformAgent.isISDemandOnlyInterstitialReady(instanceId); - } - - //******************* Offerwall API *******************// - - public void showOfferwall () - { - _platformAgent.showOfferwall (); - } - - public void showOfferwall (string placementName) - { - _platformAgent.showOfferwall (placementName); - } - - public void getOfferwallCredits () - { - _platformAgent.getOfferwallCredits (); - } - - public bool isOfferwallAvailable () - { - return _platformAgent.isOfferwallAvailable (); - } - - //******************* Banner API *******************// - - public void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position) - { - _platformAgent.loadBanner (size, position); - } - - public void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position, string placementName) - { - _platformAgent.loadBanner (size, position, placementName); - } - - public void destroyBanner() - { - _platformAgent.destroyBanner (); - } - - public void displayBanner() - { - _platformAgent.displayBanner (); - } - - public void hideBanner() - { - _platformAgent.hideBanner (); - } - - - public bool isBannerPlacementCapped(string placementName) - { - return _platformAgent.isBannerPlacementCapped (placementName); - - } - - public void setSegment(IronSourceSegment segment) - { - _platformAgent.setSegment (segment); - } - - public void setConsent(bool consent) - { - _platformAgent.setConsent(consent); - } - - //******************* ConsentView API *******************// - - public void loadConsentViewWithType(string consentViewType) - { - _platformAgent.loadConsentViewWithType(consentViewType); - } - - public void showConsentViewWithType(string consentViewType) - { - _platformAgent.showConsentViewWithType(consentViewType); - } - - //******************* ILRD API *******************// - - public void setAdRevenueData(string dataSource, Dictionary impressionData) - { - _platformAgent.setAdRevenueData( dataSource , impressionData); - } - - #endregion -} diff --git a/popcorn/Assets/IronSource/Scripts/IronSource.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSource.cs.meta deleted file mode 100644 index 0d5f3458..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSource.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6ec69520ef1aa4f74b7695ff3da85a8b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceConfig.cs b/popcorn/Assets/IronSource/Scripts/IronSourceConfig.cs deleted file mode 100644 index a43dc35e..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceConfig.cs +++ /dev/null @@ -1,127 +0,0 @@ -using System.Runtime.InteropServices; -using UnityEngine; -using System.Collections; - -using System.Collections.Generic; - -public class IronSourceConfig -{ - private const string unsupportedPlatformStr = "Unsupported Platform"; - private static IronSourceConfig _instance; - - public static IronSourceConfig Instance { - get { - if (_instance == null) { - _instance = new IronSourceConfig (); - } - return _instance; - } - } - - - #if UNITY_ANDROID && !UNITY_EDITOR - private static AndroidJavaObject _androidBridge; - private readonly static string AndroidBridge = "com.ironsource.unity.androidbridge.AndroidBridge"; - - public IronSourceConfig () - { - using (var pluginClass = new AndroidJavaClass( AndroidBridge )) - _androidBridge = pluginClass.CallStatic ("getInstance"); - } - - //Setters - public void setLanguage (string language) - { - _androidBridge.Call ("setLanguage", language); - } - - public void setClientSideCallbacks (bool status) - { - _androidBridge.Call ("setClientSideCallbacks", status); - } - - public void setRewardedVideoCustomParams (Dictionary rewardedVideoCustomParams) - { - string json = IronSourceJSON.Json.Serialize (rewardedVideoCustomParams); - _androidBridge.Call ("setRewardedVideoCustomParams", json); - } - - public void setOfferwallCustomParams (Dictionary offerwallCustomParams) - { - string json = IronSourceJSON.Json.Serialize (offerwallCustomParams); - _androidBridge.Call ("setOfferwallCustomParams", json); - } - - - #elif (UNITY_IPHONE || UNITY_IOS) && !UNITY_EDITOR - [DllImport("__Internal")] - private static extern void CFSetLanguage (string language); - - [DllImport("__Internal")] - private static extern void CFSetClientSideCallbacks (bool useClientSideCallbacks); - - [DllImport("__Internal")] - private static extern void CFSetRewardedVideoCustomParams (string rewardedVideoCustomParams); - - [DllImport("__Internal")] - private static extern void CFSetOfferwallCustomParams (string offerwallCustomParams); - - - public void setLanguage (string language) - { - CFSetLanguage (language); - } - - public void setClientSideCallbacks (bool status) - { - CFSetClientSideCallbacks (status); - } - - public void setRewardedVideoCustomParams (Dictionary rewardedVideoCustomParams) - { - string json = IronSourceJSON.Json.Serialize (rewardedVideoCustomParams); - CFSetRewardedVideoCustomParams (json); - } - - public void setOfferwallCustomParams (Dictionary offerwallCustomParams) - { - string json = IronSourceJSON.Json.Serialize (offerwallCustomParams); - CFSetOfferwallCustomParams (json); - } - - public IronSourceConfig () - { - - } - - - #else - public void setLanguage (string language) - { - Debug.Log (unsupportedPlatformStr); - } - - public void setClientSideCallbacks (bool status) - { - Debug.Log (unsupportedPlatformStr); - } - - public void setRewardedVideoCustomParams (Dictionary rewardedVideoCustomParams) - { - Debug.Log (unsupportedPlatformStr); - } - - public void setOfferwallCustomParams (Dictionary offerwallCustomParams) - { - Debug.Log (unsupportedPlatformStr); - } - - public IronSourceConfig () - { - Debug.Log (unsupportedPlatformStr); - } - - #endif -} - - diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceConfig.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourceConfig.cs.meta deleted file mode 100644 index 58b3248f..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceConfig.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e25760c5c158c41b4aa31bffb0209769 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceConstants.cs b/popcorn/Assets/IronSource/Scripts/IronSourceConstants.cs deleted file mode 100644 index 287bd086..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceConstants.cs +++ /dev/null @@ -1,35 +0,0 @@ -public static class IronSourceConstants -{ - public const string interstitialBridgeListenerClass = "com.ironsource.unity.androidbridge.UnityInterstitialListener"; - public const string rewardedVideoBridgeListenerClass = "com.ironsource.unity.androidbridge.UnityRewardedVideoListener"; - public const string bridgeClass = "com.ironsource.unity.androidbridge.AndroidBridge"; - public const string offerwallBridgeListenerClass = "com.ironsource.unity.androidbridge.UnityOfferwallListener"; - public const string bannerBridgeListenerClass = "com.ironsource.unity.androidbridge.UnityBannerListener"; - public const string segmentBridgeListenerClass = "com.ironsource.unity.androidbridge.UnitySegmentListener"; - public const string ERROR_CODE = "error_code"; - public const string ERROR_DESCRIPTION = "error_description"; - public const string INSTANCE_ID_KEY = "instanceId"; - public const string PLACEMENT_KEY = "placement"; - public const string IMPRESSION_DATA_KEY_AUCTION_ID = "auctionId"; - public const string IMPRESSION_DATA_KEY_AD_UNIT = "adUnit"; - public const string IMPRESSION_DATA_KEY_COUNTRY = "country"; - public const string IMPRESSION_DATA_KEY_ABTEST = "ab"; - public const string IMPRESSION_DATA_KEY_SEGMENT_NAME = "segmentName"; - public const string IMPRESSION_DATA_KEY_PLACEMENT = "placement"; - public const string IMPRESSION_DATA_KEY_AD_NETWORK = "adNetwork"; - public const string IMPRESSION_DATA_KEY_INSTANCE_NAME = "instanceName"; - public const string IMPRESSION_DATA_KEY_INSTANCE_ID = "instanceId"; - public const string IMPRESSION_DATA_KEY_REVENUE = "revenue"; - public const string IMPRESSION_DATA_KEY_PRECISION = "precision"; - public const string IMPRESSION_DATA_KEY_LIFETIME_REVENUE = "lifetimeRevenue"; - public const string IMPRESSION_DATA_KEY_ENCRYPTED_CPM = "encryptedCPM"; - public const string IMPRESSION_DATA_KEY_CONVERSION_VALUE= "conversionValue"; - public const string GENDER_MALE = "male"; - public const string GENDER_FEMALE = "female"; - public const string GENDER_UNKNOWN = "unknown"; - - public const string IRONSOURCE_MEDIATION_SETTING_NAME = "IronSourceMediationSettings"; - public const string IRONSOURCE_MEDIATED_NETWORK_SETTING_NAME = "IronSourceMediatedNetworkSettings"; - public const string IRONSOURCE_RESOURCES_PATH = "Assets/IronSource/Resources"; - public const string IRONSOURCE_SKAN_ID_KEY = "su67r6k2v3.skadnetwork"; -} \ No newline at end of file diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceConstants.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourceConstants.cs.meta deleted file mode 100644 index 807a305e..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceConstants.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 86d04d1d517d942e79c31e208285c06a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceError.cs b/popcorn/Assets/IronSource/Scripts/IronSourceError.cs deleted file mode 100644 index 10bf9c32..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceError.cs +++ /dev/null @@ -1,35 +0,0 @@ - -using System; - -public class IronSourceError -{ - private string description; - private int code; - - public int getErrorCode () - { - return code; - } - - public string getDescription () - { - return description; - } - - public int getCode () - { - return code; - } - - public IronSourceError (int errorCode, string errorDescription) - { - code = errorCode; - description = errorDescription; - } - - public override string ToString () - { - return code + " : " + description; - } -} - diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceError.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourceError.cs.meta deleted file mode 100644 index 1b3d1db6..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceError.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: c3eeee77c4aea4a979d85dcb1630fbe4 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceEvents.cs b/popcorn/Assets/IronSource/Scripts/IronSourceEvents.cs deleted file mode 100644 index 0144a3c9..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceEvents.cs +++ /dev/null @@ -1,1246 +0,0 @@ - using UnityEngine; - using System; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - using System.Globalization; - - public class IronSourceEvents : MonoBehaviour - { - private const string ERROR_CODE = "error_code"; - private const string ERROR_DESCRIPTION = "error_description"; - private const string INSTANCE_ID_KEY = "instanceId"; - private const string PLACEMENT_KEY = "placement"; - - void Awake () - { - gameObject.name = "IronSourceEvents"; //Change the GameObject name to IronSourceEvents. - DontDestroyOnLoad (gameObject); //Makes the object not be destroyed automatically when loading a new scene. - } - - // ******************************* Rewarded Video Events ******************************* - private static event Action _onRewardedVideoAdShowFailedEvent; - - public static event Action onRewardedVideoAdShowFailedEvent { - add { - if (_onRewardedVideoAdShowFailedEvent == null || !_onRewardedVideoAdShowFailedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdShowFailedEvent += value; - } - } - - remove { - if (_onRewardedVideoAdShowFailedEvent != null || _onRewardedVideoAdShowFailedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdShowFailedEvent -= value; - } - } - } - - public void onRewardedVideoAdShowFailed (string description) - { - if (_onRewardedVideoAdShowFailedEvent != null) { - IronSourceError sse = getErrorFromErrorObject (description); - _onRewardedVideoAdShowFailedEvent (sse); - } - } - - private static event Action _onRewardedVideoAdOpenedEvent; - - public static event Action onRewardedVideoAdOpenedEvent { - add { - if (_onRewardedVideoAdOpenedEvent == null || !_onRewardedVideoAdOpenedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdOpenedEvent += value; - } - } - - remove { - if (_onRewardedVideoAdOpenedEvent != null || _onRewardedVideoAdOpenedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdOpenedEvent -= value; - } - } - } - - public void onRewardedVideoAdOpened (string empty) - { - if (_onRewardedVideoAdOpenedEvent != null) { - _onRewardedVideoAdOpenedEvent (); - } - } - - private static event Action _onRewardedVideoAdClosedEvent; - - public static event Action onRewardedVideoAdClosedEvent { - add { - if (_onRewardedVideoAdClosedEvent == null || !_onRewardedVideoAdClosedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdClosedEvent += value; - } - } - - remove { - if (_onRewardedVideoAdClosedEvent != null || _onRewardedVideoAdClosedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdClosedEvent -= value; - } - } - } - - public void onRewardedVideoAdClosed (string empty) - { - if (_onRewardedVideoAdClosedEvent != null) { - _onRewardedVideoAdClosedEvent (); - } - } - - private static event Action _onRewardedVideoAdStartedEvent; - - public static event Action onRewardedVideoAdStartedEvent { - add { - if (_onRewardedVideoAdStartedEvent == null || !_onRewardedVideoAdStartedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdStartedEvent += value; - } - } - - remove { - if (_onRewardedVideoAdStartedEvent != null || _onRewardedVideoAdStartedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdStartedEvent -= value; - } - } - } - - public void onRewardedVideoAdStarted (string empty) - { - if (_onRewardedVideoAdStartedEvent != null) { - _onRewardedVideoAdStartedEvent (); - } - } - - private static event Action _onRewardedVideoAdEndedEvent; - - public static event Action onRewardedVideoAdEndedEvent { - add { - if (_onRewardedVideoAdEndedEvent == null || !_onRewardedVideoAdEndedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdEndedEvent += value; - } - } - - remove { - if (_onRewardedVideoAdEndedEvent != null || _onRewardedVideoAdEndedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdEndedEvent -= value; - } - } - } - - public void onRewardedVideoAdEnded (string empty) - { - if (_onRewardedVideoAdEndedEvent != null) { - _onRewardedVideoAdEndedEvent (); - } - } - - private static event Action _onRewardedVideoAdRewardedEvent; - - public static event Action onRewardedVideoAdRewardedEvent { - add { - if (_onRewardedVideoAdRewardedEvent == null || !_onRewardedVideoAdRewardedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdRewardedEvent += value; - } - } - - remove { - if (_onRewardedVideoAdRewardedEvent != null || _onRewardedVideoAdRewardedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdRewardedEvent -= value; - } - } - } - - public void onRewardedVideoAdRewarded (string description) - { - if (_onRewardedVideoAdRewardedEvent != null) { - IronSourcePlacement ssp = getPlacementFromObject (description); - _onRewardedVideoAdRewardedEvent (ssp); - } - } - - private static event Action _onRewardedVideoAdClickedEvent; - - public static event Action onRewardedVideoAdClickedEvent { - add { - if (_onRewardedVideoAdClickedEvent == null || !_onRewardedVideoAdClickedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdClickedEvent += value; - } - } - - remove { - if (_onRewardedVideoAdClickedEvent != null || _onRewardedVideoAdClickedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdClickedEvent -= value; - } - } - } - - public void onRewardedVideoAdClicked (string description) - { - if (_onRewardedVideoAdClickedEvent != null) { - IronSourcePlacement ssp = getPlacementFromObject (description); - _onRewardedVideoAdClickedEvent (ssp); - } - } - - private static event Action _onRewardedVideoAvailabilityChangedEvent; - - public static event Action onRewardedVideoAvailabilityChangedEvent { - add { - if (_onRewardedVideoAvailabilityChangedEvent == null || !_onRewardedVideoAvailabilityChangedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAvailabilityChangedEvent += value; - } - } - - remove { - if (_onRewardedVideoAvailabilityChangedEvent != null || _onRewardedVideoAvailabilityChangedEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAvailabilityChangedEvent -= value; - } - } - } - - public void onRewardedVideoAvailabilityChanged (string stringAvailable) - { - bool isAvailable = (stringAvailable == "true") ? true : false; - if (_onRewardedVideoAvailabilityChangedEvent != null) - _onRewardedVideoAvailabilityChangedEvent (isAvailable); - } - - // ******************************* RewardedVideo DemandOnly Events ******************************* - - private static event Action _onRewardedVideoAdLoadedDemandOnlyEvent; - - public static event Action onRewardedVideoAdLoadedDemandOnlyEvent { - add { - if (_onRewardedVideoAdLoadedDemandOnlyEvent == null || !_onRewardedVideoAdLoadedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdLoadedDemandOnlyEvent += value; - } - } - - remove { - if (_onRewardedVideoAdLoadedDemandOnlyEvent != null || _onRewardedVideoAdLoadedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdLoadedDemandOnlyEvent -= value; - } - } - } - - public void onRewardedVideoAdLoadedDemandOnly (string instanceId) - { - if (_onRewardedVideoAdLoadedDemandOnlyEvent != null ) { - _onRewardedVideoAdLoadedDemandOnlyEvent (instanceId); - } - } - - private static event Action _onRewardedVideoAdLoadFailedDemandOnlyEvent; - - public static event Action onRewardedVideoAdLoadFailedDemandOnlyEvent { - add { - if (_onRewardedVideoAdLoadFailedDemandOnlyEvent == null || !_onRewardedVideoAdLoadFailedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdLoadFailedDemandOnlyEvent += value; - } - } - - remove { - if (_onRewardedVideoAdLoadFailedDemandOnlyEvent != null || _onRewardedVideoAdLoadFailedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdLoadFailedDemandOnlyEvent -= value; - } - } - } - - public void onRewardedVideoAdLoadFailedDemandOnly (string args) - { - if (_onRewardedVideoAdLoadFailedDemandOnlyEvent != null && !String.IsNullOrEmpty(args)) { - List argList = IronSourceJSON.Json.Deserialize (args) as List; - IronSourceError err = getErrorFromErrorObject(argList[1]); - string instanceId = argList[0].ToString(); - _onRewardedVideoAdLoadFailedDemandOnlyEvent (instanceId, err); - } - } - - private static event Action _onRewardedVideoAdOpenedDemandOnlyEvent; - - public static event Action onRewardedVideoAdOpenedDemandOnlyEvent { - add { - if (_onRewardedVideoAdOpenedDemandOnlyEvent == null || !_onRewardedVideoAdOpenedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdOpenedDemandOnlyEvent += value; - } - } - - remove { - if (_onRewardedVideoAdOpenedDemandOnlyEvent != null || _onRewardedVideoAdOpenedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdOpenedDemandOnlyEvent -= value; - } - } - } - - public void onRewardedVideoAdOpenedDemandOnly (string instanceId) - { - if (_onRewardedVideoAdOpenedDemandOnlyEvent != null) { - _onRewardedVideoAdOpenedDemandOnlyEvent (instanceId); - } - } - - private static event Action _onRewardedVideoAdClosedDemandOnlyEvent; - - public static event Action onRewardedVideoAdClosedDemandOnlyEvent { - add { - if (_onRewardedVideoAdClosedDemandOnlyEvent == null || !_onRewardedVideoAdClosedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdClosedDemandOnlyEvent += value; - } - } - - remove { - if (_onRewardedVideoAdClosedDemandOnlyEvent != null || _onRewardedVideoAdClosedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdClosedDemandOnlyEvent -= value; - } - } - } - - public void onRewardedVideoAdClosedDemandOnly (string instanceId) - { - if (_onRewardedVideoAdClosedDemandOnlyEvent != null) { - _onRewardedVideoAdClosedDemandOnlyEvent (instanceId); - } - } - - private static event Action _onRewardedVideoAdRewardedDemandOnlyEvent; - - public static event Action onRewardedVideoAdRewardedDemandOnlyEvent { - add { - if (_onRewardedVideoAdRewardedDemandOnlyEvent == null || !_onRewardedVideoAdRewardedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdRewardedDemandOnlyEvent += value; - } - } - - remove { - if (_onRewardedVideoAdRewardedDemandOnlyEvent != null || _onRewardedVideoAdRewardedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdRewardedDemandOnlyEvent -= value; - } - } - } - - public void onRewardedVideoAdRewardedDemandOnly (string instanceId) - { - if (_onRewardedVideoAdRewardedDemandOnlyEvent != null) { - _onRewardedVideoAdRewardedDemandOnlyEvent (instanceId); - } - } - - private static event Action _onRewardedVideoAdShowFailedDemandOnlyEvent; - - public static event Action onRewardedVideoAdShowFailedDemandOnlyEvent { - add { - if (_onRewardedVideoAdShowFailedDemandOnlyEvent == null || !_onRewardedVideoAdShowFailedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdShowFailedDemandOnlyEvent += value; - } - } - - remove { - if (_onRewardedVideoAdShowFailedDemandOnlyEvent != null || _onRewardedVideoAdShowFailedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdShowFailedDemandOnlyEvent -= value; - } - } - } - - public void onRewardedVideoAdShowFailedDemandOnly (string args) - { - if (_onRewardedVideoAdShowFailedDemandOnlyEvent != null && !String.IsNullOrEmpty(args)) { - List argList = IronSourceJSON.Json.Deserialize (args) as List; - IronSourceError err = getErrorFromErrorObject(argList[1]); - string instanceId = argList[0].ToString(); - _onRewardedVideoAdShowFailedDemandOnlyEvent (instanceId, err); - } - } - - private static event Action _onRewardedVideoAdClickedDemandOnlyEvent; - - public static event Action onRewardedVideoAdClickedDemandOnlyEvent { - add { - if (_onRewardedVideoAdClickedDemandOnlyEvent == null || !_onRewardedVideoAdClickedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdClickedDemandOnlyEvent += value; - } - } - - remove { - if (_onRewardedVideoAdClickedDemandOnlyEvent != null || _onRewardedVideoAdClickedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onRewardedVideoAdClickedDemandOnlyEvent -= value; - } - } - } - - public void onRewardedVideoAdClickedDemandOnly (string instanceId) - { - if (_onRewardedVideoAdClickedDemandOnlyEvent != null) { - _onRewardedVideoAdClickedDemandOnlyEvent (instanceId); - } - } - - // ******************************* Interstitial Events ******************************* - - private static event Action _onInterstitialAdReadyEvent; - - public static event Action onInterstitialAdReadyEvent { - add { - if (_onInterstitialAdReadyEvent == null || !_onInterstitialAdReadyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdReadyEvent += value; - } - } - - remove { - if (_onInterstitialAdReadyEvent != null || _onInterstitialAdReadyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdReadyEvent -= value; - } - } - } - - public void onInterstitialAdReady () - { - if (_onInterstitialAdReadyEvent != null) - _onInterstitialAdReadyEvent (); - } - - private static event Action _onInterstitialAdLoadFailedEvent; - - public static event Action onInterstitialAdLoadFailedEvent { - add { - if (_onInterstitialAdLoadFailedEvent == null || !_onInterstitialAdLoadFailedEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdLoadFailedEvent += value; - } - } - - remove { - if (_onInterstitialAdLoadFailedEvent != null || _onInterstitialAdLoadFailedEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdLoadFailedEvent -= value; - } - } - } - - public void onInterstitialAdLoadFailed (string description) - { - if (_onInterstitialAdLoadFailedEvent != null) { - IronSourceError sse = getErrorFromErrorObject (description); - _onInterstitialAdLoadFailedEvent (sse); - } - } - - private static event Action _onInterstitialAdOpenedEvent; - - public static event Action onInterstitialAdOpenedEvent { - add { - if (_onInterstitialAdOpenedEvent == null || !_onInterstitialAdOpenedEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdOpenedEvent += value; - } - } - - remove { - if (_onInterstitialAdOpenedEvent != null || _onInterstitialAdOpenedEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdOpenedEvent -= value; - } - } - } - - public void onInterstitialAdOpened (string empty) - { - if (_onInterstitialAdOpenedEvent != null) { - _onInterstitialAdOpenedEvent (); - } - } - - private static event Action _onInterstitialAdClosedEvent; - - public static event Action onInterstitialAdClosedEvent { - add { - if (_onInterstitialAdClosedEvent == null || !_onInterstitialAdClosedEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdClosedEvent += value; - } - } - - remove { - if (_onInterstitialAdClosedEvent != null || _onInterstitialAdClosedEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdClosedEvent -= value; - } - } - } - - public void onInterstitialAdClosed (string empty) - { - if (_onInterstitialAdClosedEvent != null) { - _onInterstitialAdClosedEvent (); - } - } - - private static event Action _onInterstitialAdShowSucceededEvent; - - public static event Action onInterstitialAdShowSucceededEvent { - add { - if (_onInterstitialAdShowSucceededEvent == null || !_onInterstitialAdShowSucceededEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdShowSucceededEvent += value; - } - } - - remove { - if (_onInterstitialAdShowSucceededEvent != null || _onInterstitialAdShowSucceededEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdShowSucceededEvent -= value; - } - } - } - - public void onInterstitialAdShowSucceeded (string empty) - { - if (_onInterstitialAdShowSucceededEvent != null) { - _onInterstitialAdShowSucceededEvent (); - } - } - - private static event Action _onInterstitialAdShowFailedEvent; - - public static event Action onInterstitialAdShowFailedEvent { - add { - if (_onInterstitialAdShowFailedEvent == null || !_onInterstitialAdShowFailedEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdShowFailedEvent += value; - } - } - - remove { - if (_onInterstitialAdShowFailedEvent != null || _onInterstitialAdShowFailedEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdShowFailedEvent -= value; - } - } - } - - public void onInterstitialAdShowFailed (string description) - { - if (_onInterstitialAdShowFailedEvent != null) { - IronSourceError sse = getErrorFromErrorObject (description); - _onInterstitialAdShowFailedEvent (sse); - } - } - - private static event Action _onInterstitialAdClickedEvent; - - public static event Action onInterstitialAdClickedEvent { - add { - if (_onInterstitialAdClickedEvent == null || !_onInterstitialAdClickedEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdClickedEvent += value; - } - } - - remove { - if (_onInterstitialAdClickedEvent != null || _onInterstitialAdClickedEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdClickedEvent -= value; - } - } - } - - public void onInterstitialAdClicked (string empty) - { - if (_onInterstitialAdClickedEvent != null) { - _onInterstitialAdClickedEvent (); - } - } - - // ******************************* Interstitial DemanOnly Events ******************************* - - private static event Action _onInterstitialAdReadyDemandOnlyEvent; - - public static event Action onInterstitialAdReadyDemandOnlyEvent { - add { - if (_onInterstitialAdReadyDemandOnlyEvent == null || !_onInterstitialAdReadyDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdReadyDemandOnlyEvent += value; - } - } - - remove { - if (_onInterstitialAdReadyDemandOnlyEvent != null || _onInterstitialAdReadyDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdReadyDemandOnlyEvent -= value; - } - } - } - - public void onInterstitialAdReadyDemandOnly (string instanceId) - { - if (_onInterstitialAdReadyDemandOnlyEvent != null) - _onInterstitialAdReadyDemandOnlyEvent (instanceId); - } - - - private static event Action _onInterstitialAdLoadFailedDemandOnlyEvent; - - public static event Action onInterstitialAdLoadFailedDemandOnlyEvent { - add { - if (_onInterstitialAdLoadFailedDemandOnlyEvent == null || !_onInterstitialAdLoadFailedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdLoadFailedDemandOnlyEvent += value; - } - } - - remove { - if (_onInterstitialAdLoadFailedDemandOnlyEvent != null || _onInterstitialAdLoadFailedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdLoadFailedDemandOnlyEvent -= value; - } - } - } - - public void onInterstitialAdLoadFailedDemandOnly (string args) - { - if (_onInterstitialAdLoadFailedDemandOnlyEvent != null && !String.IsNullOrEmpty(args)) { - List argList = IronSourceJSON.Json.Deserialize (args) as List; - IronSourceError err = getErrorFromErrorObject(argList[1]); - string instanceId = argList[0].ToString(); - _onInterstitialAdLoadFailedDemandOnlyEvent (instanceId, err); - } - } - - private static event Action _onInterstitialAdOpenedDemandOnlyEvent; - - public static event Action onInterstitialAdOpenedDemandOnlyEvent { - add { - if (_onInterstitialAdOpenedDemandOnlyEvent == null || !_onInterstitialAdOpenedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdOpenedDemandOnlyEvent += value; - } - } - - remove { - if (_onInterstitialAdOpenedDemandOnlyEvent != null || _onInterstitialAdOpenedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdOpenedDemandOnlyEvent -= value; - } - } - } - - public void onInterstitialAdOpenedDemandOnly (string instanceId) - { - if (_onInterstitialAdOpenedDemandOnlyEvent != null) { - _onInterstitialAdOpenedDemandOnlyEvent (instanceId); - } - } - - private static event Action _onInterstitialAdClosedDemandOnlyEvent; - - public static event Action onInterstitialAdClosedDemandOnlyEvent { - add { - if (_onInterstitialAdClosedDemandOnlyEvent == null || !_onInterstitialAdClosedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdClosedDemandOnlyEvent += value; - } - } - - remove { - if (_onInterstitialAdClosedDemandOnlyEvent != null || _onInterstitialAdClosedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdClosedDemandOnlyEvent -= value; - } - } - } - - public void onInterstitialAdClosedDemandOnly (string instanceId) - { - if (_onInterstitialAdClosedDemandOnlyEvent != null) { - _onInterstitialAdClosedDemandOnlyEvent (instanceId); - } - } - - private static event Action _onInterstitialAdShowFailedDemandOnlyEvent; - - public static event Action onInterstitialAdShowFailedDemandOnlyEvent { - add { - if (_onInterstitialAdShowFailedDemandOnlyEvent == null || !_onInterstitialAdShowFailedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdShowFailedDemandOnlyEvent += value; - } - } - - remove { - if (_onInterstitialAdShowFailedDemandOnlyEvent != null || _onInterstitialAdShowFailedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdShowFailedDemandOnlyEvent -= value; - } - } - } - - public void onInterstitialAdShowFailedDemandOnly (string args) - { - if (_onInterstitialAdLoadFailedDemandOnlyEvent != null && !String.IsNullOrEmpty (args)) { - List argList = IronSourceJSON.Json.Deserialize (args) as List; - IronSourceError sse = getErrorFromErrorObject(argList[1]); - string instanceId = argList[0].ToString(); - _onInterstitialAdShowFailedDemandOnlyEvent (instanceId, sse); - } - } - - private static event Action _onInterstitialAdClickedDemandOnlyEvent; - - public static event Action onInterstitialAdClickedDemandOnlyEvent { - add { - if (_onInterstitialAdClickedDemandOnlyEvent == null || !_onInterstitialAdClickedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdClickedDemandOnlyEvent += value; - } - } - - remove { - if (_onInterstitialAdClickedDemandOnlyEvent != null || _onInterstitialAdClickedDemandOnlyEvent.GetInvocationList ().Contains (value)) { - _onInterstitialAdClickedDemandOnlyEvent -= value; - } - } - } - - public void onInterstitialAdClickedDemandOnly (string instanceId) - { - if (_onInterstitialAdClickedDemandOnlyEvent != null) { - _onInterstitialAdClickedDemandOnlyEvent (instanceId); - } - } - - // ******************************* Offerwall Events ******************************* - - private static event Action _onOfferwallOpenedEvent; - - public static event Action onOfferwallOpenedEvent { - add { - if (_onOfferwallOpenedEvent == null || !_onOfferwallOpenedEvent.GetInvocationList ().Contains (value)) { - _onOfferwallOpenedEvent += value; - } - } - - remove { - if (_onOfferwallOpenedEvent != null || _onOfferwallOpenedEvent.GetInvocationList ().Contains (value)) { - _onOfferwallOpenedEvent -= value; - } - } - } - - public void onOfferwallOpened (string empty) - { - if (_onOfferwallOpenedEvent != null) { - _onOfferwallOpenedEvent (); - } - } - - private static event Action _onOfferwallShowFailedEvent; - - public static event Action onOfferwallShowFailedEvent { - add { - if (_onOfferwallShowFailedEvent == null || !_onOfferwallShowFailedEvent.GetInvocationList ().Contains (value)) { - _onOfferwallShowFailedEvent += value; - } - } - - remove { - if (_onOfferwallShowFailedEvent != null || _onOfferwallShowFailedEvent.GetInvocationList ().Contains (value)) { - _onOfferwallShowFailedEvent -= value; - } - } - } - - public void onOfferwallShowFailed (string description) - { - if (_onOfferwallShowFailedEvent != null) { - IronSourceError sse = getErrorFromErrorObject (description); - _onOfferwallShowFailedEvent (sse); - } - } - - private static event Action _onOfferwallClosedEvent; - - public static event Action onOfferwallClosedEvent { - add { - if (_onOfferwallClosedEvent == null || !_onOfferwallClosedEvent.GetInvocationList ().Contains (value)) { - _onOfferwallClosedEvent += value; - } - } - - remove { - if (_onOfferwallClosedEvent != null || _onOfferwallClosedEvent.GetInvocationList ().Contains (value)) { - _onOfferwallClosedEvent -= value; - } - } - } - - public void onOfferwallClosed (string empty) - { - if (_onOfferwallClosedEvent != null) { - _onOfferwallClosedEvent (); - } - } - - private static event Action _onGetOfferwallCreditsFailedEvent; - - public static event Action onGetOfferwallCreditsFailedEvent { - add { - if (_onGetOfferwallCreditsFailedEvent == null || !_onGetOfferwallCreditsFailedEvent.GetInvocationList ().Contains (value)) { - _onGetOfferwallCreditsFailedEvent += value; - } - } - - remove { - if (_onGetOfferwallCreditsFailedEvent != null || _onGetOfferwallCreditsFailedEvent.GetInvocationList ().Contains (value)) { - _onGetOfferwallCreditsFailedEvent -= value; - } - } - } - - public void onGetOfferwallCreditsFailed (string description) - { - if (_onGetOfferwallCreditsFailedEvent != null) { - IronSourceError sse = getErrorFromErrorObject (description); - _onGetOfferwallCreditsFailedEvent (sse); - - } - } - - private static event Action> _onOfferwallAdCreditedEvent; - - public static event Action> onOfferwallAdCreditedEvent { - add { - if (_onOfferwallAdCreditedEvent == null || !_onOfferwallAdCreditedEvent.GetInvocationList ().Contains (value)) { - _onOfferwallAdCreditedEvent += value; - } - } - - remove { - if (_onOfferwallAdCreditedEvent != null || _onOfferwallAdCreditedEvent.GetInvocationList ().Contains (value)) { - _onOfferwallAdCreditedEvent -= value; - } - } - } - - public void onOfferwallAdCredited (string json) - { - if (_onOfferwallAdCreditedEvent != null) - _onOfferwallAdCreditedEvent (IronSourceJSON.Json.Deserialize (json) as Dictionary); - } - - private static event Action _onOfferwallAvailableEvent; - - public static event Action onOfferwallAvailableEvent { - add { - if (_onOfferwallAvailableEvent == null || !_onOfferwallAvailableEvent.GetInvocationList ().Contains (value)) { - _onOfferwallAvailableEvent += value; - } - } - - remove { - if (_onOfferwallAvailableEvent != null || _onOfferwallAvailableEvent.GetInvocationList ().Contains (value)) { - _onOfferwallAvailableEvent -= value; - } - } - } - - public void onOfferwallAvailable (string stringAvailable) - { - bool isAvailable = (stringAvailable == "true") ? true : false; - if (_onOfferwallAvailableEvent != null) - _onOfferwallAvailableEvent (isAvailable); - } - - // ******************************* Banner Events ******************************* - private static event Action _onBannerAdLoadedEvent; - - public static event Action onBannerAdLoadedEvent { - add { - if (_onBannerAdLoadedEvent == null || !_onBannerAdLoadedEvent.GetInvocationList ().Contains (value)) { - _onBannerAdLoadedEvent += value; - } - } - - remove { - if (_onBannerAdLoadedEvent != null || _onBannerAdLoadedEvent.GetInvocationList ().Contains (value)) { - _onBannerAdLoadedEvent -= value; - } - } - } - - public void onBannerAdLoaded () - { - if (_onBannerAdLoadedEvent != null) - _onBannerAdLoadedEvent (); - } - - private static event Action _onBannerAdLoadFailedEvent; - - public static event Action onBannerAdLoadFailedEvent { - add { - if (_onBannerAdLoadFailedEvent == null || !_onBannerAdLoadFailedEvent.GetInvocationList ().Contains (value)) { - _onBannerAdLoadFailedEvent += value; - } - } - - remove { - if (_onBannerAdLoadFailedEvent != null || _onBannerAdLoadFailedEvent.GetInvocationList ().Contains (value)) { - _onBannerAdLoadFailedEvent -= value; - } - } - } - - public void onBannerAdLoadFailed (string description) - { - if (_onBannerAdLoadFailedEvent != null) { - IronSourceError sse = getErrorFromErrorObject (description); - _onBannerAdLoadFailedEvent (sse); - } - - } - - private static event Action _onBannerAdClickedEvent; - - public static event Action onBannerAdClickedEvent { - add { - if (_onBannerAdClickedEvent == null || !_onBannerAdClickedEvent.GetInvocationList ().Contains (value)) { - _onBannerAdClickedEvent += value; - } - } - - remove { - if (_onBannerAdClickedEvent != null || _onBannerAdClickedEvent.GetInvocationList ().Contains (value)) { - _onBannerAdClickedEvent -= value; - } - } - } - - public void onBannerAdClicked () - { - if (_onBannerAdClickedEvent != null) - _onBannerAdClickedEvent (); - } - - private static event Action _onBannerAdScreenPresentedEvent; - - public static event Action onBannerAdScreenPresentedEvent { - add { - if (_onBannerAdScreenPresentedEvent == null || !_onBannerAdScreenPresentedEvent.GetInvocationList ().Contains (value)) { - _onBannerAdScreenPresentedEvent += value; - } - } - - remove { - if (_onBannerAdScreenPresentedEvent != null || _onBannerAdScreenPresentedEvent.GetInvocationList ().Contains (value)) { - _onBannerAdScreenPresentedEvent -= value; - } - } - } - - public void onBannerAdScreenPresented () - { - if (_onBannerAdScreenPresentedEvent != null) - _onBannerAdScreenPresentedEvent (); - } - - private static event Action _onBannerAdScreenDismissedEvent; - - public static event Action onBannerAdScreenDismissedEvent { - add { - if (_onBannerAdScreenDismissedEvent == null || !_onBannerAdScreenDismissedEvent.GetInvocationList ().Contains (value)) { - _onBannerAdScreenDismissedEvent += value; - } - } - - remove { - if (_onBannerAdScreenDismissedEvent != null || _onBannerAdScreenDismissedEvent.GetInvocationList ().Contains (value)) { - _onBannerAdScreenDismissedEvent -= value; - } - } - } - - public void onBannerAdScreenDismissed () - { - if (_onBannerAdScreenDismissedEvent != null) - _onBannerAdScreenDismissedEvent (); - } - - private static event Action _onBannerAdLeftApplicationEvent; - - public static event Action onBannerAdLeftApplicationEvent { - add { - if (_onBannerAdLeftApplicationEvent == null || !_onBannerAdLeftApplicationEvent.GetInvocationList ().Contains (value)) { - _onBannerAdLeftApplicationEvent += value; - } - } - - remove { - if (_onBannerAdLeftApplicationEvent != null || _onBannerAdLeftApplicationEvent.GetInvocationList ().Contains (value)) { - _onBannerAdLeftApplicationEvent -= value; - } - } - } - - public void onBannerAdLeftApplication () - { - if (_onBannerAdLeftApplicationEvent != null) - _onBannerAdLeftApplicationEvent (); - } - - private static event Action _onSegmentReceivedEvent; - public static event Action onSegmentReceivedEvent { - add { - if (_onSegmentReceivedEvent == null || !_onSegmentReceivedEvent.GetInvocationList ().Contains (value)) { - _onSegmentReceivedEvent += value; - } - } - - remove { - if (_onSegmentReceivedEvent != null || _onSegmentReceivedEvent.GetInvocationList ().Contains (value)) { - _onSegmentReceivedEvent -= value; - } - } - } - - public void onSegmentReceived (string segmentName) - { - if (_onSegmentReceivedEvent != null) - _onSegmentReceivedEvent (segmentName); - } - - // ******************************* ImpressionData Callbacks ******************************* - - private static event Action _onImpressionSuccessEvent; - - public static event Action onImpressionSuccessEvent - { - add - { - if (_onImpressionSuccessEvent == null || !_onImpressionSuccessEvent.GetInvocationList().Contains(value)) - { - _onImpressionSuccessEvent += value; - } - } - - remove - { - if (_onImpressionSuccessEvent != null || _onImpressionSuccessEvent.GetInvocationList().Contains(value)) - { - _onImpressionSuccessEvent -= value; - } - } - } - - public void onImpressionSuccess(string args) - { - if (_onImpressionSuccessEvent != null) - { - IronSourceImpressionData impressionData = new IronSourceImpressionData(args); - _onImpressionSuccessEvent(impressionData); - } - - } - - // ******************************* ConsentView Callbacks ******************************* - - //iOS callbacks only - in order to prevent using macro for iOS it's not only iOS - private static event Action _onConsentViewDidFailToLoadWithErrorEvent; - - public static event Action onConsentViewDidFailToLoadWithErrorEvent - { - add - { - if (_onConsentViewDidFailToLoadWithErrorEvent == null || !_onConsentViewDidFailToLoadWithErrorEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidFailToLoadWithErrorEvent += value; - } - } - - remove - { - if (_onConsentViewDidFailToLoadWithErrorEvent != null || _onConsentViewDidFailToLoadWithErrorEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidFailToLoadWithErrorEvent -= value; - } - } - } - - public void onConsentViewDidFailToLoadWithError(string args) - { - if (_onConsentViewDidFailToLoadWithErrorEvent != null && !String.IsNullOrEmpty(args)) - { - List argList = IronSourceJSON.Json.Deserialize(args) as List; - IronSourceError err = getErrorFromErrorObject(argList[1]); - string consentViewType = argList[0].ToString(); - _onConsentViewDidFailToLoadWithErrorEvent(consentViewType, err); - } - } - - private static event Action _onConsentViewDidFailToShowWithErrorEvent; - - public static event Action onConsentViewDidFailToShowWithErrorEvent - { - add - { - if (_onConsentViewDidFailToShowWithErrorEvent == null || !_onConsentViewDidFailToShowWithErrorEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidFailToShowWithErrorEvent += value; - } - } - - remove - { - if (_onConsentViewDidFailToShowWithErrorEvent != null || _onConsentViewDidFailToShowWithErrorEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidFailToShowWithErrorEvent -= value; - } - } - } - - public void onConsentViewDidFailToShowWithError(string args) - { - if (_onConsentViewDidFailToShowWithErrorEvent != null && !String.IsNullOrEmpty(args)) - { - List argList = IronSourceJSON.Json.Deserialize(args) as List; - IronSourceError err = getErrorFromErrorObject(argList[1]); - string consentViewType = argList[0].ToString(); - _onConsentViewDidFailToShowWithErrorEvent(consentViewType, err); - } - } - - private static event Action _onConsentViewDidAcceptEvent; - - public static event Action onConsentViewDidAcceptEvent - { - add - { - if (_onConsentViewDidAcceptEvent == null || !_onConsentViewDidAcceptEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidAcceptEvent += value; - } - } - - remove - { - if (_onConsentViewDidAcceptEvent != null || _onConsentViewDidAcceptEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidAcceptEvent -= value; - } - } - } - - public void onConsentViewDidAccept(string consentViewType) - { - if (_onConsentViewDidAcceptEvent != null) - { - _onConsentViewDidAcceptEvent(consentViewType); - } - } - - private static event Action _onConsentViewDidDismissEvent; - - public static event Action onConsentViewDidDismissEvent - { - add - { - if (_onConsentViewDidDismissEvent == null || !_onConsentViewDidDismissEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidDismissEvent += value; - } - } - - remove - { - if (_onConsentViewDidDismissEvent != null || _onConsentViewDidDismissEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidDismissEvent -= value; - } - } - } - - public void onConsentViewDidDismiss(string consentViewType) - { - if (_onConsentViewDidDismissEvent != null) - { - _onConsentViewDidDismissEvent(consentViewType); - } - } - - private static event Action _onConsentViewDidLoadSuccessEvent; - - public static event Action onConsentViewDidLoadSuccessEvent - { - add - { - if (_onConsentViewDidLoadSuccessEvent == null || !_onConsentViewDidLoadSuccessEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidLoadSuccessEvent += value; - } - } - - remove - { - if (_onConsentViewDidLoadSuccessEvent != null || _onConsentViewDidLoadSuccessEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidLoadSuccessEvent -= value; - } - } - } - - public void onConsentViewDidLoadSuccess(string consentViewType) - { - if (_onConsentViewDidLoadSuccessEvent != null) - { - _onConsentViewDidLoadSuccessEvent(consentViewType); - } - } - - private static event Action _onConsentViewDidShowSuccessEvent; - - public static event Action onConsentViewDidShowSuccessEvent - { - add - { - if (_onConsentViewDidShowSuccessEvent == null || !_onConsentViewDidShowSuccessEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidShowSuccessEvent += value; - } - } - - remove - { - if (_onConsentViewDidShowSuccessEvent != null || _onConsentViewDidShowSuccessEvent.GetInvocationList().Contains(value)) - { - _onConsentViewDidShowSuccessEvent -= value; - } - } - } - - public void onConsentViewDidShowSuccess(string consentViewType) - { - if (_onConsentViewDidShowSuccessEvent != null) - { - _onConsentViewDidShowSuccessEvent(consentViewType); - } - } - - // ******************************* Helper methods ******************************* - - private IronSourceError getErrorFromErrorObject (object descriptionObject) - { - Dictionary error = null; - if (descriptionObject is IDictionary) { - error = descriptionObject as Dictionary; - } - else if (descriptionObject is String && !String.IsNullOrEmpty (descriptionObject.ToString())) { - error = IronSourceJSON.Json.Deserialize (descriptionObject.ToString()) as Dictionary; - } - - IronSourceError sse = new IronSourceError (-1, ""); - if (error != null && error.Count > 0) { - int eCode = Convert.ToInt32 (error [ERROR_CODE].ToString ()); - string eDescription = error [ERROR_DESCRIPTION].ToString (); - sse = new IronSourceError (eCode, eDescription); - } - - return sse; - } - - private IronSourcePlacement getPlacementFromObject (object placementObject) - { - Dictionary placementJSON = null; - if (placementObject is IDictionary) { - placementJSON = placementObject as Dictionary; - } - else if (placementObject is String) { - placementJSON = IronSourceJSON.Json.Deserialize (placementObject.ToString()) as Dictionary; - } - - IronSourcePlacement ssp = null; - if (placementJSON != null && placementJSON.Count > 0) { - int rewardAmount = Convert.ToInt32 (placementJSON ["placement_reward_amount"].ToString ()); - string rewardName = placementJSON ["placement_reward_name"].ToString (); - string placementName = placementJSON ["placement_name"].ToString (); - - ssp = new IronSourcePlacement (placementName, rewardName, rewardAmount); - } - - return ssp; - } - } diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceEvents.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourceEvents.cs.meta deleted file mode 100644 index e7b4a105..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceEvents.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 06a7a5a9d456c4634864ec18b18f72dc -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceIAgent.cs b/popcorn/Assets/IronSource/Scripts/IronSourceIAgent.cs deleted file mode 100644 index dd692561..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceIAgent.cs +++ /dev/null @@ -1,176 +0,0 @@ -using System.Collections.Generic; - -public interface IronSourceIAgent -{ - //******************* Base API *******************// - - void onApplicationPause (bool pause); - - void setMediationSegment (string segment); - - string getAdvertiserId (); - - void validateIntegration (); - - void shouldTrackNetworkState (bool track); - - bool setDynamicUserId (string dynamicUserId); - - void setAdaptersDebug(bool enabled); - - void setMetaData(string key, string value); - - void setMetaData(string key, params string[] values); - - int? getConversionValue(); - - //******************* SDK Init *******************// - - void setUserId (string userId); - - void init (string appKey); - - void init (string appKey, params string[] adUnits); - - void initISDemandOnly (string appKey, params string[] adUnits); - - //******************* RewardedVideo API *******************// - - void showRewardedVideo (); - - void showRewardedVideo (string placementName); - - bool isRewardedVideoAvailable (); - - bool isRewardedVideoPlacementCapped (string placementName); - - IronSourcePlacement getPlacementInfo (string name); - - void setRewardedVideoServerParams(Dictionary parameters); - - void clearRewardedVideoServerParams(); - - //******************* RewardedVideo DemandOnly API *******************// - - void showISDemandOnlyRewardedVideo (string instanceId); - - void loadISDemandOnlyRewardedVideo (string instanceId); - - bool isISDemandOnlyRewardedVideoAvailable (string instanceId); - - //******************* Interstitial API *******************// - - void loadInterstitial (); - - void showInterstitial (); - - void showInterstitial (string placementName); - - bool isInterstitialReady (); - - bool isInterstitialPlacementCapped (string placementName); - - //******************* Interstitial DemandOnly API *******************// - - void loadISDemandOnlyInterstitial (string instanceId); - - void showISDemandOnlyInterstitial (string instanceId); - - bool isISDemandOnlyInterstitialReady (string instanceId); - - //******************* Offerwall API *******************// - - void showOfferwall (); - - void showOfferwall (string placementName); - - bool isOfferwallAvailable (); - - void getOfferwallCredits (); - - //******************* Banner API *******************// - - void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position); - - void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position, string placementName); - - void destroyBanner(); - - void displayBanner(); - - void hideBanner(); - - bool isBannerPlacementCapped(string placementName); - - void setSegment(IronSourceSegment segment); - - void setConsent(bool consent); - - //******************* ConsentView API *******************// - - void loadConsentViewWithType(string consentViewType); - - void showConsentViewWithType(string consentViewType); - - //******************* ILRD API *******************// - - void setAdRevenueData(string dataSource, Dictionary impressionData); -} - -public static class dataSource -{ - public static string MOPUB { get { return "MoPub"; } } - -} - - -public static class IronSourceAdUnits -{ - public static string REWARDED_VIDEO { get { return "rewardedvideo"; } } - - public static string INTERSTITIAL { get { return "interstitial"; } } - - public static string OFFERWALL { get { return "offerwall"; } } - - public static string BANNER { get { return "banner"; } } -} - -public class IronSourceBannerSize -{ - private int width; - private int height; - private string description; - - public static IronSourceBannerSize BANNER = new IronSourceBannerSize("BANNER"); - public static IronSourceBannerSize LARGE = new IronSourceBannerSize("LARGE"); - public static IronSourceBannerSize RECTANGLE = new IronSourceBannerSize("RECTANGLE"); - public static IronSourceBannerSize SMART = new IronSourceBannerSize("SMART"); - - private IronSourceBannerSize() { - - } - - public IronSourceBannerSize(int width, int height) - { - this.width = width; - this.height = height; - this.description = "CUSTOM"; - } - - public IronSourceBannerSize(string description) - { - this.description = description; - this.width = 0; - this.height = 0; - } - - public string Description { get { return description; } } - public int Width { get { return width; } } - public int Height { get { return height; } } -}; - -public enum IronSourceBannerPosition -{ - TOP = 1, - BOTTOM = 2 -}; diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceIAgent.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourceIAgent.cs.meta deleted file mode 100644 index 9fb1e9f8..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceIAgent.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: a69a6174c46124e04b4b27ac7fbdd78d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceImpressionData.cs b/popcorn/Assets/IronSource/Scripts/IronSourceImpressionData.cs deleted file mode 100644 index 56cc4b1b..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceImpressionData.cs +++ /dev/null @@ -1,127 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using UnityEngine; - -public class IronSourceImpressionData -{ - - public readonly string auctionId; - public readonly string adUnit; - public readonly string country; - public readonly string ab; - public readonly string segmentName; - public readonly string placement; - public readonly string adNetwork; - public readonly string instanceName; - public readonly string instanceId; - public readonly double? revenue; - public readonly string precision; - public readonly double? lifetimeRevenue; - public readonly string encryptedCPM; - public readonly int? conversionValue; - public readonly string allData; - - - public IronSourceImpressionData(string json) - { - if (json != null) - { - try - { - object obj; - double parsedDouble; - int parsedInt; - allData = json; - // Retrieve a CultureInfo object. - CultureInfo invCulture = CultureInfo.InvariantCulture; - Dictionary jsonDic = IronSourceJSON.Json.Deserialize(json) as Dictionary; - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_AUCTION_ID, out obj) && obj != null) - { - auctionId = obj.ToString(); - } - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_AD_UNIT, out obj) && obj != null) - { - adUnit = obj.ToString(); - } - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_COUNTRY, out obj) && obj != null) - { - country = obj.ToString(); - } - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_ABTEST, out obj) && obj != null) - { - ab = obj.ToString(); - } - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_SEGMENT_NAME, out obj) && obj != null) - { - segmentName = obj.ToString(); - } - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_PLACEMENT, out obj) && obj != null) - { - placement = obj.ToString(); - } - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_AD_NETWORK, out obj) && obj != null) - { - adNetwork = obj.ToString(); - } - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_INSTANCE_NAME, out obj) && obj != null) - { - instanceName = obj.ToString(); - } - if (jsonDic.TryGetValue(IronSourceConstants.INSTANCE_ID_KEY, out obj) && obj != null) - { - instanceId = obj.ToString(); - } - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_PRECISION, out obj) && obj != null) - { - precision = obj.ToString(); - } - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_ENCRYPTED_CPM, out obj) && obj != null) - { - encryptedCPM = obj.ToString(); - } - - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_REVENUE, out obj) && obj != null && double.TryParse(string.Format(invCulture, "{0}", obj), NumberStyles.Any, invCulture, out parsedDouble)) - { - revenue = parsedDouble; - } - - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_LIFETIME_REVENUE, out obj) && obj != null && double.TryParse(string.Format(invCulture,"{0}",obj), NumberStyles.Any, invCulture, out parsedDouble)) - { - lifetimeRevenue = parsedDouble; - } - - if (jsonDic.TryGetValue(IronSourceConstants.IMPRESSION_DATA_KEY_CONVERSION_VALUE, out obj) && obj != null && int.TryParse(string.Format(invCulture, "{0}", obj), NumberStyles.Any, invCulture, out parsedInt)) - { - conversionValue = parsedInt; - } - - } - catch (Exception ex) - { - Debug.Log("error parsing impression " + ex.ToString()); - } - - } - } - - public override string ToString() - { - return "IronSourceImpressionData{" + - "auctionId='" + auctionId + '\'' + - ", adUnit='" + adUnit + '\'' + - ", country='" + country + '\'' + - ", ab='" + ab + '\'' + - ", segmentName='" + segmentName + '\'' + - ", placement='" + placement + '\'' + - ", adNetwork='" + adNetwork + '\'' + - ", instanceName='" + instanceName + '\'' + - ", instanceId='" + instanceId + '\'' + - ", revenue=" + revenue + - ", precision='" + precision + '\'' + - ", lifetimeRevenue=" + lifetimeRevenue + - ", encryptedCPM='" + encryptedCPM + '\'' + - ", conversionValue=" + conversionValue + - '}'; - } -} \ No newline at end of file diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceImpressionData.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourceImpressionData.cs.meta deleted file mode 100644 index 2450e9a8..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceImpressionData.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7ab0e9e995e4a4024abb4cee85c301ba -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceInitilizer.cs b/popcorn/Assets/IronSource/Scripts/IronSourceInitilizer.cs deleted file mode 100644 index e9b12e61..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceInitilizer.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine; - -public class IronSourceInitilizer -{ -#if UNITY_IOS || UNITY_ANDROID - [RuntimeInitializeOnLoadMethod] - static void Initilize() - { - var developerSettings = Resources.Load(IronSourceConstants.IRONSOURCE_MEDIATION_SETTING_NAME); - if (developerSettings != null) - { -#if UNITY_ANDROID - string appKey = developerSettings.AndroidAppKey; -#elif UNITY_IOS - string appKey = developerSettings.IOSAppKey; -#endif - if (developerSettings.EnableIronsourceSDKInitAPI == true) - { - if (appKey.Equals(string.Empty)) - { - Debug.LogWarning("IronSourceInitilizer Cannot init without AppKey"); - } - else - { - IronSource.Agent.init(appKey); - } - - } - - if (developerSettings.EnableAdapterDebug) - { - IronSource.Agent.setAdaptersDebug(true); - } - - if (developerSettings.EnableIntegrationHelper) - { - IronSource.Agent.validateIntegration(); - } - } - } -#endif - -} diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceInitilizer.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourceInitilizer.cs.meta deleted file mode 100644 index da552e01..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceInitilizer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f3e8e12247da34eafb182ebdfb06c10e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceJSON.cs b/popcorn/Assets/IronSource/Scripts/IronSourceJSON.cs deleted file mode 100644 index 433e440b..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceJSON.cs +++ /dev/null @@ -1,495 +0,0 @@ -/* - * Based on the miniJSON by Calvin Rien - */ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Text; - -namespace IronSourceJSON -{ - public static class Json - { - public static object Deserialize (string json) - { - if (json == null) { - return null; - } - return Parser.Parse (json); - } - - sealed class Parser : IDisposable - { - const string WHITE_SPACE = " \t\n\r"; - const string WORD_BREAK = " \t\n\r{}[],:\""; - - enum TOKEN - { - NONE, - CURLY_OPEN, - CURLY_CLOSE, - SQUARED_OPEN, - SQUARED_CLOSE, - COLON, - COMMA, - STRING, - NUMBER, - TRUE, - FALSE, - NULL - } - ; - - StringReader json; - - Parser (string jsonString) - { - json = new StringReader (jsonString); - } - - public static object Parse (string jsonString) - { - using (var instance = new Parser(jsonString)) { - return instance.ParseValue (); - } - } - - public void Dispose () - { - json.Dispose (); - json = null; - } - - Dictionary ParseObject () - { - Dictionary table = new Dictionary (); - - // ditch opening brace - json.Read (); - - // { - while (true) { - switch (NextToken) { - case TOKEN.NONE: - return null; - case TOKEN.COMMA: - continue; - case TOKEN.CURLY_CLOSE: - return table; - default: - // name - string name = ParseString (); - if (name == null) { - return null; - } - - // : - if (NextToken != TOKEN.COLON) { - return null; - } - // ditch the colon - json.Read (); - - // value - table [name] = ParseValue (); - break; - } - } - } - - List ParseArray () - { - List array = new List (); - - // ditch opening bracket - json.Read (); - - // [ - var parsing = true; - while (parsing) { - TOKEN nextToken = NextToken; - - switch (nextToken) { - case TOKEN.NONE: - return null; - case TOKEN.COMMA: - continue; - case TOKEN.SQUARED_CLOSE: - parsing = false; - break; - default: - object value = ParseByToken (nextToken); - - array.Add (value); - break; - } - } - - return array; - } - - object ParseValue () - { - TOKEN nextToken = NextToken; - return ParseByToken (nextToken); - } - - object ParseByToken (TOKEN token) - { - switch (token) { - case TOKEN.STRING: - return ParseString (); - case TOKEN.NUMBER: - return ParseNumber (); - case TOKEN.CURLY_OPEN: - return ParseObject (); - case TOKEN.SQUARED_OPEN: - return ParseArray (); - case TOKEN.TRUE: - return true; - case TOKEN.FALSE: - return false; - case TOKEN.NULL: - return null; - default: - return null; - } - } - - string ParseString () - { - StringBuilder s = new StringBuilder (); - char c; - - // ditch opening quote - json.Read (); - - bool parsing = true; - while (parsing) { - - if (json.Peek () == -1) { - parsing = false; - break; - } - - c = NextChar; - switch (c) { - case '"': - parsing = false; - break; - case '\\': - if (json.Peek () == -1) { - parsing = false; - break; - } - - c = NextChar; - switch (c) { - case '"': - case '\\': - case '/': - s.Append (c); - break; - case 'b': - s.Append ('\b'); - break; - case 'f': - s.Append ('\f'); - break; - case 'n': - s.Append ('\n'); - break; - case 'r': - s.Append ('\r'); - break; - case 't': - s.Append ('\t'); - break; - case 'u': - var hex = new StringBuilder (); - - for (int i=0; i< 4; i++) { - hex.Append (NextChar); - } - - s.Append ((char)Convert.ToInt32 (hex.ToString (), 16)); - break; - } - break; - default: - s.Append (c); - break; - } - } - - return s.ToString (); - } - - object ParseNumber () - { - string number = NextWord; - - if (number.IndexOf ('.') == -1) { - long parsedInt; - Int64.TryParse (number, NumberStyles.Any, CultureInfo.InvariantCulture, out parsedInt); - return parsedInt; - } - - double parsedDouble; - Double.TryParse (number, NumberStyles.Any, CultureInfo.InvariantCulture, out parsedDouble); - return parsedDouble; - } - - void EatWhitespace () - { - while (WHITE_SPACE.IndexOf(PeekChar) != -1) { - json.Read (); - - if (json.Peek () == -1) { - break; - } - } - } - - char PeekChar { - get { - return Convert.ToChar (json.Peek ()); - } - } - - char NextChar { - get { - return Convert.ToChar (json.Read ()); - } - } - - string NextWord { - get { - StringBuilder word = new StringBuilder (); - - while (WORD_BREAK.IndexOf(PeekChar) == -1) { - word.Append (NextChar); - - if (json.Peek () == -1) { - break; - } - } - - return word.ToString (); - } - } - - TOKEN NextToken { - get { - EatWhitespace (); - - if (json.Peek () == -1) { - return TOKEN.NONE; - } - - char c = PeekChar; - switch (c) { - case '{': - return TOKEN.CURLY_OPEN; - case '}': - json.Read (); - return TOKEN.CURLY_CLOSE; - case '[': - return TOKEN.SQUARED_OPEN; - case ']': - json.Read (); - return TOKEN.SQUARED_CLOSE; - case ',': - json.Read (); - return TOKEN.COMMA; - case '"': - return TOKEN.STRING; - case ':': - return TOKEN.COLON; - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - case '-': - return TOKEN.NUMBER; - } - - string word = NextWord; - - switch (word) { - case "false": - return TOKEN.FALSE; - case "true": - return TOKEN.TRUE; - case "null": - return TOKEN.NULL; - } - - return TOKEN.NONE; - } - } - } - - /// - /// Converts a IDictionary / IList object or a simple type (string, int, etc.) into a JSON string - /// - /// A Dictionary<string, object> / List<object> - /// A JSON encoded string, or null if object 'json' is not serializable - public static string Serialize (object obj) - { - return Serializer.Serialize (obj); - } - - sealed class Serializer - { - StringBuilder builder; - - Serializer () - { - builder = new StringBuilder (); - } - - public static string Serialize (object obj) - { - var instance = new Serializer (); - - instance.SerializeValue (obj); - - return instance.builder.ToString (); - } - - void SerializeValue (object value) - { - IList asList; - IDictionary asDict; - string asStr; - - if (value == null) { - builder.Append ("null"); - } else if ((asStr = value as string) != null) { - SerializeString (asStr); - } else if (value is bool) { - builder.Append (value.ToString ().ToLower ()); - } else if ((asList = value as IList) != null) { - SerializeArray (asList); - } else if ((asDict = value as IDictionary) != null) { - SerializeObject (asDict); - } else if (value is char) { - SerializeString (value.ToString ()); - } else { - SerializeOther (value); - } - } - - void SerializeObject (IDictionary obj) - { - bool first = true; - - builder.Append ('{'); - - foreach (object e in obj.Keys) { - if (!first) { - builder.Append (','); - } - - SerializeString (e.ToString ()); - builder.Append (':'); - - SerializeValue (obj [e]); - - first = false; - } - - builder.Append ('}'); - } - - void SerializeArray (IList anArray) - { - builder.Append ('['); - - bool first = true; - - foreach (object obj in anArray) { - if (!first) { - builder.Append (','); - } - - SerializeValue (obj); - - first = false; - } - - builder.Append (']'); - } - - void SerializeString (string str) - { - builder.Append ('\"'); - - char[] charArray = str.ToCharArray (); - foreach (var c in charArray) { - switch (c) { - case '"': - builder.Append ("\\\""); - break; - case '\\': - builder.Append ("\\\\"); - break; - case '\b': - builder.Append ("\\b"); - break; - case '\f': - builder.Append ("\\f"); - break; - case '\n': - builder.Append ("\\n"); - break; - case '\r': - builder.Append ("\\r"); - break; - case '\t': - builder.Append ("\\t"); - break; - default: - int codepoint = Convert.ToInt32 (c); - if ((codepoint >= 32) && (codepoint <= 126)) { - builder.Append (c); - } else { - builder.Append ("\\u" + Convert.ToString (codepoint, 16).PadLeft (4, '0')); - } - break; - } - } - - builder.Append ('\"'); - } - - void SerializeOther (object value) - { - if (value is float - || value is int - || value is uint - || value is long - || value is double - || value is sbyte - || value is byte - || value is short - || value is ushort - || value is ulong - || value is decimal) { - builder.Append (value.ToString ()); - } else { - SerializeString (value.ToString ()); - } - } - } - } -} \ No newline at end of file diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceJSON.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourceJSON.cs.meta deleted file mode 100644 index 9aa06512..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceJSON.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 6704b25b621ab47ebbfa013ced92bdb0 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceMediationSettings.cs b/popcorn/Assets/IronSource/Scripts/IronSourceMediationSettings.cs deleted file mode 100644 index 93fda39c..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceMediationSettings.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System.IO; -using UnityEngine; - -public class IronSourceMediationSettings : ScriptableObject -{ - public static readonly string IRONSOURCE_SETTINGS_ASSET_PATH = Path.Combine(IronSourceConstants.IRONSOURCE_RESOURCES_PATH, IronSourceConstants.IRONSOURCE_MEDIATION_SETTING_NAME + ".asset"); - - [Header("Ironsource AppKey")] - [Tooltip("Add your application AppKeys, as provided in Ironsource Platform")] - public string AndroidAppKey = string.Empty; - [Tooltip("Add your application AppKeys, as provided in Ironsource Platform")] - public string IOSAppKey = string.Empty; - - [Header("Automatic Initialization")] - [Tooltip("Use this flag when you wish to initialize all ad units (recommended)")] - public bool EnableIronsourceSDKInitAPI; - - [Header("Ironsource SKAdNetwork ID")] - [Tooltip("Add Ironsource SKAdNetworkIdentifier to your Info.plist for iOS 14+")] - public bool AddIronsourceSkadnetworkID; - - [Header("Project Features")] - public bool EnableAdapterDebug; - - public bool EnableIntegrationHelper; -} diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceMediationSettings.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourceMediationSettings.cs.meta deleted file mode 100644 index 71bc284a..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceMediationSettings.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: d5a679b8640d04834b4f09b8c6adec7a -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourcePlacement.cs b/popcorn/Assets/IronSource/Scripts/IronSourcePlacement.cs deleted file mode 100644 index 0467ae53..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourcePlacement.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; - -public class IronSourcePlacement -{ - private string rewardName; - private int rewardAmount; - private string placementName; - - public IronSourcePlacement (string placementName, string rewardName, int rewardAmount) - { - this.placementName = placementName; - this.rewardName = rewardName; - this.rewardAmount = rewardAmount; - } - - public string getRewardName () - { - return rewardName; - } - - public int getRewardAmount () - { - return rewardAmount; - } - - public string getPlacementName () - { - return placementName; - } - - public override string ToString () - { - return placementName + " : " + rewardName + " : " + rewardAmount; - } - - -} diff --git a/popcorn/Assets/IronSource/Scripts/IronSourcePlacement.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourcePlacement.cs.meta deleted file mode 100644 index eaa50d3c..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourcePlacement.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 984e6a9b75cea4626baa9dcb08114ebf -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceSegment.cs b/popcorn/Assets/IronSource/Scripts/IronSourceSegment.cs deleted file mode 100644 index 332761b8..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceSegment.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using System.Linq; - - - - -public class IronSourceSegment -{ - - public int age; - public string gender = null; - public int level; - public int isPaying; - public long userCreationDate; - public double iapt; - public string segmentName = null; - public Dictionary customs; - - public IronSourceSegment () - { - customs = new Dictionary (); - age = -1; - level = -1; - isPaying = -1; - userCreationDate = -1; - iapt = 0; - } - - public void setCustom(string key, string value){ - customs.Add (key, value); - } - - public Dictionary getSegmentAsDict () - { - Dictionary temp = new Dictionary (); - if (age != -1) - temp.Add ("age", age + ""); - if (!string.IsNullOrEmpty(gender)) - temp.Add ("gender", gender); - if (level != -1) - temp.Add ("level", level + ""); - if (isPaying > -1 && isPaying < 2) - temp.Add ("isPaying", isPaying + ""); - if (userCreationDate != -1) - temp.Add ("userCreationDate", userCreationDate + ""); - if (!string.IsNullOrEmpty(segmentName)) - temp.Add ("segmentName", segmentName); - if (iapt > 0) - temp.Add ("iapt", iapt + ""); - - Dictionary result = temp.Concat (customs).GroupBy (d => d.Key).ToDictionary (d => d.Key, d => d.First ().Value); - - return result; - - } - - - - - - -} - - diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceSegment.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourceSegment.cs.meta deleted file mode 100644 index 7c4793e6..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceSegment.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f060327917ac94f60857545bd54c308e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceUtils.cs b/popcorn/Assets/IronSource/Scripts/IronSourceUtils.cs deleted file mode 100644 index 163cfbf1..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceUtils.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; - -public class IronSourceUtils - { - private const string ERROR_CODE = "error_code"; - private const string ERROR_DESCRIPTION = "error_description"; - private const string INSTANCE_ID_KEY = "instanceId"; - private const string PLACEMENT_KEY = "placement"; - - public static IronSourceError getErrorFromErrorObject(object descriptionObject) - { - Dictionary error = null; - if (descriptionObject is IDictionary) - { - error = descriptionObject as Dictionary; - } - else if (descriptionObject is String && !String.IsNullOrEmpty(descriptionObject.ToString())) - { - error = IronSourceJSON.Json.Deserialize(descriptionObject.ToString()) as Dictionary; - } - - IronSourceError sse = new IronSourceError(-1, ""); - if (error != null && error.Count > 0) - { - int eCode = Convert.ToInt32(error[ERROR_CODE].ToString()); - string eDescription = error[ERROR_DESCRIPTION].ToString(); - sse = new IronSourceError(eCode, eDescription); - } - - return sse; - } - - public static IronSourcePlacement getPlacementFromObject(object placementObject) - { - Dictionary placementJSON = null; - if (placementObject is IDictionary) - { - placementJSON = placementObject as Dictionary; - } - else if (placementObject is String) - { - placementJSON = IronSourceJSON.Json.Deserialize(placementObject.ToString()) as Dictionary; - } - - IronSourcePlacement ssp = null; - if (placementJSON != null && placementJSON.Count > 0) - { - int rewardAmount = Convert.ToInt32(placementJSON["placement_reward_amount"].ToString()); - string rewardName = placementJSON["placement_reward_name"].ToString(); - string placementName = placementJSON["placement_name"].ToString(); - - ssp = new IronSourcePlacement(placementName, rewardName, rewardAmount); - } - - return ssp; - } -} diff --git a/popcorn/Assets/IronSource/Scripts/IronSourceUtils.cs.meta b/popcorn/Assets/IronSource/Scripts/IronSourceUtils.cs.meta deleted file mode 100644 index fa70f690..00000000 --- a/popcorn/Assets/IronSource/Scripts/IronSourceUtils.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: bba6a563b7b0746aea78a1ea9fea14fe -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/UnsupportedPlatformAgent.cs b/popcorn/Assets/IronSource/Scripts/UnsupportedPlatformAgent.cs deleted file mode 100644 index 05394f72..00000000 --- a/popcorn/Assets/IronSource/Scripts/UnsupportedPlatformAgent.cs +++ /dev/null @@ -1,287 +0,0 @@ -using UnityEngine; -using System.Collections; -using System.Collections.Generic; - -public class UnsupportedPlatformAgent : IronSourceIAgent -{ - public UnsupportedPlatformAgent () - { - Debug.Log ("Unsupported Platform"); - } - - #region IronSourceAgent implementation - - public void start () - { - Debug.Log ("Unsupported Platform"); - } - - //******************* Base API *******************// - - public void onApplicationPause (bool pause) - { - Debug.Log ("Unsupported Platform"); - } - - public void setMediationSegment (string segment) - { - Debug.Log ("Unsupported Platform"); - } - - public string getAdvertiserId () - { - Debug.Log ("Unsupported Platform"); - return ""; - } - - public void validateIntegration () - { - Debug.Log ("Unsupported Platform"); - } - - public void shouldTrackNetworkState (bool track) - { - Debug.Log ("Unsupported Platform"); - } - - public bool setDynamicUserId (string dynamicUserId) - { - Debug.Log ("Unsupported Platform"); - return false; - } - - public void setAdaptersDebug(bool enabled) - { - Debug.Log ("Unsupported Platform"); - } - - public void setMetaData(string key, string value) - { - Debug.Log("Unsupported Platform"); - } - - public void setMetaData(string key, params string[] values) - { - Debug.Log("Unsupported Platform"); - } - - public int? getConversionValue() - { - Debug.Log("Unsupported Platform"); - return null; - } - - //******************* SDK Init *******************// - - public void setUserId (string userId) - { - Debug.Log ("Unsupported Platform"); - } - - public void init (string appKey) - { - Debug.Log ("Unsupported Platform"); - } - - public void init (string appKey, params string[] adUnits) - { - Debug.Log ("Unsupported Platform"); - } - - public void initISDemandOnly (string appKey, params string[] adUnits) - { - Debug.Log ("Unsupported Platform"); - } - - //******************* RewardedVideo API *******************// - - public void showRewardedVideo () - { - Debug.Log ("Unsupported Platform"); - } - - public void showRewardedVideo (string placementName) - { - Debug.Log ("Unsupported Platform"); - } - - public bool isRewardedVideoAvailable () - { - Debug.Log ("Unsupported Platform"); - return false; - } - - public bool isRewardedVideoPlacementCapped (string placementName) - { - Debug.Log ("Unsupported Platform"); - return true; - } - - public IronSourcePlacement getPlacementInfo (string placementName) - { - Debug.Log ("Unsupported Platform"); - return null; - } - - public void setRewardedVideoServerParams(Dictionary parameters) - { - Debug.Log ("Unsupported Platform"); - } - - public void clearRewardedVideoServerParams() - { - Debug.Log ("Unsupported Platform"); - } - - //******************* RewardedVideo DemandOnly API *******************// - - public void showISDemandOnlyRewardedVideo (string instanceId) - { - Debug.Log ("Unsupported Platform"); - } - - public void loadISDemandOnlyRewardedVideo (string instanceId) - { - Debug.Log ("Unsupported Platform"); - - } - - public bool isISDemandOnlyRewardedVideoAvailable (string instanceId) - { - Debug.Log ("Unsupported Platform"); - return false; - } - - //******************* Interstitial API *******************// - - public void loadInterstitial () - { - Debug.Log ("Unsupported Platform"); - } - - public void showInterstitial () - { - Debug.Log ("Unsupported Platform"); - } - - public void showInterstitial (string placementName) - { - Debug.Log ("Unsupported Platform"); - } - - public bool isInterstitialReady () - { - Debug.Log ("Unsupported Platform"); - return false; - } - - public bool isInterstitialPlacementCapped (string placementName) - { - Debug.Log ("Unsupported Platform"); - return true; - } - - //******************* Interstitial DemandOnly API *******************// - - public void loadISDemandOnlyInterstitial (string instanceId) - { - Debug.Log ("Unsupported Platform"); - } - - public void showISDemandOnlyInterstitial (string instanceId) - { - Debug.Log ("Unsupported Platform"); - } - - public bool isISDemandOnlyInterstitialReady (string instanceId) - { - Debug.Log ("Unsupported Platform"); - return false; - } - - //******************* Offerwall API *******************// - - public void showOfferwall () - { - Debug.Log ("Unsupported Platform"); - } - - public void showOfferwall (string placementName) - { - Debug.Log ("Unsupported Platform"); - } - - public void getOfferwallCredits () - { - Debug.Log ("Unsupported Platform"); - } - - public bool isOfferwallAvailable () - { - Debug.Log ("Unsupported Platform"); - return false; - } - - //******************* Banner API *******************// - - public void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position) - { - Debug.Log ("Unsupported Platform"); - } - - public void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position, string placementName) - { - Debug.Log ("Unsupported Platform"); - } - - public void destroyBanner() - { - Debug.Log ("Unsupported Platform"); - } - - public void displayBanner() - { - Debug.Log ("Unsupported Platform"); - } - - public void hideBanner() - { - Debug.Log ("Unsupported Platform"); - } - - public bool isBannerPlacementCapped(string placementName) - { - Debug.Log ("Unsupported Platform"); - return false; - } - - public void setSegment(IronSourceSegment segment){ - Debug.Log ("Unsupported Platform"); - } - - public void setConsent(bool consent) - { - Debug.Log ("Unsupported Platform"); - } - - //******************* ConsentView API *******************// - - public void loadConsentViewWithType(string consentViewType) - { - Debug.Log("Unsupported Platform"); - } - - public void showConsentViewWithType(string consentViewType) - { - Debug.Log("Unsupported Platform"); - } - - //******************* ILRD API *******************// - - public void setAdRevenueData(string dataSource, Dictionary impressionData) - { - Debug.Log("Unsupported Platform"); - } - - #endregion -} \ No newline at end of file diff --git a/popcorn/Assets/IronSource/Scripts/UnsupportedPlatformAgent.cs.meta b/popcorn/Assets/IronSource/Scripts/UnsupportedPlatformAgent.cs.meta deleted file mode 100644 index 126fe0c5..00000000 --- a/popcorn/Assets/IronSource/Scripts/UnsupportedPlatformAgent.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fa7a1bdde72c745a48f5ab116d847d96 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/IronSource/Scripts/iOSAgent.cs b/popcorn/Assets/IronSource/Scripts/iOSAgent.cs deleted file mode 100644 index a8787d05..00000000 --- a/popcorn/Assets/IronSource/Scripts/iOSAgent.cs +++ /dev/null @@ -1,455 +0,0 @@ -#if UNITY_IPHONE || UNITY_IOS -using UnityEngine; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Linq; -using System; -using System.Globalization; - -public class iOSAgent : IronSourceIAgent -{ - [DllImport("__Internal")] - private static extern void CFSetPluginData (string pluginType, string pluginVersion, string pluginFrameworkVersion); - - [DllImport("__Internal")] - private static extern void CFSetMediationSegment (string segment); - - [DllImport("__Internal")] - private static extern string CFGetAdvertiserId (); - - [DllImport("__Internal")] - private static extern void CFValidateIntegration (); - - [DllImport("__Internal")] - private static extern void CFShouldTrackNetworkState (bool track); - - [DllImport("__Internal")] - private static extern bool CFSetDynamicUserId (string dynamicUserId); - - [DllImport("__Internal")] - private static extern void CFSetAdaptersDebug (bool enabled); - - [DllImport("__Internal")] - private static extern void CFSetMetaData (string key, string value); - - [DllImport("__Internal")] - private static extern void CFSetMetaDataWithValues (string key, params string[] values); - - [DllImport("__Internal")] - private static extern string CFGetConversionValue(); - - //******************* SDK Init *******************// - - [DllImport("__Internal")] - private static extern void CFSetUserId (string userId); - - [DllImport("__Internal")] - private static extern void CFInit (string appKey); - - [DllImport("__Internal")] - private static extern void CFInitWithAdUnits (string appKey, params string[] adUnits); - - [DllImport("__Internal")] - private static extern void CFInitISDemandOnly (string appKey, params string[] adUnits); - - //******************* RewardedVideo API *******************// - - [DllImport("__Internal")] - private static extern void CFShowRewardedVideo (); - - [DllImport("__Internal")] - private static extern void CFShowRewardedVideoWithPlacementName (string placementName); - - [DllImport("__Internal")] - private static extern bool CFIsRewardedVideoAvailable (); - - [DllImport("__Internal")] - private static extern bool CFIsRewardedVideoPlacementCapped (string placementName); - - [DllImport("__Internal")] - private static extern string CFGetPlacementInfo (string placementName); - - [DllImport("__Internal")] - private static extern void CFSetRewardedVideoServerParameters (string jsonString); - - [DllImport("__Internal")] - private static extern void CFClearRewardedVideoServerParameters (); - - //******************* RewardedVideo DemandOnly API *******************// - - [DllImport("__Internal")] - private static extern void CFShowISDemandOnlyRewardedVideo (string instanceId); - - [DllImport("__Internal")] - private static extern void CFLoadISDemandOnlyRewardedVideo (string instanceId); - - [DllImport("__Internal")] - private static extern bool CFIsDemandOnlyRewardedVideoAvailable (string instanceId); - - //******************* Interstitial API *******************// - - [DllImport("__Internal")] - private static extern void CFLoadInterstitial (); - - [DllImport("__Internal")] - private static extern void CFShowInterstitial (); - - [DllImport("__Internal")] - private static extern void CFShowInterstitialWithPlacementName (string placementName); - - [DllImport("__Internal")] - private static extern bool CFIsInterstitialReady (); - - [DllImport("__Internal")] - private static extern bool CFIsInterstitialPlacementCapped (string placementName); - - //******************* Interstitial DemandOnly API *******************// - - [DllImport("__Internal")] - private static extern void CFLoadISDemandOnlyInterstitial (string instanceId); - - [DllImport("__Internal")] - private static extern void CFShowISDemandOnlyInterstitial(string instanceId); - - [DllImport("__Internal")] - private static extern bool CFIsDemandOnlyInterstitialReady (string instanceId); - - - //******************* Offerwall API *******************// - - [DllImport("__Internal")] - private static extern void CFShowOfferwall (); - - [DllImport("__Internal")] - private static extern void CFShowOfferwallWithPlacementName (string placementName); - - [DllImport("__Internal")] - private static extern void CFGetOfferwallCredits (); - - [DllImport("__Internal")] - private static extern bool CFIsOfferwallAvailable (); - - //******************* Banner API *******************// - - [DllImport("__Internal")] - private static extern void CFLoadBanner (string description, int width, int height, int position, string placementName); - - [DllImport("__Internal")] - private static extern void CFDestroyBanner (); - - [DllImport("__Internal")] - private static extern void CFDisplayBanner (); - - [DllImport("__Internal")] - private static extern void CFHideBanner (); - - [DllImport("__Internal")] - private static extern bool CFIsBannerPlacementCapped (string placementName); - - [DllImport("__Internal")] - private static extern void CFSetSegment(string json); - - [DllImport("__Internal")] - private static extern void CFSetConsent(bool consent); - - //******************* ConsentView API *******************// - - [DllImport("__Internal")] - private static extern void CFLoadConsentViewWithType(string consentViewType); - - [DllImport("__Internal")] - private static extern void CFShowConsentViewWithType(string consentViewType); - - //******************* ILRD API *******************// - - [DllImport("__Internal")] - private static extern void CFSetAdRevenueData(string dataSource, string impressionData); - - public iOSAgent () - { - } - -#region IronSourceIAgent implementation - - //******************* Base API *******************// - - public void onApplicationPause (bool pause) - { - - } - - public void setMediationSegment (string segment) - { - CFSetMediationSegment (segment); - } - - public string getAdvertiserId () - { - return CFGetAdvertiserId (); - } - - public void validateIntegration () - { - CFValidateIntegration (); - } - - public void shouldTrackNetworkState (bool track) - { - CFShouldTrackNetworkState (track); - } - - public bool setDynamicUserId (string dynamicUserId) - { - return CFSetDynamicUserId (dynamicUserId); - } - - public void setAdaptersDebug(bool enabled) - { - CFSetAdaptersDebug (enabled); - } - - public void setMetaData(string key, params string[] values) - { - CFSetMetaDataWithValues(key, values); - } - - public void setMetaData(string key, string value) - { - CFSetMetaData(key, value); - } - - public int? getConversionValue() - { - CultureInfo invCulture = CultureInfo.InvariantCulture; - int parsedInt; - if(int.TryParse(string.Format(invCulture, "{0}", CFGetConversionValue()), NumberStyles.Any, invCulture, out parsedInt)) - { - return parsedInt; - } - - return null; - } - - //******************* SDK Init *******************// - - public void setUserId (string userId) - { - CFSetUserId (userId); - } - - public void init (string appKey) - { - CFSetPluginData ("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); - Debug.Log ("IntegrationHelper pluginVersion: " + IronSource.pluginVersion ()); - CFInit (appKey); - } - - public void init (string appKey, params string[] adUnits) - { - CFSetPluginData ("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); - Debug.Log ("IntegrationHelper pluginVersion: " + IronSource.pluginVersion ()); - CFInitWithAdUnits (appKey, adUnits); - } - - public void initISDemandOnly (string appKey, params string[] adUnits) - { - CFSetPluginData ("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); - Debug.Log ("IntegrationHelper pluginVersion: " + IronSource.pluginVersion ()); - CFInitISDemandOnly (appKey, adUnits); - } - - //******************* RewardedVideo API *******************// - - public void showRewardedVideo () - { - CFShowRewardedVideo (); - } - - public void showRewardedVideo (string placementName) - { - CFShowRewardedVideoWithPlacementName (placementName); - } - - public bool isRewardedVideoAvailable () - { - return CFIsRewardedVideoAvailable (); - } - - public bool isRewardedVideoPlacementCapped (string placementName) - { - return CFIsRewardedVideoPlacementCapped (placementName); - } - - public IronSourcePlacement getPlacementInfo (string placementName) - { - IronSourcePlacement sp = null; - - string spString = CFGetPlacementInfo (placementName); - if (spString != null) { - Dictionary spDic = IronSourceJSON.Json.Deserialize (spString) as Dictionary; - string pName = spDic ["placement_name"].ToString (); - string rewardName = spDic ["reward_name"].ToString (); - int rewardAmount = Convert.ToInt32 (spDic ["reward_amount"].ToString ()); - sp = new IronSourcePlacement (pName, rewardName, rewardAmount); - } - - return sp; - } - - public void setRewardedVideoServerParams(Dictionary parameters){ - string json = IronSourceJSON.Json.Serialize (parameters); - CFSetRewardedVideoServerParameters (json); - } - - public void clearRewardedVideoServerParams(){ - CFClearRewardedVideoServerParameters (); - } - - //******************* RewardedVideo DemandOnly API *******************// - - public void showISDemandOnlyRewardedVideo (string instanceId) - { - CFShowISDemandOnlyRewardedVideo(instanceId); - } - - public void loadISDemandOnlyRewardedVideo (string instanceId) - { - CFLoadISDemandOnlyRewardedVideo(instanceId); - } - - public bool isISDemandOnlyRewardedVideoAvailable (string instanceId) - { - return CFIsDemandOnlyRewardedVideoAvailable(instanceId); - } - - //******************* Interstitial API *******************// - - public void loadInterstitial () - { - CFLoadInterstitial (); - } - - public void showInterstitial () - { - CFShowInterstitial (); - } - - public void showInterstitial (string placementName) - { - CFShowInterstitialWithPlacementName (placementName); - } - - public bool isInterstitialReady () - { - return CFIsInterstitialReady (); - } - - public bool isInterstitialPlacementCapped (string placementName) - { - return CFIsInterstitialPlacementCapped (placementName); - } - - //******************* Interstitial DemandOnly API *******************// - - public void loadISDemandOnlyInterstitial (string instanceId) - { - CFLoadISDemandOnlyInterstitial (instanceId); - } - - public void showISDemandOnlyInterstitial (string instanceId) - { - CFShowISDemandOnlyInterstitial(instanceId); - } - - public bool isISDemandOnlyInterstitialReady (string instanceId) - { - return CFIsDemandOnlyInterstitialReady (instanceId); - } - - //******************* Offerwall API *******************// - - public void showOfferwall () - { - CFShowOfferwall (); - } - - public void showOfferwall (string placementName) - { - CFShowOfferwallWithPlacementName (placementName); - } - - public void getOfferwallCredits () - { - CFGetOfferwallCredits (); - } - - public bool isOfferwallAvailable () - { - return CFIsOfferwallAvailable (); - } - - //******************* Banner API *******************// - - public void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position) - { - loadBanner(size, position, ""); - } - - public void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position, string placementName) - { - CFLoadBanner (size.Description, (int)size.Width, (int)size.Height, (int)position, placementName); - } - - public void destroyBanner () - { - CFDestroyBanner (); - } - - public void displayBanner () - { - CFDisplayBanner (); - } - - public void hideBanner () - { - CFHideBanner (); - } - - public bool isBannerPlacementCapped (string placementName) - { - return CFIsBannerPlacementCapped (placementName); - } - - public void setSegment(IronSourceSegment segment){ - Dictionary dict = segment.getSegmentAsDict (); - string json = IronSourceJSON.Json.Serialize (dict); - CFSetSegment (json); - } - - public void setConsent(bool consent) - { - CFSetConsent(consent); - } - - public void loadConsentViewWithType(string consentViewType) - { - CFLoadConsentViewWithType(consentViewType); - } - - public void showConsentViewWithType(string consentViewType) - { - CFShowConsentViewWithType(consentViewType); - } - - //******************* ILRD API *******************// - - public void setAdRevenueData(string dataSource, Dictionary impressionData) - { - string json = IronSourceJSON.Json.Serialize (impressionData); - CFSetAdRevenueData(dataSource, json); - } - - #endregion -} -#endif diff --git a/popcorn/Assets/IronSource/Scripts/iOSAgent.cs.meta b/popcorn/Assets/IronSource/Scripts/iOSAgent.cs.meta deleted file mode 100644 index 648d0170..00000000 --- a/popcorn/Assets/IronSource/Scripts/iOSAgent.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 39133b84cde1b42d8b4970f62fd20faa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/MyGame/Scripts/AdManager.cs b/popcorn/Assets/MyGame/Scripts/AdManager.cs deleted file mode 100644 index eeff5521..00000000 --- a/popcorn/Assets/MyGame/Scripts/AdManager.cs +++ /dev/null @@ -1,178 +0,0 @@ -using System; -using UnityEngine; -using GameAnalyticsSDK; - -public sealed class AdManager : SingletonMonoBehaviour { - - public static readonly string AD_PLACEMENT_COIN = "coin"; - public static readonly string AD_PLACEMENT_CORNFIELD = "cornfield"; - public static readonly string AD_PLACEMENT_CUSTOMER = "increase_customer"; - public static readonly string AD_PLACEMENT_PERFECT = "perfect_popcorn"; - public static readonly string AD_PLACEMENT_VIP = "vip_customer"; - public static readonly string AD_PLACEMENT_AUTO = "auto_popcorn"; - - //-- ironSource --// -#if UNITY_IOS - private static readonly string IRONSOURCE_APP_KEY = "11bc8b5ad"; -#else - private static readonly string IRONSOURCE_APP_KEY = "11bc928bd"; -#endif - - private Action _rewardAdCallback = null; - private readonly int ASYNC_FRAME_LIMIT = 60; - private int _async_frame_count = 0; - private bool _rewardAdOpen = false; - private bool _rewardAdClose = false; - private bool _rewardAdFinish = false; - private float _timeScale = 0.0f; - - private bool _marketPause; - private bool _cacheSeEnabled; - - void Awake(){ -#if UNITY_EDITOR - return; -#endif - InitializeRewardedAds(); - -#if DEVELOPMENT_BUILD - IronSource.Agent.validateIntegration (); - IronSource.Agent.setAdaptersDebug(true); -#endif - IronSource.Agent.init (IRONSOURCE_APP_KEY); - } - - void Start(){ -#if UNITY_EDITOR - return; -#endif - LoadBannerAds(); - ShowBannerAd(); - } - - void Update (){ - if(_rewardAdOpen){ - _rewardAdOpen = false; - pauseGame(); - }else if(_rewardAdClose){ - if(_rewardAdFinish){ - _rewardAdClose = false; - this.RewardAdCallbackClose(_rewardAdFinish); - }else if(ASYNC_FRAME_LIMIT > _async_frame_count){ - _async_frame_count++; - }else{ - _rewardAdClose = false; - this.RewardAdCallbackClose(_rewardAdFinish); - } - } - } - - void OnApplicationPause(bool isPaused) { - IronSource.Agent.onApplicationPause(isPaused); - } - - //-- Banners Ads --// - - public void LoadBannerAds(){ - IronSource.Agent.loadBanner(IronSourceBannerSize.SMART, IronSourceBannerPosition.BOTTOM); - - } - public void ShowBannerAd(){ - IronSource.Agent.displayBanner(); - } - public void HideBanner(){ - IronSource.Agent.hideBanner(); - } - - public void InitializeRewardedAds(){ - IronSourceEvents.onRewardedVideoAdOpenedEvent += RewardedVideoAdOpenedEvent; - IronSourceEvents.onRewardedVideoAdClosedEvent += RewardedVideoAdClosedEvent; - IronSourceEvents.onRewardedVideoAvailabilityChangedEvent += RewardedVideoAvailabilityChangedEvent; - IronSourceEvents.onRewardedVideoAdStartedEvent += RewardedVideoAdStartedEvent; - IronSourceEvents.onRewardedVideoAdRewardedEvent += RewardedVideoAdRewardedEvent; - IronSourceEvents.onRewardedVideoAdShowFailedEvent += RewardedVideoAdShowFailedEvent; - } - private void RewardedVideoAdOpenedEvent(){ - _rewardAdOpen = true; - } - private void RewardedVideoAdClosedEvent(){ - _rewardAdClose = true; - } - private void RewardedVideoAvailabilityChangedEvent(bool available){ - } - private void RewardedVideoAdStartedEvent(){ - } - private void RewardedVideoAdRewardedEvent(IronSourcePlacement placement){ - _rewardAdFinish = true; - } - private void RewardedVideoAdShowFailedEvent (IronSourceError error){ - _rewardAdClose = true; - } - public bool IsLoadedRewardVideo(){ -#if UNITY_EDITOR - return !UsayaStorageManager.LoadOrDefault(UsayaStorageFilename.Settings_Data, "DebugAlwaysVideoFailToLoad", false); -#else - return IronSource.Agent.isRewardedVideoAvailable(); -#endif - } - public void ShowRewardVideo(Action callback, string ad_placement = "none"){ -#if UNITY_EDITOR - callback(true); -#else - _rewardAdCallback = callback; - if(_rewardAdCallback == null){ - return; - }else if(IsLoadedRewardVideo()){ - _rewardAdOpen = false; - _rewardAdFinish = false; - _rewardAdClose = false; - _async_frame_count = 0; - IronSource.Agent.showRewardedVideo(); -#if !DEVELOPMENT_BUILD && !UNITY_EDITOR - GameAnalytics.NewAdEvent(GAAdAction.FailedShow, GAAdType.RewardedVideo, "ironsource", ad_placement); -#endif - }else{ - _rewardAdCallback(false); - } -#endif - } - private void RewardAdCallbackClose(bool success){ - resumeGame(); - _rewardAdCallback(success); - - // 広告カウント不具合確認用 - if (_rewardAdClose && !_rewardAdFinish) - { - Debug.Log($"_async_frame_count:{_async_frame_count}"); - throw new Exception("RewardAd closed but not finish."); - } - } - - private void pauseGame(){ - SoundManager.Instance.PauseBGM(); - SoundManager.Instance.StopSE(); - _cacheSeEnabled = SoundManager.Instance.IsEnabled(SoundType.SE); - SoundManager.Instance.SaveEnabledSE(false); - _marketPause = Market.Instance.IsPause.Value; - Market.Instance.IsPause.Value = true; - if(Time.timeScale > 0.0f){ - _timeScale = Time.timeScale; - // TimeManager.Instance.Stop(); - } - } - private void resumeGame(){ - SoundManager.Instance.ReplayBGM(); - SoundManager.Instance.SaveEnabledSE(_cacheSeEnabled); - // キャッシュしていた元の状態に戻す - if (Market.Instance.IsPause.Value) - { - Market.Instance.IsPause.Value = _marketPause; - } - if(_timeScale > 0.0f){ - Time.timeScale = _timeScale; - // TimeManager.Instance.ChangeTimeScale(_timeScale); - _timeScale = 0.0f; - } - } - -} \ No newline at end of file diff --git a/popcorn/Assets/MyGame/Scripts/AdManager.cs.meta b/popcorn/Assets/MyGame/Scripts/AdManager.cs.meta deleted file mode 100644 index edc955be..00000000 --- a/popcorn/Assets/MyGame/Scripts/AdManager.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 8e2021f1b8ce47f79191ab8732fba298 -timeCreated: 1634545756 \ No newline at end of file diff --git a/popcorn/Assets/MyGame/Scripts/AnalyticsInit.cs b/popcorn/Assets/MyGame/Scripts/AnalyticsInit.cs deleted file mode 100644 index 16bc69af..00000000 --- a/popcorn/Assets/MyGame/Scripts/AnalyticsInit.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using GameAnalyticsSDK; - - -public class AnalyticsInit : MonoBehaviour , IGameAnalyticsATTListener{ - - private bool _attDone = false; - - public static readonly string TENJIN_API_KEY = "VCRGBQMHMGYPM2B5ITDHLSVIFTS8JQSW"; - - private void Awake() { - - } - - void Start () { - if(Application.platform == RuntimePlatform.IPhonePlayer){ - GameAnalytics.RequestTrackingAuthorization(this); - }else{ - InitAnalytics(); - } - } - - void Update(){ - if(_attDone){ - _attDone = false; - InitAnalytics(); - } - - } - - void OnApplicationPause (bool pauseStatus){ - if(pauseStatus){ - //do nothing - }else{ - TenjinConnect(); - } - } - - private void InitAnalytics(){ - GameAnalytics.Initialize(); - TenjinConnect(); - } - - private void TenjinConnect(){ -#if !UNITY_EDITOR - BaseTenjin instance = Tenjin.getInstance(TENJIN_API_KEY); - instance.Connect(); -#endif - } - - //-- GameAnalytics --// - public void GameAnalyticsATTListenerNotDetermined(){ - _attDone = true; - } - public void GameAnalyticsATTListenerRestricted(){ - _attDone = true; - } - public void GameAnalyticsATTListenerDenied(){ - _attDone = true; - } - public void GameAnalyticsATTListenerAuthorized(){ - _attDone = true; - } - - - -} \ No newline at end of file diff --git a/popcorn/Assets/MyGame/Scripts/AnalyticsInit.cs.meta b/popcorn/Assets/MyGame/Scripts/AnalyticsInit.cs.meta deleted file mode 100644 index 67656639..00000000 --- a/popcorn/Assets/MyGame/Scripts/AnalyticsInit.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 92f829d05e001457d8dc5a62a7162e6e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/MyGame/Scripts/GetRewardDialog.cs b/popcorn/Assets/MyGame/Scripts/GetRewardDialog.cs index 7d9302dc..d868cb66 100644 --- a/popcorn/Assets/MyGame/Scripts/GetRewardDialog.cs +++ b/popcorn/Assets/MyGame/Scripts/GetRewardDialog.cs @@ -55,33 +55,34 @@ namespace MyGame.Scripts movieObject.SetActive(true); coinObject.SetActive(true); messageText.text = ScriptLocalization.System.CoinMainMessage; - SetButtonAction(closeButton, okButton, AdManager.AD_PLACEMENT_COIN); + SetButtonAction(closeButton, okButton, "");//AdManager.AD_PLACEMENT_COIN); + break; case RewardType.CornField: normalWindow.SetActive(true); movieObject.SetActive(true); fertilizerObject.SetActive(true); messageText.text = ScriptLocalization.System.CornFieldMessage; - SetButtonAction(closeButton, okButton, AdManager.AD_PLACEMENT_CORNFIELD); + SetButtonAction(closeButton, okButton, ""); //AdManager.AD_PLACEMENT_CORNFIELD); break; case RewardType.IncreaseCustomer: normalWindow.SetActive(true); movieObject.SetActive(true); publicityObject.SetActive(true); messageText.text = ScriptLocalization.System.IncreaseCustomerMessage; - SetButtonAction(closeButton, okButton, AdManager.AD_PLACEMENT_CUSTOMER); + SetButtonAction(closeButton, okButton, "");// AdManager.AD_PLACEMENT_CUSTOMER); break; case RewardType.PerfectPopcorn: normalWindow.SetActive(true); movieObject.SetActive(true); messageText.text = ScriptLocalization.System.PerfectPopcornMessage; - SetButtonAction(closeButton, okButton, AdManager.AD_PLACEMENT_PERFECT); + SetButtonAction(closeButton, okButton, ""); //AdManager.AD_PLACEMENT_PERFECT); break; case RewardType.VipCustomer: normalWindow.SetActive(true); vipObject.SetActive(true); messageText.text = ScriptLocalization.System.VipCustomerMessage; - SetButtonAction(closeButton, okButton, AdManager.AD_PLACEMENT_VIP); + SetButtonAction(closeButton, okButton, "");// AdManager.AD_PLACEMENT_VIP); break; default: throw new ArgumentOutOfRangeException(); @@ -103,24 +104,24 @@ namespace MyGame.Scripts }).AddTo(this); okButton.OnClickAsObservable().Take(1).Subscribe(_ => { - if (AdManager.Instance.IsLoadedRewardVideo()) - { - AdManager.Instance.ShowRewardVideo(result => - { - if (result) - { + //if (AdManager.Instance.IsLoadedRewardVideo()) + //{ + // AdManager.Instance.ShowRewardVideo(result => + // { + // if (result) + // { GameDataManager.GameData.AddAdCount(); LocalCacheManager.Load(OkCallbackTag, null)?.Invoke(); LocalCacheManager.Remove(OkCallbackTag); - } + // } TransitionManager.Instance.UnloadScene(GameScenes.WatchMovieCoin); - }, Placement); - } - else - { - TransitionManager.Instance.LoadSceneAdditive(GameScenes.WatchMovieFailure); - TransitionManager.Instance.UnloadScene(GameScenes.WatchMovieCoin); - } + // }, Placement); + // } + // else + // { + // TransitionManager.Instance.LoadSceneAdditive(GameScenes.WatchMovieFailure); + // TransitionManager.Instance.UnloadScene(GameScenes.WatchMovieCoin); + // } }).AddTo(this); } diff --git a/popcorn/Assets/Plugins/Android/androidx.annotation.annotation-1.1.0.jar b/popcorn/Assets/Plugins/Android/androidx.annotation.annotation-1.1.0.jar deleted file mode 100644 index 06695124..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.annotation.annotation-1.1.0.jar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.annotation.annotation-1.1.0.jar.meta b/popcorn/Assets/Plugins/Android/androidx.annotation.annotation-1.1.0.jar.meta deleted file mode 100644 index 5e18ec6a..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.annotation.annotation-1.1.0.jar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: b0f4b98f5ed5946ee89907801938d429 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.arch.core.core-common-2.0.0.jar b/popcorn/Assets/Plugins/Android/androidx.arch.core.core-common-2.0.0.jar deleted file mode 100644 index 98ec8865..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.arch.core.core-common-2.0.0.jar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.arch.core.core-common-2.0.0.jar.meta b/popcorn/Assets/Plugins/Android/androidx.arch.core.core-common-2.0.0.jar.meta deleted file mode 100644 index 603bbf2c..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.arch.core.core-common-2.0.0.jar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 44390b9de3c544f6b8c50e0abb26dd4a -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.arch.core.core-runtime-2.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.arch.core.core-runtime-2.0.0.aar deleted file mode 100644 index f876595c..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.arch.core.core-runtime-2.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.arch.core.core-runtime-2.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.arch.core.core-runtime-2.0.0.aar.meta deleted file mode 100644 index fbd81f0b..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.arch.core.core-runtime-2.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 290de8cd802b84212b25d541b2c9470c -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.asynclayoutinflater.asynclayoutinflater-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.asynclayoutinflater.asynclayoutinflater-1.0.0.aar deleted file mode 100644 index 337f4c49..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.asynclayoutinflater.asynclayoutinflater-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.asynclayoutinflater.asynclayoutinflater-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.asynclayoutinflater.asynclayoutinflater-1.0.0.aar.meta deleted file mode 100644 index d0939439..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.asynclayoutinflater.asynclayoutinflater-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 11905b161e1a343de80f3fce285220c2 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.collection.collection-1.0.0.jar b/popcorn/Assets/Plugins/Android/androidx.collection.collection-1.0.0.jar deleted file mode 100644 index 78ac06c4..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.collection.collection-1.0.0.jar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.collection.collection-1.0.0.jar.meta b/popcorn/Assets/Plugins/Android/androidx.collection.collection-1.0.0.jar.meta deleted file mode 100644 index c08eebd1..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.collection.collection-1.0.0.jar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: a48d1a03d42a848439bad0f370ed4d66 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.coordinatorlayout.coordinatorlayout-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.coordinatorlayout.coordinatorlayout-1.0.0.aar deleted file mode 100644 index de447ec4..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.coordinatorlayout.coordinatorlayout-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.coordinatorlayout.coordinatorlayout-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.coordinatorlayout.coordinatorlayout-1.0.0.aar.meta deleted file mode 100644 index d4d6299a..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.coordinatorlayout.coordinatorlayout-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: c8add85b994584dd6b2c3c93669d44c5 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.core.core-1.2.0.aar b/popcorn/Assets/Plugins/Android/androidx.core.core-1.2.0.aar deleted file mode 100644 index e8be07ba..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.core.core-1.2.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.core.core-1.2.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.core.core-1.2.0.aar.meta deleted file mode 100644 index efc0b1b8..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.core.core-1.2.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 1186ea1b3987e49ac96d90ceaf37db3d -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.cursoradapter.cursoradapter-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.cursoradapter.cursoradapter-1.0.0.aar deleted file mode 100644 index cd1494a9..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.cursoradapter.cursoradapter-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.cursoradapter.cursoradapter-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.cursoradapter.cursoradapter-1.0.0.aar.meta deleted file mode 100644 index 68894a96..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.cursoradapter.cursoradapter-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: fdc414f8b84cc40a5ab2339ba1309bc2 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.customview.customview-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.customview.customview-1.0.0.aar deleted file mode 100644 index 73e70ac4..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.customview.customview-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.customview.customview-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.customview.customview-1.0.0.aar.meta deleted file mode 100644 index f626d801..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.customview.customview-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 0e7ae1e81557e4257918a2896e0a9301 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.documentfile.documentfile-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.documentfile.documentfile-1.0.0.aar deleted file mode 100644 index 79fd5502..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.documentfile.documentfile-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.documentfile.documentfile-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.documentfile.documentfile-1.0.0.aar.meta deleted file mode 100644 index 26b0531f..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.documentfile.documentfile-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 87b76851ec8624ee98e60d640fecb36f -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.drawerlayout.drawerlayout-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.drawerlayout.drawerlayout-1.0.0.aar deleted file mode 100644 index a9968c7f..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.drawerlayout.drawerlayout-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.drawerlayout.drawerlayout-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.drawerlayout.drawerlayout-1.0.0.aar.meta deleted file mode 100644 index 3985bcca..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.drawerlayout.drawerlayout-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 86ff2b3a8f14b4136b0b68dedb6d6523 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.fragment.fragment-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.fragment.fragment-1.0.0.aar deleted file mode 100644 index 7a5c3605..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.fragment.fragment-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.fragment.fragment-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.fragment.fragment-1.0.0.aar.meta deleted file mode 100644 index 7f4a3e1e..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.fragment.fragment-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: a61963cc0217e4ed885613f75e95b5a6 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.interpolator.interpolator-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.interpolator.interpolator-1.0.0.aar deleted file mode 100644 index bccf86f7..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.interpolator.interpolator-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.interpolator.interpolator-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.interpolator.interpolator-1.0.0.aar.meta deleted file mode 100644 index d46063cb..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.interpolator.interpolator-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 983979bc095f5400d96c452658b36a30 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-ui-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-ui-1.0.0.aar deleted file mode 100644 index 01275eb2..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-ui-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-ui-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-ui-1.0.0.aar.meta deleted file mode 100644 index 26cb5875..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-ui-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 101bae77964224b309fa7c4497d15f54 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-utils-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-utils-1.0.0.aar deleted file mode 100644 index 2980f603..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-utils-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-utils-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-utils-1.0.0.aar.meta deleted file mode 100644 index c843adbd..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.legacy.legacy-support-core-utils-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: a8e48869b5849425f8d06db26ea94654 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-common-2.0.0.jar b/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-common-2.0.0.jar deleted file mode 100644 index 6c3f095c..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-common-2.0.0.jar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-common-2.0.0.jar.meta b/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-common-2.0.0.jar.meta deleted file mode 100644 index ec1cfe48..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-common-2.0.0.jar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 8e5a6508f655540df9b9506ea73c7826 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-2.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-2.0.0.aar deleted file mode 100644 index 27b091c1..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-2.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-2.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-2.0.0.aar.meta deleted file mode 100644 index 26e9daeb..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-2.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: fd59e036d1ca846239bcabce460ad33b -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-core-2.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-core-2.0.0.aar deleted file mode 100644 index 5583b9f5..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-core-2.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-core-2.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-core-2.0.0.aar.meta deleted file mode 100644 index 8fb4b995..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-core-2.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: f511c633d03664cc3a0f8dbb6d2fdb4f -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-runtime-2.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-runtime-2.0.0.aar deleted file mode 100644 index 0809d720..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-runtime-2.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-runtime-2.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-runtime-2.0.0.aar.meta deleted file mode 100644 index e400653d..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-runtime-2.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: c36c7d4a5db4e4b509d2a79aa6800798 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-viewmodel-2.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-viewmodel-2.0.0.aar deleted file mode 100644 index b142a708..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-viewmodel-2.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-viewmodel-2.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-viewmodel-2.0.0.aar.meta deleted file mode 100644 index 0863cf45..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.lifecycle.lifecycle-viewmodel-2.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 0278fefe1008b4ce49295bf70452e2b0 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.loader.loader-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.loader.loader-1.0.0.aar deleted file mode 100644 index 32c57746..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.loader.loader-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.loader.loader-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.loader.loader-1.0.0.aar.meta deleted file mode 100644 index c75b8524..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.loader.loader-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 6259c0dbe9e354c6b81a0a0737245093 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.localbroadcastmanager.localbroadcastmanager-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.localbroadcastmanager.localbroadcastmanager-1.0.0.aar deleted file mode 100644 index e9074ee4..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.localbroadcastmanager.localbroadcastmanager-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.localbroadcastmanager.localbroadcastmanager-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.localbroadcastmanager.localbroadcastmanager-1.0.0.aar.meta deleted file mode 100644 index 0736feae..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.localbroadcastmanager.localbroadcastmanager-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: a1b51aa5ce4be49dc91de24bdbaa524b -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.print.print-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.print.print-1.0.0.aar deleted file mode 100644 index 7bb51fd5..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.print.print-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.print.print-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.print.print-1.0.0.aar.meta deleted file mode 100644 index 8caf12ca..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.print.print-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 9b8046769b38f4c7d8265ce8ba1d2f0f -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.slidingpanelayout.slidingpanelayout-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.slidingpanelayout.slidingpanelayout-1.0.0.aar deleted file mode 100644 index ebee0eee..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.slidingpanelayout.slidingpanelayout-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.slidingpanelayout.slidingpanelayout-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.slidingpanelayout.slidingpanelayout-1.0.0.aar.meta deleted file mode 100644 index efc886a4..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.slidingpanelayout.slidingpanelayout-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 8d686a492ebb04785a3cf3e94b7f37d5 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.swiperefreshlayout.swiperefreshlayout-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.swiperefreshlayout.swiperefreshlayout-1.0.0.aar deleted file mode 100644 index 71d4748e..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.swiperefreshlayout.swiperefreshlayout-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.swiperefreshlayout.swiperefreshlayout-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.swiperefreshlayout.swiperefreshlayout-1.0.0.aar.meta deleted file mode 100644 index 94b85e9d..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.swiperefreshlayout.swiperefreshlayout-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 94e2c92dd1e29492eaecfca70dd698de -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.versionedparcelable.versionedparcelable-1.1.0.aar b/popcorn/Assets/Plugins/Android/androidx.versionedparcelable.versionedparcelable-1.1.0.aar deleted file mode 100644 index d4792e06..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.versionedparcelable.versionedparcelable-1.1.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.versionedparcelable.versionedparcelable-1.1.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.versionedparcelable.versionedparcelable-1.1.0.aar.meta deleted file mode 100644 index 962bf30c..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.versionedparcelable.versionedparcelable-1.1.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 7e0da7f52006d4e45ab803a69cfb7f71 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/androidx.viewpager.viewpager-1.0.0.aar b/popcorn/Assets/Plugins/Android/androidx.viewpager.viewpager-1.0.0.aar deleted file mode 100644 index a7667298..00000000 Binary files a/popcorn/Assets/Plugins/Android/androidx.viewpager.viewpager-1.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/androidx.viewpager.viewpager-1.0.0.aar.meta b/popcorn/Assets/Plugins/Android/androidx.viewpager.viewpager-1.0.0.aar.meta deleted file mode 100644 index 5abb1f91..00000000 --- a/popcorn/Assets/Plugins/Android/androidx.viewpager.viewpager-1.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: b3bd6430e639e497cb119f18d0484142 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-ads-identifier-17.0.0.aar b/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-ads-identifier-17.0.0.aar deleted file mode 100644 index e79b1266..00000000 Binary files a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-ads-identifier-17.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-ads-identifier-17.0.0.aar.meta b/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-ads-identifier-17.0.0.aar.meta deleted file mode 100644 index 45c3e22e..00000000 --- a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-ads-identifier-17.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 444e32aebc18846e3ae12cf6e5202e08 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-appset-16.0.0.aar b/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-appset-16.0.0.aar deleted file mode 100644 index 6244f1df..00000000 Binary files a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-appset-16.0.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-appset-16.0.0.aar.meta b/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-appset-16.0.0.aar.meta deleted file mode 100644 index 168663cd..00000000 --- a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-appset-16.0.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 6c8f051f9e89e45a0964ad86e97b934b -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-base-17.6.0.aar b/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-base-17.6.0.aar deleted file mode 100644 index 1ce3e0d1..00000000 Binary files a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-base-17.6.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-base-17.6.0.aar.meta b/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-base-17.6.0.aar.meta deleted file mode 100644 index 3b7d66c3..00000000 --- a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-base-17.6.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 588774069102e4a4fb9868caa5629ae5 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-basement-17.6.0.aar b/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-basement-17.6.0.aar deleted file mode 100644 index 74aa5b76..00000000 Binary files a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-basement-17.6.0.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-basement-17.6.0.aar.meta b/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-basement-17.6.0.aar.meta deleted file mode 100644 index 42ef6f99..00000000 --- a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-basement-17.6.0.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: bee355e2a473d4ca0bbf3e5a10f9afce -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-tasks-17.2.1.aar b/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-tasks-17.2.1.aar deleted file mode 100644 index f00c57de..00000000 Binary files a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-tasks-17.2.1.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-tasks-17.2.1.aar.meta b/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-tasks-17.2.1.aar.meta deleted file mode 100644 index 29388e7f..00000000 --- a/popcorn/Assets/Plugins/Android/com.google.android.gms.play-services-tasks-17.2.1.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 6abc177a889a74174b7931368d82bacd -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/com.ironsource.sdk.mediationsdk-7.1.12.aar b/popcorn/Assets/Plugins/Android/com.ironsource.sdk.mediationsdk-7.1.12.aar deleted file mode 100644 index 9be2514c..00000000 Binary files a/popcorn/Assets/Plugins/Android/com.ironsource.sdk.mediationsdk-7.1.12.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/com.ironsource.sdk.mediationsdk-7.1.12.aar.meta b/popcorn/Assets/Plugins/Android/com.ironsource.sdk.mediationsdk-7.1.12.aar.meta deleted file mode 100644 index e75720bb..00000000 --- a/popcorn/Assets/Plugins/Android/com.ironsource.sdk.mediationsdk-7.1.12.aar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 48a28e7aeaec445329bfa6a3bdb02ed7 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/org.jetbrains.annotations-13.0.jar b/popcorn/Assets/Plugins/Android/org.jetbrains.annotations-13.0.jar deleted file mode 100644 index fb794be9..00000000 Binary files a/popcorn/Assets/Plugins/Android/org.jetbrains.annotations-13.0.jar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/org.jetbrains.annotations-13.0.jar.meta b/popcorn/Assets/Plugins/Android/org.jetbrains.annotations-13.0.jar.meta deleted file mode 100644 index 822b9434..00000000 --- a/popcorn/Assets/Plugins/Android/org.jetbrains.annotations-13.0.jar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 8b8d6c337285b4e79b39b1fc37d8dba8 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-1.4.32.jar b/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-1.4.32.jar deleted file mode 100644 index 0e6b3a6b..00000000 Binary files a/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-1.4.32.jar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-1.4.32.jar.meta b/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-1.4.32.jar.meta deleted file mode 100644 index a7239d6d..00000000 --- a/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-1.4.32.jar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 7ee0d807a24c6475abe100068e828274 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-common-1.4.32.jar b/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-common-1.4.32.jar deleted file mode 100644 index 79891a0e..00000000 Binary files a/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-common-1.4.32.jar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-common-1.4.32.jar.meta b/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-common-1.4.32.jar.meta deleted file mode 100644 index 75b54be9..00000000 --- a/popcorn/Assets/Plugins/Android/org.jetbrains.kotlin.kotlin-stdlib-common-1.4.32.jar.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: f9b1a4c94b0e145728bbe4b78ebd4525 -labels: -- gpsr -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/Android/tenjin.aar b/popcorn/Assets/Plugins/Android/tenjin.aar deleted file mode 100644 index 43a36d9a..00000000 Binary files a/popcorn/Assets/Plugins/Android/tenjin.aar and /dev/null differ diff --git a/popcorn/Assets/Plugins/Android/tenjin.aar.meta b/popcorn/Assets/Plugins/Android/tenjin.aar.meta deleted file mode 100644 index 84a6ce3f..00000000 --- a/popcorn/Assets/Plugins/Android/tenjin.aar.meta +++ /dev/null @@ -1,32 +0,0 @@ -fileFormatVersion: 2 -guid: ba8b0216d5dc542fa95dde93f8a75b0e -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Android: Android - second: - enabled: 1 - settings: {} - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/iOS.meta b/popcorn/Assets/Plugins/iOS.meta deleted file mode 100644 index 1da48043..00000000 --- a/popcorn/Assets/Plugins/iOS.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: bac35c308b1e840d3923c92e2d044a03 -folderAsset: yes -DefaultImporter: - userData: diff --git a/popcorn/Assets/Plugins/iOS/TenjinSDK.h b/popcorn/Assets/Plugins/iOS/TenjinSDK.h deleted file mode 100644 index 8b4800b0..00000000 --- a/popcorn/Assets/Plugins/iOS/TenjinSDK.h +++ /dev/null @@ -1,189 +0,0 @@ -// -// TenjinSDK.h -// TenjinSDK -// -// Version 1.12.7 - -// Copyright (c) 2016 Tenjin. All rights reserved. -// - -#import -#import - -@interface TenjinSDK : NSObject - -#pragma mark Initialization - -- (instancetype)init NS_UNAVAILABLE; - -// initialize the Tenjin SDK -+ (TenjinSDK *)init:(NSString *)apiToken __deprecated_msg("use `initialize`"); - -//initialize the Tenjin SDK with shared secret -+ (TenjinSDK *)init:(NSString *)apiToken - andSharedSecret:(NSString *)secret __deprecated_msg("use `initialize`"); - -//initialize the Tenjin SDK with app subversion -+ (TenjinSDK *)init:(NSString *)apiToken - andAppSubversion:(NSNumber *)subversion __deprecated_msg("use `initialize`"); - -//initialize the Tenjin SDK with shared secret and app subversion -+ (TenjinSDK *)init:(NSString *)apiToken - andSharedSecret:(NSString *)secret - andAppSubversion:(NSNumber *)subversion __deprecated_msg("use `initialize`"); - -// initialize the Tenjin SDK -+ (TenjinSDK *)initialize:(NSString *)apiToken; - -//initialize the Tenjin SDK with shared secret -+ (TenjinSDK *)initialize:(NSString *)apiToken - andSharedSecret:(NSString *)secret; - -//initialize the Tenjin SDK with app subversion -+ (TenjinSDK *)initialize:(NSString *)apiToken - andAppSubversion:(NSNumber *)subversion; - -//initialize the Tenjin SDK with shared secret and app subversion -+ (TenjinSDK *)initialize:(NSString *)apiToken - andSharedSecret:(NSString *)secret - andAppSubversion:(NSNumber *)subversion; - -- (id)initWithToken:(NSString *)apiToken - andSharedSecret:(NSString *)secret - andAppSubversion:(NSNumber *)subversion -andDeferredDeeplink:(NSURL *)url - ping:(BOOL)ping NS_DESIGNATED_INITIALIZER; - -#pragma mark Singleton access - -// initialize the Tenjin SDK -+ (TenjinSDK *)getInstance:(NSString *)apiToken; - -//initialize the Tenjin SDK with shared secret -+ (TenjinSDK *)getInstance:(NSString *)apiToken - andSharedSecret:(NSString *)secret; - -//initialize the Tenjin SDK with app subversion -+ (TenjinSDK *)getInstance:(NSString *)apiToken - andAppSubversion:(NSNumber *)subversion; - -//initialize the Tenjin SDK with shared secret and app subversion -+ (TenjinSDK *)getInstance:(NSString *)apiToken - andSharedSecret:(NSString *)secret - andAppSubversion:(NSNumber *)subversion; - -//initialize the Tenjin SDK + connect -+ (TenjinSDK *)sharedInstanceWithToken:(NSString *)apiToken __deprecated_msg("use `init` and `connect`"); - -//initialize the Tenjin SDK + connect with a third party deeplink -+ (TenjinSDK *)sharedInstanceWithToken:(NSString *)apiToken - andDeferredDeeplink:(NSURL *)url __deprecated_msg("use `init` and `connectWithDeferredDeeplink`"); - -//returns the shared Tenjin SDK instance -+ (TenjinSDK *)sharedInstance; - -#pragma mark - Functionality - -//use connect to send connect call. sharedInstanceWithToken automatically does a connect -+ (void)connect; - -//use connect to send connect call. sharedInstanceWithToken automatically does a connect -+ (void)connectWithDeferredDeeplink:(NSURL *)url; - -//use sendEventWithName for custom event names -+ (void)sendEventWithName:(NSString *)eventName; - -//This method checks to make sure integers are passed as values. -+ (void)sendEventWithName:(NSString *)eventName - andEventValue:(NSString *)eventValue; - -//This method is deprecated in favor of [transaction: andReceipt:], so Tenjin can verify your transactions -+ (void)transaction:(SKPaymentTransaction *)transaction __attribute__((deprecated)); - -//Use this method to submit a transaction to Tenjin, we will also attempt to verify it for our records -+ (void)transaction:(SKPaymentTransaction *)transaction - andReceipt:(NSData *)receipt; - -//use transactionWithProductName... when you don't use Apple's SKPaymentTransaction and need to pass revenue directly -+ (void)transactionWithProductName:(NSString *)productName - andCurrencyCode:(NSString *)currencyCode - andQuantity:(NSInteger)quantity - andUnitPrice:(NSDecimalNumber *)price; - -//use transactionWithProductName...when you don't use Apple's SKPaymentTransaction and need to pass revenue directly with a NSData binary receipt -+ (void)transactionWithProductName:(NSString *)productName - andCurrencyCode:(NSString *)currencyCode - andQuantity:(NSInteger)quantity - andUnitPrice:(NSDecimalNumber *)price - andTransactionId:(NSString *)transactionId - andReceipt:(NSData *)receipt; - -//use this method when you want to pass in a base64 receipt instead of a NSData receipt -+ (void)transactionWithProductName:(NSString *)productName - andCurrencyCode:(NSString *)currencyCode - andQuantity:(NSInteger)quantity - andUnitPrice:(NSDecimalNumber *)price - andTransactionId:(NSString *)transactionId - andBase64Receipt:(NSString *)receipt; - -//use this method to register the attribution callback -- (void)registerDeepLinkHandler:(void (^)(NSDictionary *params, NSError *error))deeplinkHandler; - -//notify Tenjin of a new subscription purchase -- (void)handleSubscriptionPurchase:(SKPaymentTransaction *)transaction; - -// GDPR opt-out -+ (void)optOut; - -// GDPR opt-in -+ (void)optIn; - -// GDPR opt-out of list of params -+ (void)optOutParams:(NSArray *)params; - -// GDPR opt-in with list of params -+ (void)optInParams:(NSArray *)params; - -// Appends app subversion to app version -+ (void)appendAppSubversion:(NSNumber *)subversion; - -// deprecated -+ (void)updateSkAdNetworkConversionValue:(int)conversionValue __deprecated_msg("use `updateConversionValue:`"); - -// Update conversion value -+ (void)updateConversionValue:(int)conversionValue; - -#pragma mark Util - -+ (void)verboseLogs; - -+ (void)debugLogs; - -+ (void)setLogHandler:(void (^)(NSString *))handler; - -+ (NSString *)sdkVersion; - -+ (void)setWrapperVersion:(NSString *)wrapperVersion; - -+ (void)setValue:(NSString *)value - forKey:(NSString *)key; - -+ (void)registerAppForAdNetworkAttribution; - -+ (void)requestTrackingAuthorizationWithCompletionHandler:(void (^)(NSUInteger status))completion; -@end -// -// Created by Tenjin on 2019-05-17. -// Copyright (c) 2019 Tenjin. All rights reserved. -// - -#import -#import "TenjinSDK.h" - - -@interface TenjinSDK (MoPubILRD) -+ (void)subscribeMoPubImpressions; - -+ (void)mopubImpressionFromJSON:(NSString *)jsonString; -@end - diff --git a/popcorn/Assets/Plugins/iOS/TenjinSDK.h.meta b/popcorn/Assets/Plugins/iOS/TenjinSDK.h.meta deleted file mode 100644 index f6621a11..00000000 --- a/popcorn/Assets/Plugins/iOS/TenjinSDK.h.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 460520ebc89d6411cbf55a7bd8d2f698 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - iPhone: iOS - second: - enabled: 1 - settings: - AddToEmbeddedBinaries: false - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.h b/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.h deleted file mode 100755 index a84eb32b..00000000 --- a/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.h +++ /dev/null @@ -1,56 +0,0 @@ -// -// TenjinUnityInterface.h -// Unity-iOS bridge -// -// Copyright (c) 2018 Tenjin. All rights reserved. -// -// - -#ifndef __Unity_iPhone__TenjinUnityInterface__ -#define __Unity_iPhone__TenjinUnityInterface__ - -#include "TenjinSDK.h" - -extern "C" { - -typedef struct TenjinStringStringKeyValuePair { - const char* key; - const char* value; -} TenjinStringStringKeyValuePair; - -typedef void (*TenjinDeeplinkHandlerFunc)(TenjinStringStringKeyValuePair* deepLinkDataPairArray, int32_t deepLinkDataPairCount); - -void iosTenjinInit(const char* apiKey); -void iosTenjinInitWithSharedSecret(const char* apiKey, const char* sharedSecret); -void iosTenjinInitWithAppSubversion(const char* apiKey, int subversion); -void iosTenjinInitWithSharedSecretAppSubversion(const char* apiKey, const char* sharedSecret, int subversion); - -void iosTenjinInitialize(const char* apiKey); -void iosTenjinInitializeWithSharedSecret(const char* apiKey, const char* sharedSecret); -void iosTenjinInitializeWithAppSubversion(const char* apiKey, int subversion); -void iosTenjinInitializeWithSharedSecretAppSubversion(const char* apiKey, const char* sharedSecret, int subversion); - -void iosTenjinConnect(); -void iosTenjinConnectWithDeferredDeeplink(const char* deferredDeeplink); - -void iosTenjinSendEvent(const char* eventName); -void iosTenjinSendEventWithValue(const char* eventName, const char* eventValue); -void iosTenjinTransaction(const char* productId, const char* currencyCode, int quantity, double price); -void iosTenjinTransactionWithReceiptData(const char* productId, const char* currencyCode, int quantity, double price, const char* transactionId, const char* receipt); -void iosTenjinRegisterDeepLinkHandler(TenjinDeeplinkHandlerFunc deeplinkHandlerFunc); - -void iosTenjinOptIn(); -void iosTenjinOptOut(); -void iosTenjinOptInParams(char** params, int size); -void iosTenjinOptOutParams(char** params, int size); -void iosTenjinAppendAppSubversion(int subversion); -void iosTenjinUpdateConversionValue(int conversionValue); -void iosTenjinRequestTrackingAuthorizationWithCompletionHandler(); - -void iosTenjinSetDebugLogs(); - -void iosTenjinSubscribeMoPubImpressions(); -void iosTenjinMopubImpressionFromJSON(const char* jsonString); -} - -#endif diff --git a/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.h.meta b/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.h.meta deleted file mode 100644 index 400c83b0..00000000 --- a/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.h.meta +++ /dev/null @@ -1,32 +0,0 @@ -fileFormatVersion: 2 -guid: f9924cf43851d480ba52cf59448f4c51 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - iPhone: iOS - second: - enabled: 1 - settings: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.mm b/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.mm deleted file mode 100644 index f7335d5e..00000000 --- a/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.mm +++ /dev/null @@ -1,239 +0,0 @@ -// -// TenjinUnityInterface.mm -// Unity-iOS bridge -// -// Created by Christopher Farm. -// -// - -#include "TenjinUnityInterface.h" - -extern "C" { -#define MALLOC_ARRAY(count, type) (count == 0 ? NULL : (type*) malloc(count * sizeof(type))) -void iosTenjin_InternalFreeStringStringKeyValuePairs(TenjinStringStringKeyValuePair* pairs, int32_t pairCount); -bool iosTenjin_InternalConvertDictionaryToStringStringPairs(NSDictionary* dictionary, TenjinStringStringKeyValuePair** outPairArray, int* outPairCount); - -TenjinDeeplinkHandlerFunc registeredDeeplinkHandlerFunc; - -void iosTenjinInit(const char* apiKey){ - NSString *apiKeyStr = [NSString stringWithUTF8String:apiKey]; - - NSLog(@"Called Tenjin [TenjinSDK sharedInstanceWithToken:%@]", apiKeyStr); - [TenjinSDK initialize:apiKeyStr]; -} - -void iosTenjinInitWithSharedSecret(const char* apiKey, const char* sharedSecret){ - NSString *apiKeyStr = [NSString stringWithUTF8String:apiKey]; - NSString *sharedSecretStr = [NSString stringWithUTF8String:sharedSecret]; - - NSLog(@"Called Tenjin [TenjinSDK sharedInstanceWithToken:%@ andSharedSecret:*]", apiKeyStr); - [TenjinSDK initialize:apiKeyStr andSharedSecret:sharedSecretStr]; -} - -void iosTenjinInitWithAppSubversion(const char* apiKey, int subversion){ - NSString *apiKeyStr = [NSString stringWithUTF8String:apiKey]; - NSNumber *subVersion = [NSNumber numberWithInt:subversion]; - - NSLog(@"Called Tenjin [TenjinSDK sharedInstanceWithToken:%@ andAppSubversion:%@]", apiKeyStr, subVersion); - [TenjinSDK initialize:apiKeyStr andAppSubversion:subVersion]; -} - -void iosTenjinInitWithSharedSecretAppSubversion(const char* apiKey, const char* sharedSecret, int subversion){ - NSString *apiKeyStr = [NSString stringWithUTF8String:apiKey]; - NSString *sharedSecretStr = [NSString stringWithUTF8String:sharedSecret]; - NSNumber *subVersion = [NSNumber numberWithInt:subversion]; - - NSLog(@"Called Tenjin [TenjinSDK sharedInstanceWithToken:%@ andSharedSecret:* andAppSubversion:%@]", apiKeyStr, subVersion); - [TenjinSDK initialize:apiKeyStr andSharedSecret:sharedSecretStr andAppSubversion:subVersion]; -} - -void iosTenjinConnect(){ - [TenjinSDK connect]; -} - -void iosTenjinConnectWithDeferredDeeplink(const char* deferredDeeplink){ - NSString *deferredDeeplinkStr = [NSString stringWithUTF8String:deferredDeeplink]; - NSURL *deferredDeeplinkStrUri = [NSURL URLWithString:[deferredDeeplinkStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; - NSLog(@"Called Tenjin [TenjinSDK connectWithDeferredDeeplink:%@]", deferredDeeplinkStr); - [TenjinSDK connectWithDeferredDeeplink:deferredDeeplinkStrUri]; -} - -void iosTenjinSendEvent(const char* eventName){ - NSString *eventNameStr = [NSString stringWithUTF8String:eventName]; - NSLog(@"Called Tenjin [TenjinSDK sendEventWithName:%@]", eventNameStr); - [TenjinSDK sendEventWithName:eventNameStr]; -} - -void iosTenjinSendEventWithValue(const char* eventName, const char* eventValue){ - NSString *eventNameStr = [NSString stringWithUTF8String:eventName]; - NSString *eventValueStr = [NSString stringWithUTF8String:eventValue]; - NSLog(@"Called Tenjin [TenjinSDK sendEventWithName:%@ andEventValue:%@]", eventNameStr, eventValueStr); - [TenjinSDK sendEventWithName:eventNameStr andEventValue:eventValueStr]; -} - -void iosTenjinTransaction(const char* productId, const char* currencyCode, int quantity, double price){ - NSString *prodId = [NSString stringWithUTF8String:productId]; - NSString *curCode = [NSString stringWithUTF8String:currencyCode]; - NSDecimalNumber* pr = [[NSDecimalNumber alloc] initWithDouble:price]; - NSLog(@"Called Tenjin [TenjinSDK transactionWithProductName:%@ andCurrencyCode:%@ andQuantity:%d andUnitPrice:%f]", prodId, curCode, quantity, price); - - //call manual method in tenjin sdk - [TenjinSDK transactionWithProductName:prodId andCurrencyCode:curCode andQuantity:quantity andUnitPrice:pr]; -} - -void iosTenjinTransactionWithReceiptData(const char* productId, const char* currencyCode, int quantity, double price, const char* transactionId, const char* receipt){ - NSString *prodId = [NSString stringWithUTF8String: productId]; - NSString *curCode = [NSString stringWithUTF8String: currencyCode]; - NSDecimalNumber *pr = [[NSDecimalNumber alloc] initWithDouble: price]; - NSString *tid = [NSString stringWithUTF8String: transactionId]; - NSString *rec = [NSString stringWithUTF8String: receipt]; - - //call manual tenjin call with receipt data - NSLog(@"Called Tenjin [TenjinSDK transactionWithProductName:%@ andCurrencyCode:%@ andQuantity:%d andUnitPrice:%f andTransactionId:%@ andBase64Receipt:%@]", prodId, curCode, quantity, price, tid, rec); - [TenjinSDK transactionWithProductName: prodId andCurrencyCode:curCode andQuantity:quantity andUnitPrice:pr andTransactionId:tid andBase64Receipt:rec]; -} - -void iosTenjinOptIn(){ - NSLog(@"Called Tenjin [TenjinSDK optIn]"); - [TenjinSDK optIn]; -} - -void iosTenjinOptOut(){ - NSLog(@"Called Tenjin [TenjinSDK optOut]"); - [TenjinSDK optOut]; -} - -void iosTenjinOptInParams(char** params, int size){ - NSMutableArray *paramsList = [[NSMutableArray alloc] init]; - for (int i = 0; i < size; ++i) { - NSString *str = [[NSString alloc] initWithCString:params[i] encoding:NSUTF8StringEncoding]; - NSLog(@"OptIn Param: %@", str); - [paramsList addObject:str]; - } - NSLog(@"Called Tenjin [TenjinSDK optInParams]"); - [TenjinSDK optInParams:paramsList]; -} - -void iosTenjinOptOutParams(char** params, int size){ - NSMutableArray *paramsList = [[NSMutableArray alloc] init]; - for (int i = 0; i < size; ++i) { - NSString *str = [[NSString alloc] initWithCString:params[i] encoding:NSUTF8StringEncoding]; - NSLog(@"OptOut Param: %@", str); - [paramsList addObject:str]; - } - NSLog(@"Called Tenjin [TenjinSDK optOutParams]"); - [TenjinSDK optOutParams:paramsList]; -} - -void iosTenjinAppendAppSubversion(int subversion){ - NSNumber *subVersion = [NSNumber numberWithInt:subversion]; - NSLog(@"Called Tenjin [TenjinSDK appendAppSubversion]"); - [TenjinSDK appendAppSubversion:subVersion]; -} - -void iosTenjinUpdateConversionValue(int conversionValue){ - NSLog(@"Called Tenjin [TenjinSDK updateConversionValue]"); - [TenjinSDK updateConversionValue:conversionValue]; -} - -void iosTenjinRegisterAppForAdNetworkAttribution(){ - NSLog(@"Called Tenjin [TenjinSDK registerAppForAdNetworkAttribution]"); - [TenjinSDK registerAppForAdNetworkAttribution]; -} - -void iosTenjinRequestTrackingAuthorizationWithCompletionHandler(){ - NSLog(@"Called Tenjin [TenjinSDK requestTrackingAuthorizationWithCompletionHandler]"); - [TenjinSDK requestTrackingAuthorizationWithCompletionHandler:^(NSUInteger status) { - NSString *statusString = [NSString stringWithFormat:@"%tu", status]; - NSLog(@"ATTracking status: %@", statusString); - const char* charStatus = [statusString UTF8String]; - UnitySendMessage([@"Tenjin" UTF8String], "SetTrackingAuthorizationStatus", charStatus); - }]; -} - -void iosTenjinSubscribeMoPubImpressions(){ - [TenjinSDK subscribeMoPubImpressions]; -} - -void iosTenjinSetDebugLogs(){ - [TenjinSDK debugLogs]; -} - -void iosTenjinMopubImpressionFromJSON(const char* jsonString){ - NSString *jsonStr = [NSString stringWithUTF8String:jsonString]; - - [TenjinSDK mopubImpressionFromJSON:jsonStr]; -} - -void iosTenjinRegisterDeepLinkHandler(TenjinDeeplinkHandlerFunc deeplinkHandlerFunc) { - NSLog(@"Called iosTenjinRegisterDeepLinkHandler"); - registeredDeeplinkHandlerFunc = deeplinkHandlerFunc; - [[TenjinSDK sharedInstance] registerDeepLinkHandler:^(NSDictionary *params, NSError *error) { - NSLog(@"Entered deepLinkHandler"); - if (registeredDeeplinkHandlerFunc == NULL) - return; - - TenjinStringStringKeyValuePair* deepLinkDataPairArray; - int32_t deepLinkDataPairArrayCount; - iosTenjin_InternalConvertDictionaryToStringStringPairs(params, &deepLinkDataPairArray, &deepLinkDataPairArrayCount); - - registeredDeeplinkHandlerFunc(deepLinkDataPairArray, deepLinkDataPairArrayCount); - - iosTenjin_InternalFreeStringStringKeyValuePairs(deepLinkDataPairArray, deepLinkDataPairArrayCount); - }]; -} - -bool iosTenjin_InternalConvertDictionaryToStringStringPairs(NSDictionary* dictionary, TenjinStringStringKeyValuePair** outPairArray, int* outPairCount) { - *outPairArray = NULL; - *outPairCount = 0; - if (dictionary == nil) - return false; - - int pairCount = (int) dictionary.count; - TenjinStringStringKeyValuePair* pairArray = MALLOC_ARRAY(pairCount, TenjinStringStringKeyValuePair); - int counter = 0; - for (NSString* key in dictionary) { - NSObject* value = dictionary[key]; - TenjinStringStringKeyValuePair pair; - pair.key = strdup([key UTF8String]); - if ([value isKindOfClass:[NSNumber class]]) { - NSNumber* numberValue = (NSNumber*) value; - CFNumberType numberType = CFNumberGetType((CFNumberRef)numberValue); - if (numberType == kCFNumberCharType) { - pair.value = strdup([([numberValue boolValue] ? @"True" : @"False") UTF8String]); - } else { - pair.value = strdup([[numberValue stringValue] UTF8String]); - } - - } else if ([value isKindOfClass:[NSString class]]) { - pair.value = strdup([((NSString*) value) UTF8String]); - } else { - pair.value = strdup("Unknown data type"); - } - - pairArray[counter] = pair; - counter++; - } - - *outPairArray = pairArray; - *outPairCount = pairCount; - return true; -} - -void iosTenjin_InternalFreeStringStringKeyValuePairs(TenjinStringStringKeyValuePair* pairs, int32_t pairCount) { - for (int i = 0; i < pairCount; ++i) { - free((void*) pairs[i].key); - free((void*) pairs[i].value); - } - - free((void*) pairs); -} - -void iosTenjinSetWrapperVersion(const char* wrapperString){ - NSString *utfStr = [NSString stringWithUTF8String:wrapperString]; - - [TenjinSDK setWrapperVersion:utfStr]; -} - - -} //extern "C" diff --git a/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.mm.meta b/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.mm.meta deleted file mode 100644 index f4e3e03f..00000000 --- a/popcorn/Assets/Plugins/iOS/TenjinUnityInterface.mm.meta +++ /dev/null @@ -1,99 +0,0 @@ -fileFormatVersion: 2 -guid: f47a6cac8c2dd44de96c8c40c24f7ed3 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - '': Any - second: - enabled: 0 - settings: - Exclude Android: 1 - Exclude Editor: 1 - Exclude Linux: 1 - Exclude Linux64: 1 - Exclude LinuxUniversal: 1 - Exclude OSXUniversal: 1 - Exclude Win: 1 - Exclude Win64: 1 - Exclude iOS: 0 - - first: - Android: Android - second: - enabled: 0 - settings: - CPU: ARMv7 - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - CPU: AnyCPU - DefaultValueInitialized: true - OS: AnyOS - - first: - Facebook: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Facebook: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Linux - second: - enabled: 0 - settings: - CPU: x86 - - first: - Standalone: Linux64 - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: OSXUniversal - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: AnyCPU - - first: - iPhone: iOS - second: - enabled: 1 - settings: - AddToEmbeddedBinaries: false - CompileFlags: - FrameworkDependencies: - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/iOS/libTenjinSDK.a b/popcorn/Assets/Plugins/iOS/libTenjinSDK.a deleted file mode 100644 index 16dfa17c..00000000 Binary files a/popcorn/Assets/Plugins/iOS/libTenjinSDK.a and /dev/null differ diff --git a/popcorn/Assets/Plugins/iOS/libTenjinSDK.a.meta b/popcorn/Assets/Plugins/iOS/libTenjinSDK.a.meta deleted file mode 100644 index f3299d90..00000000 --- a/popcorn/Assets/Plugins/iOS/libTenjinSDK.a.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 107eef02a306b448b9bd52c2cf6f250b -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - iPhone: iOS - second: - enabled: 1 - settings: - AddToEmbeddedBinaries: false - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Plugins/iOS/libTenjinSDKUniversal.a b/popcorn/Assets/Plugins/iOS/libTenjinSDKUniversal.a deleted file mode 100644 index 3831590a..00000000 Binary files a/popcorn/Assets/Plugins/iOS/libTenjinSDKUniversal.a and /dev/null differ diff --git a/popcorn/Assets/Plugins/iOS/libTenjinSDKUniversal.a.meta b/popcorn/Assets/Plugins/iOS/libTenjinSDKUniversal.a.meta deleted file mode 100644 index 71596cd2..00000000 --- a/popcorn/Assets/Plugins/iOS/libTenjinSDKUniversal.a.meta +++ /dev/null @@ -1,33 +0,0 @@ -fileFormatVersion: 2 -guid: 9469419f6f2784e119ca32cc6382fe6f -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - Any: - second: - enabled: 0 - settings: {} - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - iPhone: iOS - second: - enabled: 1 - settings: - AddToEmbeddedBinaries: false - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Tenjin.meta b/popcorn/Assets/Tenjin.meta deleted file mode 100644 index 2d8efb56..00000000 --- a/popcorn/Assets/Tenjin.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: db622e450792b49189c13039ece441be -folderAsset: yes -DefaultImporter: - userData: diff --git a/popcorn/Assets/Tenjin/Scripts.meta b/popcorn/Assets/Tenjin/Scripts.meta deleted file mode 100644 index e428b847..00000000 --- a/popcorn/Assets/Tenjin/Scripts.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 0922ff8bfbb054078b63e8336b7c0a35 -folderAsset: yes -DefaultImporter: - userData: diff --git a/popcorn/Assets/Tenjin/Scripts/AndroidTenjin.cs b/popcorn/Assets/Tenjin/Scripts/AndroidTenjin.cs deleted file mode 100644 index 66c20bdc..00000000 --- a/popcorn/Assets/Tenjin/Scripts/AndroidTenjin.cs +++ /dev/null @@ -1,400 +0,0 @@ -using UnityEngine; -using System; -using System.Collections; -using System.Collections.Generic; - -public class AndroidTenjin : BaseTenjin { - - private const string AndroidJavaTenjinClass = "com.tenjin.android.TenjinSDK"; - private const string AndroidJavaTenjinAppStoreType = "com.tenjin.android.TenjinSDK$AppStoreType"; - -#if UNITY_ANDROID && !UNITY_EDITOR - private AndroidJavaObject tenjinJava = null; - private AndroidJavaObject activity = null; - - public override void Init(string apiKey){ - if (Debug.isDebugBuild) { - Debug.Log ("Android Initializing - v"+this.SdkVersion); - } - ApiKey = apiKey; - - SetUnityVersionInNativeSDK(); - - initActivity(); - AndroidJavaClass sdk = new AndroidJavaClass (AndroidJavaTenjinClass); - if (sdk == null){ - throw new MissingReferenceException( - string.Format("AndroidTenjin failed to load {0} class", AndroidJavaTenjinClass) - ); - } - tenjinJava = sdk.CallStatic ("getInstance", activity, apiKey); - } - - public override void InitWithSharedSecret(string apiKey, string sharedSecret){ - if (Debug.isDebugBuild) { - Debug.Log("Android Initializing with Shared Secret - v"+this.SdkVersion); - } - ApiKey = apiKey; - SharedSecret = sharedSecret; - - SetUnityVersionInNativeSDK(); - - initActivity(); - AndroidJavaClass sdk = new AndroidJavaClass (AndroidJavaTenjinClass); - if (sdk == null){ - throw new MissingReferenceException( - string.Format("AndroidTenjin failed to load {0} class", AndroidJavaTenjinClass) - ); - } - tenjinJava = sdk.CallStatic ("getInstanceWithSharedSecret", activity, apiKey, sharedSecret); - } - - public override void InitWithAppSubversion(string apiKey, int appSubversion){ - if (Debug.isDebugBuild) { - Debug.Log("Android Initializing with App Subversion: " + appSubversion + " v" +this.SdkVersion); - } - ApiKey = apiKey; - AppSubversion = appSubversion; - - SetUnityVersionInNativeSDK(); - - initActivity(); - AndroidJavaClass sdk = new AndroidJavaClass (AndroidJavaTenjinClass); - if (sdk == null){ - throw new MissingReferenceException( - string.Format("AndroidTenjin failed to load {0} class", AndroidJavaTenjinClass) - ); - } - tenjinJava = sdk.CallStatic ("getInstanceWithAppSubversion", activity, apiKey, appSubversion); - tenjinJava.Call ("appendAppSubversion", new object[]{appSubversion}); - } - - public override void InitWithSharedSecretAppSubversion(string apiKey, string sharedSecret, int appSubversion){ - if (Debug.isDebugBuild) { - Debug.Log("Android Initializing with Shared Secret + App Subversion: " + appSubversion +" v" +this.SdkVersion); - } - ApiKey = apiKey; - SharedSecret = sharedSecret; - AppSubversion = appSubversion; - - SetUnityVersionInNativeSDK(); - - initActivity(); - AndroidJavaClass sdk = new AndroidJavaClass (AndroidJavaTenjinClass); - if (sdk == null){ - throw new MissingReferenceException( - string.Format("AndroidTenjin failed to load {0} class", AndroidJavaTenjinClass) - ); - } - tenjinJava = sdk.CallStatic ("getInstanceWithSharedSecretAppSubversion", activity, apiKey, sharedSecret, appSubversion); - tenjinJava.Call ("appendAppSubversion", new object[]{appSubversion}); - } - - private void SetUnityVersionInNativeSDK() { - var unitySdkVersion = this.SdkVersion + "u"; - - AndroidJavaClass sdk = new AndroidJavaClass (AndroidJavaTenjinClass); - if (sdk == null){ - throw new MissingReferenceException( - string.Format("AndroidTenjin failed to load {0} class", AndroidJavaTenjinClass) - ); - } - - sdk.CallStatic("setWrapperVersion", unitySdkVersion); - } - - private void initActivity(){ - AndroidJavaClass javaContext = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); - activity = javaContext.GetStatic("currentActivity"); - } - - public override void Connect() { - string optInOut = null; - if (optIn) { - optInOut = "optin"; - } - else if (optOut) { - optInOut = "optout"; - } - object[] args = new object[]{null, optInOut}; - tenjinJava.Call ("connect", args); - } - - public override void Connect(string deferredDeeplink){ - string optInOut = null; - if (optIn) { - optInOut = "optin"; - } - else if (optOut) { - optInOut = "optout"; - } - object[] args = new object[]{deferredDeeplink, optInOut}; - tenjinJava.Call ("connect", args); - } - - //SendEvent accepts a single eventName as a String - public override void SendEvent (string eventName){ - object[] args = new object[]{eventName}; - tenjinJava.Call ("eventWithName", args); - } - - //SendEvent accepts eventName as a String and eventValue as a String - public override void SendEvent (string eventName, string eventValue){ - object[] args = new object[]{eventName, eventValue}; - tenjinJava.Call ("eventWithNameAndValue", args); - } - - public override void Transaction(string productId, string currencyCode, int quantity, double unitPrice, string transactionId, string receipt, string signature){ - - transactionId = null; - //if the receipt and signature have values then try to validate. if there are no values then manually log the transaction. - if(receipt != null && signature != null){ - object[] receiptArgs = new object[]{productId, currencyCode, quantity, unitPrice, receipt, signature}; - if (Debug.isDebugBuild) { - Debug.Log ("Android Transaction " + productId + ", " + currencyCode + ", " + quantity + ", " + unitPrice + ", " + receipt + ", " + signature); - } - tenjinJava.Call ("transaction", receiptArgs); - } - else{ - object[] args = new object[]{productId, currencyCode, quantity, unitPrice}; - if (Debug.isDebugBuild) { - Debug.Log ("Android Transaction " + productId + ", " + currencyCode + ", " + quantity + ", " + unitPrice); - } - tenjinJava.Call ("transaction", args); - } - } - - public override void GetDeeplink(Tenjin.DeferredDeeplinkDelegate deferredDeeplinkDelegate) { - DeferredDeeplinkListener onDeferredDeeplinkListener = new DeferredDeeplinkListener(deferredDeeplinkDelegate); - tenjinJava.Call ("getDeeplink", onDeferredDeeplinkListener); - } - - private class DeferredDeeplinkListener : AndroidJavaProxy { - private Tenjin.DeferredDeeplinkDelegate callback; - - public DeferredDeeplinkListener(Tenjin.DeferredDeeplinkDelegate deferredDeeplinkCallback) : base("com.tenjin.android.Callback") { - this.callback = deferredDeeplinkCallback; - } - - public void onSuccess(bool clickedTenjinLink, bool isFirstSession, AndroidJavaObject data) { - Dictionary deeplinkData = new Dictionary(); - string adNetwork = data.Call("get", "ad_network"); - string advertisingId = data.Call("get", "advertising_id"); - string campaignId = data.Call("get", "campaign_id"); - string campaignName = data.Call("get", "campaign_name"); - string deferredDeeplink = data.Call("get", "deferred_deeplink_url"); - string referrer = data.Call("get", "referrer"); - string siteId = data.Call("get", " site_id"); - - if (!string.IsNullOrEmpty(adNetwork)) { - deeplinkData["ad_network"] = adNetwork; - } - if (!string.IsNullOrEmpty(advertisingId)) { - deeplinkData["advertising_id"] = advertisingId; - } - if (!string.IsNullOrEmpty(campaignId)) { - deeplinkData["campaign_id"] = campaignId; - } - if (!string.IsNullOrEmpty(campaignName)) { - deeplinkData["campaign_name"] = campaignName; - } - if (!string.IsNullOrEmpty(deferredDeeplink)) { - deeplinkData["deferred_deeplink_url"] = deferredDeeplink; - } - if (!string.IsNullOrEmpty(referrer)) { - deeplinkData["referrer"] = referrer; - } - if (!string.IsNullOrEmpty(siteId)) { - deeplinkData["site_id"] = siteId; - } - - deeplinkData.Add("clicked_tenjin_link", Convert.ToString(clickedTenjinLink)); - deeplinkData.Add("is_first_session", Convert.ToString(isFirstSession)); - - callback(deeplinkData); - } - } - - public override void OptIn(){ - optIn = true; - tenjinJava.Call ("optIn"); - } - - public override void OptOut(){ - optOut = true; - tenjinJava.Call ("optOut"); - } - - public override void OptInParams(List parameters){ - tenjinJava.Call ("optInParams", new object[] {parameters.ToArray()}); - } - - public override void OptOutParams(List parameters){ - tenjinJava.Call ("optOutParams", new object[] {parameters.ToArray()}); - } - - public override void RegisterAppForAdNetworkAttribution(){ - } - - public override void UpdateConversionValue(int conversionValue){ - if (Debug.isDebugBuild) { - Debug.Log ("Android UpdateConversionValue"); - } - object[] args = new object[]{conversionValue}; - tenjinJava.Call ("updateConversionValue", args); - } - - public override void RequestTrackingAuthorizationWithCompletionHandler(Action trackingAuthorizationCallback) { - } - - public override void AppendAppSubversion (int appSubversion){ - object[] args = new object[]{appSubversion}; - tenjinJava.Call ("appendAppSubversion", args); - } - - public static AndroidJavaObject CreateJavaMapFromDictainary(IDictionary parameters){ - AndroidJavaObject javaMap = new AndroidJavaObject("java.util.HashMap"); - IntPtr putMethod = AndroidJNIHelper.GetMethodID( - javaMap.GetRawClass(), "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); - - object[] args = new object[2]; - foreach (KeyValuePair kvp in parameters){ - using (AndroidJavaObject k = new AndroidJavaObject("java.lang.String", kvp.Key)){ - using (AndroidJavaObject v = new AndroidJavaObject("java.lang.String", kvp.Value)){ - args[0] = k; - args[1] = v; - AndroidJNI.CallObjectMethod(javaMap.GetRawObject(), - putMethod, AndroidJNIHelper.CreateJNIArgArray(args)); - } - } - } - return javaMap; - } - - public override void DebugLogs(){ - Debug.Log ("Debug logs not implemented on android"); - } - - public override void SubscribeMoPubImpressions() - { - Debug.Log("Subscribing to Mopub ILRD"); - TenjinMopubIntegration.ListenForImpressions(ImpressionHandler); - } - - private void ImpressionHandler(string json) - { - Debug.Log($"Got ILRD impression data {json}"); - var args = new object[] {json}; - tenjinJava.Call ("eventAdImpressionMoPub", args); - } - - public override void SetAppStoreType (AppStoreType appStoreType){ - object[] args = new object[]{appStoreType}; - AndroidJavaClass appStoreTypeClass = new AndroidJavaClass(AndroidJavaTenjinAppStoreType); - if (appStoreTypeClass != null){ - AndroidJavaObject tenjinAppStoreType = appStoreTypeClass.GetStatic(appStoreType.ToString()); - if (tenjinAppStoreType != null) { - tenjinJava.Call ("setAppStore", tenjinAppStoreType); - } - } - } -#else - public override void Init(string apiKey){ - Debug.Log ("Android Initializing - v"+this.SdkVersion); - ApiKey = apiKey; - } - - public override void InitWithSharedSecret(string apiKey, string sharedSecret) - { - Debug.Log("Android Initializing with Shared Secret - v"+this.SdkVersion); - ApiKey = apiKey; - SharedSecret = sharedSecret; - } - - public override void InitWithAppSubversion(string apiKey, int appSubversion) - { - Debug.Log("Android Initializing with App Subversion: " + appSubversion + " v" +this.SdkVersion); - ApiKey = apiKey; - AppSubversion = appSubversion; - } - - public override void InitWithSharedSecretAppSubversion(string apiKey, string sharedSecret, int appSubversion) - { - Debug.Log("Android Initializing with Shared Secret + App Subversion: " + appSubversion +" v" +this.SdkVersion); - ApiKey = apiKey; - SharedSecret = sharedSecret; - AppSubversion = appSubversion; - } - - public override void Connect(){ - Debug.Log ("Android Connecting"); - } - - public override void Connect(string deferredDeeplink){ - Debug.Log ("Android Connecting with deferredDeeplink " + deferredDeeplink); - } - - public override void SendEvent (string eventName){ - Debug.Log ("Android Sending Event " + eventName); - } - - public override void SendEvent (string eventName, string eventValue){ - Debug.Log ("Android Sending Event " + eventName + " : " + eventValue); - } - - public override void Transaction(string productId, string currencyCode, int quantity, double unitPrice, string transactionId, string receipt, string signature){ - Debug.Log ("Android Transaction " + productId + ", " + currencyCode + ", " + quantity + ", " + unitPrice + ", " + transactionId + ", " + receipt + ", " + signature); - } - - public override void GetDeeplink(Tenjin.DeferredDeeplinkDelegate deferredDeeplinkDelegate) { - Debug.Log ("Sending AndroidTenjin::GetDeeplink"); - } - - public override void OptIn(){ - Debug.Log ("Sending AndroidTenjin::OptIn"); - } - - public override void OptOut(){ - Debug.Log ("Sending AndroidTenjin::OptOut"); - } - - public override void OptInParams(List parameters){ - Debug.Log ("Sending AndroidTenjin::OptInParams"); - } - - public override void OptOutParams(List parameters){ - Debug.Log ("Sending AndroidTenjin::OptOutParams"); - } - - public override void AppendAppSubversion(int subversion){ - Debug.Log("Sending AndroidTenjin::AppendAppSubversion :" + subversion); - } - - public override void SubscribeMoPubImpressions() - { - Debug.Log("Sending AndroidTenjin:: SubscribeMoPubImpressions " ); - } - public override void DebugLogs(){ - Debug.Log ("Setting debug logs "); - } - - public override void UpdateConversionValue(int conversionValue) - { - Debug.Log("Sending UpdateConversionValue: " + conversionValue); - } - - public override void RegisterAppForAdNetworkAttribution() - { - throw new NotImplementedException(); - } - - public override void RequestTrackingAuthorizationWithCompletionHandler(Action trackingAuthorizationCallback) - { - throw new NotImplementedException(); - } - - public override void SetAppStoreType(AppStoreType appStoreType) { - Debug.Log("Setting AndroidTenjin::SetAppStoreType: " + appStoreType); - } -#endif -} diff --git a/popcorn/Assets/Tenjin/Scripts/AndroidTenjin.cs.meta b/popcorn/Assets/Tenjin/Scripts/AndroidTenjin.cs.meta deleted file mode 100644 index 10edbd4f..00000000 --- a/popcorn/Assets/Tenjin/Scripts/AndroidTenjin.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8bfcadc6d73354682b86bd6c20927ba1 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/popcorn/Assets/Tenjin/Scripts/AppStoreType.cs b/popcorn/Assets/Tenjin/Scripts/AppStoreType.cs deleted file mode 100644 index 51f6d310..00000000 --- a/popcorn/Assets/Tenjin/Scripts/AppStoreType.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public enum AppStoreType -{ - unspecified, - - /** - * Google Play Store - */ - googleplay, - - /** - * Amazon Appstore - */ - amazon, - - /** - * Other App Stores - */ - other -} diff --git a/popcorn/Assets/Tenjin/Scripts/AppStoreType.cs.meta b/popcorn/Assets/Tenjin/Scripts/AppStoreType.cs.meta deleted file mode 100644 index f80357d3..00000000 --- a/popcorn/Assets/Tenjin/Scripts/AppStoreType.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7cd34d399a6e04db8b7cbbd8acfd39a8 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Tenjin/Scripts/BaseTenjin.cs b/popcorn/Assets/Tenjin/Scripts/BaseTenjin.cs deleted file mode 100644 index c8df947a..00000000 --- a/popcorn/Assets/Tenjin/Scripts/BaseTenjin.cs +++ /dev/null @@ -1,64 +0,0 @@ -using UnityEngine; -using System; -using System.Collections; -using System.Collections.Generic; - -public abstract class BaseTenjin : MonoBehaviour { - - protected string apiKey; - protected string sharedSecret; - protected bool optIn; - protected bool optOut; - protected int appSubversion; - - public string SdkVersion { get; } = "1.12.7"; - - public string ApiKey{ - get{ - return this.apiKey; - } - set{ - this.apiKey = value; - } - } - - public string SharedSecret{ - get{ - return this.sharedSecret; - } - set{ - this.sharedSecret = value; - } - } - - public int AppSubversion{ - get{ - return this.appSubversion; - } - set{ - this.appSubversion = value; - } - } - - public abstract void Init(string apiKey); - public abstract void InitWithSharedSecret(string apiKey, string sharedSecret); - public abstract void InitWithAppSubversion(string apiKey, int appSubversion); - public abstract void InitWithSharedSecretAppSubversion(string apiKey, string sharedSecret, int appSubversion); - public abstract void Connect(); - public abstract void Connect(string deferredDeeplink); - public abstract void OptIn(); - public abstract void OptOut(); - public abstract void OptInParams(List parameters); - public abstract void OptOutParams(List parameters); - public abstract void AppendAppSubversion(int subversion); - public abstract void SendEvent (string eventName); - public abstract void SendEvent (string eventName, string eventValue); - public abstract void Transaction(string productId, string currencyCode, int quantity, double unitPrice, string transactionId, string receipt, string signature); - public abstract void GetDeeplink(Tenjin.DeferredDeeplinkDelegate deferredDeeplinkDelegate); - public abstract void RegisterAppForAdNetworkAttribution(); - public abstract void UpdateConversionValue(int conversionValue); - public abstract void RequestTrackingAuthorizationWithCompletionHandler(Action trackingAuthorizationCallback); - public abstract void DebugLogs(); - public abstract void SetAppStoreType(AppStoreType appStoreType); - public abstract void SubscribeMoPubImpressions(); -} diff --git a/popcorn/Assets/Tenjin/Scripts/BaseTenjin.cs.meta b/popcorn/Assets/Tenjin/Scripts/BaseTenjin.cs.meta deleted file mode 100644 index 9fac5243..00000000 --- a/popcorn/Assets/Tenjin/Scripts/BaseTenjin.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 8dfaa70d264f14b9d951f10766771591 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/popcorn/Assets/Tenjin/Scripts/DebugTenjin.cs b/popcorn/Assets/Tenjin/Scripts/DebugTenjin.cs deleted file mode 100644 index cad9a16e..00000000 --- a/popcorn/Assets/Tenjin/Scripts/DebugTenjin.cs +++ /dev/null @@ -1,105 +0,0 @@ -using UnityEngine; -using System; -using System.Collections.Generic; - -public class DebugTenjin : BaseTenjin { - - public override void Connect(){ - Debug.Log ("Connecting " + ApiKey); - } - - public override void Connect(string deferredDeeplink){ - Debug.Log ("Connecting with deferredDeeplink " + deferredDeeplink); - } - - public override void Init(string apiKey){ - Debug.Log ("Initializing - v"+this.SdkVersion); - } - - public override void InitWithSharedSecret(string apiKey, string sharedSecret) - { - Debug.Log("Initializing with Shared Secret - v"+this.SdkVersion); - } - - public override void InitWithAppSubversion(string apiKey, int appSubversion) - { - Debug.Log("Initializing with App Subversion: " + appSubversion + " v" +this.SdkVersion); - } - - public override void InitWithSharedSecretAppSubversion(string apiKey, string sharedSecret, int appSubversion) - { - Debug.Log("Initializing with Shared Secret + App Subversion: " + appSubversion +" v" +this.SdkVersion); - } - - public override void SendEvent (string eventName){ - Debug.Log ("Sending Event " + eventName); - } - - public override void SendEvent (string eventName, string eventValue){ - Debug.Log ("Sending Event " + eventName + " : " + eventValue); - } - - public override void Transaction(string productId, string currencyCode, int quantity, double unitPrice, string transactionId, string receipt, string signature){ - Debug.Log ("Transaction " + productId + ", " + currencyCode + ", " + quantity + ", " + unitPrice + ", " + transactionId + ", " + receipt + ", " + signature); - } - - public override void GetDeeplink(Tenjin.DeferredDeeplinkDelegate deferredDeeplinkDelegate) { - Debug.Log ("Sending DebugTenjin::GetDeeplink"); - } - - public override void OptIn(){ - Debug.Log ("OptIn "); - } - - public override void OptOut(){ - Debug.Log ("OptOut "); - } - - public override void OptInParams(List parameters){ - Debug.Log ("OptInParams"); - } - - public override void OptOutParams(List parameters){ - Debug.Log ("OptOutParams" ); - } - - public override void DebugLogs(){ - Debug.Log ("Setting debug logs "); - } - - public override void AppendAppSubversion(int subversion) - { - Debug.Log("AppendAppSubversion: " + subversion); - } - - public override void SubscribeMoPubImpressions() - { - Debug.Log("Subscribing to mopub impressions"); - TenjinMopubIntegration.ListenForImpressions(ImpressionHandler); - } - - private void ImpressionHandler(string json) - { - Debug.Log($"Got impression data {json}"); - } - - public override void RegisterAppForAdNetworkAttribution() - { - Debug.Log("RegisterAppForAdNetworkAttribution"); - } - - public override void UpdateConversionValue(int conversionValue) - { - Debug.Log("UpdateConversionValue: " + conversionValue); - } - - public override void RequestTrackingAuthorizationWithCompletionHandler(Action trackingAuthorizationCallback) - { - Debug.Log("RequestTrackingAuthorizationWithCompletionHandler"); - } - - public override void SetAppStoreType(AppStoreType appStoreType) - { - Debug.Log("SetAppStoreType"); - } -} diff --git a/popcorn/Assets/Tenjin/Scripts/DebugTenjin.cs.meta b/popcorn/Assets/Tenjin/Scripts/DebugTenjin.cs.meta deleted file mode 100644 index 8ea8a5c9..00000000 --- a/popcorn/Assets/Tenjin/Scripts/DebugTenjin.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 1c77717d9c6514a9889ca237d680b3de -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/popcorn/Assets/Tenjin/Scripts/Editor.meta b/popcorn/Assets/Tenjin/Scripts/Editor.meta deleted file mode 100644 index 0f4316c2..00000000 --- a/popcorn/Assets/Tenjin/Scripts/Editor.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 506f6c9d83e0c4c2d93dd6aa21dd90f4 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinAssetSelector.cs b/popcorn/Assets/Tenjin/Scripts/Editor/TenjinAssetSelector.cs deleted file mode 100644 index e6af8a7f..00000000 --- a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinAssetSelector.cs +++ /dev/null @@ -1,191 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using UnityEditor; -using UnityEditor.IMGUI.Controls; -using UnityEngine; - -namespace Tenjin -{ - - class TenjinAssetTree : TreeView - { - public TenjinAssetTree(TreeViewState treeViewState) - : base(treeViewState) - { - Reload(); - } - - protected override TreeViewItem BuildRoot() - { - var selectedAssets = TenjinPackager.LoadManifest(); - var assets = AssetDatabase.FindAssets(null, new[] { "Assets" }).Select(x => AssetDatabase.GUIDToAssetPath(x)); - var root = new TenjinAssetViewItem { selected = false, id = 0, depth = -1, displayName = "Root" }; - - var allItems = assets.Select((a, index) => - { - return new TenjinAssetViewItem - { - selected = selectedAssets.Contains(a), - id = index, - depth = DepthFromPath(a), - displayName = a - } as TreeViewItem; - }).ToList(); - - SetupParentsAndChildrenFromDepths(root, allItems); - - return root; - } - - public int SelectedItemCount() - { - var root = rootItem as TenjinAssetViewItem; - return root.SelectedCount(); - } - - public IEnumerable SelectedItems() - { - return (rootItem as TenjinAssetViewItem).GetRecusivelySelectedItems(); - } - - protected override void RowGUI(RowGUIArgs args) - { - Event evt = Event.current; - extraSpaceBeforeIconAndLabel = 18f; - TenjinAssetViewItem avi = (TenjinAssetViewItem)args.item; - - Rect toggleRect = args.rowRect; - toggleRect.x += GetContentIndent(args.item); - toggleRect.width = 16f; - - //// Ensure row is selected before using the toggle (usability) - if (evt.type == EventType.MouseDown && toggleRect.Contains(evt.mousePosition)) - SelectionClick(args.item, false); - - EditorGUI.BeginChangeCheck(); - bool selected = EditorGUI.Toggle(toggleRect, avi.selected); - if (EditorGUI.EndChangeCheck()) - { - avi.selected = selected; - SetSelectedRecursively(avi.children, selected); - } - - // Text - base.RowGUI(args); - } - - private void SetSelectedRecursively(List c, bool value) - { - if (c == null) - return; - - var assetViewItems = c.Select(x => x as TenjinAssetViewItem); - foreach (var child in assetViewItems) - { - if (child == null) - continue; - - child.selected = value; - SetSelectedRecursively(child.children, value); - } - } - - private int DepthFromPath(string path) - { - return path.Split('/').Count(); - } - } - - class TenjinAssetViewItem : TreeViewItem - { - public bool selected { get; set; } - - public int SelectedCount() - { - int childrenCount = children == null ? 0 : children.Select(x => (x as TenjinAssetViewItem).SelectedCount()).Sum(); - return (selected ? 1 : 0) + childrenCount; - } - - public IEnumerable GetRecusivelySelectedItems() - { - if (children == null) - { - return selected ? new List() { this } : new List(); - } - - var selectedItems = children.Select((arg) => (arg as TenjinAssetViewItem).GetRecusivelySelectedItems()) - .SelectMany(x => x).ToList(); - - if (selected) - selectedItems.Add(this); - - return selectedItems; - } - } - - class TenjinAssetWindow : EditorWindow - { - [SerializeField] TreeViewState m_TreeViewState; - TenjinAssetTree m_SimpleTreeView; - - void OnEnable() - { - - if (m_TreeViewState == null) - m_TreeViewState = new TreeViewState(); - - m_SimpleTreeView = new TenjinAssetTree(m_TreeViewState); - } - - void OnGUI() - { - m_SimpleTreeView.OnGUI(new Rect(0, 0, position.width, position.height - 16)); - DoToolbar(bottomToolbarRect); - } - - IEnumerable SelectedAssets() - { - return m_SimpleTreeView.SelectedItems().Select(x => x.displayName); - } - void DoToolbar(Rect rect) - { - GUILayout.BeginArea(rect); - - using (new EditorGUILayout.HorizontalScope()) - { - var style = "miniButton"; - if (GUILayout.Button("Save Manifest", style)) - { - TenjinPackager.SaveManifestFile(SelectedAssets()); - } - - if (GUILayout.Button("Publish Unitypackage", style)) - { - TenjinPackager.PublishPackage(SelectedAssets()); - } - - GUILayout.FlexibleSpace(); - - var label = $"{m_SimpleTreeView.SelectedItemCount()} files in package"; - GUILayout.Label(label); - } - - GUILayout.EndArea(); - } - - Rect bottomToolbarRect - { - get { return new Rect(20f, position.height - 18f, position.width - 40f, 16f); } - } - - - [MenuItem("Tenjin/Select Assets")] - static void ShowWindow() - { - var window = GetWindow(); - window.titleContent = new GUIContent("Tenjin Unity SDK Files"); - window.Show(); - } - } -} \ No newline at end of file diff --git a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinAssetSelector.cs.meta b/popcorn/Assets/Tenjin/Scripts/Editor/TenjinAssetSelector.cs.meta deleted file mode 100644 index ec315d4a..00000000 --- a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinAssetSelector.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4311b33e0dc3c479bbe54dbb79765320 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinEditorPrefs.cs b/popcorn/Assets/Tenjin/Scripts/Editor/TenjinEditorPrefs.cs deleted file mode 100644 index 28f278f2..00000000 --- a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinEditorPrefs.cs +++ /dev/null @@ -1,150 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -using UnityEditor; -using UnityEditor.Build; -using UnityEditor.Build.Reporting; -using System; -using System.IO; -using UnityEditor.Compilation; -using System.Linq; -using UnityEditor.Build.Content; -using UnityEditor.Callbacks; -using Assembly = System.Reflection.Assembly; - -#if UNITY_IOS -using UnityEditor.iOS.Xcode; -#endif - -namespace Tenjin -{ - class TenjinEditorPrefs : IPreprocessBuildWithReport - { - private static string tenjin_mopub = "tenjin_mopub_enabled"; - private static string tenjin_facebook = "tenjin_facebook_enabled"; - - public int callbackOrder => 0; - - public void OnPreprocessBuild(BuildReport report) - { - TenjinEditorPrefs.Update3rdPartyIntegrations(); - } - - [UnityEditor.Callbacks.DidReloadScripts] - private static void OnScriptsReloaded() - { - Update3rdPartyIntegrations(); - } - - private static void Update3rdPartyIntegrations() - { - UpdateMoPub(); - UpdateFacebook(); - } - - [PostProcessBuild(0)] - public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject) - { - ProcessIosBuild(target, pathToBuiltProject); - } - - private static void ProcessIosBuild(BuildTarget target, string pathToBuiltProject) - { - if (target == BuildTarget.iOS) - { - if (PlayerSettings.iOS.sdkVersion == iOSSdkVersion.SimulatorSDK) - { - Debug.Log("Using simulator sdk - delete non universal tenjin lib from generated xcode project"); - RemoveFileFromXcodeProject("Libraries/Plugins/iOS/libTenjinSDK.a", pathToBuiltProject); - } - else - { - Debug.Log("Using device sdk - delete universal tenjin lib from generated xcode project"); - RemoveFileFromXcodeProject("Libraries/Plugins/iOS/libTenjinSDKUniversal.a", pathToBuiltProject); - } - } - } - - private static void RemoveFileFromXcodeProject(string filePath, string pathToBuiltProject) - { -#if UNITY_IOS - var projectPath = pathToBuiltProject + "/Unity-iPhone.xcodeproj/project.pbxproj"; - - PBXProject pbxProject = new PBXProject (); - pbxProject.ReadFromFile (projectPath); - - var fileToRemove = pbxProject.FindFileGuidByProjectPath(filePath); - pbxProject.RemoveFile(fileToRemove); - - File.WriteAllText (projectPath, pbxProject.WriteToString ()); -#endif - } - - private static void UpdateDefines(string entry, bool enabled, BuildTargetGroup[] groups) - { - foreach (var group in groups) - { - var defines = PlayerSettings.GetScriptingDefineSymbolsForGroup(group) - .Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries) - .Where(d => d != entry); - - if (enabled) - defines = defines.Concat(new[] { entry }); - PlayerSettings.SetScriptingDefineSymbolsForGroup(group, string.Join(";", defines.ToArray())); - } - } - - #region 3rd Party Lib Detection - - /// - /// Sets the scripting define symbol `tenjin_facebook_enabled` to true if Facebook classes are detected within the Unity project - /// - private static void UpdateFacebook() - { - var facebookTypes = new string[]{"Facebook", "FB"}; - if(TypeExists(facebookTypes)) - { - UpdateDefines(tenjin_facebook, true, new BuildTargetGroup[] { BuildTargetGroup.iOS, BuildTargetGroup.Android }); - } - else - { - UpdateDefines(tenjin_facebook, false, new BuildTargetGroup[] { BuildTargetGroup.iOS, BuildTargetGroup.Android }); - } - } - - - /// - /// Sets the scripting define symbol `tenjin_mopub_enabled` to true if MoPub classes are detected within the Unity project - /// - private static void UpdateMoPub() - { - var mopubTypes = new string[]{"MoPubBase", "MoPubManager"}; - if(TypeExists(mopubTypes)) - { - UpdateDefines(tenjin_mopub, true, new BuildTargetGroup[] { BuildTargetGroup.iOS, BuildTargetGroup.Android }); - } - else - { - UpdateDefines(tenjin_mopub, false, new BuildTargetGroup[] { BuildTargetGroup.iOS, BuildTargetGroup.Android }); - } - } - - private static bool TypeExists(params string[] types) - { - if (types == null || types.Length == 0) - return false; - - var assemblies = AppDomain.CurrentDomain.GetAssemblies(); - foreach (var assembly in assemblies) - { - if (types.Any(type => assembly.GetType(type) != null)) - return true; - } - - return false; - } - - #endregion - } -} \ No newline at end of file diff --git a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinEditorPrefs.cs.meta b/popcorn/Assets/Tenjin/Scripts/Editor/TenjinEditorPrefs.cs.meta deleted file mode 100644 index e46374c2..00000000 --- a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinEditorPrefs.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 4f09f5150b6494b85844e0fb75588115 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinPackager.cs b/popcorn/Assets/Tenjin/Scripts/Editor/TenjinPackager.cs deleted file mode 100644 index baca023b..00000000 --- a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinPackager.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using UnityEditor; -using UnityEngine; - -namespace Tenjin -{ - //a simple wrapper class because Unity's json serializer can't deal with primitives.. - [Serializable] - internal class ManifestWrapper - { - public string[] files; - } - - public static class Exporter - { - static void Package() - { - var files = TenjinPackager.LoadManifest(); - TenjinPackager.PublishPackage(files); - } - - [MenuItem("Tenjin/Export Package")] - internal static void PackageInteractively() - { - var files = TenjinPackager.LoadManifest(); - TenjinPackager.PublishPackage(files,TenjinPackager.EXPORTED_PACKAGE_PATH, true); - } - } - - internal class TenjinPackager - { - const string MANIFEST_PATH = "Assets/tenjin.unitypackage.manifest"; - public const string EXPORTED_PACKAGE_PATH = "TenjinUnityPackage.unitypackage"; - - internal static void SaveManifestFile(IEnumerable assets) - { - if(File.Exists(MANIFEST_PATH)) - File.Delete(MANIFEST_PATH); - - var wtf = new ManifestWrapper() { files = assets.ToArray() }; - var json = JsonUtility.ToJson(wtf); - - var writer = new StreamWriter(MANIFEST_PATH, false); - - writer.WriteLine(json); - writer.Close(); - } - - internal static IEnumerable LoadManifest() - { - var reader = new StreamReader(MANIFEST_PATH); - var jsonString = reader.ReadToEnd(); - reader.Close(); - - var wrappedJson = JsonUtility.FromJson(jsonString); - - return wrappedJson.files; - } - - internal static void PublishPackage(IEnumerable enumerable, string path = EXPORTED_PACKAGE_PATH, bool interactive = false) - { - if (File.Exists(path)) - File.Delete(path); - - var options = ExportPackageOptions.IncludeDependencies; - if (interactive) - options = options | ExportPackageOptions.IncludeDependencies; - var filePaths = enumerable.ToArray(); - - Debug.Log("Exporting files :\n" + string.Join("\n", filePaths)); - - AssetDatabase.ExportPackage(filePaths, path, options); - } - - - } -} \ No newline at end of file diff --git a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinPackager.cs.meta b/popcorn/Assets/Tenjin/Scripts/Editor/TenjinPackager.cs.meta deleted file mode 100644 index c9450bce..00000000 --- a/popcorn/Assets/Tenjin/Scripts/Editor/TenjinPackager.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 907680d75293f42129b14365df3d3dd1 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/Assets/Tenjin/Scripts/IosTenjin.cs b/popcorn/Assets/Tenjin/Scripts/IosTenjin.cs deleted file mode 100644 index df7fbc93..00000000 --- a/popcorn/Assets/Tenjin/Scripts/IosTenjin.cs +++ /dev/null @@ -1,436 +0,0 @@ -using UnityEngine; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using AOT; - -public class IosTenjin : BaseTenjin { - -#if UNITY_IPHONE && !UNITY_EDITOR - - [DllImport ("__Internal")] - private static extern void iosTenjinInit(string apiKey); - - [DllImport ("__Internal")] - private static extern void iosTenjinInitWithSharedSecret(string apiKey, string sharedSecret); - - [DllImport ("__Internal")] - private static extern void iosTenjinInitWithAppSubversion(string apiKey, int appSubversion); - - [DllImport ("__Internal")] - private static extern void iosTenjinInitWithSharedSecretAppSubversion(string apiKey, string sharedSecret, int appSubversion); - - [DllImport ("__Internal")] - private static extern void iosTenjinConnect(); - - [DllImport ("__Internal")] - private static extern void iosTenjinConnectWithDeferredDeeplink(string deferredDeeplink); - - [DllImport ("__Internal")] - private static extern void iosTenjinOptIn(); - - [DllImport ("__Internal")] - private static extern void iosTenjinOptOut(); - - [DllImport ("__Internal")] - private static extern void iosTenjinOptInParams(String[] parameters, int size); - - [DllImport ("__Internal")] - private static extern void iosTenjinOptOutParams(String[] parameters, int size); - - [DllImport ("__Internal")] - private static extern void iosTenjinRegisterAppForAdNetworkAttribution(); - - [DllImport ("__Internal")] - private static extern void iosTenjinUpdateConversionValue(int conversionValue); - - [DllImport ("__Internal")] - private static extern void iosTenjinRequestTrackingAuthorizationWithCompletionHandler(); - - [DllImport ("__Internal")] - private static extern void iosTenjinAppendAppSubversion(int subversion); - - [DllImport ("__Internal")] - private static extern void iosTenjinSendEvent(string eventName); - - [DllImport ("__Internal")] - private static extern void iosTenjinSendEventWithValue(string eventName, string eventValue); - - [DllImport ("__Internal")] - private static extern void iosTenjinTransaction(string productId, string currencyCode, int quantity, double unitPrice); - - [DllImport ("__Internal")] - private static extern void iosTenjinTransactionWithReceiptData(string productId, string currencyCode, int quantity, double unitPrice, string transactionId, string receipt); - - [DllImport ("__Internal")] - private static extern void iosTenjinRegisterDeepLinkHandler(DeepLinkHandlerNativeDelegate deepLinkHandlerNativeDelegate); - - [DllImport ("__Internal")] - private static extern void iosTenjinMopubImpressionFromJSON(string jsonString); - - [DllImport ("__Internal")] - private static extern void iosTenjinSetDebugLogs(); - - [DllImport ("__Internal")] - private static extern void iosTenjinSetWrapperVersion(string wrapperString); - - private delegate void DeepLinkHandlerNativeDelegate(IntPtr deepLinkDataPairArray, int deepLinkDataPairCount); - - private static readonly Stack> deferredDeeplinkEvents = new Stack>(); - private static Tenjin.DeferredDeeplinkDelegate registeredDeferredDeeplinkDelegate; - - public override void Init(string apiKey){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS Initializing - v"+this.SdkVersion); - } - SetUnityVersionInNativeSDK(); - ApiKey = apiKey; - iosTenjinInit (ApiKey); - } - - public override void InitWithSharedSecret(string apiKey, string sharedSecret){ - if (Debug.isDebugBuild) { - Debug.Log("iOS Initializing with Shared Secret - v"+this.SdkVersion); - } - SetUnityVersionInNativeSDK(); - ApiKey = apiKey; - SharedSecret = sharedSecret; - iosTenjinInitWithSharedSecret (ApiKey, SharedSecret); - } - - public override void InitWithAppSubversion(string apiKey, int appSubversion){ - if (Debug.isDebugBuild) { - Debug.Log("iOS Initializing with App Subversion: " + appSubversion + " v" +this.SdkVersion); - } - SetUnityVersionInNativeSDK(); - ApiKey = apiKey; - AppSubversion = appSubversion; - iosTenjinInitWithAppSubversion (ApiKey, AppSubversion); - } - - public override void InitWithSharedSecretAppSubversion(string apiKey, string sharedSecret, int appSubversion){ - if (Debug.isDebugBuild) { - Debug.Log("iOS Initializing with Shared Secret + App Subversion: " + appSubversion +" v" +this.SdkVersion); - } - SetUnityVersionInNativeSDK(); - ApiKey = apiKey; - SharedSecret = sharedSecret; - AppSubversion = appSubversion; - iosTenjinInitWithSharedSecretAppSubversion (ApiKey, SharedSecret, AppSubversion); - } - - private void SetUnityVersionInNativeSDK() { - var unitySdkVersion = this.SdkVersion + "u"; - - iosTenjinSetWrapperVersion(unitySdkVersion); - } - - public override void Connect(){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS Connecting"); - } - iosTenjinConnect(); - } - - public override void Connect(string deferredDeeplink){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS Connecting with deferredDeeplink " + deferredDeeplink); - } - iosTenjinConnectWithDeferredDeeplink (deferredDeeplink); - } - - public override void OptIn(){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS OptIn"); - } - iosTenjinOptIn (); - } - - public override void OptOut(){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS OptOut"); - } - iosTenjinOptOut (); - } - - public override void OptInParams(List parameters){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS OptInParams" + parameters.ToString()); - } - iosTenjinOptInParams (parameters.ToArray(), parameters.Count); - } - - public override void OptOutParams(List parameters){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS OptOutParams" + parameters.ToString()); - } - iosTenjinOptOutParams (parameters.ToArray(), parameters.Count); - } - - public override void RegisterAppForAdNetworkAttribution(){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS RegisterAppForAdNetworkAttribution"); - } - iosTenjinRegisterAppForAdNetworkAttribution (); - } - - public override void UpdateConversionValue(int conversionValue){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS UpdateConversionValue"); - } - iosTenjinUpdateConversionValue (conversionValue); - } - - public override void RequestTrackingAuthorizationWithCompletionHandler(Action trackingAuthorizationCallback){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS RequestTrackingAuthorizationWithCompletionHandler"); - } - Tenjin.authorizationStatusDelegate = trackingAuthorizationCallback; - iosTenjinRequestTrackingAuthorizationWithCompletionHandler(); - } - - private void SetTrackingAuthorizationStatus(string status){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS SetTrackingAuthorizationStatus " + status); - } - Tenjin.authorizationStatusDelegate(Int16.Parse(status)); - } - - public override void AppendAppSubversion(int appSubversion){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS AppendAppSubversion " + appSubversion); - } - iosTenjinAppendAppSubversion (appSubversion); - } - - public override void SendEvent(string eventName){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS Sending Event " + eventName); - } - iosTenjinSendEvent(eventName); - } - - public override void SendEvent(string eventName, string eventValue){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS Sending Event " + eventName + " : " + eventValue); - } - iosTenjinSendEventWithValue(eventName, eventValue); - } - - public override void Transaction(string productId, string currencyCode, int quantity, double unitPrice, string transactionId, string receipt, string signature){ - signature = null; - - //only if the receipt and transaction_id are not null, then try to validate the transaction. Otherwise manually record the transaction - if(receipt != null && transactionId != null){ - if (Debug.isDebugBuild) { - Debug.Log ("iOS Transaction with receipt " + productId + ", " + currencyCode + ", " + quantity + ", " + unitPrice + ", " + transactionId + ", " + receipt); - } - iosTenjinTransactionWithReceiptData(productId, currencyCode, quantity, unitPrice, transactionId, receipt); - } - else{ - if (Debug.isDebugBuild) { - Debug.Log ("iOS Transaction " + productId + ", " + currencyCode + ", " + quantity + ", " + unitPrice); - } - iosTenjinTransaction(productId, currencyCode, quantity, unitPrice); - } - } - - public override void SetAppStoreType(AppStoreType appStoreType) { - } - - public override void SubscribeMoPubImpressions(){ - TenjinMopubIntegration.ListenForImpressions(ILARHandler); - } - - public void ILARHandler(string json){ - if(!string.IsNullOrEmpty(json)) - { - iosTenjinMopubImpressionFromJSON(json); - } - } - - public override void GetDeeplink(Tenjin.DeferredDeeplinkDelegate deferredDeeplinkDelegate) { - if (Debug.isDebugBuild) { - Debug.Log ("Sending IosTenjin::GetDeeplink"); - } - registeredDeferredDeeplinkDelegate = deferredDeeplinkDelegate; - iosTenjinRegisterDeepLinkHandler(DeepLinkHandler); - } - - public override void DebugLogs() { - iosTenjinSetDebugLogs(); - } - - private void Update() { - lock (deferredDeeplinkEvents) { - while (deferredDeeplinkEvents.Count > 0) { - Dictionary deepLinkData = deferredDeeplinkEvents.Pop(); - if (registeredDeferredDeeplinkDelegate != null) { - registeredDeferredDeeplinkDelegate(deepLinkData); - } - } - } - } - - [MonoPInvokeCallback(typeof(DeepLinkHandlerNativeDelegate))] - private static void DeepLinkHandler(IntPtr deepLinkDataPairArray, int deepLinkDataPairCount) { - if (deepLinkDataPairArray == IntPtr.Zero) - return; - - Dictionary deepLinkData = - NativeUtility.MarshalStringStringDictionary(deepLinkDataPairArray, deepLinkDataPairCount); - - lock (deferredDeeplinkEvents) { - deferredDeeplinkEvents.Push(deepLinkData); - } - } - - private static class NativeUtility { - /// - /// Marshals a native linear array of structs to the managed array. - /// - public static T[] MarshalNativeStructArray(IntPtr nativeArrayPtr, int nativeArraySize) where T : struct { - if (nativeArrayPtr == IntPtr.Zero) - throw new ArgumentNullException("nativeArrayPtr"); - - if (nativeArraySize < 0) - throw new ArgumentOutOfRangeException("nativeArraySize"); - - T[] managedArray = new T[nativeArraySize]; - IntPtr currentNativeArrayPtr = nativeArrayPtr; - int structSize = Marshal.SizeOf(typeof(T)); - for (int i = 0; i < nativeArraySize; i++) { - T marshaledStruct = (T) Marshal.PtrToStructure(currentNativeArrayPtr, typeof(T)); - managedArray[i] = marshaledStruct; - currentNativeArrayPtr = (IntPtr) (currentNativeArrayPtr.ToInt64() + structSize); - } - - return managedArray; - } - - /// - /// Marshals the native representation to a IDictionary<string, string>. - /// - public static Dictionary MarshalStringStringDictionary(IntPtr nativePairArrayPtr, int nativePairArraySize) { - if (nativePairArrayPtr == IntPtr.Zero) - throw new ArgumentNullException("nativePairArrayPtr"); - - if (nativePairArraySize < 0) - throw new ArgumentOutOfRangeException("nativePairArraySize"); - - Dictionary dictionary = new Dictionary(nativePairArraySize); - StringStringKeyValuePair[] pairs = MarshalNativeStructArray(nativePairArrayPtr, nativePairArraySize); - foreach (StringStringKeyValuePair pair in pairs) { - dictionary.Add(pair.Key, pair.Value); - } - return dictionary; - } - - [StructLayout(LayoutKind.Sequential)] - public struct StringStringKeyValuePair { - public string Key; - public string Value; - } - } - -#else - public override void Init(string apiKey){ - Debug.Log ("iOS Initializing - v"+this.SdkVersion); - ApiKey = apiKey; - } - - public override void InitWithSharedSecret(string apiKey, string sharedSecret){ - Debug.Log("iOS Initializing with Shared Secret - v"+this.SdkVersion); - ApiKey = apiKey; - SharedSecret = sharedSecret; - } - - public override void InitWithAppSubversion(string apiKey, int appSubversion) - { - Debug.Log("iOS Initializing with App Subversion: " + appSubversion + " v" +this.SdkVersion); - ApiKey = apiKey; - AppSubversion = appSubversion; - } - - public override void InitWithSharedSecretAppSubversion(string apiKey, string sharedSecret, int appSubversion) - { - Debug.Log("iOS Initializing with Shared Secret + App Subversion: " + appSubversion +" v" +this.SdkVersion); - ApiKey = apiKey; - SharedSecret = sharedSecret; - AppSubversion = appSubversion; - } - - public override void Connect(){ - Debug.Log ("iOS Connecting"); - } - - public override void Connect(string deferredDeeplink){ - Debug.Log ("Connecting with deferredDeeplink " + deferredDeeplink); - } - - public override void SendEvent(string eventName){ - Debug.Log ("iOS Sending Event " + eventName); - } - - public override void SendEvent(string eventName, string eventValue){ - Debug.Log ("iOS Sending Event " + eventName + " : " + eventValue); - } - - public override void Transaction(string productId, string currencyCode, int quantity, double unitPrice, string transactionId, string receipt, string signature){ - Debug.Log ("iOS Transaction " + productId + ", " + currencyCode + ", " + quantity + ", " + unitPrice + ", " + transactionId + ", " + receipt + ", " + signature); - } - - public override void GetDeeplink(Tenjin.DeferredDeeplinkDelegate deferredDeeplinkDelegate) { - Debug.Log ("Sending IosTenjin::GetDeeplink"); - } - - public override void OptIn(){ - Debug.Log ("iOS OptIn"); - } - - public override void OptOut(){ - Debug.Log ("iOS OptOut"); - } - - public override void OptInParams(List parameters){ - Debug.Log ("iOS OptInParams"); - } - - public override void OptOutParams(List parameters){ - Debug.Log ("iOS OptOutParams"); - } - - public override void RegisterAppForAdNetworkAttribution() - { - Debug.Log("iOS RegisterAppForAdNetworkAttribution"); - } - - public override void UpdateConversionValue(int conversionValue) - { - Debug.Log("iOS UpdateConversionValue: " + conversionValue); - } - - public override void RequestTrackingAuthorizationWithCompletionHandler(Action trackingAuthorizationCallback) - { - Debug.Log("iOS RequestTrackingAuthorizationWithCompletionHandler"); - } - - public override void AppendAppSubversion(int subversion){ - Debug.Log("iOS AppendAppSubversion"); - } - - public override void DebugLogs(){ - Debug.Log ("Setting debug logs "); - } - - public override void SubscribeMoPubImpressions() - { - Debug.Log("iOS SubscribeMoPubImpressions"); - } - - public override void SetAppStoreType(AppStoreType appStoreType) { - Debug.Log("iOS SetAppStoreType"); - } -#endif -} diff --git a/popcorn/Assets/Tenjin/Scripts/IosTenjin.cs.meta b/popcorn/Assets/Tenjin/Scripts/IosTenjin.cs.meta deleted file mode 100644 index b2ad3694..00000000 --- a/popcorn/Assets/Tenjin/Scripts/IosTenjin.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: c2d7324a689314c77a9901f8e0a6721a -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/popcorn/Assets/Tenjin/Scripts/Tenjin.cs b/popcorn/Assets/Tenjin/Scripts/Tenjin.cs deleted file mode 100644 index 2f684cd5..00000000 --- a/popcorn/Assets/Tenjin/Scripts/Tenjin.cs +++ /dev/null @@ -1,79 +0,0 @@ -using UnityEngine; -using System; -using System.Collections.Generic; - -public static class Tenjin { - - public delegate void DeferredDeeplinkDelegate(Dictionary deferredLinkData); - - //create dictionary of instances of tenjin with API keys - private static Dictionary _instances = new Dictionary(); - - // App Tracking Transparency callback - public static Action authorizationStatusDelegate = null; - - //return instance with specific api key - public static BaseTenjin getInstance(string apiKey){ - string instanceKey = apiKey; - if (!_instances.ContainsKey (apiKey)){ - _instances.Add(apiKey, createTenjin(apiKey, null, 0)); - } - return _instances[instanceKey]; - } - - public static BaseTenjin getInstanceWithSharedSecret(string apiKey, string sharedSecret){ - string instanceKey = apiKey + "." + sharedSecret; - if (!_instances.ContainsKey(instanceKey)){ - _instances.Add(instanceKey, createTenjin(apiKey, sharedSecret, 0)); - } - return _instances[instanceKey]; - } - - public static BaseTenjin getInstanceWithAppSubversion(string apiKey, int appSubversion){ - string instanceKey = apiKey + "." + appSubversion; - if (!_instances.ContainsKey(instanceKey)){ - _instances.Add(instanceKey, createTenjin(apiKey, null, appSubversion)); - } - return _instances[instanceKey]; - } - - public static BaseTenjin getInstanceWithSharedSecretAppSubversion(string apiKey, string sharedSecret, int appSubversion){ - string instanceKey = apiKey + "." + sharedSecret + "." + appSubversion; - if (!_instances.ContainsKey(instanceKey)){ - _instances.Add(instanceKey, createTenjin(apiKey, sharedSecret, appSubversion)); - } - return _instances[instanceKey]; - } - - private static BaseTenjin createTenjin(string apiKey, string sharedSecret, int appSubversion){ - GameObject tenjinGameObject = new GameObject("Tenjin"); - tenjinGameObject.hideFlags = HideFlags.HideAndDontSave; - UnityEngine.Object.DontDestroyOnLoad(tenjinGameObject); - -#if UNITY_ANDROID && !UNITY_EDITOR - BaseTenjin retTenjin = tenjinGameObject.AddComponent(); -#elif UNITY_IPHONE && !UNITY_EDITOR - BaseTenjin retTenjin = tenjinGameObject.AddComponent(); -#else - BaseTenjin retTenjin = tenjinGameObject.AddComponent(); -#endif - - if (!string.IsNullOrEmpty(sharedSecret) && appSubversion != 0) - { - retTenjin.InitWithSharedSecretAppSubversion(apiKey, sharedSecret, appSubversion); - } - else if (!string.IsNullOrEmpty(sharedSecret)) - { - retTenjin.InitWithSharedSecret(apiKey, sharedSecret); - } - else if (appSubversion != 0) - { - retTenjin.InitWithAppSubversion(apiKey, appSubversion); - } - else - { - retTenjin.Init(apiKey); - } - return retTenjin; - } -} diff --git a/popcorn/Assets/Tenjin/Scripts/Tenjin.cs.meta b/popcorn/Assets/Tenjin/Scripts/Tenjin.cs.meta deleted file mode 100644 index 28912068..00000000 --- a/popcorn/Assets/Tenjin/Scripts/Tenjin.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e577921dfc66746639e11ffbf5f18702 -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: diff --git a/popcorn/Assets/Tenjin/Scripts/TenjinMopubIntegration.cs b/popcorn/Assets/Tenjin/Scripts/TenjinMopubIntegration.cs deleted file mode 100644 index 7c2ee329..00000000 --- a/popcorn/Assets/Tenjin/Scripts/TenjinMopubIntegration.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using UnityEngine; - -public class TenjinMopubIntegration -{ - private static bool _subscribed = false; - public TenjinMopubIntegration() - { - } - - public static void ListenForImpressions(Action callback) - { -#if tenjin_mopub_enabled - if (_subscribed) - { - Debug.Log("Ignoring duplicate mopub subscription"); - return; - } - - MoPubManager.OnImpressionTrackedEvent += (arg1, arg2) => callback(arg2.JsonRepresentation); - _subscribed = true; -#endif - } - -} diff --git a/popcorn/Assets/Tenjin/Scripts/TenjinMopubIntegration.cs.meta b/popcorn/Assets/Tenjin/Scripts/TenjinMopubIntegration.cs.meta deleted file mode 100644 index 9abeb102..00000000 --- a/popcorn/Assets/Tenjin/Scripts/TenjinMopubIntegration.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 87ce33ab3417345b788b73a0d626090d -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/popcorn/ProjectSettings/ProjectSettings.asset b/popcorn/ProjectSettings/ProjectSettings.asset index 954f5836..d5bf7f9d 100644 --- a/popcorn/ProjectSettings/ProjectSettings.asset +++ b/popcorn/ProjectSettings/ProjectSettings.asset @@ -260,7 +260,7 @@ PlayerSettings: AndroidEnableTango: 0 androidEnableBanner: 1 androidUseLowAccuracyLocation: 0 - androidUseCustomKeystore: 1 + androidUseCustomKeystore: 0 m_AndroidBanners: - width: 320 height: 180 @@ -750,8 +750,8 @@ PlayerSettings: webGLWasmStreaming: 0 scriptingDefineSymbols: 1: TextMeshPro - 4: gameanalytics_ironsource_enabled;TextMeshPro - 7: gameanalytics_ironsource_enabled;TextMeshPro + 4: TextMeshPro + 7: TextMeshPro 13: TextMeshPro 14: TextMeshPro 19: TextMeshPro