Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a plan to replace the deprecated API? #10

Open
2000calories opened this issue Jul 11, 2022 · 5 comments
Open

Is there a plan to replace the deprecated API? #10

2000calories opened this issue Jul 11, 2022 · 5 comments

Comments

@2000calories
Copy link

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?

@BytesZero
Copy link
Owner

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

@2000calories
Copy link
Author

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.

@BytesZero
Copy link
Owner

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

@2000calories
Copy link
Author

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
    }
}

@HannesGitH
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants