Coder Social home page Coder Social logo

ajay-prabhakar / codeforces Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 7.0 830 KB

Codeforces is Android version of Codeforces web. This app is made to integrate all the available Codeforces API into this app. :rocket:

License: Apache License 2.0

Java 100.00%
codeforces java android api

codeforces's Introduction

Codeforces ๐Ÿš€

Watchers Star Gazers Forks

Travis CI

Android Studio Gradle

About

Codeforces is an unofficial Android version of Codeforces web. This app is made to integrate all the available Codeforces API into this app. This way the users can have a mobile version of their handle and can get key information on the go.

How it Works?

On the Codeforces official web page, they provide various API which we access to get data in machine-readable JSON format. Then by using HttpURLConnection values of each column are parsed and set into the model to display the data.

When the app is opened, the user is required to enter his preferred handle (Username). After submitting the handle, all the contest that the Handel is associated it is displayed. Upon opening, this screen user can perform the following operation -

  • On clicking on the contest, it will redirect the user to the official contest page on the Codeforces.com
  • User can filter the contest based on the positive and negative.
  • User can view its profile.

Libraries Used

API's Used

Screenshots


Home Screen

Contest History Screen

User Info

Workflow of app

.......
codeforces
 โ”ฃ Activities
 โ”ƒ โ”ฃ HomeFeedActivity.java
 โ”ƒ โ”ฃ MainActivity.java
 โ”ƒ โ”ฃ ProfileActivity.java
 โ”ƒ โ”— WebViewActivity.java
 โ”ฃ Adapter
 โ”ƒ โ”— ContestsAppearedAdapter.java
 โ”ฃ BottomSheet
 โ”ƒ โ”— SortBottomSheetView.java
 โ”ฃ Listeners
 โ”ƒ โ”ฃ ContestItemClickListener.java
 โ”ƒ โ”— SortClickListener.java
 โ”ฃ Model
 โ”ƒ โ”— Contest.java
 โ”ฃ Utils
 โ”ƒ โ”ฃ RatingAsync.java
 โ”ƒ โ”ฃ RatingLoader.java
 โ”ƒ โ”— StringUtils.java
 โ”— Constants.java

Getting Started

These instructions will get you a copy of the project up and be running on your local machine for development and testing purposes.

Prerequisites

Android Studio, with a recent version of the Android SDK.

Setting up your development environment

  • Download and install Git.

  • Fork the Codeforces project

  • Clone your fork of the project locally. At the command line:

    $ git clone https://github.com/YOUR-GITHUB-USERNAME/Codeforces.git
    

If you prefer not to use the command line, you can use Android Studio to create a new project from version control using

https://github.com/YOUR-GITHUB-USERNAME/Codeforces.git

Open the project in the folder of your clone from Android Studio and build the project. If there are any missing dependencies, install them first by clicking on the links provided by the Android studio. Once the project is built successfully, run the project by clicking on the green arrow at the top of the screen.

PR Instruction

This project uses Travis CI for checking pull requests. So before committing your changes, open Terminal via android studio and run the following commands:

For Windows:

  • gradlew clean then
  • gradlew assembleDebug assembleRelease then
  • gradlew check then
  • gradlew build finally
  • gradlew spotlessCheck

NOTE: Currently sever is not working but update the features in the app Currently I am updating the resources for CSE and ECE departments only and that too for semester 3 only. Once I get all the resources, I will update in all departments. You can freely contribute to the project on the note that 'contributing guidelines' of the project are followed. New ideas and suggestions are welcomed. Happy Coding :)

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.