Automatic upload of Android symbolization file(mapping.txt) to Countly server

Hi,

I am looking for any Countly support to upload the Android symbolization[mapping.txt] file automatically to Countly server via any Gradle script or plug-in support.

I went through the Countly documentation and found it's available for Apple dSYM file upload but mentions to upload it manually on portal for Android. https://support.count.ly/hc/en-us/articles/360037261472-Crash-symbolication

Also checked the uploadsymbol plugin provided under sdk-native but seems the maven artifacts are not available now.

sdk-native: https://github.com/Countly/countly-sdk-android/blob/master/upload-plugin/src/main/groovy/ly/count/android/plugins/uploadSymbols.groovy

Maven: https://dl.bintray.com/countly/maven/ly/count/android/sdk-plugin/

 

Please suggest if there is any way we can do this or it's manual only for now. Thanks

0

Comments

2 comments
  • Hi Vinayak, you were actually on the right track but our docs seem to be disorganized on this topic. Please see Automatic creation and upload of symbol files section of this part:

    https://support.count.ly/hc/en-us/articles/360037754031-Android-SDK#native-c-crash-reporting 

    That plugin is used for both native symbols upload and mapping.txt file. You will need these in your gradle file:

    apply plugin: ly.count.android.plugins.UploadSymbolsPlugin 
    
    buildscript {
        repositories {
            maven {
                url 'https://dl.bintray.com/countly/maven'
            }
            jcenter()
        }
        dependencies {
            classpath group: 'ly.count.android', 'name': 'sdk-plugin', 'version': '19.02.3'
        }
    }

    countly { server "https://try.count.ly" app_key "XXXXXX" // same app_key used for SDK integration // optional properties for uploadJavaSymbols. Shown are the default values. // location of mapping.txt file relative to project build directory mappingFile "outputs/mapping/release/mapping.txt" // note that will be saved with the upload and can be checked in the UI noteJava "sdk-plugin automatic upload of mapping.txt" }

    You will have a uploadJavaSymbols gradle task available after these steps.

    0
    Comment actions Permalink
  • Thanks for the confirmation Izzet.

    I followed same steps but somehow I was getting 'ly.count.android.plugins.UploadSymbolsPlugin' dependency not found error. 

    I will have a closer look at my dependency declaration. 

     

    0
    Comment actions Permalink

Please sign in to leave a comment.