2019/11/29(金)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: {Project Name} | |
| options: | |
| bundleIdPrefix: {Bundle ID Prefix} | |
| deploymentTarget: | |
| iOS: 13.0 | |
| xcodeVersion: "11.3.1" # 変わらない? | |
| # findCarthageFrameworks: true # 余計なフレームワークまで追加されてしまうためコメントアウト | |
| carthageExecutablePath: mint run Carthage/Carthage carthage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PRODUCT_NAME := Foo | |
| SCHEME_NAME := ${PRODUCT_NAME} | |
| WORKSPACE_NAME := ${PRODUCT_NAME}.xcworkspace | |
| UI_TESTS_TARGET_NAME := ${PRODUCT_NAME}UITests | |
| TEST_SDK := iphonesimulator | |
| TEST_CONFIGURATION := Debug | |
| TEST_PLATFORM := iOS Simulator | |
| TEST_DEVICE ?= iPhone 11 Pro Max | |
| TEST_OS ?= 13.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REVIEW_VERSION := 4.0 | |
| REVIEW_CONFIG_FILE ?= config.yml | |
| REVIEW_OUTPUT_TYPE ?= pdf | |
| REVIEW_BOOKNAME := Foo | |
| .DEFAULT_GOAL := help | |
| .PHONY: help | |
| help: | |
| @grep -E '^[a-zA-Z_-]+:.*?# .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":[^#]*? #| #"}; {printf "%-18s%s\n", $$1 $$3, $$2}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package packagename | |
| class ExamLogic { | |
| fun scoreExam(point: Int): String { | |
| if (point < 0 || point > 100) { | |
| return "変な値を送るな!" | |
| } | |
| if (point < 30) { | |
| return "赤点です!" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package packagename | |
| import org.junit.After | |
| import org.junit.Assert.assertEquals | |
| import org.junit.Before | |
| import org.junit.Test | |
| class ExamLogicTest { | |
| // region Stored Instance Properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package packagename | |
| class ExamLogic { | |
| fun scoreExam(point: Int): String = | |
| when (point) { | |
| in 0..29 -> "赤点です!" | |
| in 30..79 -> "まあまあです!" | |
| in 80..99 -> "やるじゃん!" | |
| 100 -> "天才です!" | |
| else -> "変な値を送るな!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # デフォルト有効で無効にするルール | |
| disabled_rules: | |
| #- block_based_kvo | |
| #- class_delegate_protocol | |
| #- closing_brace | |
| #- closure_parameter_position | |
| #- colon | |
| #- comma | |
| #- compiler_protocol_init | |
| #- control_statement |
iOSDC 2020のパンフレットに寄稿した「GitHub ActionsでiOSアプリをCIする個人的ベストプラクティス」の補足資料です。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ref: https://developer.apple.com/documentation/foundation/nslinguistictagger | |
| // ref: https://developer.apple.com/documentation/foundation/nslinguistictagger/1410036-enumeratetags | |
| // ref: https://dev.classmethod.jp/articles/ios10-morphological-analysis-from-speechrecognizer/ | |
| import Foundation | |
| private func analyzeText(_ text: String, scheme: NSLinguisticTagScheme) { | |
| let tagger = NSLinguisticTagger(tagSchemes: NSLinguisticTagger.availableTagSchemes(forLanguage: "ja"), options: 0) | |
| tagger.string = text | |
| tagger.enumerateTags( |
OlderNewer