daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. buildConfigField "String[]", "URL_ARRAY",
  2.         "{" +
  3.         ""http:someurl"," +
  4.         ""http:someurl"," +
  5.         ""http:someurl"" +
  6.         "}"
  7.    
  8. buildConfigField "java.util.Map<String, String>", "NAME_MAP",
  9.                  "new java.util.HashMap<String, " +
  10.                  "String>() {{ put("name", "John"); put("name1",  "John"); put("name2", " +
  11.                 ""John"); }}"
  12.    
  13. HashMap<String, String> name = (HashMap<String, String>) BuildConfig.NAME_MAP;
  14.    
  15. buildConfigField "java.util.Set<String>", "MY_SET", "new java.util.HashSet<String>() {{ add("a"); }};"
  16.    
  17. nonNullStringArray=new String[]{ n
  18.     "foo",n
  19.     "bar"n}
  20.    
  21. buildConfigField "String[]", "nonNullStringArray", (project.findProperty("nonNullStringArray") ?: "new String[]{}")
  22.  
  23. buildConfigField "String[]", "nullableStringArray", (project.findProperty("nullableStringArray") ?: "null")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top