Skip to content

Instantly share code, notes, and snippets.

View rohitjakhar's full-sized avatar
💭
Android Developer

Rohit Jakhar rohitjakhar

💭
Android Developer
View GitHub Profile
apply plugin: 'maven-publish'
apply plugin: 'signing'
task androidSourcesJar(type: Jar) {
archiveClassifier.set('sources')
if (project.plugins.findPlugin("com.android.library")) {
from android.sourceSets.main.java.srcDirs
} else {
from sourceSets.main.java.srcDirs
}
@rohitjakhar
rohitjakhar / awsomappconfig.json
Last active October 20, 2024 13:41
Awesome App Rating Config
{
"cancelable": true,
"useCustomFeedback": false,
"mailSetting": {
"mailAddress": "[email protected]",
"subject": "Review for App",
"text": "Heyy, I want to share app review for your",
"errorToastMessage": "Something wrong with mail app!"
},
"customFeedbackMessageText": "Suggest us what you don\'t like",
package com.rohit.healthOn.ui.homeScreen.profileScreen
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.rohit.healthOn.data.repo.AuthRepo
import com.rohit.healthOn.data.repo.LeaderboardRepo
import com.rohit.healthOn.util.ERROR_TYPE
import com.rohit.healthOn.util.Resource
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.*
package com.rohit.healthOn.ui.homeScreen.profileScreen
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
package com.rohit.healthOn.ui.homeScreen.leaderBoardScreen
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import com.rohit.healthOn.R
import com.rohit.healthOn.databinding.FragmentLeaderboardBinding
import com.rohit.healthOn.ui.adapters.LeaderboardAdapter
package com.rohit.healthOn.ui.homeScreen.dashboardScreen.sleep
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.rohit.healthOn.data.models.local.Sleep
import com.rohit.healthOn.data.repo.AuthRepo
import com.rohit.healthOn.data.repo.SleepRepo
import com.rohit.healthOn.util.*
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.*
package com.rohit.healthOn.ui.homeScreen.dashboardScreen.sleep
import android.os.Bundle
import android.view.View
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import com.rohit.healthOn.R
import com.rohit.healthOn.databinding.FragmentSleepDashboardBinding
package com.rohit.healthOn.ui.homeScreen.dashboardScreen
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import com.google.android.material.tabs.TabLayoutMediator
import com.rohit.healthOn.R
import com.rohit.healthOn.databinding.FragmentDashboardBinding
package com.rohit.healthOn.ui.homeScreen
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.rohit.healthOn.data.repo.AuthRepo
import com.rohit.healthOn.data.repo.SleepRepo
import com.rohit.healthOn.data.repo.WaterRepo
import com.rohit.healthOn.util.ERROR_TYPE
import com.rohit.healthOn.util.Resource
import dagger.hilt.android.lifecycle.HiltViewModel
package com.rohit.healthOn.ui.homeScreen
import android.os.Bundle
import android.os.VibrationEffect
import android.os.Vibrator
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.lifecycle.lifecycleScope
import androidx.navigation.NavController