Skip to content

Commit

Permalink
Merge pull request #52 from gumob:release/v3.0.0
Browse files Browse the repository at this point in the history
Release/v3.0.0
  • Loading branch information
gumob authored Aug 24, 2024
2 parents fb5ce11 + 83834a2 commit ce1c350
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 43 deletions.
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

0 comments on commit ce1c350

Please sign in to comment.