Skip to content

Commit

Permalink
Solara
Browse files Browse the repository at this point in the history
  • Loading branch information
MalekKamel committed Sep 23, 2024
1 parent a2e2e22 commit 4ba4b57
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion solara/lib/core/scripts/directory_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def self.create_directory(dir, delete_if_exists)
Dir.mkdir(dir)
end
else
Dir.mkdir(dir)
FileUtils.mkdir_p(dir)
end
Solara.logger.debug("✨ Created directory: #{dir}")
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def validate(file_system)
end
else
ignored = [
'macos/',
'solara/',
"#{FilePath.artifacts_dir_name}/",
"#{FilePath.artifacts_dir_name_ios}/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def switch
# It's important to delete app_name to avoid duplicate resources
def remove_app_name_from_strings
file_path = FilePath.android_strings
return unless File.exist?(file_path)

manager = StringsXmlManager.new(file_path)
manager.delete_app_name
Solara.logger.debug("Removed app_name from #{file_path} to avoid duplicates with #{FilePath.android_artifacts_strings}.")
Expand Down
3 changes: 3 additions & 0 deletions solara/lib/solara_initializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def initialize(brand_key, brand_name)
def init
Solara.logger.header("Initializing Solara")
confirm_init_if_necessary

ProjectDoctor.new.visit

message = "Initialized #{SolaraSettingsManager.instance.platform} successfully."
SolaraManager.new.onboard(@brand_key, @brand_name, init: true, success_message: message)
end
Expand Down

0 comments on commit 4ba4b57

Please sign in to comment.