Android/localisations/dependency upgrade #447
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See changelog.md
Android update:
Based on the latest documentation I can find and personal testing over several flutter projects, the way for the latest android gradle versions is as follows:
AGP: 1.9.22 (up from 1.9.0) latest
Gradle 8.1.1 (up from 7.4.2) and is latest supported
so:
Then, the latest documentation indicates that the settings.gradle should be built with this in the settings.gradle:
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.1" apply false
id "org.jetbrains.kotlin.android" version "1.9.22" apply false
}
Changing gradle wrapper:
distributionUrl=https://services.gradle.org/distributions/gradle-8.1.1-all.zip
in app/build.gradle:
Change to RuntimeException (functions the same, fixes an annoying linting error)
Changed :
android {
namespace "dev.hemanths.paisa"
compileSdkVersion flutter.compileSdkVersion
because later gradle versions complain otherwise, and setting compileSdkVersion to flutter.compileSdkVersion is optional, can just be set to a static 34
Added (optional)
testNamespace "dev.hemanths.paisa.dev"
See https://developer.android.com/build/configure-app-module#groovy
If you try to run the app now, you will get errors regarding 2 dev_dependencies,
removing them also does this:
These packages are no longer being depended on:
running some flutter pub upgrade --major-versions, and it changes the version of js from 0.6.7 to 0.7.1
Now I can build app using flutter build apk --flavor dev --no-tree-shake-icons
There will be a deprecated warning for in_app_review 2.0.8, but will still build