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

Automatically update Proguard mapping file for a given build #96

Open
rivkahstandig3636 opened this issue Jan 23, 2018 · 1 comment
Open

Comments

@rivkahstandig3636
Copy link
Contributor

Crashlytics does this already and we have a user requesting this.

@colinrtwhite
Copy link

For anyone looking for a way to automatically upload their maps in the interim, add this to your build.gradle:

afterEvaluate {
    assembleRelease.doLast {
        exec {
            def accessToken = "asdfgh123456" // Your Rollbar server upload access token
            def version = android.defaultConfig.versionName
            def mapping = "$buildDir/outputs/mapping/release/mapping.txt"

            commandLine 'curl', 'https://api.rollbar.com/api/1/proguard',
                    '-F', "access_token=$accessToken",
                    '-F', "version=$version",
                    '-F', "mapping=@$mapping"
        }
    }
}

NOTE: This will only work on Mac/Linux.

@jessewgibbs jessewgibbs removed this from the v2.0.0 milestone Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants