Neopixels: update texts

Remove unused classes
Improve automatic screenshots generation
This commit is contained in:
Antonio 2020-01-28 16:40:36 +01:00
parent 64e94256ee
commit 2d5d116447
8 changed files with 38 additions and 53 deletions

View file

@ -1,22 +0,0 @@
//
// TouchReleaseRectangularPaletteControl.swift
// BluefruitPlayground
//
// Created by Antonio García on 16/12/2019.
// Copyright © 2019 Adafruit. All rights reserved.
//
import UIKit
import FlexColorPicker
class TouchReleaseRectangularPaletteControl: RectangularPaletteControl {
/*
// Only override draw() if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
override func draw(_ rect: CGRect) {
// Drawing code
}
*/
}

View file

@ -1223,14 +1223,14 @@
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="HelpCell" id="U5T-Rn-JoM" customClass="HelpTableViewCell" customModule="BluefruitPlayground_SimulateBluetooth" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="414" height="220"/>
<rect key="frame" x="0.0" y="28" width="414" height="222"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="U5T-Rn-JoM" id="luQ-sf-H0h">
<rect key="frame" x="0.0" y="0.0" width="414" height="220"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="222"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="W6j-6k-zao">
<rect key="frame" x="20" y="19" width="374" height="190"/>
<rect key="frame" x="20" y="19" width="374" height="192"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" verticalHuggingPriority="750" verticalCompressionResistancePriority="1000" spacing="12" translatesAutoresizingMaskIntoConstraints="NO" id="NeJ-ep-YDO">
<rect key="frame" x="0.0" y="0.0" width="374" height="43"/>
@ -1280,10 +1280,10 @@
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" verticalHuggingPriority="1000" verticalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="lX3-kv-DYx">
<rect key="frame" x="0.0" y="104" width="374" height="86"/>
<rect key="frame" x="0.0" y="104" width="374" height="88"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="bottom" horizontalHuggingPriority="251" verticalHuggingPriority="1000" verticalCompressionResistancePriority="1000" image="scanproblems_powerup" translatesAutoresizingMaskIntoConstraints="NO" id="UAb-G3-y7N">
<rect key="frame" x="0.0" y="0.0" width="374" height="86"/>
<rect key="frame" x="0.0" y="0.0" width="374" height="88"/>
</imageView>
</subviews>
<color key="backgroundColor" name="cell_light"/>
@ -1550,19 +1550,19 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1EM-zG-od1">
<rect key="frame" x="27" y="122" width="360" height="400"/>
<rect key="frame" x="27" y="-78" width="360" height="800"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mCj-Gb-k6T">
<rect key="frame" x="0.0" y="0.0" width="360" height="400"/>
<rect key="frame" x="0.0" y="0.0" width="360" height="800"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="tip_datacable" translatesAutoresizingMaskIntoConstraints="NO" id="eyT-6W-nB8">
<rect key="frame" x="159" y="-87.5" width="42" height="124"/>
<rect key="frame" x="138" y="50.5" width="84" height="248"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="tip_powercable" translatesAutoresizingMaskIntoConstraints="NO" id="5s4-fh-H68">
<rect key="frame" x="153" y="334" width="54" height="175"/>
<rect key="frame" x="126" y="446.5" width="108" height="350"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="cpb_circuit" translatesAutoresizingMaskIntoConstraints="NO" id="i3T-Db-EAx">
<rect key="frame" x="0.0" y="0.0" width="360" height="400"/>
<rect key="frame" x="0.0" y="0.0" width="360" height="800"/>
<constraints>
<constraint firstAttribute="width" constant="360" id="twB-P9-kif"/>
</constraints>

View file

