Skip to content

Commit

Permalink
🐛 Do not append empty associate domains
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 5, 2024
1 parent 26cf459 commit 08eaf4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/wechat_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
app_id = options_dict[:app_id]
universal_link = options_dict[:universal_link]

applinks = ''
applinks = nil
if (!app_id.nil? && !app_id.empty? && !universal_link.nil? && !universal_link.empty?)
begin
applinks = "applinks:#{URI.parse(universal_link).host}"
Expand Down Expand Up @@ -159,7 +159,7 @@
result["com.apple.developer.associated-domains"] = domains
end
isApplinksExist = domains.include? applinks
if !isApplinksExist
if !isApplinksExist && !applinks.nil?
domains << applinks
File.write(codeSignEntitlementsFile, Plist::Emit.dump(result))
end
Expand Down

0 comments on commit 08eaf4f

Please sign in to comment.