-
-
Notifications
You must be signed in to change notification settings - Fork 340
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
Variant specific application id not respected while publishing #979
Comments
Yeah, this one is a duplicate of #948. Looks like it is going to be an issue, so I'll have to give the approach I wrote in the last comment a try. In the meantime, do |
Thanks for your fast reply. The described approach unfortunately won't work for me, because I use the
|
Right, you'll need to use this syntax: import com.github.triplet.gradle.play.PlayPublisherExtension
// ...
configure<PlayPublisherExtension> {
// ...
} |
I have the same issue with incorrect application id. @SUPERCILEX how to use |
With groovy, you should be able to still use the |
Unfortunately GPP is still using wrong application id for me. I'm setting it by I'm using I have |
And you're applying the plugin after touching the application variants? |
Yes, I tried this order:
I tried to put From logs I can see the order:
|
Ah shoot, that's nasty. I think you'll have to use the new API:
What Android Gradle Plugin version are you using? It might look like this instead:
|
Hi @SUPERCILEX. Do you have any plans to fix this issue? We are also currently facing this problem and none of workarounds have worked out. |
I'd like to, but I haven't come up with a good solution yet. The problem is that we want full parallelism across app IDs while supporting synchronous access to the same app ID across projects, but we can't truly know the app ID until after task creation which means we can't group the tasks into app ID buckets. In terms of workarounds, this means you need to finalize the app ID before GPP reads it. I'm not sure what your specific case looks like, but if you can fully specify your different app IDs in the In terms of proper solutions, I did come up with one idea that would maintain our desired functionality. The main problems is that it vastly increases complexity. The gist is this:
I basically need to think about how to guarantee correctness of that last step, but haven't prioritized it. |
Our use case is, that we need to migrate to another app id, but we want to publish to both (new and old) app id during the migration period. Is this currently possible? |
Yes, we specify the
It'd be impossible for us to use only I thought a bit about a crashlytics plugin, that works fine in this situation. GMS has a static |
Have you tried |
A |
I work in a project, which uses multi-dimension-flavor android builds. Each flavor gets a distinct application id (not just a suffix, the id changes completely). This setup worked well until I updated to AGP 4.2.2 and GPP 3.5.0 (works with AGP 4.1.3 and GPP 3.4.0).
The abstract setup looks like this:
With the old AGP version, the syntax was slightly different, but I guess it was adopted correctly:
When I now try to upload one of my apps to the play store with
./gradlew publishAXReleaseApps
I get the following error back:And here we see the problem, the package it is looking for is not the variants application id, but the default application id defined in the manifest file, which matches the package structure.
It seems like the variants application id adjustments are not propagated to the publish task.
To be honest, I'm not sure if it is a problem in the AGP, or in the GPP, or even in my configuration, but I couldn't figure it out.
Any help would be appreciated.
How To Reproduce
See description above.
Versions
Tasks executed
./gradlew publishAXReleaseApps
.Expected behavior
The app gets uploaded to the play store.
Additional context (if a crash, provide stack trace)
See description above.
The text was updated successfully, but these errors were encountered: