Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to define the app version in app.json for Play Store submission.
React Native
{
"expo": {
"version": "[1]"
}
} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-string values for version.
Using 'latest' instead of a version number.
✗ Incorrect
The version field in
app.json should be a string like "1.0.0" to specify the app version for Play Store.2fill in blank
mediumComplete the code to set the Android package name in app.json for Play Store submission.
React Native
{
"expo": {
"android": {
"package": "[1]"
}
}
} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using dots in wrong order.
Using underscores instead of dots.
✗ Incorrect
The Android package name must be in reverse domain name format like "com.example.app" for Play Store.
3fill in blank
hardFix the error in the build.gradle snippet to set the version code for Play Store submission.
React Native
android {
defaultConfig {
versionCode [1]
}
} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Putting quotes around the versionCode number.
Using a decimal number instead of integer.
✗ Incorrect
The versionCode must be an integer without quotes in
build.gradle for Play Store.4fill in blank
hardFill both blanks to complete the command to build a release APK for Play Store submission.
React Native
cd android && ./gradlew [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'installDebug' instead of 'assembleRelease'.
Not cleaning before building.
✗ Incorrect
The command cleans the build and assembles the release APK using 'clean' and 'assembleRelease'.
5fill in blank
hardFill all three blanks to complete the command to upload the app bundle to Play Store using Google Play CLI.
React Native
gplay upload --[1] [2] --[3] app-release.aab
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--package' instead of '--track'.
Omitting the service account flag.
✗ Incorrect
The command uses '--track release' and '--service-account' to upload the app bundle to Play Store.