Last active
          September 25, 2017 11:58 
        
      - 
      
 - 
        
Save rodrigohenriques/69eb50c45be799d2d755a378b15611b9 to your computer and use it in GitHub Desktop.  
    Segment DEBUG and RELEASE Android Build Data with Crashlytics
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <manifest ... > | |
| ... | |
| <application ... > | |
| ... | |
| <meta-data | |
| android:name="io.fabric.ApiKey" | |
| android:value="${fabricApiKey}" /> | |
| ... | |
| </application> | |
| </manifest> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | android { | |
| ... | |
| buildTypes { | |
| release { | |
| ... | |
| manifestPlaceholders = [fabricApiKey: "$productionKey"] | |
| ... | |
| } | |
| debug { | |
| ... | |
| manifestPlaceholders = [fabricApiKey: "$snapshotKey"] | |
| ... | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
You can see here how to create a new organization in your Fabric account.
https://h4ckish.com/2015/12/16/how-to-segment-your-debug-and-release-build-data-with-crashlytics/