Skip to content

Set Basic Values

Lumiq Creative edited this page Jul 15, 2020 · 3 revisions

/buildSrc/src/main/java/MyApp.kt sets the ID and version information for your app.

App ID

appID sets the application ID, which is a unique identifier like com.example.app. It is used by Android and Google Play and must remain unchanged between app releases. The naming rules are as follows:

  • IDs must comprise at least two segments, separated by full stops.
  • All segments of an ID must start with a letter.
  • In segments, only alphanumeric characters and underscores are allowed.
const val appId = "dev.jahir.blueprint.app"

Note
The package name and app ID are independent, but you would usually name them the same.

Version Information

Two versioning settings are available.

  • version is a positive integer whose value must increment with each release of your app.

    const val version = 206
  • versionName is a user-facing string such as ‘1.2 Beta.’

    const val versionName = "2.0.6"