Open
Conversation
- Updates Java and JVM target version from 1.8 to 11. - Switches the Kotlin plugin ID to the fully qualified `org.jetbrains.kotlin.android`. - Adjusts Gradle distribution to version 8.10.2-all. - Increases Gradle heap memory and metaspace limits. - Disables `android.enableJetifier`. - Downgrades `com.android.application` and `org.jetbrains.kotlin.android` plugin versions for better compatibility.
Converts the Android build configuration from Groovy (`.gradle`) to Kotlin DSL (`.gradle.kts`) for the app-level `build.gradle`, project-level `build.gradle`, and `settings.gradle` files. Key changes include: - Updates Gradle wrapper to version 9.1.0. - Updates Android Gradle Plugin to 8.13.1 and Kotlin to 2.2.21. - Refactors `build.gradle.kts` to use `flutter` extension properties for SDK versions (compileSdk, minSdk, targetSdk). - Modernizes `settings.gradle.kts` to use the `dev.flutter.flutter-plugin-loader`. - Adjusts JVM arguments in `gradle.properties` for better memory management. - Cleans up `AndroidManifest.xml` by removing the redundant `package` attribute. - Simplifies `MainActivity.kt` syntax.
Updates the Dio example to safely access the status code from the error response. It now checks for nullability before passing the status code to the version check function, preventing potential null pointer exceptions during error handling.
|
Please take a look. This is very much needed 🙏 |
…t configuration Refactors `NativeUpdater.displayUpdateAlert` to return `Future<void>` and updates the example app to correctly await these calls within async blocks. Key changes based on the changelog and diffs: - Updates the library to Flutter 3.x and Dart 3.x. - Migrates from `package_info` to `package_info_plus`. - Updates `url_launcher` and `in_app_update` to their latest versions. - Modernizes the Android build system using the declarative Gradle plugin system. - Increases Android `compileSdk` and `targetSdk` to 35. - Upgrades Android environment to Java 17 and Kotlin 2.1.0. - Implements code quality improvements including `const` constructors and updated Flutter best practices. - Fixes build errors related to unresolved references in Android migration.
|
A great contribution, please take a look |
Merged
milhomem
pushed a commit
to milhomem/native_updater
that referenced
this pull request
Mar 2, 2026
Contributor
|
Thanks guys. PR will be merged at milhomem#4 |
milhomem
added a commit
to milhomem/native_updater
that referenced
this pull request
Mar 2, 2026
* chore: replicate upstream PR ofload#42 (dependency and Android modernization) * ci(publish): support tag-triggered releases with job permissions Keep existing main branch and manual publish triggers while adding\noptional semantic-version tag trigger for release workflows.\n\nMove workflow permissions to the publish job and retain OIDC\nauth configuration for pub.dev publishing. * chore(deps): restore changelog history and modernize dependencies - restore CHANGELOG entries 0.1.2 through 0.1.5 while keeping 0.2.0 - upgrade root and example dependencies/lockfiles to latest resolvable versions - fix deprecated API usage and minor alert widget code quality issues - validate with flutter analyze (root and example) --------- Co-authored-by: Marcelo Milhomem <milhomem@Marcelos-MacBook.local>
milhomem
added a commit
to milhomem/native_updater
that referenced
this pull request
Mar 2, 2026
* chore: replicate upstream PR ofload#42 (dependency and Android modernization) * ci(publish): support tag-triggered releases with job permissions Keep existing main branch and manual publish triggers while adding\noptional semantic-version tag trigger for release workflows.\n\nMove workflow permissions to the publish job and retain OIDC\nauth configuration for pub.dev publishing. * chore(deps): restore changelog history and modernize dependencies - restore CHANGELOG entries 0.1.2 through 0.1.5 while keeping 0.2.0 - upgrade root and example dependencies/lockfiles to latest resolvable versions - fix deprecated API usage and minor alert widget code quality issues - validate with flutter analyze (root and example) --------- Co-authored-by: Marcelo Milhomem <milhomem@Marcelos-MacBook.local>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds more flexibility to the error handling in the update alerts. Previously, error messages were hardcoded or less descriptive. Now, developers can pass custom strings for the error title, subtitle, and button label.
Type of Change
#41