๐”– Scriptorium
โœฆ   LIBER   โœฆ

๐Ÿ“

Mastering Kotlin for Android 14: Build powerful Android apps from scratch using Jetpack libraries and Jetpack Compose

โœ Scribed by HARUN. WANGEREKA


Publisher
Packt
Year
2024
Tongue
English
Leaves
370
Edition
1
Category
Library

โฌ‡  Acquire This Volume

No coin nor oath required. For personal study only.

โœฆ Synopsis


Accelerate your Android development journey by mastering the latest Kotlin techniques and libraries to build robust apps Key Features

Apply best practices and industry-essential skills used by Google Developer Experts

Find out how to publish, monitor, and improve your app metrics on the Google Play Store

Learn how to debug issues, detect leaks, inspect network calls, and inspect your app's local database

Purchase of the print or Kindle book includes a free PDF eBook

Book DescriptionWritten with the best practices, this book will help you master Kotlin and use its powerful language features, libraries, tools, and APIs to elevate your Android apps. As you progress, you'll use Jetpack Compose and Material Design 3 to build UIs for your app, explore how to architect and improve your app architecture, and use Jetpack Libraries like Room and DataStore to persist your data locally. Using a step-by-step approach, this book will teach you how to debug issues in your app, detect leaks, inspect network calls fired by your app, and inspect your Room database. You'll also add tests to your apps to detect and address code smells. Toward the end, you'll learn how to publish apps to the Google Play Store and see how to automate the process of deploying consecutive releases using GitHub actions, as well as learn how to distribute test builds to Firebase App Distribution. Additionally, the book covers tips on how to increase user engagement. By the end of this Kotlin book, you'll be able to develop market-ready apps, add tests to their codebase, address issues, and get them in front of the right audience.What you will learn

Build beautiful, responsive, and accessible UIs with Jetpack Compose

Explore various app architectures and find out how you can improve them

Perform code analysis and add unit and instrumentation tests to your apps

Publish, monitor, and improve your apps in the Google Play Store

Perform long-running operations with WorkManager and persist data in your app

Use

โœฆ Table of Contents


Cover
Title Page
Copyright and credits
Dedication
Contributors
Table of Contents
Preface
Part 1: Building Your App
Chapter 1: Get Started with Kotlin Android Development
Technical requirements
Introduction to Kotlin
Kotlin syntax, types, functions and classes
Creating a Kotlin project
Creating functions
Creating classes
Migrating from Java to Kotlin
Kotlin features for Android developers
Summary
Chapter 2: Creating Your First Android App
Technical requirements
Android Studio overview
Creating your Android app
Exploring the new project
Android Studio tips and tricks
Some useful shortcuts
Summary
Chapter 3: Jetpack Compose Layout Basics
Technical requirements
Introduction to Jetpack Compose
Declarative versus imperative UIs
Composable functions
Previews
Modifiers
Jetpack Compose layouts
Column
Row
Box
Lists
Summary
Chapter 4: Design with Material Design 3
Technical requirements
Material Design 3 and its features
Material components
Using Material Design in our apps
Adding Material Design 3 color schemes
Designing UIs for large screens and foldables
Using WindowSizeClass
Making our app accessible
Summary
Part 2: Using Advanced Features
Chapter 5: Architect Your App
Technical Requirements
Introduction to app architecture
Deep Diving into MVVM
How LazyColumn works
Benefits of LazyColumn
Creating a composable
Jetpack libraries
Dependency injection
Migrating to Kotlin Gradle DSL and using version catalogs
Migrating our app to Kotlin Gradle DSL
Using a versions catalog
Summary
Chapter 6: Network Calls with Kotlin Coroutines
Technical requirements
Setting up Retrofit
Introduction to Kotlin coroutines
Coroutine basics
Using Kotlin coroutines for network calls
Summary
Chapter 7: Navigating within Your App
Technical requirements
Jetpack Navigation overview
Navigating to Compose destinations
Passing arguments to destinations
Navigation in foldables and large screens
Creating and using the resizable emulator
Summary
Chapter 8: Persisting Data Locally and Doing Background Work
Technical requirements
Saving and reading data from a local database
Handling updates and migrations in the Room database
Using WorkManager to schedule background tasks
Testing your workers
Summary
Chapter 9: Runtime Permissions
Technical requirements
Understanding runtime permissions
Requesting permissions at runtime
Summary
Part 3: Code Analysis and Tests
Chapter 10: Debugging Your App
Technical requirements
General debugging tips and tricks
Logcat
Stack traces
Breakpoints
Detecting memory leaks with LeakCanary
Inspecting network requests with Chucker
Using App Inspection
Summary
Chapter 11: Enhancing Code Quality
Technical requirements
Mastering Kotlin style and best practices
Coding conventions
Null safety
Data classes
Extensions functions
Type inference
Collections
Sealed classes and interfaces
Formatting
Functional programming
Coroutines
The when statements
Classes and functions
Using Ktlint for static analysis
Detecting code smells with detekt
Setting up detekt
Customizing detekt
Summary
Chapter 12: Testing Your App
Technical requirements
Importance of testing
Testing the network and database layers
Testing the network layer
Testing the database layer
Testing our ViewModels
Adding UI tests to our composables
Summary
Part 4: Publishing Your App
Chapter 13: Publishing Your App
Technical requirements
Preparing our app for release
Add analytics to your app
Add crash reporting to your app
Turn off logging and debugging
Internationalize and localize your app
Improve error messages
Test your app on different devices
Provide proper feedback channels
Reduce the size of your app
Use the Android App Bundle
Enable minification and obfuscation
Releasing our app to the Google Play Store
Creating our first release
An overview of Google Play Store policies
Summary
Chapter 14: Continuous Integration and Continuous Deployment
Technical requirements
Setting up GitHub Actions
Benefits of CI/CD
How CI/CD works
Setting up GitHub Actions
Running lint checks and tests on GitHub Actions
Deploying to Play Store using GitHub Actions
Summary
Chapter 15: Improving Your App
Technical requirements
Using Firebase Crashlytics to detect crashes
Setting up Google Analytics
Improving app engagement with Firebase Messaging
Securing your app
Summary
Index
Other Books You May Enjoy


