ofload / native_updater

Flutter package to embed native in-app updater
MIT License
56 stars 48 forks source link

Error while compiling #37

Open Takabrycheri opened 1 year ago

Takabrycheri commented 1 year ago

/flutter/.pub-cache/hosted/pub.dartlang.org/in_app_update-2.0.0/android/src/main/kotlin/de/ffuf/in_app_update/InAppUpdatePlugin.kt: (226, 26): Type mismatch: inferred type is String? but String was expected

FAILURE: Build failed with an exception.

vixez commented 1 year ago

Same here

vixez commented 1 year ago

in_app_update dependency needed to be updated.

Can use this temporarily:

  native_updater:
    git:
      url: https://github.com/vixez/native_updater.git
      ref: master

PR: https://github.com/ofload/native_updater/pull/38

And if you use in_app_review check this: https://github.com/britannio/in_app_review/issues/78#issuecomment-1332243210

amani27 commented 1 year ago

Facing the same issue

VasuBhav commented 1 year ago

Facing the same issue

VasuBhav commented 1 year ago

I got a Solution in InAppUpdatePlugin.kt we need to change the below line as nullable String result.error(it.message, null, null)

Here the message is not nullable so we need to change it.message?.let { it1 -> result.error(it1, null, null) }

Then the issues solved