Coder Social home page Coder Social logo

droidconke2020app's Introduction

droidconKE2020

droidcon2020 Conference App

The official DroidconKE 2020 conference App.
droidconKE2020 built for Android

Table of contents

1 About the App
2 General Preview
3 Technical
4 Work in Progress
5 Contributing
6 License
7 Versions
8 Contributers

๐Ÿ‘‡ ๐Ÿ‘‡ ๐Ÿ‘‡ ๐Ÿ‘‡ ๐Ÿ‘‡

About the App

Android app for the 3rd Android Developer conference- droidcon to be held in Nairobi from Auguts 6-8th 2020.

This project is the Android app for the conference. The app supports devices running Android 5.0+, and is optimized for phones and tablets of all shapes and sizes. The source reflects teh app as at droidconKE 2020!

Features

=======

droidconKE 2020 Android App

Android app for the third Android Developer conference-droidcon in Nairobi 2020

This project is the Android app for the conference. The app supports devices running Android 5.0+, and is optimized for phones and tablets of all shapes and sizes.

Source

The source code in this repository reflects the app as of droidconKE 2020.

Features

App will have the following features:

  • Sessions
  • Feed
  • About
  • Home
  • Speakers
  • Auth
  • Feedback

To learn how it was built, we put this series together:

(NOT YET OUT) - Coming soon! Building the droidconKE 2020 App

Like, share claps... ๐Ÿ˜‰

General Preview

Screenshots

Coming soon!

Demo

a You can give it a spin here on appetize

b.Compile the project on android studio and run it.

c. download it from the playstore:

Download it on Google Play

Technical

Running the project

1. Required to run project: check "dependencies" below

  • Use Android studio 3.4 and later. It will be less messy.

2. Clone this repository:

`git clone https://github.com/droidconKE/droidconKE2020App.git`

3. open Project in Android Studio

4. Build Project

5. Incase of an error when building project, update your gradle version, Build Tools download

=======

Development Environment

The app is written fully in Kotlin and uses the Gradle build system.

To build the app, use the gradlew build command or use "Import Project" in Android Studio. A canary or stable version >= 3.4 of Android Studio is required and may be downloaded here.

Architecture

Proposed Architecture:

We will be using libraries, modules and dynamic feature modules too.

Architecture Introduction

We took a modularisation approach to develop the application. There are immense benefits that come about with modularising an application; faster builds due to gradle caching and parallelism, benefit of dynamic features which can be delivered on demand therefore reducing initial apk size, clear separation of concerns and ease of maintaining and adding new features. An application can be modularised either by feature or by layer, we decided to take a hybrid approach that combines both approaches.

Data Module

The data module provides support for data persistence and offline caching. It consists of room database, entities and daos. We opted for a single database source of truth as opposed to having multiple databases for each feature. At the point of developing this application, Room did not support multi-database queries and thus having a single database will save us time trying to combine data from multiple databases. In addition to this, a single database helps us avoid duplication of data and tests. The data module exposes itself to the repository layer via a datasource interface to prevent the repository from knowing the implementation details of the data layer thus observing the dependency rule. This will also enhance the flexibility of the application as we can easily switch from Room to SQLite or Realm if need be. This module consists of a mapper to convert entities to data classes that can be passed around.

Network Module

The network module provides support for making network requests to external APIs. This module basically consists of retrofit interfaces, response data classes and mappers to convert the response classes. The network module is exposed to the repository layer via a remote datasource.

Repository module

The repository module depends on the data module and the network module. The role of this module is to sync data from different sources and present it as a single source. Ideally, the repository module observes the repository pattern recommended by Google.

Features

The application contains three features i.e. schedule, feed & about and one dynamic feature i.e tickets. The features depend on the repository module and the core module. The dynamic feature depends on the app module.

App

The app module handles navigation between the features. It also consists of key UI activities or fragments. e.g. Login.

Base Core

