Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project structure and packaging #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions source/GoogleAnalyticsV3/Editor/ExportPackage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using UnityEngine;
using UnityEditor;

public class ExportPackage
{
[MenuItem("Assets/Export Google Analytics Package", false, 301)]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public static void Export()
{
Debug.Log("Google Analytics Package...");
AssetDatabase.ExportPackage(new string[] {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//Plugins
"Assets/Plugins",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


//GoogleAnalyticsV3 - root
"Assets/GoogleAnalyticsV3/Field.cs",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"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");
}
}
Binary file added source/GoogleAnalyticsV3/GAv3.prefab
Binary file not shown.
Binary file removed source/Plugins/GoogleAnalyticsV3/GAv3.prefab
Binary file not shown.