Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
first release
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhiraj40 committed Mar 8, 2022
1 parent 3ab32e4 commit 01a2337
Show file tree
Hide file tree
Showing 117 changed files with 537 additions and 528 deletions.
16 changes: 8 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {
viewBinding = true
}
defaultConfig {
applicationId "com.example.leetdroid"
applicationId "com.cdhiraj40.leetdroid"
minSdk 22
targetSdk 31
versionCode 1
Expand Down Expand Up @@ -46,7 +46,7 @@ dependencies {
implementation 'androidx.navigation:navigation-ui-ktx:2.4.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.firebase:firebase-auth-ktx:21.0.1'
implementation 'androidx.preference:preference:1.2.0'
implementation 'androidx.preference:preference-ktx:1.2.0'
implementation 'androidx.preference:preference-ktx:1.2.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
Expand All @@ -56,7 +56,7 @@ dependencies {


// glide
implementation 'com.github.bumptech.glide:glide:4.12.0'
implementation 'com.github.bumptech.glide:glide:4.13.0'
kapt 'com.github.bumptech.glide:compiler:4.12.0'

// okhttp
Expand All @@ -75,8 +75,8 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"

// ROOM database
implementation 'androidx.room:room-runtime:2.4.1'
kapt 'androidx.room:room-compiler:2.4.1'
implementation 'androidx.room:room-runtime:2.4.2'
kapt 'androidx.room:room-compiler:2.4.2'

implementation "android.arch.persistence.room:runtime:1.1.1"
kapt "android.arch.persistence.room:compiler:1.1.1"
Expand All @@ -87,11 +87,11 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-common-java8:2.4.1"

// Kotlin Extensions and Coroutines support for Room
implementation("androidx.room:room-ktx:2.4.1")
implementation("androidx.room:room-ktx:2.4.2")

// Kotlin Android Coroutines
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0"

// retrofit
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
Expand Down
29 changes: 29 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,35 @@
"storage_bucket": "leetdroid-48b1b.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:139870240557:android:c94e161c5549fe26011da4",
"android_client_info": {
"package_name": "com.cdhiraj40.leetdroid"
}
},
"oauth_client": [
{
"client_id": "139870240557-uq28sfqa4ac3bfnnoupe9knqrud2109m.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyDxHPL9ea_RLS_3sSyGNcfxkthyDaF6T48"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "139870240557-uq28sfqa4ac3bfnnoupe9knqrud2109m.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:139870240557:android:619ae5f8c0c8cf15011da4",
Expand Down
Binary file added app/release/app-release.aab
Binary file not shown.
Binary file modified app/release/app-release.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.example.leetdroid",
"applicationId": "com.cdhiraj40.leetdroid",
"variantName": "release",
"elements": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid
package com.cdhiraj40.leetdroid

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.leetdroid">
package="com.cdhiraj40.leetdroid">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid.adapter
package com.cdhiraj40.leetdroid.adapter

import android.app.Activity
import android.content.Context
Expand All @@ -11,11 +11,11 @@ import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.core.text.HtmlCompat
import androidx.recyclerview.widget.RecyclerView
import com.example.leetdroid.R
import com.example.leetdroid.model.AllQuestionsModel
import com.example.leetdroid.model.AllQuestionsModel.DataNode.ProblemSetQuestionListNode.Questions
import com.example.leetdroid.utils.CommonFunctions
import com.example.leetdroid.utils.extensions.showSnackBar
import com.cdhiraj40.leetdroid.R
import com.cdhiraj40.leetdroid.model.AllQuestionsModel
import com.cdhiraj40.leetdroid.model.AllQuestionsModel.DataNode.ProblemSetQuestionListNode.Questions
import com.cdhiraj40.leetdroid.utils.CommonFunctions
import com.cdhiraj40.leetdroid.utils.extensions.showSnackBar
import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton

class AllQuestionsAdapter(val context: Context, val activity: Activity) :
Expand All @@ -25,10 +25,13 @@ class AllQuestionsAdapter(val context: Context, val activity: Activity) :
private lateinit var questions: List<Questions>
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {


val view = LayoutInflater.from(parent.context)
.inflate(R.layout.all_questions_item, parent, false)

return ViewHolder(view)
return ViewHolder(
view
)
}

fun setData(questionsList: AllQuestionsModel) {
Expand Down Expand Up @@ -98,7 +101,7 @@ class AllQuestionsAdapter(val context: Context, val activity: Activity) :
holder.questionDifficulty.setBackgroundColor(
ContextCompat.getColor(
context,
R.color.medium_difficulty
R.color.light_yellow
)
)
holder.questionDifficulty.text = questionItem.difficulty
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.example.leetdroid.adapter
package com.cdhiraj40.leetdroid.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.leetdroid.R
import com.example.leetdroid.model.ContestRankingModel
import com.cdhiraj40.leetdroid.R
import com.cdhiraj40.leetdroid.model.ContestRankingModel
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid.adapter
package com.cdhiraj40.leetdroid.adapter

import android.app.Activity
import android.content.ActivityNotFoundException
Expand All @@ -12,14 +12,14 @@ import android.widget.TextView
import androidx.navigation.NavController
import androidx.navigation.findNavController
import androidx.recyclerview.widget.RecyclerView
import com.example.leetdroid.R
import com.example.leetdroid.data.entitiy.Contest
import com.example.leetdroid.utils.DateUtils.getDate
import com.example.leetdroid.utils.DateUtils.getHours
import com.example.leetdroid.utils.DateUtils.getTime
import com.example.leetdroid.utils.DateUtils.parseISO8601Date
import com.example.leetdroid.utils.SharedPreferences
import com.example.leetdroid.utils.extensions.showSnackBar
import com.cdhiraj40.leetdroid.R
import com.cdhiraj40.leetdroid.data.entitiy.Contest
import com.cdhiraj40.leetdroid.utils.DateUtils.getDate
import com.cdhiraj40.leetdroid.utils.DateUtils.getHours
import com.cdhiraj40.leetdroid.utils.DateUtils.getTime
import com.cdhiraj40.leetdroid.utils.DateUtils.parseISO8601Date
import com.cdhiraj40.leetdroid.utils.SharedPreferences
import com.cdhiraj40.leetdroid.utils.extensions.showSnackBar
import com.google.android.material.button.MaterialButton
import java.util.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid.adapter
package com.cdhiraj40.leetdroid.adapter

import android.content.Context
import android.view.LayoutInflater
Expand All @@ -8,8 +8,8 @@ import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.leetdroid.R
import com.example.leetdroid.model.ContributorListModel
import com.cdhiraj40.leetdroid.R
import com.cdhiraj40.leetdroid.model.ContributorListModel
import java.util.*

class ContributorListAdapter(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid.adapter
package com.cdhiraj40.leetdroid.adapter

import android.content.Context
import android.view.LayoutInflater
Expand All @@ -8,8 +8,8 @@ import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.leetdroid.R
import com.example.leetdroid.model.GeneralDiscussionModel
import com.cdhiraj40.leetdroid.R
import com.cdhiraj40.leetdroid.model.GeneralDiscussionModel
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.example.leetdroid.adapter
package com.cdhiraj40.leetdroid.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.leetdroid.R
import com.example.leetdroid.model.LicensesModel
import com.cdhiraj40.leetdroid.R
import com.cdhiraj40.leetdroid.model.LicensesModel

class LicenseListAdapter(val context: Context) :
RecyclerView.Adapter<LicenseListAdapter.ViewHolder>() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid.adapter
package com.cdhiraj40.leetdroid.adapter

import android.content.Context
import android.view.LayoutInflater
Expand All @@ -9,9 +9,9 @@ import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.leetdroid.R
import com.cdhiraj40.leetdroid.R

import com.example.leetdroid.model.QuestionDiscussionsModel
import com.cdhiraj40.leetdroid.model.QuestionDiscussionsModel
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid.adapter
package com.cdhiraj40.leetdroid.adapter

import android.content.Context
import android.view.LayoutInflater
Expand All @@ -7,8 +7,8 @@ import android.view.ViewGroup
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.example.leetdroid.R
import com.example.leetdroid.model.RecentSubmissionsModel
import com.cdhiraj40.leetdroid.R
import com.cdhiraj40.leetdroid.model.RecentSubmissionsModel
import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
import java.text.ParseException
import java.text.SimpleDateFormat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid.adapter
package com.cdhiraj40.leetdroid.adapter

import android.content.Context
import android.view.LayoutInflater
Expand All @@ -8,8 +8,8 @@ import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.leetdroid.R
import com.example.leetdroid.model.TrendingDiscussionModel
import com.cdhiraj40.leetdroid.R
import com.cdhiraj40.leetdroid.model.TrendingDiscussionModel
import org.apache.commons.text.StringEscapeUtils
import java.text.ParseException
import java.text.SimpleDateFormat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid.api
package com.cdhiraj40.leetdroid.api

interface ApiResponseListener {
fun onSuccess(success: Boolean)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid.api
package com.cdhiraj40.leetdroid.api

import com.google.gson.JsonArray
import retrofit2.Call
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.leetdroid.api
package com.cdhiraj40.leetdroid.api

import com.example.leetdroid.model.ContributorListModel
import com.cdhiraj40.leetdroid.model.ContributorListModel
import retrofit2.Call
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid.api
package com.cdhiraj40.leetdroid.api

/**
* This Class handles all the LeetCode's GraphQL API {operationName, variables and queries} that is used in the app.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.leetdroid.api
package com.cdhiraj40.leetdroid.api

/**
* Has all the URLs used for APIs in the app.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.example.leetdroid.data.dao
package com.cdhiraj40.leetdroid.data.dao

import androidx.lifecycle.LiveData
import androidx.room.*
import com.example.leetdroid.data.entitiy.Contest
import com.cdhiraj40.leetdroid.data.entitiy.Contest

@Dao
interface ContestDao {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.example.leetdroid.data.dao
package com.cdhiraj40.leetdroid.data.dao

import androidx.lifecycle.LiveData
import androidx.room.*
import androidx.room.Dao
import com.example.leetdroid.data.entitiy.DailyQuestion
import com.cdhiraj40.leetdroid.data.entitiy.DailyQuestion

@Dao
interface DailyQuestionDao {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.example.leetdroid.data.dao
package com.cdhiraj40.leetdroid.data.dao

import androidx.lifecycle.LiveData
import androidx.room.*
import androidx.room.Dao
import com.example.leetdroid.data.entitiy.FirebaseUserProfile
import com.cdhiraj40.leetdroid.data.entitiy.FirebaseUserProfile

@Dao
interface FirebaseUserDao {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.example.leetdroid.data.dao
package com.cdhiraj40.leetdroid.data.dao

import androidx.room.*
import androidx.room.Dao
import com.example.leetdroid.data.entitiy.AllQuestions
import com.cdhiraj40.leetdroid.data.entitiy.AllQuestions

@Dao
interface QuestionsDao {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.example.leetdroid.data.dao
package com.cdhiraj40.leetdroid.data.dao

import androidx.lifecycle.LiveData
import androidx.room.*
import com.example.leetdroid.data.entitiy.User
import com.cdhiraj40.leetdroid.data.entitiy.User

@Dao
interface UserDao {
Expand Down
Loading

0 comments on commit 01a2337

Please sign in to comment.