app_installer icon indicating copy to clipboard operation
app_installer copied to clipboard

Is there a plan to replace the deprecated API?

Open 2000calories opened this issue 3 years ago • 5 comments

Thanks for developing this package. When I built the app bundle, there was a altertAppInstallerPlugin.java uses or overrides a deprecated API. Is there a plan to replace the deprecated API?

2000calories avatar Jul 11 '22 09:07 2000calories

Can you output more log information? I will update in time

BytesZero avatar Jul 14 '22 08:07 BytesZero

Here is the warning message. I am not a java developer. have no idea about the deprecated API.

Note: /Users/.../development/flutter/.pub-cache/hosted/pub.dartlang.org/app_installer-1.1.0/android/src/main/java/com/zero/app_installer/AppInstallerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.

2000calories avatar Jul 29 '22 06:07 2000calories

Can you provide me with your configuration file, the important thing is compileSdkVersion

BytesZero avatar Jul 29 '22 07:07 BytesZero

android {
    compileSdkVersion 31

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    kotlinOptions {
        jvmTarget = '1.8'
    }

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 31
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }
}

2000calories avatar Jul 29 '22 10:07 2000calories

also, starting with Android 14 installing APKs and writing third party stores gets way better with an improved PackageInstller API, see release notes

imo this package should forward that functionaility

HannesGitH avatar Apr 11 '23 17:04 HannesGitH