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

Release/v3.0.0 #52

Merged
merged 4 commits into from
Aug 24, 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
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,10 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output
fastlane/reports

# Direnv
.envrc

# Ruby
.bundle
.ruby-version

# Python
.python-version
.bundle
8 changes: 4 additions & 4 deletions Source/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@ public extension Substring {
///
/// - Returns: Punycode encoded string or nil if the string can't be encoded
var punycodeEncoded: String? {
return Punycode().encodePunycode(self)
return Puny().encodePunycode(self)
}

/// Returns new string decoded from punycode representation (RFC 3492)
///
/// - Returns: Original string or nil if the string doesn't contain correct encoding
var punycodeDecoded: String? {
return Punycode().decodePunycode(self)
return Puny().decodePunycode(self)
}

/// Returns new string containing IDNA-encoded hostname
///
/// - Returns: IDNA encoded hostname or nil if the string can't be encoded
var idnaEncoded: String? {
return Punycode().encodeIDNA(self)
return Puny().encodeIDNA(self)
}

/// Returns new string containing hostname decoded from IDNA representation
///
/// - Returns: Original hostname or nil if the string doesn't contain correct encoding
var idnaDecoded: String? {
return Punycode().decodedIDNA(self)
return Puny().decodedIDNA(self)
}
}

Expand Down
2 changes: 1 addition & 1 deletion Source/Punycode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
/// the class 'Punycode.Punycode' or the module 'Punycode', or see
/// https://github.com/apple/swift/issues/56573 for workarounds

public class Punycode {
public class Puny {

/// Punycode RFC 3492
/// See https://www.ietf.org/rfc/rfc3492.txt for standard details
Expand Down
80 changes: 47 additions & 33 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,70 +118,84 @@ lane :test_all do
# devices: ["iPhone SE (3rd generation)"],
# clean: true,
code_coverage: true,
open_report: true,
open_report: false,
output_files: "report-ios.html,report-ios.junit",
)
# slather(
# scheme: scheme_iOS,
# proj: default_xcodeproj,
# output_directory: "./reports/iOS",
# html: true,
# show: true
# )
slather(
scheme: scheme_iOS,
proj: default_xcodeproj,
output_directory: "./fastlane/reports/iOS",
html: true,
show: false
)

desc "Run macOS Tests"
run_tests(
scheme: scheme_macOS,
destination: "platform=macOS",
# clean: true,
code_coverage: true,
open_report: true,
open_report: false,
output_files: "report-macos.html,report-macos.junit",
)
# slather(
# scheme: scheme_macOS,
# proj: default_xcodeproj,
# output_directory: "./reports/macOS",
# html: true,
# show: true
# )
slather(
scheme: scheme_macOS,
proj: default_xcodeproj,
output_directory: "./fastlane/reports/macOS",
html: true,
show: false
)

desc "Run tvOS Tests"
run_tests(
scheme: scheme_tvOS,
destination: "platform=tvOS Simulator,name=Apple TV 4K (3rd generation)",
# clean: true,
code_coverage: true,
open_report: true,
open_report: false,
output_files: "report-tvos.html,report-tvos.junit",
)
# slather(
# scheme: scheme_tvOS,
# proj: default_xcodeproj,
# output_directory: "./reports/tvOS",
# html: true,
# show: true
# )
slather(
scheme: scheme_tvOS,
proj: default_xcodeproj,
output_directory: "./fastlane/reports/tvOS",
html: true,
show: false
)

desc "Run watchOS Tests"
run_tests(
scheme: scheme_watchOS,
destination: "platform=watchOS Simulator,name=Apple Watch Series 9 (45mm)",
# clean: true,
code_coverage: true,
open_report: true,
open_report: false,
output_files: "report-watchos.html,report-watchos.junit",
)
slather(
scheme: scheme_watchOS,
proj: default_xcodeproj,
output_directory: "./fastlane/reports/watchOS",
html: true,
show: false
)

desc "Run visionOS Tests"
run_tests(
scheme: scheme_visionOS,
destination: "platform=visionOS Simulator,name=Apple Vision Pro",
# clean: true,
code_coverage: true,
open_report: true,
open_report: false,
output_files: "report-visionos.html,report-visionos.junit",
)
slather(
scheme: scheme_visionOS,
proj: default_xcodeproj,
output_directory: "./fastlane/reports/visionOS",
html: true,
show: false
)

end

Expand Down Expand Up @@ -227,13 +241,13 @@ lane :build_carthage do |options|
use_xcframeworks: true,
no_skip_current: true
)
carthage(
command: "build",
verbose: false,
platform: "visionOS",
use_xcframeworks: true,
no_skip_current: true
)
# carthage(
# command: "build",
# verbose: false,
# platform: "visionOS",
# use_xcframeworks: true,
# no_skip_current: true
# )
end

desc "Lint Cocoapods"
Expand Down