### Example ProGuard Rules for Android Projects Source: https://github.com/vyshane/rex-weather/blob/master/app/proguard-rules.txt This snippet provides a template for adding project-specific ProGuard rules for Android applications. It explains how these rules are appended to default flags and how to customize the include path. Additionally, it includes a commented-out example demonstrating how to prevent obfuscation of public members within a JavaScript interface class used by an Android WebView, which is crucial for correct JavaScript-Java interaction. ```ProGuard # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified # in /Applications/Android Studio.app/sdk/tools/proguard/proguard-android.txt # You can edit the include path and order by changing the ProGuard # include property in project.properties. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html # Add any project specific keep options here: # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} ``` -------------------------------- ### OpenWeatherMap Current Weather API Request URL Source: https://github.com/vyshane/rex-weather/blob/master/README.md This HTTP GET request URL retrieves the current weather conditions from the OpenWeatherMap API. It specifies latitude, longitude, and units (metric) for the weather data. An API key is required for successful requests. ```HTTP http://api.openweathermap.org/data/2.5/weather?lat=-31.9522&lon=115.8589&units=metric ``` -------------------------------- ### OpenWeatherMap 7 Day Forecast API Request URL Source: https://github.com/vyshane/rex-weather/blob/master/README.md This HTTP GET request URL fetches a 7-day weather forecast from the OpenWeatherMap API. It specifies latitude, longitude, JSON mode, metric units, and limits the forecast to 7 days. An API key is required for successful requests. ```HTTP http://api.openweathermap.org/data/2.5/forecast/daily?lat=-31.9522&lon=115.8589&mode=json&units=metric&cnt=7 ``` -------------------------------- ### OpenWeatherMap 7 Day Forecast JSON Response Structure Source: https://github.com/vyshane/rex-weather/blob/master/README.md This JSON object illustrates the structure of the 7-day weather forecast response from the OpenWeatherMap API. It includes city details, the total count of forecast entries, and a list of daily forecasts, each containing temperature, pressure, humidity, weather conditions, and other meteorological data. ```JSON { "cod": "200", "message": 0.0094, "city": { "id": 2063523, "name": "South Perth", "coord": { "lon": 115.833328, "lat": -31.933331 }, "country": "AU", "population": 0 }, "cnt": 7, "list": [ { "dt": 1404619200, "temp": { "day": 13, "min": 13, "max": 13.31, "night": 13.31, "eve": 13, "morn": 13 }, "pressure": 1016.99, "humidity": 100, "weather": [ { "id": 501, "main": "Rain", "description": "moderate rain", "icon": "10d" } ], "speed": 7.25, "deg": 225, "clouds": 92, "rain": 4 } ] // Six more entries ... } ``` -------------------------------- ### OpenWeatherMap Current Weather JSON Response Structure Source: https://github.com/vyshane/rex-weather/blob/master/README.md This JSON object represents the typical response structure for a current weather query from the OpenWeatherMap API. It includes details such as coordinates, system information, weather conditions, main atmospheric parameters, wind, rain, clouds, and timestamps. ```JSON { "coord": { "lon": 115.86, "lat": -31.95 }, "sys": { "message": 0.1843, "country": "AU", "sunrise": 1404602233, "sunset": 1404638729 }, "weather": [ { "id": 802, "main": "Clouds", "description": "scattered clouds", "icon": "03n" } ], "base": "cmc stations", "main": { "temp": 13, "pressure": 1015, "humidity": 71, "temp_min": 13, "temp_max": 13 }, "wind": { "speed": 3.1, "deg": 300 }, "rain": { "3h": 0 }, "clouds": { "all": 40 }, "dt": 1404657000, "id": 6692202, "name": "South Perth", "cod": 200 } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.