Skip to content

Commit

Permalink
Update fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
twodayslate committed Aug 18, 2022
1 parent 2f74513 commit 014596c
Show file tree
Hide file tree
Showing 29 changed files with 129 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ format:

.PHONY: snapshot
snapshot:
fastlane snapshot && fastlane ios deliver_snapshots
fastlane snapshot && fastlane deliver --overwrite_screenshots

.PHONY: open
open:
Expand Down
14 changes: 13 additions & 1 deletion ec3730UITests/ec3730UITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ class EC3730UITests: XCTestCase {
openVC("Host")
app.buttons["Lookup"].tap()
sleep(1)
expandFirstItem()
snapshot("Host")

openVC("Device")
expandFirstItem()
snapshot("Device")

openVC("Ping")
Expand All @@ -49,10 +51,18 @@ class EC3730UITests: XCTestCase {
snapshot("Connectivity")

openVC("View Source")
sleep(1)
sleep(2)
snapshot("ViewSource")
}

private func expandFirstItem() {
app.scrollViews.otherElements.firstMatch.press(forDuration: 1.1)
let expandButton = app.collectionViews/*@START_MENU_TOKEN@*/ .buttons["Expand"]/*[[".cells.buttons[\"Expand\"]",".buttons[\"Expand\"]"],[[[-1,1],[-1,0]]],[0]]@END_MENU_TOKEN@*/
if expandButton.isHittable {
expandButton.tap()
}
}

private func openVC(_ key: String) {
// First we try the tab bar
let scrollViewsQuery = app.scrollViews
Expand All @@ -65,6 +75,8 @@ class EC3730UITests: XCTestCase {
}

// Then we try the more tab
app.scrollViews.otherElements.buttons["More"].tap()

let tablesQuery = app.tables
let button = tablesQuery.buttons[key]
if button.exists, button.isHittable {
Expand Down
13 changes: 13 additions & 0 deletions fastlane/Deliverfile.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// The Deliverfile allows you to store various App Store Connect metadata
// For more information, check out the docs
// https://docs.fastlane.tools/actions/deliver/

// In general, you can use the options available
// fastlane deliver --help

// Remove the // in front of the line to enable the option

class Deliverfile: DeliverfileProtocol {
//var username: String { return "" }
//var appIdentifier: String? { return "" }
}
6 changes: 4 additions & 2 deletions fastlane/Snapfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Uncomment the lines below you want to change by removing the # in the beginning

# A list of devices you want to take the screenshots from
# `xcrun simctl list devices available`
devices([
"iPhone 8 Plus",
"iPhone SE (3rd generation)",
"iPhone 13 Pro Max",
"iPad Air (5th generation)",
# xcrun simctl create "iPad Pro (12.9-inch) (2nd generation)" "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-"
"iPad Pro (12.9-inch) (2nd generation)",
"iPad Pro (12.9-inch) (5th generation)"
])

Expand All @@ -17,7 +19,7 @@ languages([
scheme("ec3730")

# Where should the resulting screenshots be stored?
output_directory("./screenshots")
output_directory("./fastlane/screenshots")

# remove the '#' to clear all previously generated screenshots before creating new ones
clear_previous_screenshots(true)
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/copyright.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Zachary Gorak
1 change: 1 addition & 0 deletions fastlane/metadata/en-US/apple_tv_privacy_policy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

44 changes: 44 additions & 0 deletions fastlane/metadata/en-US/description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
The all-in-one Network Utility application!

• Network connectivity status
• Network interface information
• WiFi information
• VPN information
• Host information
• Google Web Risk Information (purchase or API key required)
• WHOIS information from Whois XML API (subscription or API key required)
• DNS information from Whois XML API (subscription or API key required)
• Domain and IP reputation information from Whois XML API (subscription or API key required)
• Ping utility
• Device information
• View page source

Information used by cyber security professionals, payment processors, law enforcement, website owners, and domain investors.

Find ties to cybercrime and enhance your cyber defense. This information could be particularly useful in mitigating phishing and other malware-enabled attacks.

► WHOIS Information (Subscription required or bring your own API key)
◆ Get registrant name, organization, e-mail address, registration address, registrar information, creation date, expiration date, updated date, domain availability, domain age, and much more.
◆ Real-time WHOIS data, ensuring that only the most up to date and accurate information is available
▸ Check domain names availability and to track domain registration changes.
▸ Ensure reliable and secure domain name ownership transfer and management.
▸ Protect your intellectual property and to check potential trademark infringements. They also use Whois searches to scope domain name similarities, duplicates, or copycats.
▸ Domain investors use the information gained from Whois searches to learn about their competition and to identify investment opportunities.
▸ Identify all the connected domains, websites and IP addresses associated with fraudulent activities and criminals.
▸ Identify new business and partnership opportunities and to locate potential buyers through the contact details provided in the Whois records.
▸ Obtain more insights on your user base with statistical analyses, helping you create better marketing strategies and campaigns, focus on the right customers, and cater to formerly untapped markets

► DNS Information (Subscription required or bring your own API key)
A domain has a number of records associated with it, a DNS server can be queried to determine the IP address of the primary domain (A record), mail servers (MX records), DNS servers (NS nameservers) and other items such as SPF records (TXT records).
◆ Displays the DNS information critical for identifying who is hosting a particular domain name or website.
◆ Determine the Mail Servers for Particular Domain You might use this API to find out what server(s) accept email for a specific domain (by doing an MX record lookup).
◆ Determine the IP address of the primary domain (A record), mail servers (MX records), DNS servers (name servers) and other items such as SPF records (TXT records).
◆ Determine whether the domain restricts who can send email - You might use this API to determine the SPF record for a domain (by looking up the TXT record for the domain), to see if the domain tries to restrict who can send email using the domain

► Reputation Information (Subscription required or bring your own API key)
◆ Instantly audit your or someone else’s domain or IP address with Domain Reputation API. The tool uses hundreds of parameters to calculate reputation scores.

► Web Risk (Purchase required or bring your own API key)
◆ Check URLs against Google's constantly updated lists of unsafe web resources

Open source: https://github.com/twodayslate/NetUtils
1 change: 1 addition & 0 deletions fastlane/metadata/en-US/keywords.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
networking, utilities, ping, source, reachability, whois, dns, ip, ipv4, ipv6, web, risk, cyber
1 change: 1 addition & 0 deletions fastlane/metadata/en-US/marketing_url.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://zac.gorak.us/ios
1 change: 1 addition & 0 deletions fastlane/metadata/en-US/name.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NetUtils
1 change: 1 addition & 0 deletions fastlane/metadata/en-US/privacy_url.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://zac.gorak.us/ios/privacy.html
1 change: 1 addition & 0 deletions fastlane/metadata/en-US/promotional_text.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The most unified & consistent WHOIS, DNS, and reputation lookups in the App Store - now with Web Risk!
3 changes: 3 additions & 0 deletions fastlane/metadata/en-US/release_notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Bug fixes and improvements

Reviews are welcomed and appreciated - thank you for the support!
1 change: 1 addition & 0 deletions fastlane/metadata/en-US/subtitle.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Network Utilities
1 change: 1 addition & 0 deletions fastlane/metadata/en-US/support_url.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://zac.gorak.us/ios
1 change: 1 addition & 0 deletions fastlane/metadata/primary_category.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PRODUCTIVITY
1 change: 1 addition & 0 deletions fastlane/metadata/primary_first_sub_category.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions fastlane/metadata/primary_second_sub_category.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions fastlane/metadata/review_information/demo_password.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions fastlane/metadata/review_information/demo_user.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions fastlane/metadata/review_information/email_address.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[email protected]
1 change: 1 addition & 0 deletions fastlane/metadata/review_information/first_name.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Zachary
1 change: 1 addition & 0 deletions fastlane/metadata/review_information/last_name.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Gorak
1 change: 1 addition & 0 deletions fastlane/metadata/review_information/notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Source code: https://github.com/twodayslate/NetUtils
Empty file.
1 change: 1 addition & 0 deletions fastlane/metadata/secondary_category.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTILITIES
1 change: 1 addition & 0 deletions fastlane/metadata/secondary_first_sub_category.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions fastlane/metadata/secondary_second_sub_category.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

30 changes: 30 additions & 0 deletions fastlane/screenshots/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Screenshots Naming Rules

Put all screenshots you want to use inside the folder of its language (e.g. `en-US`).
The device type will automatically be recognized using the image resolution.

The screenshots can be named whatever you want, but keep in mind they are sorted
alphabetically, in a human-friendly way. See https://github.com/fastlane/fastlane/pull/18200 for more details.

### Exceptions

#### iPad Pro (3rd Gen) 12.9"

Since iPad Pro (3rd Gen) 12.9" and iPad Pro (2nd Gen) 12.9" have the same image
resolution, screenshots of the iPad Pro (3rd gen) 12.9" must contain either the
string `iPad Pro (12.9-inch) (3rd generation)`, `IPAD_PRO_3GEN_129`, or `ipadPro129`
(App Store Connect's internal naming of the display family for the 3rd generation iPad Pro)
in its filename to be assigned the correct display family and to be uploaded to
the correct screenshot slot in your app's metadata.

### Other Platforms

#### Apple TV

Apple TV screenshots should be stored in a subdirectory named `appleTV` with language
folders inside of it.

#### iMessage

iMessage screenshots, like the Apple TV ones, should also be stored in a subdirectory
named `iMessage`, with language folders inside of it.

0 comments on commit 014596c

Please sign in to comment.