@ -12,10 +12,13 @@ struct Config {
// Debug-----------------------------------------------------------------------------
static let isDebugEnabled = _isDebugAssertConfiguration()
// Fastlane snapshots
private static let areFastlaneSnapshotsRunning = UserDefaults.standard.bool(forKey: "FASTLANE_SNAPSHOT")
// Bluetooth
#if SIMULATEBLUETOOTH
static let isTutorialEnabled = !isDebugEnabled
static let isTutorialEnabled = areFastlaneSnapshotsRunning || !isDebugEnabled
static let isBleUnsupportedWarningEnabled = false
static let bleManager = BleManagerSimulated.simulated
#else

View file

@ -110,7 +110,7 @@ Download it from the Bluefruit Playground guide at learn.adafruit.com";
"modules_title" = "Modules";
"modules_subtitle" = "Each module interacts with a specific type of sensor on the Circuit Playground Bluefruit device";
"modules_color_title" = "Neopixels";
"modules_color_title" = "NeoPixels";
"modules_color_subtitle" = "Control LED color & animation";
"modules_light_title" = "Light Sensor";
"modules_light_subtitle" = "View continuous light sensor readings";
@ -124,14 +124,14 @@ Download it from the Bluefruit Playground guide at learn.adafruit.com";
"modules_temperature_subtitle" = "View current temperature readings";
// Neopixels
"neopixels_title" = "Neopixels";
"neopixels_help" = "Neopixel mode allows you to control the color of CPBs built-in neopixel LEDs individually, as a group, or by playing preset animations.
"neopixels_title" = "NeoPixels";
"neopixels_help" = "NeoPixels mode allows you to control the color of CPBs built-in NeoPixel LEDs individually, as a group, or by playing preset animations.
• Select neopixels to control by tapping them in the Circuit Playground Bluefruit image.
• Select NeoPixels to control by tapping them in the Circuit Playground Bluefruit image.
• Set the color of selected neopixels by choosing a color from the Color Palette or Color Wheel at the bottom.
• Set the color of selected NeoPixels by choosing a color from the Color Palette or Color Wheel at the bottom.
• Tap a light sequence to trigger an animation using all of the neopixels.";
• Tap a light sequence to trigger an animation using all of the NeoPixels.";
"neopixels_sequence_title" = "Light Sequence";
"neopixels_sequence_speed" = "Speed";

View file

@ -27,7 +27,7 @@ class BluefruitPlaygroundUITests: XCTestCase {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() {
func testSnapshots() {
/*
// UI tests must launch the application that they test.
let app = XCUIApplication()
@ -40,7 +40,7 @@ class BluefruitPlaygroundUITests: XCTestCase {
let scrollViewsQuery = app.scrollViews
let elementsQuery = scrollViewsQuery.otherElements
sleep(3) // Wait for the intro animation
sleep(2) // Wait for the intro animation
snapshot("01a_Welcome")
elementsQuery.buttons["LET'S GET STARTED..."].tap()
@ -51,7 +51,7 @@ class BluefruitPlaygroundUITests: XCTestCase {
elementsQuery.buttons["BEGIN PAIRING"].tap()
let tablesQuery = app.tables
tablesQuery/*@START_MENU_TOKEN@*/.staticTexts["Simulated Peripheral"]/*[[".cells.staticTexts[\"Simulated Peripheral\"]",".staticTexts[\"Simulated Peripheral\"]"],[[[-1,1],[-1,0]]],[0]]@END_MENU_TOKEN@*/.tap()
tablesQuery.staticTexts["Simulated Peripheral"].tap()
snapshot("02_Modules")

View file

@ -1,7 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.6)
CFPropertyList (3.0.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
atomos (0.1.3)
@ -18,7 +18,7 @@ GEM
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.5)
emoji_regex (1.0.1)
excon (0.71.0)
excon (0.71.1)
faraday (0.17.1)
multipart-post (>= 1.2, < 3)
faraday-cookie_jar (0.0.6)
@ -27,7 +27,7 @@ GEM
faraday_middleware (0.13.1)
faraday (>= 0.7.4, < 1.0)
fastimage (2.1.7)
fastlane (2.137.0)
fastlane (2.138.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.3, < 3.0.0)
babosa (>= 1.0.2, < 2.0.0)
@ -36,7 +36,7 @@ GEM
commander-fastlane (>= 4.4.6, < 5.0.0)
dotenv (>= 2.1.1, < 3.0.0)
emoji_regex (>= 0.1, < 2.0)
excon (>= 0.45.0, < 1.0.0)
excon (>= 0.71.0, < 1.0.0)
faraday (~> 0.17)
faraday-cookie_jar (~> 0.0.6)
faraday_middleware (~> 0.13.1)
@ -61,7 +61,7 @@ GEM
tty-screen (>= 0.6.3, < 1.0.0)
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.8.1, < 2.0.0)
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
gh_inspector (1.1.3)
@ -93,7 +93,7 @@ GEM
http-cookie (1.0.3)
domain_name (~> 0.5)
httpclient (2.8.3)
json (2.1.0)
json (2.3.0)
jwt (2.1.0)
memoist (0.16.2)
mime-types (3.3)
@ -121,7 +121,7 @@ GEM
faraday (~> 0.9)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simctl (1.6.6)
simctl (1.6.7)
CFPropertyList
naturally
slack-notifier (2.3.2)
@ -138,7 +138,7 @@ GEM
unf_ext (0.0.7.6)
unicode-display_width (1.6.0)
word_wrap (1.0.0)
xcodeproj (1.12.0)
xcodeproj (1.14.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)

3
fastlane/Deliverfile Normal file
View file

@ -0,0 +1,3 @@
# The Deliverfile allows you to store various App Store Connect metadata
# For more information, check out the docs
# https://docs.fastlane.tools/actions/deliver/

View file

@ -6,8 +6,8 @@
"iPhone 11",
"iPhone 8 Plus",
"iPhone 8",
"iPhone SE",
# "iPhone SE",
# "iPhone 6",
# "iPhone 6 Plus",
# "iPhone 5",
@ -29,7 +29,8 @@ languages([
# Where should the resulting screenshots be stored?
# output_directory "./screenshots"
# clear_previous_screenshots true # remove the '#' to clear all previously generated screenshots before creating new ones
# remove the '#' to clear all previously generated screenshots before creating new ones
clear_previous_screenshots true
# Choose which project/workspace to use
# project "./Project.xcodeproj"