g123k / flutter_app_badger

Support to update the app badge on the launcher (both for Android and iOS)
https://pub.dev/packages/flutter_app_badger
Apache License 2.0
307 stars 173 forks source link

Android compability #89

Open dgangl opened 11 months ago

dgangl commented 11 months ago

Hello Team,

could you pls inform me when the compatible problem for android is fixed and released in pub get. Currently I am using Anroid 33 (Oreo).

Kind regards, David

nickf2k commented 11 months ago

same issue

valentinozegna commented 11 months ago

Please add the namespace to the build.gradle of flutter_app_badger: This is what the build.gradle file should look like:

group 'fr.g123k.flutterappbadge.flutterappbadger'
version '1.0-SNAPSHOT'

buildscript {
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
    }
}

rootProject.allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

apply plugin: 'com.android.library'

android {
    if (project.android.hasProperty("namespace")) {
        namespace 'fr.g123k.flutterappbadge.flutterappbadger'
    }

    compileSdkVersion 29

    defaultConfig {
        minSdkVersion 16
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    lintOptions {
        disable 'InvalidPackage'
    }
}

dependencies {
    //noinspection GradleDependency
    implementation "me.leolin:ShortcutBadger:1.1.22@aar"
}
valentinozegna commented 11 months ago

This change is needed because people are having troubles compiling apps on Android with the latest Gradle Plugin and Kotlin Versions.

Mounix99 commented 10 months ago

Any updates here ?

Mounix99 commented 10 months ago

Could be temporary fixed with this ref to package

  flutter_app_badger:
    git:
      url: https://github.com/g123k/flutter_app_badger.git
      ref: 33cbee6
quiztok-ssc commented 10 months ago

same issue