Closed eneasgesing closed 4 years ago
Can you share the build log please?
It may seem like a silly question, but are the logs stored in a file? I tried to search but didn't find it.
Anyway, these are the logs generated on the screen:
The Gradle logs? No, those aren't stored anywhere by default, but we can pipe them to a file. Can you update your script to run gradlew publishProducts --console=plain --info -Pappid=%1 > logs.txt
and upload the logs.txt file?
Ok, I did it, but can't find any logs.txt. Is expected to logs.txt to be generated in same directory?
It should be in the directory you ran the command.
After some tests, I think the problem is in the batch file. Is not a plugin bug.
When I directly run the following command on CMD, it works (products added and log generated):
gradlew publishProducts -Pappid=com.eneasgesing.radios.catbrfutebol > logs.txt
But the same command in batch file not works. Do you know what can be wrong?
I removed the following lines from batch file and works fine now. I don't know why, but is working.
rmdir build /s /q
rmdir mobile\build /s /q
gradlew clean -Pappid=%1
gradlew cleanBuildCache -Pappid=%1
This is sufficient for me, thank you for your help.
Lol, glad it works. 👍
Describe the bug
I use this plugin to publish 120+ apps and everithing works well when I update my existing apps. I've been used it only for AppBundle update, and works great.
Now I want to automate the in app subsriptions, but is not working. I downloaded a sample structure via gradlew bootstrap and I'm using it, but nothing is filled on Play Console when I run gradlew publishProducts.
No error is displayed and script took only 1s to execute:
How To Reproduce
I run the following batch script on project root:
File: generatePlay.cmd
The first three powershell cmd are for generate the products with correct packageName. They are working good and the files generated in the correct folder (the files are .json extension, I just renamed it to .txt to upload):
premium_mes.txt premium_user.txt premium_ano.txt
I use rmdir to remove build dirs because this solved a old bug that generates the wrong app on batch. I run clean and cleanBuildCache for same reason.
For last, I run publishProducts.
To run the script I call it like "generatePlay.cmd my.app.id"
The appid parameter to gradle script is ok, because is the same I use to generate App Bundles.
Versions
Tasks executed
Already described.
Expected behavior
App products published on Play Console.
Additional context (if a crash, provide stack trace)
No error.