private void handleGoogleApiKey(JsonObject clientObject, Map<String, String> resValues) { String apiKey = getAndroidApiKey(clientObject); if (apiKey != null) { resValues.put("google_api_key", apiKey); // TODO: remove this once SDK starts to use google_api_key. resValues.put("google_crash_reporting_api_key", apiKey); return; } // if google_crash_reporting_api_key is missing. // throw new GradleException("Missing api_key/current_key object"); throw new GradleException("Missing api_key/current_key object"); }
private void handleGoogleApiKey(JsonObject clientObject, Map<String, String> resValues) { String apiKey = getAndroidApiKey(clientObject); if (apiKey != null) { resValues.put("google_api_key", apiKey); // TODO: remove this once SDK starts to use google_api_key. resValues.put("google_crash_reporting_api_key", apiKey); return; } // if google_crash_reporting_api_key is missing. // throw new GradleException("Missing api_key/current_key object"); throw new GradleException("Missing api_key/current_key object"); }
private void handleGoogleApiKey(JsonObject clientObject, Map<String, String> resValues) { String apiKey = getAndroidApiKey(clientObject); if (apiKey != null) { resValues.put("google_api_key", apiKey); // TODO: remove this once SDK starts to use google_api_key. resValues.put("google_crash_reporting_api_key", apiKey); return; } // if google_crash_reporting_api_key is missing. // throw new GradleException("Missing api_key/current_key object"); throw new GradleException("Missing api_key/current_key object"); }
/** * Handle a client object for maps (@string/google_maps_key). * @param clientObject the client Json object. * @throws IOException */ private void handleMapsService(JsonObject clientObject, Map<String, String> resValues) throws IOException { JsonObject mapsService = getServiceByName(clientObject, "maps_service"); if (mapsService == null) return; String apiKey = getAndroidApiKey(clientObject); if (apiKey != null) { resValues.put("google_maps_key", apiKey); return; } throw new GradleException("Missing api_key/current_key object"); }
/** * Handle a client object for maps (@string/google_maps_key). * * @param clientObject the client Json object. * @throws IOException */ private void handleMapsService(JsonObject clientObject, Map<String, String> resValues) throws IOException { JsonObject mapsService = getServiceByName(clientObject, "maps_service"); if (mapsService == null) return; String apiKey = getAndroidApiKey(clientObject); if (apiKey != null) { resValues.put("google_maps_key", apiKey); return; } throw new GradleException("Missing api_key/current_key object"); }
/** * Handle a client object for maps (@string/google_maps_key). * * @param clientObject the client Json object. * @throws IOException */ private void handleMapsService(JsonObject clientObject, Map<String, String> resValues) throws IOException { JsonObject mapsService = getServiceByName(clientObject, "maps_service"); if (mapsService == null) return; String apiKey = getAndroidApiKey(clientObject); if (apiKey != null) { resValues.put("google_maps_key", apiKey); return; } throw new GradleException("Missing api_key/current_key object"); }