Swiftバリバリ書いてるマスタカです
iOSでネットワーク使うならもちろんAlamofire使ってますよね!
メージャーバージョンが上がったのでマイグレーションしました
・ドキュメント
https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire%205.0%20Migration%20Guide.md
・コード差分
マスタカの対応が必要だったのはこれだけだった
- AFManager = Alamofire.SessionManager(configuration: configuration) + AFManager = Alamofire.Session(configuration: configuration)
・内容
SessionManager has been renamed to Session and its APIs have completely changed.
リネームしただけ
こうしてAlamofire5系にマイグレーションできましたとさ
マスタカのアプリも割とモダン化した気がする
関連記事:
- Alamofire4系でtimeoutを設定する
- KotestでDescribeSpecを使ってみた
- Warning: okhttp3.internal.platform.ConscryptPlatform: can’t find referenced class org.conscrypt.Conscrypt