Skip to content

Is it possible to publish static AAB files without applying any Android plugin? #1152

Closed Answered by erawhctim
erawhctim asked this question in Q&A
Discussion options

You must be logged in to vote

I dug into this a bit more and now I actually don't think a PR is really necessary: I was able to put together a minimal Android project for this without too much work (or boilerplate); it works well!

Copying here in case anyone else is interested:

  • Create a root settings.gradle.kts file like this:
    pluginManagement {
      repositories {
        gradlePluginPortal()
        mavenCentral()
        google()
      }
    }
    
  • Create your build.gradle.kts file at the same root directory, like this:
    plugins {
      alias(libs.plugins.agpApp)
      alias(libs.plugins.playPublisher)
    }
    
    repositories {
      mavenCentral()
      google()
    }
    
    android {
      compileSdk = 34
      namespace = ... // must match the package name on the AAB file
      defa…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by erawhctim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants