Gradle Files

Gradle Files You Will Touch: build.gradle and variables.gradle

Four Gradle 19,597 files in android/ are yours and two belong to the CLI:

BookNest 1.2.0 raises minSdkVersion to 26 (Android 8.0) in variables.gradle, and in app/build.gradle bumps the version and adds a compile-time constant for its API address:

The edited part of android/app/build.gradleGroovy
android {
    defaultConfig {
        versionCode 3
        versionName "1.2.0"
        buildConfigField "String", "API_BASE", '"https://api.example.com"'
    }
    buildFeatures {
        buildConfig = true
    }
}

Since Android Gradle Plugin 8.0, the BuildConfig class that MainActivity reads is generated only when buildFeatures.buildConfig is on.