ConnectyCube / connectycube-flutter-sdk-releases

ConnectyCube Flutter SDK Releases
7 stars 1 forks source link

require a higher Android SDK version #102

Open godzyken opened 5 months ago

godzyken commented 5 months ago

Platform (use [x]) [x] Android [x] iOS [x] macOS [x] Windows [x] Web

Device info Manufacture: [Xiaomi.] Model: [Redmi note 13] OS version: [14]

Describe the bug: Impossible d'utiliser le package ConnectyCube_SDK, car plusieurs de ses dépendances n'ont pas encore effectué la migration de leur SDK.

Steps to Reproduce:

  1. Gradle build Task on android: ./gradlew cleanBuildCache
  2. Flutter clean & Flutter pub upgrade --major-versions
  3. gradle wrapper --gradle-version latest and start migration
  4. Flutter outdate to find & upgraded lower sdk packages in imports.

Logs:


log here
```Flutter Warning: The plugin url_launcher_android requires Android SDK version 34.
For more information about build configuration, see https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to /Users/*******/vscodeProjects/Deliveright/mobile_xp_driver/android/app/build.gradle:
android {
  compileSdkVersion 34
  ...
}

**Actual result:**
ConnectyCube sdk est desactivé dans mon projet.

**Expected behavior:**
Besoin d'une solution de contournement si aucune mise à jour sur le sdk n'est prévue.
TatankaConCube commented 5 months ago

The compileSdkVersion 34 is url_launcher's plugin requirements, not our Connectycube Flutter SDK requirements. This plugin is used to open the media attachments in the browser for unsupported platforms. You can delete this feature from the sample if you don't require it. But you must update the compileSdkVersion to the 34 if you decide to publish your app in the Play Market.

Our ConnectyCube Flutter SDK requires only minSdkVersion 21 for Android and the Dart version 2.17.