0
0
Fluttermobile~5 mins

Android build configuration in Flutter - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the build.gradle file in Android build configuration?
The build.gradle file defines how the Android app is built, including dependencies, SDK versions, build types, and signing configurations.
Click to reveal answer
beginner
What does the minSdkVersion specify in Android build configuration?
It specifies the minimum Android OS version that the app supports, ensuring the app runs only on devices with that version or higher.
Click to reveal answer
intermediate
How do you define different build types like debug and release in Android build configuration?
In the build.gradle file, under buildTypes, you can configure settings like code shrinking, signing, and optimization for each build type.
Click to reveal answer
intermediate
What is the role of the signingConfigs block in Android build configuration?
It defines the keys and credentials used to sign the app, which is required for release builds to verify the app's authenticity.
Click to reveal answer
beginner
In Flutter, where do you find the Android build configuration files?
Inside the Flutter project, the Android build files are located in the android/app/build.gradle and android/build.gradle files.
Click to reveal answer
What does targetSdkVersion control in Android build configuration?
AThe minimum Android version the app supports
BThe version of the Flutter SDK used
CThe Android version the app is tested against and optimized for
DThe version of the Android SDK used to compile the app
Where do you specify app dependencies for Android in a Flutter project?
AIn <code>pubspec.yaml</code>
BIn <code>android/app/build.gradle</code>
CIn <code>main.dart</code>
DIn <code>settings.gradle</code>
What is the default build type when you run flutter run?
Arelease
Bstaging
Cprofile
Ddebug
Which file contains the signing key information for Android release builds?
Aandroid/key.properties
Bandroid/gradle.properties
Candroid/app/build.gradle
Dandroid/settings.gradle
What is the effect of setting minifyEnabled true in the release build type?
AEnables code shrinking and obfuscation to reduce app size
BDisables debugging features
CIncreases app size for better performance
DEnables verbose logging
Explain the role of build.gradle files in configuring an Android app within a Flutter project.
Think about where Android-specific settings live and what they control.
You got /5 concepts.
    Describe how you would prepare an Android app for release using build configuration settings.
    Consider what changes from debug to release builds.
    You got /4 concepts.