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

[fix/fastlane-release-12.3] Adopt Fastlane to xcstrings usage #1390

Merged
merged 4 commits into from
Sep 23, 2024
Merged
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Bugfix: Remove (re)sharing from roles for newly created user/group shares for ocis
Bugfix: Remove (re)sharing from roles for newly created user/group shares

Removes (re)sharing from roles for newly created user/group shares for ocis.

Expand Down
18 changes: 0 additions & 18 deletions changelog/unreleased/1343

This file was deleted.

26 changes: 24 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,30 @@ end
set_info_plist_value(path: "ownCloud Action Extension/Info.plist", key: "CFBundleDisplayName", value: "Save to " + appName)
set_info_plist_value(path: "ownCloud Action Extension/Info.plist", key: "CFBundleName", value: appName)

sh("sed -i '' '/\"CFBundleDisplayName\" =/s/ownCloud/#{appName}/' '../ownCloud Action Extension/en.lproj/InfoPlist.strings'")
sh("sed -i '' '/\"CFBundleDisplayName\" =/s/ownCloud/#{appName}/' '../ownCloud Action Extension/de.lproj/InfoPlist.strings'")
# Read InfoPlist.xcstrings JSON content from the file
json_file_path = "../ownCloud Action Extension/InfoPlist.xcstrings"
json_content = File.read(json_file_path)
json_data = JSON.parse(json_content)

# Update the CFBundleDisplayName value for all localizations
if json_data["strings"] && json_data["strings"]["CFBundleDisplayName"]
UI.message("CFBundleDisplayName key found, updating values...")

json_data["strings"]["CFBundleDisplayName"]["localizations"].each do |locale, localization_data|
old_value = localization_data["stringUnit"]["value"]

# Replace "ownCloud" with appName
new_value = old_value.gsub("ownCloud", appName)
localization_data["stringUnit"]["value"] = new_value
end
else
UI.error("CFBundleDisplayName key not found in the JSON data!")
end

# Write the updated JSON back to the file
File.open(json_file_path, "w") do |f|
f.write(JSON.pretty_generate(json_data))
end

update_app_identifier(
xcodeproj: "ownCloud.xcodeproj",
Expand Down
7 changes: 5 additions & 2 deletions fastlane/metadata-emm/en-US/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
• Security Fix
Detect attempts to bypass a lock timeout by changing the clock
• iOS 18
The app is now compatible with iOS 18.

• General Improvements
General app improvements and internal fixes to enhance performance, synchronization, and stability.

8 changes: 6 additions & 2 deletions fastlane/metadata-owncloud-online/en-US/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
• Security Fix
Detect attempts to bypass a lock timeout by changing the clock
• iOS 18
The app is now compatible with iOS 18.

• General Improvements
General app improvements and internal fixes to enhance performance, synchronization, and stability.

8 changes: 6 additions & 2 deletions fastlane/metadata/en-US/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
• Security Fix
Detect attempts to bypass a lock timeout by changing the clock
• iOS 18
The app is now compatible with iOS 18.

• General Improvements
General app improvements and internal fixes to enhance performance, synchronization, and stability.

Loading