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
format: | |
subject: '## %{subject}' | |
line: '* [%{title}](%{url}) %{status} %{user} ' | |
dictionary: | |
status: | |
merged: '**merged!**' | |
closed: '**closed!**' |
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
format: | |
subject: '### %{subject}' | |
line: '- [%{title}](%{url}) %{status}' | |
dictionary: | |
status: | |
merged: '**merged**' | |
closed: '**closed**' |
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
const core = require('@actions/core'); | |
const Nightmare = require('nightmare'); | |
const Path = require('path'); | |
const cheerio = require('cheerio'); | |
const fs = require('fs'); | |
const nightmare = Nightmare({ show: false }); | |
const url = 'https://developer.apple.com/app-store/review/guidelines'; | |
const filePath = 'html/guidelines.html'; |
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
#!/usr/bin/env bash | |
# fail if any commands fails | |
set -e | |
# debug log | |
set -x | |
if ! which brew >/dev/null; then | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi |
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: App Store Review Guidelines History | |
on: | |
schedule: | |
- cron: '0 8,20 * * *' | |
jobs: | |
build: | |
runs-on: macOS-latest | |
steps: | |
- name: Git check-out | |
uses: actions/checkout@master |
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
// 1: Return a boolean value if text has changed. | |
var hasChanges: Bool { | |
return originalText != editedText | |
} | |
override func viewWillLayoutSubviews() { | |
textView.text = editedText | |
// 2: Set the hasChanges property to isModalInPresentation | |
let hasChanges = self.hasChanges |
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
isModalInPresentation = true | |
func presentationControllerDidAttemptToDismiss(_ presentationController: UIPresentationController) { | |
// Call dismiss | |
dismiss(animated: true) | |
// By following the parent ViewController delegate methods, | |
// you can reload the tableview, pass values and so on. | |
self.delegate?.editViewControllerDidFinish(self) | |
} |
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
protocol EditViewControllerDelegate: class { | |
func editViewControllerDidCancel(_ editViewController: EditViewController) | |
func editViewControllerDidFinish(_ editViewController: EditViewController) | |
} | |
extension EditViewController: UIAdaptivePresentationControllerDelegate { | |
func presentationControllerDidDismiss(_ presentationController: UIPresentationController) { | |
// By following the parent ViewController delegate methods, | |
// you can reload the tableview, pass values and so on. | |
self.delegate?.editViewControllerDidFinish(self) |
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
#!/usr/bin/env bash | |
# fail if any commands fails | |
set -e | |
# get release number from Xcode build settings | |
version=$(sed -n '/MARKETING_VERSION/{s/MARKETING_VERSION = //;s/;//;s/^[[:space:]]*//;p;q;}' {プロジェクト名}.xcodeproj/project.pbxproj) | |
if [ -z "${version}" ]; then | |
echo "[ERROR] failed to get MARKETING_VERSION" | |
exit 1 |
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
version=$(sed -n '/MARKETING_VERSION/{s/MARKETING_VERSION = //;s/;//;s/^[[:space:]]*//;p;q;}' {your project name}.xcodeproj/project.pbxproj)a |
NewerOlder