|
@@ -42,22 +42,22 @@ target 'Introduce' do
|
|
|
end
|
|
|
end
|
|
|
|
|
|
-def remove_swift_ui(code_file)
|
|
|
- code_text = File.read(code_file)
|
|
|
- code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\)(\n)/,"#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64))\n")
|
|
|
- system("rm -rf " + code_file)
|
|
|
- aFile = File.new(code_file, 'w+')
|
|
|
- aFile.syswrite(code_text)
|
|
|
- aFile.close()
|
|
|
-end
|
|
|
+ def remove_swift_ui(code_file)
|
|
|
+ code_text = File.read(code_file)
|
|
|
+ code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\)(\n)/,"#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64))\n")
|
|
|
+ system("rm -rf " + code_file)
|
|
|
+ aFile = File.new(code_file, 'w+')
|
|
|
+ aFile.syswrite(code_text)
|
|
|
+ aFile.close()
|
|
|
+ end
|
|
|
|
|
|
-def remove_swift_ui_realm (code_file)
|
|
|
- code_text = File.read(code_file)
|
|
|
- code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\) && swif/,'#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64)) && swif')
|
|
|
- system("rm -rf " + code_file)
|
|
|
- aFile = File.new(code_file, 'w+')
|
|
|
- aFile.syswrite(code_text)
|
|
|
- aFile.close()
|
|
|
-end
|
|
|
+ def remove_swift_ui_realm (code_file)
|
|
|
+ code_text = File.read(code_file)
|
|
|
+ code_text.gsub!(/#if canImport\(SwiftUI\) && canImport\(Combine\) && swif/,'#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64)) && swif')
|
|
|
+ system("rm -rf " + code_file)
|
|
|
+ aFile = File.new(code_file, 'w+')
|
|
|
+ aFile.syswrite(code_text)
|
|
|
+ aFile.close()
|
|
|
+ end
|
|
|
|
|
|
end
|