Consists of classes and logic that is to be shared across the application. It contains utility classes and functions as well. The base core is a library.

App Architecture

Modules To Be There:

With the above in mind, here are the actual modules in the droidconKE2020 app following the guidelines laid above

  1. app

  2. core (library)

  3. data (library)

  4. features - directory for grouping all the feature modules together. It has the following dynamic feature modules:

    • about - has the details of the event, team members and their details that is when each team member card is clicked
    • auth - has the signup,signin, forgot password and reset password logic
    • feed - has a #droidconKE newsfeed
    • feedback - has session and event feedback logic
    • home - shows sponsors,promoted stuff,organizers and changes according to time ie before and during the event
    • sessions - shows each days sessions(day one,day two, day three) session details, and also has filter sessions logic and show a user's favorited sessions
    • speaker - shows speaker details
  5. repository(library)

  6. network(library)

Navigation

The app uses Single Activity Architecture. And follows Navigation Principles from Jetpack. And since features are all dynamic modules, we have taken advantage of the introduction of the support of dynamic features in the navigation component in the latest release. How this works is we use fragments in the feature modules and add the fragments to the main nav graph which has the support for adding destinations from dynamic feature modules. More on this is in the Navigate with dynamic feature modules tutorial. Note: Adding destinations might not work in AS version below 3.6 Release Candidate 3(RC3) and destination fragment name might be in red but no worries, app runs well as expected.

Dependencies

  1. Jetpack - Jetpack Libraries to use
    • LiveData
    • AndroidX
    • Android KTX
    • Navigation
    • Room
    • ViewModel
    • Lifecycle
  2. Coroutines - For Concurrency and Asynchronous tasks
  3. Retrofit - For network requests
  4. Koin - For Dependency Injection
  5. Crashlytics
  6. Coil - For Image Loading and Caching
  7. Firebase Perf - For analyzing app perfomance
  8. Testing Dependencies -
    • JUnit
    • AndroidX Test
    • Espresso
    • Mockk
    • Roboelectric
    • Kakao
  9. Lint Checks - Consider adding a library for lint checks

Feature Modules:

Each module have its own domain,data,and presentation or how do we approach this

Permissions

TBA

References/Resources

  1. Android ShowCase
  2. Kotlin Sample App
  3. DroidKaigi Conference App 2020
  4. Clean Architecture post on ProAndroid Dev
  5. ReadME Master templates
  6. contributors-img

Work in progress

๐Ÿšง โ› ๐Ÿ”ง๏ธ ๐Ÿšง

- Ktlint [https://ktlint.github.io/]

On Feature Modules: Does each module have its own domain,data,and presentation or how do we approach this

[ ๐Ÿšง Work in progress ๐Ÿ‘ทโ€โ™€๏ธโ›๐Ÿ‘ท๐Ÿ”ง๏ธ ๐Ÿšง ]

  • Finalize on the final App architecture.
  • Setup app modules
  • Work on Modules Specifics
  • Dependencies Setup - Gradle kts

You can improve on this and add further features:

Contributing

We would love to have your help in making droidconKE 2020 App better. The project is still very incomplete, but if there's an issue you'd like to see addressed sooner rather than later, let us know.

Before you contribute though read the contributing guide here: CONTRIBUTING GUIDE

For any concerns kindly:

License

Assets

Credits:

license

Open Source Love

Versions

Version 1.0 TBR (To Be Released)

Contributers

Auto-populated from: contributors-img

:bowtie: โœŒ๏ธ ๐Ÿน

References/Resources

  1. https://github.com/igorwojda/android-showcase
  2. https://github.com/VMadalin/kotlin-sample-app
  3. https://github.com/DroidKaigi/conference-app-2020
  4. https://proandroiddev.com/multiple-ways-of-defining-clean-architecture-layers-bbb70afa5d4a

droidconke2020app's People

Contributors

wangerekaharun avatar michaelbukachi avatar tamzi avatar jabeznzomo99 avatar chepsi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.