Repository: Crazy-Marvin/ToDont Branch: development Commit: 4a35a8759f14 Files: 539 Total size: 64.1 MB Directory structure: gitextract_f40de0sl/ ├── .devcontainer/ │ └── devcontainer.json ├── .github/ │ ├── CODEOWNERS │ ├── CODE_OF_CONDUCT.md │ ├── CONTRIBUTING.md │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.md │ │ └── feature_request.md │ ├── SECURITY.md │ ├── SUPPORT.md │ ├── dependabot.yml │ └── workflows/ │ ├── build.yml │ ├── ci.yml │ ├── codacy-analysis.yml │ ├── codeql-analysis.yml │ └── windows.yml ├── .gitignore ├── LICENSE ├── README.md ├── app/ │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src/ │ ├── androidTest/ │ │ └── java/ │ │ └── rocks/ │ │ └── poopjournal/ │ │ └── todont/ │ │ └── ExampleInstrumentedTest.kt │ ├── debug/ │ │ └── res/ │ │ ├── drawable/ │ │ │ └── ic_launcher_foreground.xml │ │ ├── drawable-v24/ │ │ │ └── ic_launcher_background.xml │ │ └── mipmap-anydpi-v26/ │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ └── main/ │ ├── AndroidManifest.xml │ ├── java/ │ │ └── rocks/ │ │ └── poopjournal/ │ │ └── todont/ │ │ ├── About.kt │ │ ├── Helper.kt │ │ ├── LabelsActivity.kt │ │ ├── MainActivity.kt │ │ ├── MyApp.kt │ │ ├── NotificationReceiver.kt │ │ ├── OnBoardingActivity.kt │ │ ├── Settings.kt │ │ ├── SplashScreenActivity.kt │ │ ├── adapters/ │ │ │ ├── AvoidedOrDoneAdapter.kt │ │ │ ├── AvoidedOrDoneLogAdapter.kt │ │ │ ├── HabitsAdapter.kt │ │ │ ├── HabitsLogAdapter.kt │ │ │ └── LabelsAdapter.kt │ │ ├── fragments/ │ │ │ ├── AvoidedOrDoneFragment.kt │ │ │ ├── AvoidedOrDoneLogFragment.kt │ │ │ ├── DailyFragment.kt │ │ │ ├── FragmentLog.kt │ │ │ ├── FragmentToday.kt │ │ │ ├── HabitsFragment.kt │ │ │ ├── HabitsLogFragment.kt │ │ │ ├── MonthlyFragment.kt │ │ │ ├── WeeklyFragment.kt │ │ │ ├── YearlyFragment.kt │ │ │ └── menuFragment.kt │ │ ├── model/ │ │ │ ├── Alarm.kt │ │ │ ├── Habit.kt │ │ │ ├── HabitRecord.kt │ │ │ └── Label.kt │ │ ├── showcaseview/ │ │ │ ├── RippleBackground.kt │ │ │ └── ShowcaseViewBuilder.kt │ │ ├── utils/ │ │ │ ├── Constants.kt │ │ │ ├── DatabaseUtils.kt │ │ │ ├── HabitsBottomSheetDialog.kt │ │ │ ├── NotificationActionReceiver.kt │ │ │ ├── NotificationReceiver.kt │ │ │ ├── SharedPrefUtils.kt │ │ │ └── Utils.kt │ │ └── widgets/ │ │ ├── MyAppNoButtonsWidgetProvider.kt │ │ ├── MyAppSmallWidgetProvider.kt │ │ ├── NobuttonsWidgetService.kt │ │ └── WidgetService.kt │ ├── res/ │ │ ├── anim/ │ │ │ ├── fade_in.xml │ │ │ └── fade_out.xml │ │ ├── drawable/ │ │ │ ├── _cross.xml │ │ │ ├── _tick.xml │ │ │ ├── about.xml │ │ │ ├── backgorundinner.xml │ │ │ ├── bell.xml │ │ │ ├── bottom_nav_color.xml │ │ │ ├── bottom_sheet.xml │ │ │ ├── continuebutton2.xml │ │ │ ├── continuebuttontrans.xml │ │ │ ├── dis.xml │ │ │ ├── email.xml │ │ │ ├── fix_cross.xml │ │ │ ├── fix_fab.xml │ │ │ ├── fix_rounded_rectangle.xml │ │ │ ├── fix_tick.xml │ │ │ ├── frame__4_.xml │ │ │ ├── frame__5_.xml │ │ │ ├── frame__6_.xml │ │ │ ├── git.xml │ │ │ ├── grad_tab_back.xml │ │ │ ├── grad_window_backgrond.xml │ │ │ ├── gradient_background.xml │ │ │ ├── gradient_fab.xml │ │ │ ├── habitlogcheck.xml │ │ │ ├── ic_about.xml │ │ │ ├── ic_add.xml │ │ │ ├── ic_appearance.xml │ │ │ ├── ic_avoided.xml │ │ │ ├── ic_back.xml │ │ │ ├── ic_backarrow.xml │ │ │ ├── ic_backarrowpressed.xml │ │ │ ├── ic_background.xml │ │ │ ├── ic_cross.xml │ │ │ ├── ic_delete.xml │ │ │ ├── ic_done.xml │ │ │ ├── ic_downarrow.xml │ │ │ ├── ic_facebook.xml │ │ │ ├── ic_foreground.xml │ │ │ ├── ic_habitscircle.xml │ │ │ ├── ic_label_light.xml │ │ │ ├── ic_log.xml │ │ │ ├── ic_menu.xml │ │ │ ├── ic_monochrome.xml │ │ │ ├── ic_nextarrow.xml │ │ │ ├── ic_nextpressed.xml │ │ │ ├── ic_sad.xml │ │ │ ├── ic_spinner.xml │ │ │ ├── ic_today.xml │ │ │ ├── info.xml │ │ │ ├── log_frag_selected.xml │ │ │ ├── monitor.xml │ │ │ ├── mygradient.xml │ │ │ ├── mygradient1.xml │ │ │ ├── myinnergradient.xml │ │ │ ├── myinnergradientlog.xml │ │ │ ├── myinnergradientlogs.xml │ │ │ ├── notification_logo.xml │ │ │ ├── onboard.xml │ │ │ ├── reportproblem.xml │ │ │ ├── roundbutton.xml │ │ │ ├── rounded_button.xml │ │ │ ├── rounded_corners.xml │ │ │ ├── rounded_dialog_bg.xml │ │ │ ├── selectedround.xml │ │ │ ├── spinner_background.xml │ │ │ ├── tabcolor.xml │ │ │ ├── translate.xml │ │ │ ├── trash.xml │ │ │ ├── twitter.xml │ │ │ └── viewsrc.xml │ │ ├── layout/ │ │ │ ├── activity_about.xml │ │ │ ├── activity_labels.xml │ │ │ ├── activity_main.xml │ │ │ ├── activity_on_boarding.xml │ │ │ ├── activity_settings.xml │ │ │ ├── activity_splash__screen.xml │ │ │ ├── dialog_info.xml │ │ │ ├── dialogbox.xml │ │ │ ├── dialogbox_add_new_habit.xml │ │ │ ├── dialogbox_labels.xml │ │ │ ├── fragment_avoided.xml │ │ │ ├── fragment_daily.xml │ │ │ ├── fragment_done.xml │ │ │ ├── fragment_habits.xml │ │ │ ├── fragment_log2.xml │ │ │ ├── fragment_log_habits.xml │ │ │ ├── fragment_monthly.xml │ │ │ ├── fragment_today2.xml │ │ │ ├── fragment_weekly.xml │ │ │ ├── fragment_yearly.xml │ │ │ ├── initial_no_buttons_widget_view.xml │ │ │ ├── initial_widget_view.xml │ │ │ ├── labels_recyclerview_layout.xml │ │ │ ├── layout_habit_bottom_sheet.xml │ │ │ ├── menu_fragment.xml │ │ │ ├── no_buttons_widget_preview.xml │ │ │ ├── recyclerview_layout.xml │ │ │ ├── recyclerview_layout_habits.xml │ │ │ ├── recyclerview_layout_log_habits.xml │ │ │ ├── widget_item.xml │ │ │ ├── widget_item_no_buttons.xml │ │ │ ├── widget_layout.xml │ │ │ ├── widget_layout_no_buttons.xml │ │ │ └── widget_preview.xml │ │ ├── menu/ │ │ │ ├── navigation.xml │ │ │ └── topmenu.xml │ │ ├── resources.properties │ │ ├── values/ │ │ │ ├── attrs.xml │ │ │ ├── colors.xml │ │ │ ├── dimen.xml │ │ │ ├── ids.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── values-ar/ │ │ │ └── strings.xml │ │ ├── values-az/ │ │ │ └── strings.xml │ │ ├── values-b+art/ │ │ │ └── strings.xml │ │ ├── values-be/ │ │ │ └── strings.xml │ │ ├── values-bg/ │ │ │ └── strings.xml │ │ ├── values-bs/ │ │ │ └── strings.xml │ │ ├── values-ca/ │ │ │ └── strings.xml │ │ ├── values-cs/ │ │ │ └── strings.xml │ │ ├── values-da/ │ │ │ └── strings.xml │ │ ├── values-de/ │ │ │ └── strings.xml │ │ ├── values-dum/ │ │ │ └── strings.xml │ │ ├── values-el/ │ │ │ └── strings.xml │ │ ├── values-eo/ │ │ │ └── strings.xml │ │ ├── values-es/ │ │ │ └── strings.xml │ │ ├── values-et/ │ │ │ └── strings.xml │ │ ├── values-fa/ │ │ │ └── strings.xml │ │ ├── values-fi/ │ │ │ └── strings.xml │ │ ├── values-fil/ │ │ │ └── strings.xml │ │ ├── values-fr/ │ │ │ └── strings.xml │ │ ├── values-ga/ │ │ │ └── strings.xml │ │ ├── values-he/ │ │ │ └── strings.xml │ │ ├── values-hi/ │ │ │ └── strings.xml │ │ ├── values-hr/ │ │ │ └── strings.xml │ │ ├── values-hu/ │ │ │ └── strings.xml │ │ ├── values-hy/ │ │ │ └── strings.xml │ │ ├── values-ia/ │ │ │ └── strings.xml │ │ ├── values-id/ │ │ │ └── strings.xml │ │ ├── values-is/ │ │ │ └── strings.xml │ │ ├── values-it/ │ │ │ └── strings.xml │ │ ├── values-ja/ │ │ │ └── strings.xml │ │ ├── values-ka/ │ │ │ └── strings.xml │ │ ├── values-kk/ │ │ │ └── strings.xml │ │ ├── values-ko/ │ │ │ └── strings.xml │ │ ├── values-la/ │ │ │ └── strings.xml │ │ ├── values-lb/ │ │ │ └── strings.xml │ │ ├── values-lt/ │ │ │ └── strings.xml │ │ ├── values-mk/ │ │ │ └── strings.xml │ │ ├── values-ms/ │ │ │ └── strings.xml │ │ ├── values-mt/ │ │ │ └── strings.xml │ │ ├── values-nb-rNO/ │ │ │ └── strings.xml │ │ ├── values-ne/ │ │ │ └── strings.xml │ │ ├── values-night/ │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── values-night-v35/ │ │ │ └── styles.xml │ │ ├── values-nl/ │ │ │ └── strings.xml │ │ ├── values-pl/ │ │ │ └── strings.xml │ │ ├── values-pt/ │ │ │ └── strings.xml │ │ ├── values-pt-rBR/ │ │ │ └── strings.xml │ │ ├── values-ro/ │ │ │ └── strings.xml │ │ ├── values-ru/ │ │ │ └── strings.xml │ │ ├── values-sk/ │ │ │ └── strings.xml │ │ ├── values-sl/ │ │ │ └── strings.xml │ │ ├── values-sr/ │ │ │ └── strings.xml │ │ ├── values-sv/ │ │ │ └── strings.xml │ │ ├── values-ta/ │ │ │ └── strings.xml │ │ ├── values-th/ │ │ │ └── strings.xml │ │ ├── values-tl/ │ │ │ └── strings.xml │ │ ├── values-tr/ │ │ │ └── strings.xml │ │ ├── values-uk/ │ │ │ └── strings.xml │ │ ├── values-ur/ │ │ │ └── strings.xml │ │ ├── values-uz/ │ │ │ └── strings.xml │ │ ├── values-v35/ │ │ │ └── styles.xml │ │ ├── values-vi/ │ │ │ └── strings.xml │ │ ├── values-zh-rCN/ │ │ │ └── strings.xml │ │ ├── values-zh-rTW/ │ │ │ └── strings.xml │ │ ├── xml/ │ │ │ ├── backup_rules.xml │ │ │ ├── data_extraction_rules.xml │ │ │ ├── locales_config.xml │ │ │ ├── no_buttons_widget_info.xml │ │ │ └── widget_info.xml │ │ └── xml-v31/ │ │ ├── no_buttons_widget_info.xml │ │ └── widget_info.xml │ └── test/ │ └── java/ │ └── rocks/ │ └── poopjournal/ │ └── todont/ │ └── ExampleUnitTest.kt ├── build.gradle ├── fastlane/ │ └── metadata/ │ └── android/ │ ├── cs/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 2.txt │ │ │ └── 3.txt │ │ ├── full_description.txt │ │ └── short_description.txt │ ├── de-DE/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ └── 2.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── en-US/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 2.txt │ │ │ ├── 210.txt │ │ │ ├── 3.txt │ │ │ ├── 300.txt │ │ │ ├── 4.txt │ │ │ ├── 400.txt │ │ │ ├── 410.txt │ │ │ ├── 420.txt │ │ │ ├── 430.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ ├── title.txt │ │ └── video.txt │ ├── eo/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 2.txt │ │ │ └── 3.txt │ │ ├── full_description.txt │ │ └── short_description.txt │ ├── es/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 2.txt │ │ │ ├── 210.txt │ │ │ ├── 3.txt │ │ │ ├── 30.txt │ │ │ ├── 4.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── fi/ │ │ └── changelogs/ │ │ └── 410.txt │ ├── fr/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 2.txt │ │ │ └── 3.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── ga/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 2.txt │ │ │ ├── 210.txt │ │ │ ├── 3.txt │ │ │ ├── 300.txt │ │ │ ├── 4.txt │ │ │ ├── 400.txt │ │ │ ├── 410.txt │ │ │ ├── 420.txt │ │ │ ├── 430.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── he/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 2.txt │ │ │ ├── 3.txt │ │ │ ├── 30.txt │ │ │ ├── 4.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── hy/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 2.txt │ │ │ └── 3.txt │ │ ├── full_description.txt │ │ └── short_description.txt │ ├── id/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 2.txt │ │ │ ├── 3.txt │ │ │ ├── 30.txt │ │ │ ├── 4.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── it/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 2.txt │ │ │ ├── 3.txt │ │ │ ├── 4.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── ko/ │ │ ├── short_description.txt │ │ └── title.txt │ ├── nb-NO/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 2.txt │ │ │ ├── 3.txt │ │ │ └── 4.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── nl/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 2.txt │ │ │ └── 3.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── pl-PL/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 2.txt │ │ │ ├── 3.txt │ │ │ ├── 4.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── pt/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 4.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ └── 7.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── pt-BR/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 2.txt │ │ │ └── 3.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── ro/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 2.txt │ │ │ └── 3.txt │ │ ├── full_description.txt │ │ └── short_description.txt │ ├── ru/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 2.txt │ │ │ ├── 210.txt │ │ │ ├── 3.txt │ │ │ ├── 300.txt │ │ │ ├── 4.txt │ │ │ ├── 400.txt │ │ │ ├── 410.txt │ │ │ ├── 420.txt │ │ │ ├── 430.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── ta-IN/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 2.txt │ │ │ ├── 210.txt │ │ │ ├── 3.txt │ │ │ ├── 300.txt │ │ │ ├── 4.txt │ │ │ ├── 400.txt │ │ │ ├── 410.txt │ │ │ ├── 420.txt │ │ │ ├── 430.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── tr/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 2.txt │ │ │ ├── 210.txt │ │ │ ├── 3.txt │ │ │ ├── 30.txt │ │ │ ├── 4.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── uk/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 2.txt │ │ │ ├── 3.txt │ │ │ ├── 30.txt │ │ │ ├── 4.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── ur/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 2.txt │ │ │ └── 3.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ ├── zh-CN/ │ │ ├── changelogs/ │ │ │ ├── 1.txt │ │ │ ├── 10.txt │ │ │ ├── 2.txt │ │ │ ├── 210.txt │ │ │ ├── 3.txt │ │ │ ├── 300.txt │ │ │ ├── 4.txt │ │ │ ├── 400.txt │ │ │ ├── 410.txt │ │ │ ├── 420.txt │ │ │ ├── 430.txt │ │ │ ├── 5.txt │ │ │ ├── 6.txt │ │ │ ├── 7.txt │ │ │ ├── 8.txt │ │ │ └── 9.txt │ │ ├── full_description.txt │ │ ├── short_description.txt │ │ └── title.txt │ └── zh-TW/ │ ├── changelogs/ │ │ ├── 1.txt │ │ ├── 10.txt │ │ ├── 2.txt │ │ ├── 3.txt │ │ ├── 30.txt │ │ ├── 4.txt │ │ ├── 5.txt │ │ ├── 6.txt │ │ ├── 7.txt │ │ └── 9.txt │ ├── full_description.txt │ ├── short_description.txt │ └── title.txt ├── gradle/ │ └── wrapper/ │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── gradlew ├── gradlew.bat ├── sentry-wizard └── settings.gradle ================================================ FILE CONTENTS ================================================ ================================================ FILE: .devcontainer/devcontainer.json ================================================ // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: // https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/java { "name": "Java", "build": { "dockerfile": "Dockerfile", "args": { // Update the VARIANT arg to pick a Java version: 8, 11, 17 // Append -bullseye or -buster to pin to an OS version. // Use the -bullseye variants on local arm64/Apple Silicon. "VARIANT": "17-bullseye", // Options "INSTALL_MAVEN": "true", "MAVEN_VERSION": "3.8.5", "INSTALL_GRADLE": "false", "NODE_VERSION": "lts/*" } }, // Configure tool-specific properties. "customizations": { // Configure properties specific to VS Code. "vscode": { // Set *default* container specific settings.json values on container create. "settings": { "maven.executable.path": "/usr/local/sdkman/candidates/maven/current/bin/mvn" }, // Add the IDs of extensions you want installed when the container is created. "extensions": [ "vscjava.vscode-java-pack" ] } }, // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "java -version", // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode" } ================================================ FILE: .github/CODEOWNERS ================================================ /app/ @arafaatqureshi ================================================ FILE: .github/CODE_OF_CONDUCT.md ================================================ Welcome to the To Don't community. Within desired privacy, accept and grant criticism constructively. Finding yourself unable to do so e-mail [marvin@poopjournal.rocks](mailto:marvin@poopjournal.rocks) answered by Crazy Marvin, the project maintainer. ================================================ FILE: .github/CONTRIBUTING.md ================================================ ================================================ FILE: .github/FUNDING.yml ================================================ ================================================ FILE: .github/ISSUE_TEMPLATE/bug_report.md ================================================ --- name: Bug report about: Create a report to help us improve --- ## :writing_hand: Describe the bug ## :bomb: Steps to reproduce 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error ## :wrench: Expected behavior ## :camera: Screenshots ## :iphone: Tech info - Device: - OS: - App Version: ## :page_facing_up: Additional context ================================================ FILE: .github/ISSUE_TEMPLATE/feature_request.md ================================================ --- name: Feature request about: Suggest an idea for this project --- ## :warning: Is your feature request related to a problem? Please describe ## :bulb: Describe the solution you'd like ## :bar_chart: Describe alternatives you've considered ## :page_facing_up: Additional context ## :raising_hand: Do you want to develop this feature yourself? - [ ] Yes - [ ] No ================================================ FILE: .github/SECURITY.md ================================================ Please report (suspected) security vulnerabilities to [marvin@poopjournal.rocks](mailto:marvin@poopjournal.rocks). It would be great if you could prepare a patch too. Thanks! ================================================ FILE: .github/SUPPORT.md ================================================ Hi! 👋 We’re excited that you’re using **To Dont't** and we’d love to help. To help us help you, please read through the following guidelines. Please understand that people involved with this project often do so for fun, next to their day job; you are not entitled to free customer service. ## Help us help you! Spending time framing a question and adding support links or resources makes it much easier for us to help. It’s easy to fall into the trap of asking something too specific when you’re close to a problem. Then, those trying to help you out have to spend a lot of time asking additional questions to understand what you are hoping to achieve. Spending the extra time up front can help save everyone time in the long run. * Try to define what you need help with: * Is there something in particular you want to do? * What problem are you encountering and what steps have you taken to try and fix it? * Is there a concept you’re not understanding? * Learn about the [rubber duck debugging method](https://rubberduckdebugging.com/) * Avoid falling for the [XY problem](https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem/66378#66378) * Search on GitHub to see if a similar question has been asked * If possible, provide sample code, a [CodeSandbox](https://codesandbox.io/), or a video/GIF * The more time you put into asking your question, the better we can help you ## Contributions See [`contributing.md`](https://github.com/Crazy-Marvin/ToDont/blob/trunk/.github/CONTRIBUTING.md) on how to contribute. Quality PRs are really appreaciated! ================================================ FILE: .github/dependabot.yml ================================================ # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates version: 2 updates: - package-ecosystem: "gradle" # See documentation for possible values directory: "/" # Location of package manifests schedule: interval: "monthly" - package-ecosystem: "github-actions" directory: "/" schedule: interval: "monthly" ================================================ FILE: .github/workflows/build.yml ================================================ name: Android Build on: push jobs: build: name: "Assemble artifacts" runs-on: ubuntu-latest steps: # Checkout - name: SCM uses: actions/checkout@v6 - name: "Make gradlew executable" run: chmod +x ./gradlew # Assemble artifacts - name: Assemble uses: vgaidarji/android-github-actions-build@v1.0.1 with: args: "./gradlew assemble" ================================================ FILE: .github/workflows/ci.yml ================================================ name: CI on: push jobs: build: runs-on: ubuntu-latest steps: - name: "📥 Check-out" uses: actions/checkout@v6 # - name: "🧪 Gradle Wrapper Validation" # uses: gradle/wrapper-validation-action@v1 - name: "🧰 Install JDK" uses: actions/setup-java@v5 with: distribution: 'adopt' java-version: 8 java-package: jdk - name: "🧰 Setup Android SDK" uses: android-actions/setup-android@v4 - name: "🦸 Make gradlew executable" run: chmod +x ./gradlew - name: "🏗 Build" run: ./gradlew assembleDebug - name: "🧪 Code coverage" run: ./gradlew test - name: "📤 Upload code coverage" uses: codecov/codecov-action@v6 with: token: ${{ secrets.CODECOV_TOKEN }} - name: "🧪 Android LINT" run: ./gradlew lint - name: "🧪 Unit test" run: ./gradlew test ================================================ FILE: .github/workflows/codacy-analysis.yml ================================================ # This workflow checks out code, performs a Codacy security scan # and integrates the results with the # GitHub Advanced Security code scanning feature. For more information on # the Codacy security scan action usage and parameters, see # https://github.com/codacy/codacy-analysis-cli-action. # For more information on Codacy Analysis CLI in general, see # https://github.com/codacy/codacy-analysis-cli. name: Codacy Security Scan on: push: branches: [ development, master, trunk ] pull_request: # The branches below must be a subset of the branches above branches: [ development ] schedule: - cron: '25 8 * * 3' jobs: codacy-security-scan: name: Codacy Security Scan runs-on: ubuntu-latest steps: # Checkout the repository to the GitHub Actions runner - name: Checkout code uses: actions/checkout@v6 # Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis - name: Run Codacy Analysis CLI uses: codacy/codacy-analysis-cli-action@v4.4.7 with: # Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository # You can also omit the token and run the tools that support default configurations project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} verbose: true output: results.sarif format: sarif # Adjust severity of non-security issues gh-code-scanning-compat: true # Force 0 exit code to allow SARIF file generation # This will handover control about PR rejection to the GitHub side max-allowed-issues: 2147483647 # Upload the SARIF file generated in the previous step - name: Upload SARIF results file uses: github/codeql-action/upload-sarif@v4 with: sarif_file: results.sarif ================================================ FILE: .github/workflows/codeql-analysis.yml ================================================ name: "CodeQL" on: push: branches: [development] pull_request: # The branches below must be a subset of the branches above branches: [trunk] schedule: - cron: '0 9 * * 4' jobs: analyse: name: Analyse runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v6 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. fetch-depth: 2 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v4 # Override language selection by uncommenting this and choosing your languages # with: # languages: go, javascript, csharp, python, cpp, java # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v4 # ℹ️ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines # and modify them (or add more) to build your code if your project # uses a compiled language #- run: | # make bootstrap # make release - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 ================================================ FILE: .github/workflows/windows.yml ================================================ name: CI on: push jobs: build: runs-on: windows-latest steps: - name: "📥 Check-out" uses: actions/checkout@v6 # - name: "🧪 Gradle Wrapper Validation" # uses: gradle/wrapper-validation-action@v1 - name: "🧰 Install JDK" uses: actions/setup-java@v5 with: distribution: 'adopt' java-version: 8 java-package: jdk - name: "🧰 Setup Android SDK" uses: android-actions/setup-android@v4 - name: "🦸 Make gradlew executable" run: chmod +x ./gradlew - name: "🏗 Build" run: ./gradlew assembleDebug - name: "🧪 Code coverage" run: ./gradlew jacocoTestReport - name: "📤 Upload code coverage" uses: codecov/codecov-action@v6 with: token: ${{ secrets.CODECOV_TOKEN }} yml: .codecov.yml - name: "🧪 Android LINT" run: ./gradlew lint - name: "🧪 Unit test" run: ./gradlew test ================================================ FILE: .gitignore ================================================ # Built application files *.apk *.aar *.ap_ *.aab app/release # Files for the ART/Dalvik VM *.dex # Java class files *.class # Generated files bin/ gen/ out/ # Uncomment the following line in case you need and you don't have the release build type files in your app # release/ # Gradle files .gradle/ build/ .idea/gradle.xml .idea/libraries # Local configuration file (sdk path, etc) local.properties # Proguard folder generated by Eclipse proguard/ # Log Files *.log # Android Studio Navigation editor temp files .navigation/ # Android Studio captures folder captures/ # IntelliJ *.iml .idea/ misc.xml deploymentTargetDropDown.xml render.experimental.xml .idea/workspace.xml .idea/tasks.xml .idea/gradle.xml .idea/assetWizardSettings.xml .idea/dictionaries .idea/libraries/ # Android Studio 3 in .gitignore file. .idea/caches .idea/modules.xml # Comment next line if keeping position of elements in Navigation Editor is relevant for you .idea/navEditor.xml # Keystore files # Uncomment the following lines if you do not want to check your keystore files in. *.jks *.keystore # External native build folder generated in Android Studio 2.2 and later .externalNativeBuild .cxx/ # Google Services (e.g. APIs or Firebase) google-services.json # Freeline freeline.py freeline/ freeline_project_description.json # fastlane fastlane/report.xml fastlane/Preview.html fastlane/screenshots fastlane/test_output fastlane/readme.md # Version control vcs.xml # lint lint/intermediates/ lint/generated/ lint/outputs/ lint/tmp/ # lint/reports/ # Android Profiling *.hprof *.dm # Kotlin .kotlin/sessions/ ================================================ FILE: LICENSE ================================================ Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] 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. ================================================ FILE: README.md ================================================ [![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/Crazy-Marvin/ToDont/CI/development)](https://github.com/Crazy-Marvin/ToDont/actions) [![License](https://img.shields.io/github/license/Crazy-Marvin/ToDont.svg)](https://github.com/Crazy-Marvin/ToDont/blob/development/LICENSE) [![Figma Mockups](https://img.shields.io/badge/Figma-black?logo=figma)](https://www.figma.com/file/RoX4IQYdduFH1TxXV3fxla/To-Don%E2%80%99t?node-id=0%3A1) [![Last commit](https://img.shields.io/github/last-commit/Crazy-Marvin/ToDont.svg?style=flat)](https://github.com/Crazy-Marvin/ToDont/commits) [![Releases](https://img.shields.io/github/downloads/Crazy-Marvin/ToDont/total.svg?style=flat)](https://github.com/Crazy-Marvin/ToDont/releases) [![Latest tag](https://img.shields.io/github/tag/Crazy-Marvin/ToDont.svg?style=flat)](https://github.com/Crazy-Marvin/ToDont/tags) [![Issues](https://img.shields.io/github/issues/Crazy-Marvin/ToDont.svg?style=flat)](https://github.com/Crazy-Marvin/ToDont/issues) [![Pull requests](https://img.shields.io/github/issues-pr/Crazy-Marvin/ToDont.svg?style=flat)](https://github.com/Crazy-Marvin/ToDont/pulls) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/7dadc506c2df42a38c2ef733948f9492)](https://app.codacy.com/gh/Crazy-Marvin/ToDont/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Hosted Weblate](https://hosted.weblate.org/widgets/todont/-/svg-badge.svg)](https://hosted.weblate.org/engage/todont/) [![Sentry](https://img.shields.io/badge/Sentry-%23362D59.svg?logo=sentry&style=flat)](https://sentry.com) [![Known Vulnerabilities](https://snyk.io/test/github/Crazy-Marvin/ToDont/badge.svg?targetFile=app%2Fbuild.gradle)](https://snyk.io/test/github/Crazy-Marvin/ToDont?targetFile=app%2Fbuild.gradle) [![API](https://img.shields.io/badge/API-19%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=19) [![F-Droid](https://img.shields.io/f-droid/v/rocks.poopjournal.todont.svg)](https://f-droid.org/en/packages/rocks.poopjournal.todont/) [![Google Play](https://badgen.net/badge/icon/googleplay?icon=googleplay&label)](https://play.google.com/store/apps/details?id=rocks.poopjournal.todont) # To Don't This libre software app keeps track of things you do __NOT__ want to do. A good look at bad habits. Jot down your vices, right from the home page. Use notes to add details — like a healthy alternative to that chocolate bar you cannot resist. And organise your input with labels. Faster than you can grab a pen. Find and cross out the bad habits you give into on the home page. These will move to "Done" for the day. The next morning fresh, with a full list of things to avoid. Stay on top of your progress. The log grants insight into your overall success rates, pinpointing bad habits you have grown most attached to — over a week, a month, or a year. _Your better you can easily work toward an even better you_. Get it on F-Droid Get it on Google Play # Contributing The ```development``` or a feature branch is used while developing the code, and pushed into the master branch ```trunk``` afterwards for releases. PRs to the ```trunk``` need at least one approving review before getting merged. Help translate the app at [Hosted Weblate](https://hosted.weblate.org/engage/todont/). Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. Check out the [contribution guidelines](https://github.com/Crazy-Marvin/ToDont/blob/trunk/.github/CONTRIBUTING.md) for details please. # License [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) ================================================ FILE: app/.gitignore ================================================ /build ================================================ FILE: app/build.gradle ================================================ plugins { id 'com.android.application' // id 'kotlin-android-extensions' id 'org.jetbrains.kotlin.android' id 'kotlin-android' id 'kotlin-kapt' id "io.sentry.android.gradle" version "6.3.0" // id 'com.google.gms.google-services' // id 'kotlin-parcelize' } android { namespace 'rocks.poopjournal.todont' compileSdk 36 defaultConfig { applicationId "rocks.poopjournal.todont" minSdkVersion 26 targetSdkVersion 36 versionCode 420 versionName "4.2.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true multiDexEnabled true setProperty("archivesBaseName", "ToDont-$versionName") } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } dataBinding { enabled = true } compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = '17' } buildFeatures { buildConfig = true dataBinding true viewBinding true // for view binding: // viewBinding true } /* lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false }*/ } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.16.0' implementation 'androidx.core:core:1.16.0' // Check for the latest version implementation 'com.google.android.material:material:1.13.0' implementation 'androidx.appcompat:appcompat:1.7.1' implementation 'androidx.constraintlayout:constraintlayout:2.2.1' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'com.google.android.material:material:1.13.0' implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.leanback:leanback:1.2.0' implementation 'androidx.activity:activity:1.13.0' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.3.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0' //noinspection GradleCompatible implementation 'com.android.support:design:28.0.0' implementation 'com.jaredrummler:material-spinner:1.3.1' implementation 'com.google.android.material:material:1.13.0' // implementation 'com.ornach.nobobutton:nobobutton:1.5' implementation 'de.hdodenhof:circleimageview:3.1.0' implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' implementation 'de.hdodenhof:circleimageview:3.1.0' //noinspection GradleCompatible implementation 'com.android.support:cardview-v7:28.0.0' implementation("com.github.mreram:showcaseview:1.4.1") implementation 'com.github.bumptech.glide:glide:5.0.5' annotationProcessor 'com.github.bumptech.glide:compiler:5.0.5' implementation 'jp.wasabeef:glide-transformations:4.3.0' } ================================================ FILE: app/proguard-rules.pro ================================================ # Add project specific ProGuard rules here. # You can control the set of applied configuration files using the # proguardFiles setting in build.gradle. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} # Uncomment this to preserve the line number information for # debugging stack traces. #-keepattributes SourceFile,LineNumberTable # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile ================================================ FILE: app/src/androidTest/java/rocks/poopjournal/todont/ExampleInstrumentedTest.kt ================================================ package rocks.poopjournal.todont import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 import org.junit.Test import org.junit.runner.RunWith import org.junit.Assert.* /** * Instrumented test, which will execute on an Android device. * * See [testing documentation](http://d.android.com/tools/testing). */ @RunWith(AndroidJUnit4::class) class ExampleInstrumentedTest { @Test fun useAppContext() { // Context of the app under test. val appContext = InstrumentationRegistry.getInstrumentation().targetContext assertEquals("rocks.poopjournal.todont", appContext.packageName) } } ================================================ FILE: app/src/debug/res/drawable/ic_launcher_foreground.xml ================================================ ================================================ FILE: app/src/debug/res/drawable-v24/ic_launcher_background.xml ================================================ ================================================ FILE: app/src/debug/res/mipmap-anydpi-v26/ic_launcher.xml ================================================ ================================================ FILE: app/src/debug/res/mipmap-anydpi-v26/ic_launcher_round.xml ================================================ ================================================ FILE: app/src/main/AndroidManifest.xml ================================================ ================================================ FILE: app/src/main/java/rocks/poopjournal/todont/About.kt ================================================ package rocks.poopjournal.todont import android.annotation.SuppressLint import android.content.ActivityNotFoundException import android.content.Intent import android.content.res.Configuration import android.graphics.Color import android.net.Uri import android.os.Build import android.os.Bundle import android.view.View import android.view.View.OnTouchListener import android.view.WindowManager import android.widget.LinearLayout import android.widget.RelativeLayout import android.widget.TextView import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.core.view.ViewCompat import androidx.core.view.WindowCompat import androidx.core.view.WindowInsetsCompat import androidx.core.view.updatePadding import rocks.poopjournal.todont.utils.SharedPrefUtils import rocks.poopjournal.todont.utils.setAppTheme import smartdevelop.ir.eram.showcaseviewlib.GuideView import smartdevelop.ir.eram.showcaseviewlib.config.DismissType import smartdevelop.ir.eram.showcaseviewlib.config.Gravity import smartdevelop.ir.eram.showcaseviewlib.config.PointerType class About : AppCompatActivity() { var version: TextView? = null lateinit var mainRelative : RelativeLayout private var contributionView: LinearLayout? = null private var prefUtils: SharedPrefUtils? = null @SuppressLint("SetTextI18n") override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setAppTheme(this) setContentView(R.layout.activity_about) //actionBar?.setBackgroundDrawable(resources.getDrawable(R.drawable.mygradient)) WindowCompat.setDecorFitsSystemWindows(window, false); mainRelative = findViewById(R.id.main_relative) // Apply insets padding to avoid notch / status bar / nav bar overlap ViewCompat.setOnApplyWindowInsetsListener(mainRelative) { view, insets -> val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()) view.updatePadding( left = systemBars.left, top = systemBars.top, right = systemBars.right, ) insets } window.statusBarColor = Color.TRANSPARENT WindowCompat.getInsetsController(window, window.decorView).apply { val isDark = (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES isAppearanceLightStatusBars = !isDark } contributionView = findViewById(R.id.contributionView) version = findViewById(R.id.versiontext) version?.setText(BuildConfig.VERSION_NAME + " Beta ") prefUtils = SharedPrefUtils(this) contributionView?.setOnTouchListener(OnTouchListener { view, motionEvent -> if (!prefUtils!!.getBool(SharedPrefUtils.KEY_CONTRIBUTION_VIEW)) { val guideView = GuideView.Builder(this@About) .setContentText(this@About.resources.getString(R.string.help_make_to_don_t_better)) .setTargetView(contributionView) .setDismissType(DismissType.anywhere) .setPointerType(PointerType.arrow) .setGravity(Gravity.center) .setGuideListener { prefUtils!!.setBool( SharedPrefUtils.KEY_CONTRIBUTION_VIEW, true ) } guideView.build().show() return@OnTouchListener true } false }) } fun contact_codeaquaria(view: View) { when (view.id) { R.id.btnmail_codeaquaria -> { val mailto = "mailto:codeaquaria20@gmail.com" val emailIntent = Intent(Intent.ACTION_SENDTO) emailIntent.setData(Uri.parse(mailto)) try { startActivity(emailIntent) } catch (e: ActivityNotFoundException) { Toast.makeText(this, " Error to open Email ", Toast.LENGTH_SHORT).show() } } R.id.btngit_codeaquaria -> { val uri = Uri.parse("https://github.com/arafaatqureshi") // missing 'http://' will cause crashed val intent = Intent(Intent.ACTION_VIEW, uri) startActivity(intent) } R.id.btntwitter_codeaquaria -> { val ui = Uri.parse("https://www.facebook.com/Code-Aquaria-109834144196326") // missing 'http://' will cause crashed val it = Intent(Intent.ACTION_VIEW, ui) startActivity(it) } } } fun contact_codeaquariatar(view: View) { when (view.id) { R.id.btnmail_tarik -> { val mailto = "mailto:imamtariq7@gmail.com" val emailIntent = Intent(Intent.ACTION_SENDTO) emailIntent.setData(Uri.parse(mailto)) try { startActivity(emailIntent) } catch (e: ActivityNotFoundException) { Toast.makeText(this, " Error to open Email ", Toast.LENGTH_SHORT).show() } } R.id.btngit_tarik -> { val uri = Uri.parse("https://github.com/theftzoku") // missing 'http://' will cause crashed val intent = Intent(Intent.ACTION_VIEW, uri) startActivity(intent) } R.id.btntwitter_tarik -> { val ui = Uri.parse("https://www.facebook.com/Code-Aquaria-109834144196326") // missing 'http://' will cause crashed val it = Intent(Intent.ACTION_VIEW, ui) startActivity(it) } } } fun contact_marvin(view: View) { when (view.id) { R.id.btnmail_crazymarvin -> { val mailto = "mailto:marvin@poopjournal.rocks" val emailIntent = Intent(Intent.ACTION_SENDTO) emailIntent.setData(Uri.parse(mailto)) try { startActivity(emailIntent) } catch (e: ActivityNotFoundException) { Toast.makeText(this, " Error to open Email ", Toast.LENGTH_SHORT).show() } } R.id.btngit_crazymarvin -> { val uri = Uri.parse("https://github.com/Crazy-Marvin") // missing 'http://' will cause crashed val intent = Intent(Intent.ACTION_VIEW, uri) startActivity(intent) } R.id.btntwitter_crazymarvin -> { val u = Uri.parse("https://twitter.com/CrazyMarvinApps") // missing 'http://' will cause crashed val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } } } fun translate(view: View?) { val u = Uri.parse("https://hosted.weblate.org/projects/todont/") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun report(view: View?) { val u = Uri.parse("https://github.com/Crazy-Marvin/ToDont/issues") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun viewsource(view: View?) { val u = Uri.parse("https://github.com/Crazy-Marvin/ToDont") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun back(view: View?) { // val i = Intent(this@About, Settings::class.java) // finishAffinity() // startActivity(i) finish() overridePendingTransition(R.anim.fade_in, R.anim.fade_out) } fun jetpack(view: View?) { val u = Uri.parse("https://developer.android.com/jetpack") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun logoclicked(view: View?) { val u = Uri.parse("https://crazymarvin.com/todont") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun feather(view: View?) { val u = Uri.parse("https://feathericons.com/") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun apacheee(view: View?) { val u = Uri.parse("https://github.com/Crazy-Marvin/ToDont/blob/development/LICENSE") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun spinner(view: View?) { val u = Uri.parse("https://github.com/jaredrummler/MaterialSpinner/blob/master/LICENSE") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun nobobutton(view: View?) { val u = Uri.parse("https://github.com/alex31n/NoboButton/blob/master/LICENSE") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun cImgButton(view: View?) { val u = Uri.parse("https://github.com/hdodenhof/CircleImageView/blob/master/LICENSE.txt") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun MPAndroidChart(view: View?) { val u = Uri.parse("https://github.com/PhilJay/MPAndroidChart/blob/master/LICENSE") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun JUnit(view: View?) { val u = Uri.parse("https://junit.org/junit4/license.html") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun Kotlin(view: View?) { val u = Uri.parse("https://github.com/JetBrains/kotlin/blob/master/license/LICENSE.txt") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun Java(view: View?) { val u = Uri.parse("http://openjdk.java.net/legal/gplv2+ce.html") val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } fun showCaseView(view: View?) { val u = Uri.parse(resources.getString(R.string.showCaseViewLink)) val i = Intent(Intent.ACTION_VIEW, u) startActivity(i) } override fun onBackPressed() { super.onBackPressed() // val i = Intent(this@About, Settings::class.java) // finishAffinity() // startActivity(i) overridePendingTransition(R.anim.fade_in, R.anim.fade_out) } } ================================================ FILE: app/src/main/java/rocks/poopjournal/todont/Helper.kt ================================================ package rocks.poopjournal.todont object Helper { //@JvmField //var labels_array: ArrayList = ArrayList() // @JvmField // var avoidedData: ArrayList> = ArrayList() // @JvmField // var avoidedlogdata: ArrayList> = ArrayList() // @JvmField // var donedata: ArrayList> = ArrayList() // @JvmField // var donelogdata: ArrayList> = ArrayList() // @JvmField // var avoidedweeklydata: ArrayList = ArrayList() // @JvmField // var avoidedmonthlydata: ArrayList = ArrayList() // @JvmField // var donemonthlydata: ArrayList = ArrayList() // @JvmField // var doneweeklydata: ArrayList = ArrayList() // @JvmField // var doneyearlydata: ArrayList = ArrayList() // @JvmField // var avoidedyearlydata: ArrayList = ArrayList() @JvmField var SelectedButtonOfTodayTab: Int = 0 @JvmField var SelectedButtonOfLogTab: Int = 0 @JvmField var SelectedButtonOfLogDailyTab: Int = 0 @JvmField var isTodaySelected: Boolean = true // @JvmField // var getSelecteddate: String = "" } ================================================ FILE: app/src/main/java/rocks/poopjournal/todont/LabelsActivity.kt ================================================ package rocks.poopjournal.todont import android.app.Dialog import android.content.Intent import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.os.Build import android.os.Bundle import android.view.View import android.view.Window import android.view.WindowManager import androidx.appcompat.app.AlertDialog import androidx.appcompat.app.AppCompatActivity import androidx.recyclerview.widget.ItemTouchHelper import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.google.android.material.floatingactionbutton.FloatingActionButton import rocks.poopjournal.todont.adapters.LabelsAdapter import rocks.poopjournal.todont.databinding.ActivityLabelsBinding import rocks.poopjournal.todont.databinding.DialogboxLabelsBinding import rocks.poopjournal.todont.model.Label import rocks.poopjournal.todont.showcaseview.RippleBackground import rocks.poopjournal.todont.showcaseview.ShowcaseViewBuilder import rocks.poopjournal.todont.utils.DatabaseUtils import rocks.poopjournal.todont.utils.SharedPrefUtils import rocks.poopjournal.todont.utils.setAppTheme import smartdevelop.ir.eram.showcaseviewlib.GuideView import smartdevelop.ir.eram.showcaseviewlib.config.DismissType import smartdevelop.ir.eram.showcaseviewlib.config.Gravity import smartdevelop.ir.eram.showcaseviewlib.config.PointerType class LabelsActivity : AppCompatActivity() { private var rvLabels: RecyclerView? = null private var dbHelper: DatabaseUtils? = null private var adapter: LabelsAdapter? = null private var labels = ArrayList