diff --git a/solara/lib/core/scripts/gitignore_manager.rb b/solara/lib/core/scripts/gitignore_manager.rb index 084b85f..e999e8c 100644 --- a/solara/lib/core/scripts/gitignore_manager.rb +++ b/solara/lib/core/scripts/gitignore_manager.rb @@ -18,9 +18,7 @@ def self.ignore_common_files ] if Platform.is_flutter || Platform.is_ios - items << FileManager.get_relative_path_to_root(FilePath.project_infoplist_string_catalog) - # The excluded InfoPlist.xcstrings maybe at the root. In this case we have to avoid ignoring the brands files. - items << '!solara/brand/brands/**/InfoPlist.xcstrings' + items << "/#{FileManager.get_relative_path_to_root(FilePath.project_infoplist_string_catalog)}" end GitignoreManager.new(FilePath.project_root).add_items(items) diff --git a/solara/lib/core/scripts/resource_manifest_processor.rb b/solara/lib/core/scripts/resource_manifest_processor.rb index 4cda05f..7133828 100644 --- a/solara/lib/core/scripts/resource_manifest_processor.rb +++ b/solara/lib/core/scripts/resource_manifest_processor.rb @@ -89,7 +89,7 @@ def destinations_of_directory_contents(src_dir, dst_dir) def git_ignore(files) files.each do |file| - GitignoreManager.new(FilePath.project_root).add_items([file]) + GitignoreManager.new(FilePath.project_root).add_items(["/#{file}"]) end end