0
0
Android Kotlinmobile~10 mins

Why deployment delivers apps to users in Android Kotlin - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to show how an app is prepared for deployment in Android.

Android Kotlin
val apkFile = build[1]("release")
Drag options to blanks, or click blank then click option'
AVariant
BType
CMode
DVersion
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Type' or 'Mode' instead of 'Variant' causes errors.
2fill in blank
medium

Complete the code to sign the app before deployment.

Android Kotlin
signingConfig = [1]Config("release")
Drag options to blanks, or click blank then click option'
Abuild
Bsigning
Ccompile
Ddeploy
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'buildConfig' or 'deployConfig' will cause build failures.
3fill in blank
hard

Fix the error in the deployment command to upload the app to Google Play.

Android Kotlin
gradle [1]Release
Drag options to blanks, or click blank then click option'
Adeploy
Binstall
Cupload
Dpublish
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'upload' instead of 'publish' causes task not found errors.
4fill in blank
hard

Fill both blanks to define the deployment process that delivers the app to users.

Android Kotlin
fun deployApp() {
  val apk = build[1]("release")
  uploadTo[2](apk)
}
Drag options to blanks, or click blank then click option'
AVariant
BStore
CVersion
DMarket
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'Version' or 'Market' for the blanks.
5fill in blank
hard

Fill all three blanks to complete the deployment function that builds, signs, and uploads the app.

Android Kotlin
fun deploy() {
  val apk = build[1]("release")
  signApk(apk, [2])
  uploadTo[3](apk)
}
Drag options to blanks, or click blank then click option'
AVariant
BsigningKey
CStore
DversionCode
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up signingKey with versionCode or store.