daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ...
  2.  
  3. android {
  4.    
  5.     // GET THE DATA OF THE OPERATING SYSTEM WHERE ANDROID STUDIO IS RUN
  6.     String osName = org.gradle.internal.os.OperatingSystem.current().getName();
  7.     String osVersion = org.gradle.internal.os.OperatingSystem.current().getVersion();
  8.  
  9.     signingConfigs {
  10.         config {
  11.        
  12.             // VALIDATE IF THE OPERATING SYSTEM IS WINDOWS OR MAC
  13.             if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
  14.                 println "*** $osName $osVersion was detected."
  15.  
  16.                 keyAlias ''
  17.                 keyPassword ''
  18.                 storeFile file('D:/..')
  19.                 storePassword 'chazkikey'
  20.  
  21.             } else if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
  22.                 println "*** S.O. es $osName $osVersion."
  23.  
  24.                 keyAlias ''
  25.                 keyPassword ''
  26.                 storeFile file('/Users/Home/Documents/..')
  27.                 storePassword ''
  28.             }
  29.         }
  30.     }
  31.    
  32.     ...
  33. }
  34.  
  35. dependencies {
  36.     ...
  37. }
  38.  
  39. apply plugin: 'com.google.gms.google-services'
RAW Paste Data
Top