Skip to content

Additional config for iOS, macOS and Android in GTK Flutter codelab #95485

@cklanac

Description

@cklanac

Regarding step #4 in Get to know Firebase for Flutter

It should be pointed out to the reader that the starter code has some changes to the build.gradle and Podfiles. If the reader (like me) tries to build the app by copying the source in the lib folder to a clean new flutter project (eg counter) then the following changes will be missing.

For Android you must update the minSdkVersion in the Android/app/build.gradle file to minSdkVersion 21 or provide instructions on how/where to set the flutter.minSdkVersion

    defaultConfig {
        applicationId "com.example.gtk_flutter"

       minSdkVersion 21
        // minSdkVersion flutter.minSdkVersion // how to set?
        // targetSdkVersion flutter.targetSdkVersion  // how to set?
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }

For iOS you must update the Podfile to platform :ios, '10.0' and should also update the iOS Deployment Target in xCode.

Likewise for macOS you must update the Podfile to platform :osx, '10.12' and should also update the iOS Deployment Target in xCode.

Metadata

Metadata

Assignees

Labels

r: fixedIssue is closed as already fixed in a newer versionteam-codelabsOwned by Codelabs team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions