From the course: Distributing Your Android App for Kotlin Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Clean up your code - Android Tutorial
From the course: Distributing Your Android App for Kotlin Developers
Clean up your code
- [Illustrator] Before packaging up your application for distribution, it is generally a good idea to go back through all of the code and clean it up. Instead of manually scanning all of the files for things to fix though, there is a collection of tools built right into Android Studio that can help make this process easier and give you insight into best practices that you might not even be aware of. In Android Studio, stop the application if you have it running. And then at the top, go to analyze and select the inspect code menu option. This will bring up a dialog box asking you to specify what scope you would like to run the inspection against. If you would like to inspect a particular file, module or a specific part of your project, you would identify that here. I will usually run an inspection against the whole project almost every single time I do this. Click okay to start the inspection. This will look through…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Explore the sample app2m 41s
-
(Locked)
Clean up your code5m 53s
-
(Locked)
Manage the app version3m 8s
-
(Locked)
Minify the app with R82m 40s
-
(Locked)
Configure build types2m 40s
-
(Locked)
Configure multiple app flavors6m 30s
-
(Locked)
Create build variants4m 29s
-
(Locked)
Build signed packages8m 10s
-
-
-
-
-