In this tutorial, we will be looking at how to handle multiple targets and environments. If you have not integrated Crashlytics in your app I will suggest you have a quick look at Part I of this tutorial.
All set, let's go ahead and handle crashlytics for your app.

Requirement

We had criteria that all the crashes encountered during development and QA/Automation testing should be fixed before the app is released on the store. This ensures a stable app and happy customers. …


Firebase Crashlytics is a crash report tool which helps you track the crashes in realtime and highlight the code which led to the crash

We have been using Crashlytics for 5 years now and have benefited by tracking and reporting crashes in the initial development period and in production.

Firebase offers multiple products beside crashlytics, which you explore here. In this tutorial, we will see how you can integrate Crashlytics for multiple environments/targets. We will be using Cocoapods for installing Crashlytics.

Let’s begin by registering the app in Firebase Console.

Step 1: Create a new project from here. …


Property wrapper adds a wrapper over a property which stores it and defines how the property will behave

As the name suggests its a wrapper over the property, so you can fiddle with the raw value before returning it. Property wrappers can be used with struct enum and class.

You must have seen and even used @State, @Binding, @Published, @ObservedObject and a lot more in SwiftUI which highly relies on Property Wrapper.

We will implement a Music Rating app where a user can rate the music from 1 to 5. If a user mistakenly sets the value greater than 5…


A quick and easy way to convert yourData models to JSON object

Codable was introduced in Swift 4 which helps you convert your JSON to your model and model back to a JSON object. Codable is a typalias of Decodable and Encodable protocols. Codable is similar to Serialization in Java

In this tutorial, we will only be covering Encodable in-depth

Encodable

Encodable is used for converting your data model to JSON object with the help of JsonEncoder

Let’s take a simple example of how to encode your data-model to the JSON object

  1. Create your data model and conform to Encodable
  2. Create an instance of JsonEncoder and use encode(_:) to encode the PhotoFeed object…


A quick and easy way to convert your JSON object to Data models

A quick and easy way to convert your JSON object to Data models

Codable was introduced in Swift 4 which helps you convert your JSON to your model and model back to a JSON object. Codable is a typalias of Decodable and Encodable protocols. Codable is similar to Serialization in Java

In this tutorial, we will only be covering Decodable in-depth

Decodable is used for converting your JSON object to your data model with the help of JsonDecoder

Let’s take a simple example of how to decode a JSON object to your data-model

  1. Create your data model and conform to…


Optimizing builds for lesser sizes

Great animation by Mike Ramos

Did you know that compared to the binary you uploaded and the final size of your app after it’s approved for the App Store may end up being slightly larger. This size increases when the App Store performs additional processing on your ipa by adding DRM to prevent app piracy & again recompressing the ipa.

Manoj Aher

Mobile Developer, IoT and much more…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store