This is an example for show current weather from any location. The Weapose is builted by Android Jetpack Compose, MVVM, Clean Architecture, etc.
This app is inspired by:
- Weather app - bachhoan88: for solutions and architectures.
- Weather - Jagan: for beautiful design.
I want to say thanks for those people to help me to make this app.
Now, you can download it on Google Play Store. Install it and give me your feedback!
-
Using the newest version of Android Studio Canary.
-
You must add
BASE_URL
,API_KEY
andMAPS_API_KEY
insidelocal.properties
to build and run Weapose app, like the code below:BASE_URL=https://api.openweathermap.org/data/2.5/ API_KEY=API_KEY // Fill your open weather api key in here MAPS_API_KEY=GOOGLE_MAPS_API_KEY // Fill your google maps api key in here
Light mode | Dark mode |
---|---|
- Show the current weather by location or name.
- Show the seven days weather by location or name.
- Choice the location you want by using Google Map.
- Search location by address name by using Google Places.
- Support dark mode.
- Support dynamic material from Android 13 and above.
- Support English and Vietnamese.
- Upcomming ….
Weapose is built according to the Clean Architecture model combined with the MVVM design pattern. To learn more, refer to the links below.
- Guild to app architecture by Google Android.
- Clean architectur by Uncle Bob.
- Using MockK to write unit test.
- Using Kotlin Reflection to access the private method, private property, etc.
- Using Kotlin Kover to generate the test coverage. To generate, you just run command
./gradlew koverHtmlReport
.
Weapose is supported by Flow
and suspend
for data stream flow in app.
In data module, when data is returned error, I will transform the error to ResponseException
. And then in domain and presentation, I transform the error from ResponseException
to WeatherException
to show the error to UI.
If you have any issues with the project, don't hesitate to create an issue. Also I'm glad you can contribute to my project.
Let's develop together to create quality and beautiful Android Jetpack Compose applications!
Welcome to my github! 👋
Don't forget to buy me a coffee so that I have more motivation to improve the project! 🔥
Copyright 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.