Skip to content

Commit

Permalink
Merge pull request #655 from OneSignal/fix/androidlibMetaFiles
Browse files Browse the repository at this point in the history
[Fix] Include OneSignalConfig.androidlib meta files
  • Loading branch information
shepherd-l authored and jinliu9508 committed Mar 1, 2024
2 parents 605107f + 61dc27a commit 3258603
Show file tree
Hide file tree
Showing 21 changed files with 152 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ protected override bool _getIsStepCompleted() {

var packagePaths = Directory.GetFiles(_pluginPackagePath, "*", SearchOption.AllDirectories)
.Select(path => path.Remove(0, path.LastIndexOf(_pluginName, StringComparison.InvariantCulture)));
packagePaths = packagePaths.Where(file => !file.EndsWith(".meta"));

var exportPaths = Directory.GetFiles(_pluginExportPath, "*", SearchOption.AllDirectories)
.Select(path => path.Remove(0, path.LastIndexOf(_pluginName, StringComparison.InvariantCulture)));
Expand All @@ -69,8 +70,9 @@ protected override void _runStep() {
MigratePluginToAndroidlib();

var files = Directory.GetFiles(_pluginPackagePath, "*", SearchOption.AllDirectories);
var filteredFiles = files.Where(file => !file.EndsWith(".meta"));

foreach (var file in files) {
foreach (var file in filteredFiles) {
var trimmedPath = file.Remove(0, _pluginPackagePath.Length + 1);
var fileExportPath = Path.Combine(_pluginExportPath, trimmedPath);
var containingPath = fileExportPath.Remove(fileExportPath.LastIndexOf(Path.DirectorySeparatorChar));
Expand Down

0 comments on commit 3258603

Please sign in to comment.