Skip to content

Commit 970c3f8

Browse files
author
Stewart Miles
committed
Added documentation to plugin distribution.
Change-Id: I50250ba9abf1736fd1acea620fd7fc9c9c9705d5
1 parent db5df83 commit 970c3f8

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,12 @@ Task copyPluginTemplateToStagingArea = createCopyFilesTask(
11471147
"GoogleRegistries.xml"),
11481148
new File(new File(new File("Assets", "ExternalDependencyManager"), "Editor"),
11491149
"GoogleRegistries.xml.meta"),
1150+
new File(new File(new File("Assets", "ExternalDependencyManager"), "Editor"),
1151+
"CHANGELOG.md.meta"),
1152+
new File(new File(new File("Assets", "ExternalDependencyManager"), "Editor"),
1153+
"LICENSE.meta"),
1154+
new File(new File(new File("Assets", "ExternalDependencyManager"), "Editor"),
1155+
"README.md.meta"),
11501156
new File("Assets", "PlayServicesResolver.meta"),
11511157
new File(new File("Assets", "PlayServicesResolver"), "Editor.meta"),
11521158
new File(new File(new File("Assets", "PlayServicesResolver"), "Editor"),
@@ -1157,6 +1163,18 @@ Task copyPluginTemplateToStagingArea = createCopyFilesTask(
11571163
[preparePluginStagingAreaDir],
11581164
{ sourceFile, targetFile -> copyAssetMetadataFile(sourceFile, targetFile) })
11591165

1166+
Task copyDocumentationToStagingArea = createCopyFilesTask(
1167+
"copyDocumentationToStagingArea",
1168+
"Copy documentation into the Unity plugin packaging dir.",
1169+
[new File("CHANGELOG.md"),
1170+
new File("LICENSE"),
1171+
new File("README.md")],
1172+
project.ext.scriptDirectory,
1173+
new File(new File(new File(project.ext.pluginStagingAreaDir, "Assets"),
1174+
"ExternalDependencyManager"), "Editor"),
1175+
[preparePluginStagingAreaDir],
1176+
{ sourceFile, targetFile -> copyAssetMetadataFile(sourceFile, targetFile) })
1177+
11601178
Iterable<Task> copyComponentsToStagingAreaTasks = [
11611179
copyAndroidResolverStaging,
11621180
copyVersionHandlerStaging,
@@ -1187,6 +1205,7 @@ task copyPluginComponentsToStagingArea(
11871205

11881206
task generatePluginManifest(dependsOn: [preparePluginStagingAreaDir,
11891207
copyPluginTemplateToStagingArea,
1208+
copyDocumentationToStagingArea,
11901209
copyPluginComponentsToStagingArea]) {
11911210
String unversionedManifestName = currentPluginBasename + ".txt"
11921211
File outputDir = new File(project.ext.pluginStagingAreaDir,

plugin/Assets/ExternalDependencyManager/Editor/CHANGELOG.md.meta

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/Assets/ExternalDependencyManager/Editor/LICENSE.meta

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/Assets/ExternalDependencyManager/Editor/README.md.meta

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)