๐Ÿ“œ SIMILAR VOLUMES


Mastering Kotlin for Android 14: Build p
โœ Harun Wangereka ๐Ÿ“‚ Library ๐Ÿ“… 2024 ๐Ÿ› Packt Publishing Pvt Ltd ๐ŸŒ English

Written with the best practices, this book will help you master Kotlin and use its powerful language features, libraries, tools, and APIs to elevate your Android apps. As you progress, you'll use Jetpack Compose and Material Design 3 to build UIs for your app, explore how to architect and improve y

Jetpack Compose 1.4 Essentials: Developi
โœ Neil Smyth ๐Ÿ“‚ Library ๐Ÿ“… 2023 ๐Ÿ› Payload Media ๐ŸŒ English

This book teaches you how to build Android applications using Jetpack Compose 1.4, Android Studio Giraffe (2023.2.1), Material Design 3, and the Kotlin programming language. The book begins with the basics by explaining how to set up an Android Studio development environment. The book also inc

Jetpack Compose 1.3 Essentials: Developi
โœ Neil Smyth ๐Ÿ“‚ Library ๐Ÿ“… 2023 ๐Ÿ› eBookFrenzy ๐ŸŒ English

This book aims to teach you how to build Android applications using Jetpack Compose 1.3, Android Studio Flamingo (2022.2.1), Material Design 3, and the Kotlin programming language. The book begins with the basics by explaining how to set up an Android Studio development environment. The book also in

Jetpack Compose 1.3 Essentials: Developi
โœ Neil Smyth ๐Ÿ“‚ Library ๐Ÿ“… 2023 ๐Ÿ› eBookFrenzy ๐ŸŒ English

This book aims to teach you how to build Android applications using Jetpack Compose 1.3, Android Studio Flamingo (2022.2.1), Material Design 3, and the Kotlin programming language. The book begins with the basics by explaining how to set up an Android Studio development environment. The book also in

Kotlin and Android Development featuring
โœ Michael Fazio ๐Ÿ“‚ Library ๐Ÿ“… 2021 ๐Ÿ› Pragmatic Bookshelf ๐ŸŒ English

Start building native Android apps the modern way in Kotlin with Jetpack's expansive set of tools, libraries, and best practices. Learn how to create efficient, resilient views with Fragments and share data between the views with ViewModels. Use Room to persist valuable data quickly, and avoid NullP

Kotlin and Android Development featuring
โœ Michael Fazio ๐Ÿ“‚ Library ๐Ÿ“… 2021 ๐Ÿ› Pragmatic Bookshelf ๐ŸŒ English

Start building native Android apps the modern way in Kotlin with Jetpack's expansive set of tools, libraries, and best practices. Learn how to create efficient, resilient views with Fragments and share data between the views with ViewModels. Use Room to persist valuable data quickly, and avoid NullP