From fe8784e9a4f070f51f084d4395800fe8d4adb9ac Mon Sep 17 00:00:00 2001 From: Alex Li Date: Tue, 5 Nov 2024 23:55:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Do=20not=20append=20empty=20asso?= =?UTF-8?q?ciate=20domains=20(#669)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cherry-pick #668 --- ios/wechat_setup.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/wechat_setup.rb b/ios/wechat_setup.rb index d11321dc..364c7d18 100644 --- a/ios/wechat_setup.rb +++ b/ios/wechat_setup.rb @@ -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}" @@ -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