diff --git a/source/Plugins/GoogleAnalyticsV3/Attributes/RangedTooltipAttribute.cs b/source/GoogleAnalyticsV3/Attributes/RangedTooltipAttribute.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/Attributes/RangedTooltipAttribute.cs rename to source/GoogleAnalyticsV3/Attributes/RangedTooltipAttribute.cs diff --git a/source/Plugins/GoogleAnalyticsV3/Attributes/TooltipAttribute.cs b/source/GoogleAnalyticsV3/Attributes/TooltipAttribute.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/Attributes/TooltipAttribute.cs rename to source/GoogleAnalyticsV3/Attributes/TooltipAttribute.cs diff --git a/source/GoogleAnalyticsV3/Editor/ExportPackage.cs b/source/GoogleAnalyticsV3/Editor/ExportPackage.cs new file mode 100644 index 0000000..8a0bc80 --- /dev/null +++ b/source/GoogleAnalyticsV3/Editor/ExportPackage.cs @@ -0,0 +1,38 @@ +using UnityEngine; +using UnityEditor; + +public class ExportPackage +{ + [MenuItem("Assets/Export Google Analytics Package", false, 301)] + public static void Export() + { + Debug.Log("Google Analytics Package..."); + AssetDatabase.ExportPackage(new string[] { + //Plugins + "Assets/Plugins", + + //GoogleAnalyticsV3 - root + "Assets/GoogleAnalyticsV3/Field.cs", + "Assets/GoogleAnalyticsV3/Fields.cs", + "Assets/GoogleAnalyticsV3/GAIHandler.cs", + "Assets/GoogleAnalyticsV3/GAv3.prefab", + "Assets/GoogleAnalyticsV3/GoogleAnalyticsAndroidV3.cs", + "Assets/GoogleAnalyticsV3/GoogleAnalyticsiOSV3.cs", + "Assets/GoogleAnalyticsV3/GoogleAnalyticsMPV3.cs", + "Assets/GoogleAnalyticsV3/GoogleAnalyticsV3.cs", + + //GoogleAnalyticsV3 - Attributes + "Assets/GoogleAnalyticsV3/Attributes", + + //GoogleAnalyticsV3 - HitBuilders + "Assets/GoogleAnalyticsV3/HitBuilders", + + //GoogleAnalyticsV3 - Editor + "Assets/GoogleAnalyticsV3/Editor/PostprocessBuildPlayer", + "Assets/GoogleAnalyticsV3/Editor/RangedTooltipDrawer.js", + "Assets/GoogleAnalyticsV3/Editor/TooltipDrawer.cs" + }, + "google-analytics-unit.unitypackage", ExportPackageOptions.Recurse | ExportPackageOptions.IncludeDependencies); + Debug.Log ("Google Analytics Package Exported"); + } +} \ No newline at end of file diff --git a/source/Editor/PostprocessBuildPlayer b/source/GoogleAnalyticsV3/Editor/PostprocessBuildPlayer similarity index 100% rename from source/Editor/PostprocessBuildPlayer rename to source/GoogleAnalyticsV3/Editor/PostprocessBuildPlayer diff --git a/source/Plugins/Editor/RangedTooltipDrawer.js b/source/GoogleAnalyticsV3/Editor/RangedTooltipDrawer.js similarity index 100% rename from source/Plugins/Editor/RangedTooltipDrawer.js rename to source/GoogleAnalyticsV3/Editor/RangedTooltipDrawer.js diff --git a/source/Plugins/Editor/TooltipDrawer.cs b/source/GoogleAnalyticsV3/Editor/TooltipDrawer.cs similarity index 100% rename from source/Plugins/Editor/TooltipDrawer.cs rename to source/GoogleAnalyticsV3/Editor/TooltipDrawer.cs diff --git a/source/Plugins/GoogleAnalyticsV3/Field.cs b/source/GoogleAnalyticsV3/Field.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/Field.cs rename to source/GoogleAnalyticsV3/Field.cs diff --git a/source/Plugins/GoogleAnalyticsV3/Fields.cs b/source/GoogleAnalyticsV3/Fields.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/Fields.cs rename to source/GoogleAnalyticsV3/Fields.cs diff --git a/source/Plugins/GoogleAnalyticsV3/GAIHandler.cs b/source/GoogleAnalyticsV3/GAIHandler.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/GAIHandler.cs rename to source/GoogleAnalyticsV3/GAIHandler.cs diff --git a/source/GoogleAnalyticsV3/GAv3.prefab b/source/GoogleAnalyticsV3/GAv3.prefab new file mode 100644 index 0000000..9b50283 Binary files /dev/null and b/source/GoogleAnalyticsV3/GAv3.prefab differ diff --git a/source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsAndroidV3.cs b/source/GoogleAnalyticsV3/GoogleAnalyticsAndroidV3.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsAndroidV3.cs rename to source/GoogleAnalyticsV3/GoogleAnalyticsAndroidV3.cs diff --git a/source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsMPV3.cs b/source/GoogleAnalyticsV3/GoogleAnalyticsMPV3.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsMPV3.cs rename to source/GoogleAnalyticsV3/GoogleAnalyticsMPV3.cs diff --git a/source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsV3.cs b/source/GoogleAnalyticsV3/GoogleAnalyticsV3.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsV3.cs rename to source/GoogleAnalyticsV3/GoogleAnalyticsV3.cs diff --git a/source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsiOSV3.cs b/source/GoogleAnalyticsV3/GoogleAnalyticsiOSV3.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/GoogleAnalyticsiOSV3.cs rename to source/GoogleAnalyticsV3/GoogleAnalyticsiOSV3.cs diff --git a/source/Plugins/GoogleAnalyticsV3/HitBuilders/AppViewHitBuilder.cs b/source/GoogleAnalyticsV3/HitBuilders/AppViewHitBuilder.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/HitBuilders/AppViewHitBuilder.cs rename to source/GoogleAnalyticsV3/HitBuilders/AppViewHitBuilder.cs diff --git a/source/Plugins/GoogleAnalyticsV3/HitBuilders/EventHitBuilder.cs b/source/GoogleAnalyticsV3/HitBuilders/EventHitBuilder.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/HitBuilders/EventHitBuilder.cs rename to source/GoogleAnalyticsV3/HitBuilders/EventHitBuilder.cs diff --git a/source/Plugins/GoogleAnalyticsV3/HitBuilders/ExceptionHitBuilder.cs b/source/GoogleAnalyticsV3/HitBuilders/ExceptionHitBuilder.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/HitBuilders/ExceptionHitBuilder.cs rename to source/GoogleAnalyticsV3/HitBuilders/ExceptionHitBuilder.cs diff --git a/source/Plugins/GoogleAnalyticsV3/HitBuilders/HitBuilder.cs b/source/GoogleAnalyticsV3/HitBuilders/HitBuilder.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/HitBuilders/HitBuilder.cs rename to source/GoogleAnalyticsV3/HitBuilders/HitBuilder.cs diff --git a/source/Plugins/GoogleAnalyticsV3/HitBuilders/ItemHitBuilder.cs b/source/GoogleAnalyticsV3/HitBuilders/ItemHitBuilder.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/HitBuilders/ItemHitBuilder.cs rename to source/GoogleAnalyticsV3/HitBuilders/ItemHitBuilder.cs diff --git a/source/Plugins/GoogleAnalyticsV3/HitBuilders/SocialHitBuilder.cs b/source/GoogleAnalyticsV3/HitBuilders/SocialHitBuilder.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/HitBuilders/SocialHitBuilder.cs rename to source/GoogleAnalyticsV3/HitBuilders/SocialHitBuilder.cs diff --git a/source/Plugins/GoogleAnalyticsV3/HitBuilders/TimingHitBuilder.cs b/source/GoogleAnalyticsV3/HitBuilders/TimingHitBuilder.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/HitBuilders/TimingHitBuilder.cs rename to source/GoogleAnalyticsV3/HitBuilders/TimingHitBuilder.cs diff --git a/source/Plugins/GoogleAnalyticsV3/HitBuilders/TransactionHitBuilder.cs b/source/GoogleAnalyticsV3/HitBuilders/TransactionHitBuilder.cs similarity index 100% rename from source/Plugins/GoogleAnalyticsV3/HitBuilders/TransactionHitBuilder.cs rename to source/GoogleAnalyticsV3/HitBuilders/TransactionHitBuilder.cs diff --git a/source/Plugins/GoogleAnalyticsV3/GAv3.prefab b/source/Plugins/GoogleAnalyticsV3/GAv3.prefab deleted file mode 100644 index edb986e..0000000 Binary files a/source/Plugins/GoogleAnalyticsV3/GAv3.prefab and /dev/null differ