Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android/localisations/dependency upgrade #447

Merged
merged 4 commits into from
Mar 7, 2024
Merged

Android/localisations/dependency upgrade #447

merged 4 commits into from
Mar 7, 2024

Conversation

jaredkz
Copy link
Contributor

@jaredkz jaredkz commented Mar 6, 2024

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:

ext.kotlin_version = '1.9.22'
        classpath 'com.android.tools.build:gradle:8.1.1'

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:

throw new RuntimeException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")

Change to RuntimeException (functions the same, fixes an annoying linting error)

Changed :

android {
namespace "dev.hemanths.paisa"
compileSdkVersion flutter.compileSdkVersion

compileOptions {

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,

  • flutter_launcher_icons
  • flutter_native_splash

removing them also does this:
These packages are no longer being depended on:

  • flutter_native_splash 2.2.0+1
  • lint 1.10.0
  • universal_io 2.2.2

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

See changelog.md
see push description (Removed changelog)
@jaredkz
Copy link
Contributor Author

jaredkz commented Mar 6, 2024

Localisation references:
Closes #434
Closes #424
Closes #416
Closes #413
Closes #407
Closes #402
Missing MVR currency added.

@jaredkz jaredkz changed the title Android Gradle Update Android/localisations/dependency upgrade Mar 6, 2024
@jaredkz jaredkz marked this pull request as draft March 7, 2024 00:58
@jaredkz jaredkz marked this pull request as ready for review March 7, 2024 11:25
revert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants