Automatically upload ProGuard mapping files to play console












1















Is pretty annoying to upload the ProGuard mapping files to google play console everytime i need to build a new version of my apk (my gradle build generate 4 different apks for every release so i do need to upload 4 different mapping files)



I was wondering if is possible to make this process automatically then i found this article



https://developers.google.com/android-publisher/api-ref/edits/deobfuscationfiles/upload



So google does have an api to upload the mapping files, is there any gradle plugin to work with? is there any easy way to integrate?










share|improve this question



























    1















    Is pretty annoying to upload the ProGuard mapping files to google play console everytime i need to build a new version of my apk (my gradle build generate 4 different apks for every release so i do need to upload 4 different mapping files)



    I was wondering if is possible to make this process automatically then i found this article



    https://developers.google.com/android-publisher/api-ref/edits/deobfuscationfiles/upload



    So google does have an api to upload the mapping files, is there any gradle plugin to work with? is there any easy way to integrate?










    share|improve this question

























      1












      1








      1








      Is pretty annoying to upload the ProGuard mapping files to google play console everytime i need to build a new version of my apk (my gradle build generate 4 different apks for every release so i do need to upload 4 different mapping files)



      I was wondering if is possible to make this process automatically then i found this article



      https://developers.google.com/android-publisher/api-ref/edits/deobfuscationfiles/upload



      So google does have an api to upload the mapping files, is there any gradle plugin to work with? is there any easy way to integrate?










      share|improve this question














      Is pretty annoying to upload the ProGuard mapping files to google play console everytime i need to build a new version of my apk (my gradle build generate 4 different apks for every release so i do need to upload 4 different mapping files)



      I was wondering if is possible to make this process automatically then i found this article



      https://developers.google.com/android-publisher/api-ref/edits/deobfuscationfiles/upload



      So google does have an api to upload the mapping files, is there any gradle plugin to work with? is there any easy way to integrate?







      android-studio gradle android-proguard google-play-console






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 15 '18 at 13:42









      Rafael LimaRafael Lima

      473416




      473416
























          3 Answers
          3






          active

          oldest

          votes


















          3














          Suggestion: If you publish an Android App Bundle instead of APKs, the deobfuscation mapping file will be uploaded automatically with your artifact so you don't have to do it separately.






          share|improve this answer
























          • OMG this is hidden in the shadows at the documentation. Thanks!

            – notapotato
            Feb 19 at 13:16



















          0














          you can write a gradle build script to run tasks after build complees

          and then you can use something like this file upload plugin to upload the file to the url






          share|improve this answer































            0














            when you have Crashlytics set up, this is being explained here. there's also a Play Publisher Plugin for Gradle, while it does no seem to upload the mapping.txt. if you want to use that API, it should be easy to extend eg. the Google Cloud PHP Client with another API endpoint.






            share|improve this answer

























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53320814%2fautomatically-upload-proguard-mapping-files-to-play-console%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              Suggestion: If you publish an Android App Bundle instead of APKs, the deobfuscation mapping file will be uploaded automatically with your artifact so you don't have to do it separately.






              share|improve this answer
























              • OMG this is hidden in the shadows at the documentation. Thanks!

                – notapotato
                Feb 19 at 13:16
















              3














              Suggestion: If you publish an Android App Bundle instead of APKs, the deobfuscation mapping file will be uploaded automatically with your artifact so you don't have to do it separately.






              share|improve this answer
























              • OMG this is hidden in the shadows at the documentation. Thanks!

                – notapotato
                Feb 19 at 13:16














              3












              3








              3







              Suggestion: If you publish an Android App Bundle instead of APKs, the deobfuscation mapping file will be uploaded automatically with your artifact so you don't have to do it separately.






              share|improve this answer













              Suggestion: If you publish an Android App Bundle instead of APKs, the deobfuscation mapping file will be uploaded automatically with your artifact so you don't have to do it separately.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 24 '18 at 12:33









              PierrePierre

              2,006169




              2,006169













              • OMG this is hidden in the shadows at the documentation. Thanks!

                – notapotato
                Feb 19 at 13:16



















              • OMG this is hidden in the shadows at the documentation. Thanks!

                – notapotato
                Feb 19 at 13:16

















              OMG this is hidden in the shadows at the documentation. Thanks!

              – notapotato
              Feb 19 at 13:16





              OMG this is hidden in the shadows at the documentation. Thanks!

              – notapotato
              Feb 19 at 13:16













              0














              you can write a gradle build script to run tasks after build complees

              and then you can use something like this file upload plugin to upload the file to the url






              share|improve this answer




























                0














                you can write a gradle build script to run tasks after build complees

                and then you can use something like this file upload plugin to upload the file to the url






                share|improve this answer


























                  0












                  0








                  0







                  you can write a gradle build script to run tasks after build complees

                  and then you can use something like this file upload plugin to upload the file to the url






                  share|improve this answer













                  you can write a gradle build script to run tasks after build complees

                  and then you can use something like this file upload plugin to upload the file to the url







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 20 '18 at 6:52









                  kkarakkkkarakk

                  563315




                  563315























                      0














                      when you have Crashlytics set up, this is being explained here. there's also a Play Publisher Plugin for Gradle, while it does no seem to upload the mapping.txt. if you want to use that API, it should be easy to extend eg. the Google Cloud PHP Client with another API endpoint.






                      share|improve this answer






























                        0














                        when you have Crashlytics set up, this is being explained here. there's also a Play Publisher Plugin for Gradle, while it does no seem to upload the mapping.txt. if you want to use that API, it should be easy to extend eg. the Google Cloud PHP Client with another API endpoint.






                        share|improve this answer




























                          0












                          0








                          0







                          when you have Crashlytics set up, this is being explained here. there's also a Play Publisher Plugin for Gradle, while it does no seem to upload the mapping.txt. if you want to use that API, it should be easy to extend eg. the Google Cloud PHP Client with another API endpoint.






                          share|improve this answer















                          when you have Crashlytics set up, this is being explained here. there's also a Play Publisher Plugin for Gradle, while it does no seem to upload the mapping.txt. if you want to use that API, it should be easy to extend eg. the Google Cloud PHP Client with another API endpoint.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Nov 20 '18 at 8:07

























                          answered Nov 20 '18 at 7:49









                          Martin ZeitlerMartin Zeitler

                          17.8k34370




                          17.8k34370






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53320814%2fautomatically-upload-proguard-mapping-files-to-play-console%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Ottavio Pratesi

                              Tricia Helfer

                              15 giugno