An skeleton example App used to measure the size of Material Components for iOS.
Bare App | Size |
---|---|
without Material Components iOS: | 2.7MB |
with Material Components iOS: | 8.9MB |
---------------------------------------------- | ---------- |
Delta by adding Material Components iOS: | 7.2MB |
The Material Components iOS framework adds ~7.2MB to your project. Measured on the 19.0.0 release.
Bare uses CocoaPods for dependency management. You will need CocoaPods as well as SSH access to material-components-ios. Needing SSH access is only temporary until MDC launches publicly.
To install/build, cd into this directory and run pod install
. Then run open Bare.xcworkspace
. Do not open Bare.xcodeproj
or the project will not build.
These are the instructions for how we took this measurement.
Podfile
and remove the pod 'MaterialComponents', :path => '../../'
entryPodfile
and re-add the pod 'MaterialComponents', :path => '../../'
entrypod install
from the Bare root folder.Bare.xcworkspace
.xcarchive
file and open it via Show Contents of Package
Products/Applications/Bar.app