Could not find com.google.android.gms:play-services-measurement:8.3.0
久々に触るとアタフタしてしまうけど、
ExtrasのGoogle Play servicesをアップデートして、再起動すればOK
削除したファイルの履歴を確認する
git logに`--`セパレータを利用すれば可能です。
あー、もう削除しちゃっているけどログを確認したいな、という時にぜひ。
$ git log -- <path>
ドキュメントには以下のように記載されていました。
git-log(1)
[--] <path>… Show only commits that are enough to explain how the files that match the specified paths came to be. See History Simplification below for details and other simplification modes. Paths may need to be prefixed with ‘`-- '’ to separate them from options or the revision range, when confusion arises.
Cedar-14への移行方法
2015/11/4をもってHerokuのCedar-10 stackが終了したので、Cedar-14に移行しましょう。
現段階でCedar-10を利用している人は、push時に移行して下さいというメッセージが出てdeploy出来ない状態となっています。
1. 以下のコマンドで簡単にCedar-14 stackを利用すようにします。
$ heroku stack:migrate cedar-14 -a <app name>
2. Herokuにpushします
これでCedar-14でdeployされるようになります。簡単です。Heroku素晴らしい:D
参考リンク
Herokuでdeploy時のdowntimeをゼロにする
preboot機能を有効にします。
heroku features:enable preboot
無効にするにはdisable
heroku features:disable preboot
注意事項として、Documentに
If you make database schema changes that require downtime, we recommend disabling the preboot feature, performing the changes and code push as usual, then re-enabling preboot.
と書かれていますが、database schemaに変更を加える場合はpreboot機能をdisableにすることが推奨されています。
Gitで2つのコミット間の変更を確認する方法
SwiftでSingletonを作成する
以下の様に作成する。
Singleton.sharedInstance
と利用すれば良い。
class Singleton { class var sharedInstance: Singleton { struct Static { static var instance: Singleton? static var token: dispatch_once_t = 0 } dispatch_once(&Static.token) { Static.instance = Singleton() } return Static.instance! } }
参考リンク
Flurryの導入
Podで導入
pod 'FlurrySDK', '5.4'
最新版の6.0.0は上記Podには含まれていなかったのでPRを送信しておきました。
また、私のリポジトリで6.0.0のものを上げてるのでPrivate Spec Repoで利用する方法も可能です。
nafu/Flurry · GitHub