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
| extension UIView { | |
| func drawCircle() { | |
| let circlePath = UIBezierPath(ovalIn: self.bounds) | |
| let circleShape = CAShapeLayer(layer: self.layer) | |
| circleShape.frame = self.bounds | |
| circleShape.path = circlePath.cgPath | |
| circleShape.strokeColor = ColorName.primary.color.cgColor | |
| circleShape.fillColor = Color.clear.cgColor | |
| circleShape.lineWidth = 0.8 |
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
| xcrun swift -version |
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
| <?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> | |
| <!-- 言語設定:既定の言語・地域を言語IDで指定する。デフォルトは、en-US が設定されている。e.g. ja_JP --> | |
| <!-- The default language and region for the bundle, as a language ID. --> | |
| <!-- https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundledevelopmentregion --> | |
| <!-- | |
| For a language used in many regions, use a code that represents a language designator. | |
| To specify English, use the en language designator. |
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
| <?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>CFBundleDevelopmentRegion</key> | |
| <string>$(DEVELOPMENT_LANGUAGE)</string> | |
| <key>CFBundleExecutable</key> | |
| <string>$(EXECUTABLE_NAME)</string> | |
| <key>CFBundleIdentifier</key> | |
| <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> |
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: ApplicationName | |
| options: | |
| bundleIdPrefix: jp.kichiemon | |
| targets: | |
| ApplicationName: | |
| type: application | |
| platform: iOS | |
| deploymentTarget: "13.0" | |
| sources: | |
| - path: ApplicationName |
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
| #!/bin/sh | |
| if [ $# = 1 ]; then | |
| echo $(/usr/libexec/PlistBuddy -c 'Print DVTPlugInCompatibilityUUID' "/Applications/$1/Contents/Info.plist") | |
| else | |
| echo $(/usr/libexec/PlistBuddy -c 'Print DVTPlugInCompatibilityUUID' "/Applications/Xcode.app/Contents/Info.plist") | |
| 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
| grep -R "Content-Type\': undefined" ./* -l | xargs sed -i -e 's|Content-Type\\\': undefined|Content-Type\\\': \'application/x-www-form-urlencoded;application/json;charset=utf-8\'|g |
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
| fun <A, B> LiveData<A>.combineLatestWith(other: LiveData<B>): LiveData<Pair<A, B>> { | |
| val mediator = MediatorLiveData<Pair<A, B>>() | |
| mediator.addSource(this) { | |
| it?.let { thisValue -> | |
| other.value?.let { otherValue -> | |
| mediator.value = Pair(thisValue, otherValue) | |
| } | |
| } | |
| } | |
| mediator.addSource(other) { |
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
| Navigator.push( | |
| context, | |
| new MaterialPageRoute( | |
| builder: (BuildContext context) => NextPage(), | |
| fullscreenDialog: true, | |
| ), | |
| ) |
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
| @override | |
| Future<void> settings({ | |
| bool persistenceEnabled, | |
| String host, | |
| bool sslEnabled, | |
| int cacheSizeBytes, | |
| }) async { | |
| await channel.invokeMethod<void>('Firestore#settings', <String, dynamic>{ | |
| 'app': app.name, | |
| 'persistenceEnabled': persistenceEnabled, |