This file contains 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
// | |
// Created on 2020/05/16 | |
// Copyright © 2020年, yugo.sugiyama. All rights reserved. | |
// | |
import Foundation | |
import RxSwift | |
import RxCocoa | |
import StoreKit | |
import SwiftyStoreKit |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Cancellation</key> | |
<dict> | |
<key>Cancel</key> | |
<string>cancelOperation:</string> | |
</dict> | |
<key>Case Changes</key> |
This file contains 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
# Check if file exist | |
if [ ! -e ${FILE_PATH ]; then | |
echo "File not exist!" | |
else | |
echo "File exist!" | |
fi | |
if [ -f $FILE_PATH ]; then | |
echo 'File exists!' | |
fi | |
# Check if directory exist |
This file contains 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
FRAMEWORK_NAME="SCHEME_NAME" | |
FILE_PATH=$(cd $(dirname $0) && pwd) | |
# Ref: https://qiita.com/tfactory/items/34f9d88f014c47221617 | |
# Output directory (project root directly) | |
OUTPUT_DIR=$FILE_PATH/path/to/project_root | |
# Output destination directory for intermediate files | |
DERIVED_DIR=${OUTPUT_DIR}/$FRAMEWORK_NAME-derived |
This file contains 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
CONFIG_PATH="{path/to/xcconfig file}" | |
# Ref: https://www.curict.com/item/89/89a578b.html | |
# Check if executed in CI | |
if [ -n "$CI" ] && "$CI" ; then | |
echo "Run in CI" | |
BRANCH_NAME=$SOURCE_BRANCH # Add the appropriate environment variables used in CI. | |
else | |
echo "Run Not in CI" | |
BRANCH_NAME=`git rev-parse --abbrev-ref HEAD` | |
fi |